:root {
  --ink: #153d2a;
  --muted: #5f7267;
  --paper: #f6f1e7;
  --card: #fffdf8;
  --forest: #0b3f25;
  --mint: #b8f2cf;
  --line: #d9d2c4;
  --max: 1040px;
  color-scheme: light;
}
:root[data-theme='dark'] { --ink: #e7f3e9; --muted: #a9bcad; --paper: #0c1510; --card: #16251b; --forest: #123f27; --mint: #7be58b; --line: #30493a; color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 17px/1.7 Inter, ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
a:focus-visible { outline: 3px solid #57c982; outline-offset: 4px; border-radius: 4px; }
.site-header, main, .site-footer { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font: 700 24px Georgia, serif; text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 700; }
.site-header nav a { text-decoration: none; }
.theme-toggle { min-height: 40px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--card); font: inherit; font-size: 12px; font-weight: 750; white-space: nowrap; cursor: pointer; }
.theme-toggle:hover { border-color: #57c982; }
.theme-toggle:focus-visible { outline: 3px solid #57c982; outline-offset: 3px; }
.hero { padding: 72px 0 52px; border-top: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; color: #287b4b; }
h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; line-height: 1.08; }
h1 { max-width: 850px; margin: 16px 0 24px; font-size: clamp(42px, 7vw, 76px); letter-spacing: -.045em; }
h2 { margin-top: 64px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.025em; }
h3 { margin-top: 32px; font-size: 24px; }
.lede { max-width: 760px; color: var(--muted); font-size: clamp(19px, 2.5vw, 24px); }
.meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.summary, .callout { margin: 34px 0; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.callout { border-color: #79c696; background: #e8f8ee; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--line); }
.fact-grid div { padding: 24px; background: var(--card); }
.fact-grid dt { margin-bottom: 6px; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.fact-grid dd { margin: 0; font-weight: 650; }
table { width: 100%; border-collapse: collapse; margin: 28px 0; background: var(--card); }
th, td { padding: 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #e8eee9; }
.steps { padding: 0; list-style: none; counter-reset: steps; }
.steps li { position: relative; margin: 18px 0; padding: 22px 24px 22px 68px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.steps li::before { counter-increment: steps; content: counter(steps); position: absolute; left: 22px; top: 20px; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: white; background: var(--forest); font-weight: 800; }
.faq { margin: 18px 0; padding: 22px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 30px; }
.faq h3 { margin: 0 0 10px; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 72px; }
.related a { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); font-weight: 750; text-decoration: none; }
.example { margin: 1rem 0 1.8rem; padding: 1rem 1.1rem; border-left: 4px solid #57c982; border-radius: 0 16px 16px 0; background: #e8f8ee; }
.example p { margin: .35rem 0; }
.example mark { padding: .08rem .28rem; border-radius: .35rem; background: #baf7c5; color: var(--ink); }
.guide-shot { margin: 1.2rem 0 2rem; }
.guide-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 48px #173b2a1a; }
.guide-shot figcaption { margin-top: .65rem; color: var(--muted); font-size: .92rem; }
.site-footer { padding: 36px 0 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
code { font-size: .9em; }
:root[data-theme='dark'] th { background: #203329; }
:root[data-theme='dark'] .callout { border-color: #437c57; background: #173622; }
:root[data-theme='dark'] .example { background: #173622; }
:root[data-theme='dark'] .example mark { background: #315d3c; color: var(--ink); }
:root[data-theme='dark'] .guide-shot img { box-shadow: 0 20px 48px #0006; }
@media (max-width: 700px) {
  .site-header { align-items: flex-start; padding-block: 20px; }
  .site-header nav { display: none; }
  .hero { padding-top: 42px; }
  .fact-grid, .related { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; }
}
