:root {
  --ink: #17211b;
  --muted: #526057;
  --green: #176b45;
  --green-dark: #0f5033;
  --sun: #f5b942;
  --paper: #fbfdf9;
  --soft: #edf5ef;
  --line: #d8e2da;
  --white: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.6; }
a { color: inherit; }
.site-header, main, footer { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1rem; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.primary-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; font-size: .86rem; }
.primary-nav a, .footer-nav a { color: var(--muted); font-weight: 650; text-decoration: none; }
.primary-nav a:hover, .primary-nav a:focus-visible, .footer-nav a:hover, .footer-nav a:focus-visible { color: var(--green-dark); text-decoration: underline; text-underline-offset: .2em; }
.hero { display: grid; grid-template-columns: 1.5fr .8fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(4rem, 10vw, 8rem) 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; margin-top: 0; }
h1 { font-size: clamp(2.8rem, 8vw, 5.8rem); max-width: 12ch; margin-bottom: 1.5rem; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 18ch; margin-bottom: 2rem; }
h3 { font-size: 1.25rem; margin-bottom: .5rem; }
p { margin-top: 0; }
.lead { color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 62ch; }
.eyebrow { color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; margin-top: 2rem; }
.button { display: inline-block; border-radius: .65rem; background: var(--green); color: var(--white); padding: .85rem 1.2rem; font-weight: 750; text-decoration: none; box-shadow: 0 5px 0 var(--green-dark); transition: transform .15s ease, box-shadow .15s ease; }
.button:hover, .button:focus-visible { transform: translateY(2px); box-shadow: 0 3px 0 var(--green-dark); }
.button-small { padding: .55rem .8rem; box-shadow: none; font-size: .9rem; }
.text-link { color: var(--green-dark); font-weight: 700; text-underline-offset: .2em; }
.microcopy { color: var(--muted); font-size: .88rem; margin-top: 1rem; }
.summary { background: var(--soft); border: 1px solid var(--line); border-radius: 1rem; padding: 1.5rem; box-shadow: 12px 12px 0 #dceadd; }
.summary-title { font-weight: 800; }
.summary ul { margin-bottom: 0; padding-left: 1.2rem; }
.summary li + li { margin-top: .4rem; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; border-top: 1px solid var(--line); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 1rem; overflow: hidden; }
.benefit-grid article { background: var(--white); padding: 1.4rem; }
.benefit-grid p { color: var(--muted); margin-bottom: 0; }
.benefit-grid h3 a { text-decoration-color: var(--line); text-underline-offset: .18em; }
.guide-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.guide-card { display: block; color: inherit; background: var(--white); border: 1px solid var(--line); border-radius: .9rem; padding: 1.4rem; text-decoration: none; }
.guide-card:hover, .guide-card:focus-visible { border-color: var(--green); box-shadow: 0 5px 0 var(--soft); }
.guide-card span { color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.guide-card h3 { margin: .45rem 0; }
.guide-card p { color: var(--muted); margin-bottom: 0; }
.example { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem 4rem; }
.example-numbers { margin: 0; background: var(--ink); color: var(--white); border-radius: 1rem; padding: 1.5rem; }
.example-numbers div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .75rem; border-bottom: 1px solid #3b463f; }
.example-numbers div:last-child { border-bottom: 0; }
.example-numbers dd { margin: 0; font-weight: 800; text-align: right; }
.note { grid-column: 1 / -1; color: var(--muted); border-left: 4px solid var(--sun); padding-left: 1rem; }
.faq { max-width: 800px; }
details { border-top: 1px solid var(--line); padding: 1rem 0; }
details:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 750; }
details p { color: var(--muted); padding-top: .8rem; margin-bottom: 0; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 2rem; background: var(--soft); border-radius: 1rem; margin-bottom: 5rem; padding: clamp(1.5rem, 5vw, 3rem); }
.cta h2 { margin-bottom: .6rem; }
.cta p:last-child { color: var(--muted); margin-bottom: 0; }
footer { color: var(--muted); border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: .84rem; }
footer p { max-width: 90ch; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .7rem 1.2rem; margin-bottom: 1.5rem; }
.guide-hero { max-width: 780px; padding: clamp(3rem, 8vw, 6rem) 0 2.5rem; }
.guide-hero h1 { max-width: 15ch; font-size: clamp(2.5rem, 7vw, 4.7rem); }
.breadcrumbs { color: var(--muted); font-size: .82rem; padding-top: 1rem; }
.breadcrumbs a { color: var(--green-dark); text-underline-offset: .18em; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-bottom: 5rem; }
.article { min-width: 0; }
.article h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); max-width: 24ch; margin-top: 3.5rem; margin-bottom: 1rem; }
.article h3 { margin-top: 2rem; }
.article p, .article li { max-width: 75ch; }
.article li + li { margin-top: .5rem; }
.article a { color: var(--green-dark); text-underline-offset: .18em; }
.toc { position: sticky; top: 1rem; background: var(--soft); border: 1px solid var(--line); border-radius: .8rem; padding: 1.2rem; }
.toc p { font-weight: 800; margin-bottom: .5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; font-size: .88rem; }
.toc li + li { margin-top: .4rem; }
.toc a { color: var(--green-dark); }
.formula, .callout { background: var(--soft); border-left: 4px solid var(--green); padding: 1rem 1.2rem; margin-block: 1.5rem; }
.formula { font-weight: 750; }
.source-list { font-size: .9rem; }
.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.related a { border: 1px solid var(--line); border-radius: .7rem; padding: 1rem; font-weight: 750; text-decoration: none; }
.related a:hover, .related a:focus-visible { border-color: var(--green); }
.article-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; background: var(--ink); color: var(--white); border-radius: 1rem; margin-top: 3rem; padding: 1.5rem; }
.article-cta p { margin: 0; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; }
  .primary-nav { display: none; }
  .hero, .example { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .benefit-grid { grid-template-columns: 1fr; }
  .guide-grid, .related { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .cta { align-items: flex-start; flex-direction: column; }
  .article-cta { align-items: flex-start; flex-direction: column; }
  .button { text-align: center; }
}

@media (max-width: 430px) {
  .site-header .button { display: none; }
  h1 { font-size: 2.7rem; }
  .actions { align-items: stretch; flex-direction: column; }
}

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