:root {
  color-scheme: light;
  --ink: #24251d;
  --muted: #656454;
  --cream: #fffaf0;
  --paper: #fffdf8;
  --olive: #5f782f;
  --olive-dark: #40561d;
  --lime: #d9ee98;
  --gold: #e7a417;
  --tan: #c9ad82;
  --line: #ded4c2;
  --shadow: 0 18px 45px rgba(77, 62, 38, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(217, 238, 152, 0.32), transparent 24rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--olive-dark); }
a:hover { color: var(--olive); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  color: white;
  background: var(--olive-dark);
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

.site-header {
  border-bottom: 1px solid rgba(95, 120, 47, 0.18);
  background: rgba(255, 250, 240, 0.92);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(1120px, calc(100% - 2rem));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.brand img { width: 44px; height: 44px; border-radius: 11px; }

.nav-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.15rem; }
.nav-links a { font-weight: 650; text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--olive); text-decoration: underline; text-underline-offset: 0.35rem; }

main { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }

.hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
  padding: clamp(3rem, 8vw, 7rem) 0;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--olive);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.65rem, 7vw, 5.5rem); font-weight: 500; letter-spacing: -0.045em; }
h2 { margin: 0 0 0.75rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -0.025em; }
h3 { margin: 1.8rem 0 0.35rem; font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.lede { max-width: 43rem; margin: 1.2rem 0 1.6rem; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.15rem;
  border: 2px solid var(--olive);
  border-radius: 999px;
  background: var(--olive);
  color: white;
  font-weight: 750;
  text-decoration: none;
}
.button:hover { background: var(--olive-dark); color: white; }
.button.secondary { background: transparent; color: var(--olive-dark); }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 50% 44% 48% 42%;
  background: linear-gradient(145deg, var(--paper), #f0dec0);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.hero-art::after {
  content: "+";
  position: absolute;
  right: 5%;
  bottom: 10%;
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border-radius: 50%;
  color: #3a2a08;
  background: var(--gold);
  font-size: 2.2rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(84, 57, 7, 0.2);
}
.hero-art img { width: 72%; height: 72%; object-fit: contain; border-radius: 25%; }

.section { padding: clamp(2.8rem, 6vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.section-intro { max-width: 46rem; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.card { padding: 1.35rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 8px 22px rgba(77, 62, 38, 0.05); }
.card strong { display: block; margin-bottom: 0.35rem; font-size: 1.05rem; }
.card p { color: var(--muted); margin: 0; }
.step { display: flex; gap: 0.85rem; align-items: flex-start; }
.step-number { flex: 0 0 auto; display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; color: white; background: var(--olive); font-weight: 800; }

.page { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(2rem, 7vw, 6rem); align-items: start; padding: clamp(2.8rem, 7vw, 5.5rem) 0; }
.page-nav { position: sticky; top: 1.5rem; padding: 1rem; border-left: 4px solid var(--lime); }
.page-nav strong { display: block; margin-bottom: 0.45rem; }
.page-nav a { display: block; padding: 0.22rem 0; }
.content h1 { font-size: clamp(2.5rem, 6vw, 4.2rem); }
.content > .lede { margin-bottom: 2.4rem; }
.content section { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.content ul, .content ol { padding-left: 1.35rem; }
.content li { margin-bottom: 0.45rem; }
.note { padding: 1rem 1.1rem; border-left: 4px solid var(--gold); border-radius: 0 0.65rem 0.65rem 0; background: #fff4d8; }
.meta { color: var(--muted); font-size: 0.92rem; }
details { margin: 0.75rem 0; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--paper); }
summary { cursor: pointer; font-weight: 750; }
details p { margin: 0.75rem 0 0; }

.site-footer { margin-top: 2rem; border-top: 1px solid var(--line); }
.footer-inner { width: min(1120px, calc(100% - 2rem)); margin: auto; padding: 2rem 0 3rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 1rem; }

@media (max-width: 800px) {
  .nav { padding: 0.8rem 0; align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { width: min(76vw, 360px); justify-self: center; grid-row: 1; }
  .grid { grid-template-columns: 1fr; }
  .page { grid-template-columns: 1fr; }
  .page-nav { position: static; border-left: 0; border-bottom: 4px solid var(--lime); }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
