:root {
  color-scheme: light dark;
  --bg: #f8faf9;
  --surface: #ffffff;
  --text: #172c26;
  --muted: #4c625a;
  --accent: #096344;
  --accent-soft: #e6f3eb;
  --border: #c4d2ca;
  --code-bg: #142b24;
  --code-text: #effaf4;
  --focus: #854a00;
  --fail: #a4262c;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101b17;
    --surface: #172820;
    --text: #edf5ee;
    --muted: #b4c9bc;
    --accent: #8ae0af;
    --accent-soft: #213e2f;
    --border: #465e4f;
    --code-bg: #0b1410;
    --code-text: #edf5ee;
    --focus: #ffd08a;
    --fail: #ff9d97;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .15em; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: .4rem 0 1.2rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.2rem; }
button { font: inherit; }
.site-header, .site-footer, .landing, .docs-layout { width: min(1160px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.4rem; border-bottom: 1px solid var(--border); }
.brand { color: var(--text); font-size: 1.6rem; font-weight: 800; text-decoration: none; letter-spacing: -.06em; white-space: nowrap; }
.brand > span:first-child { color: var(--accent); }
.brand-cookie { font-size: 1.1rem; margin-left: .5rem; }
nav { display: flex; flex-wrap: wrap; gap: .3rem 1.3rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }
.skip-link { position: absolute; top: -10rem; left: 1rem; z-index: 5; background: var(--surface); padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.hero { padding-block: 5rem 4rem; display: grid; grid-template-columns: 1.4fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { margin: 1.4rem 0; font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.05; }
.hero h1 > span:first-child { color: var(--accent); }
.hero h1 .cookie { font-size: .55em; }
.eyebrow { color: var(--muted); font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 750; }
.status { display: inline-block; margin-top: .65rem; border: 1px solid var(--border); border-radius: 2rem; padding: .25rem .65rem; letter-spacing: .04em; background: var(--accent-soft); color: var(--accent); }
.lead { font-size: 1.3rem; line-height: 1.5; }
.small { font-size: .9rem; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .65rem 1.15rem; border: 1px solid var(--accent); border-radius: .45rem; background: var(--accent); color: var(--bg); font-weight: 700; text-decoration: none; text-align: center; }
.button:hover { text-decoration: underline; }
.button.secondary { color: var(--accent); background: transparent; }
.evidence-card { border: 1px solid var(--border); border-radius: 1rem; background: var(--surface); padding: 1.7rem; box-shadow: 0 16px 45px #0000000a; }
.hero-logo { display: block; width: 190px; border-radius: .5rem; margin: 0 auto 1.7rem; }
.claim { font-size: 1.5rem; font-weight: 650; margin-bottom: 1rem; }
.evidence-divider { border-block: 1px solid var(--border); color: var(--accent); font-size: .85rem; font-weight: 700; padding: .6rem 0; }
.evidence-divider span { margin-right: .5rem; }
.check-list { list-style: none; padding: 0; }
.check-list li { margin: .7rem 0; padding-left: 1.7rem; position: relative; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.check-list li.fail::before { content: '✗'; color: var(--fail); }
.verdict { font-weight: 750; color: var(--fail); margin: 1rem 0 .4rem; }
.evidence-card > :last-child { margin-bottom: 0; }
.section { padding-block: 4rem; border-top: 1px solid var(--border); scroll-margin-top: 1rem; }
.steps { padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; list-style: none; margin: 2rem 0; }
.step-number { font-family: ui-monospace, monospace; font-size: .9rem; font-weight: bold; color: var(--accent); }
.steps h3 { margin: 1rem 0; }
.steps p, .feature-grid p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.feature-grid article { padding: 1.8rem; background: var(--surface); border: 1px solid var(--border); border-radius: .6rem; }
.feature-grid h3 { margin-top: 0; }
.feature-grid p:last-child { margin-bottom: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.split > *, .hero > *, .docs-layout > * { min-width: 0; }
code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .9em; overflow-wrap: anywhere; }
:not(pre) > code { padding: .12em .3em; background: var(--accent-soft); border-radius: .2rem; }
.code-block { position: relative; margin: 1.5rem 0; border-radius: .5rem; overflow: hidden; background: var(--code-bg); color: var(--code-text); }
pre { overflow-x: auto; margin: 0; padding: 3.3rem 1.2rem 1.4rem; line-height: 1.65; tab-size: 2; }
pre code { overflow-wrap: normal; font-size: .86rem; }
.copy-button { position: absolute; top: .4rem; right: .5rem; min-height: 36px; padding: .2rem .65rem; background: var(--code-bg); color: var(--code-text); border: 1px solid #81998b; border-radius: .3rem; cursor: pointer; font-size: .8rem; }
.copy-button:focus-visible { outline-color: #ffd08a; }
.verification-example { margin: 0; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: .6rem; padding: 1.7rem; }
.verification-example figcaption { font-size: 1.2rem; font-weight: 750; margin-bottom: .3rem; }
dl { margin: 0; }
dl > div { padding: .9rem 0; border-top: 1px solid var(--border); }
dt { font-size: .9rem; font-weight: 750; }
dd { margin: .3rem 0 0; font-size: .94rem; color: var(--muted); }
.repo-badge { display: block; margin: 1.8rem 0 .6rem; }
.sponsor { display: flex; gap: 3rem; align-items: center; justify-content: space-between; border: 1px solid var(--border); background: var(--accent-soft); border-radius: .8rem; margin: 1rem 0 4rem; padding: 2.5rem; }
.sponsor > div { max-width: 660px; }
.sponsor .button { flex-shrink: 0; }
.sponsor p:last-child { margin-bottom: 0; }
.site-footer { border-top: 1px solid var(--border); padding-block: 2rem; }
.site-footer p { font-size: .9rem; color: var(--muted); }
.site-footer nav { margin-bottom: 1rem; }
.site-footer > :last-child { margin-bottom: 0; }
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 3rem; align-items: start; padding-block: 2.5rem 5rem; }
.docs-sidebar { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: .3rem; }
.docs-sidebar h2 { font-size: 1rem; letter-spacing: 0; }
.docs-sidebar nav { display: block; }
.docs-sidebar ul { list-style: none; padding: 0; margin: 0; }
.docs-sidebar a { display: block; font-size: .88rem; font-weight: 500; padding: .5rem .65rem; border-left: 3px solid transparent; text-decoration: none; }
.docs-sidebar a:hover { text-decoration: underline; }
.docs-sidebar [aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.prose { overflow-wrap: anywhere; }
.prose h1 { margin-top: .4rem; font-size: clamp(2rem, 4vw, 3rem); }
.prose h2 { font-size: 1.7rem; margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose li { margin-bottom: .4rem; }
.prose blockquote { border-left: 3px solid var(--accent); margin-left: 0; padding: .5rem 1.2rem; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-block: 1.2rem; }
.prose th, .prose td { padding: .7rem; text-align: left; vertical-align: top; border: 1px solid var(--border); }
.prose th { background: var(--accent-soft); }
.table-scroll { overflow-x: auto; margin-bottom: 1.5rem; }
.table-scroll table { min-width: 540px; }
.heading-anchor { display: inline-block; font-size: .7em; padding: .2rem .35rem; color: var(--muted); text-decoration: none; }
.heading-anchor:hover { color: var(--accent); text-decoration: underline; }
.doc-list { padding: 0 !important; list-style: none; }
.doc-list li { border-bottom: 1px solid var(--border); }
.doc-list a { display: block; padding: .8rem 0; font-size: 1.1rem; }
.standalone { width: min(780px, calc(100% - 3rem)); margin: 3rem auto 5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 960px) {
  .hero { gap: 2rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .sponsor { flex-direction: column; align-items: start; gap: 1.5rem; }
  .docs-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 1.7rem; }
}
@media (max-width: 700px) {
  .site-header, .site-footer, .landing, .docs-layout { width: calc(100% - 2rem); }
  .site-header { flex-wrap: wrap; gap: .5rem 1rem; padding-block: 1rem; }
  .site-header nav { gap: .8rem; }
  .site-header nav a { font-size: .9rem; }
  .brand { font-size: 1.4rem; }
  .brand-cookie { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 2.5rem; }
  .hero h1 { font-size: clamp(3rem, 13vw, 4.5rem); }
  .evidence-card { max-width: 480px; width: 100%; }
  .section { padding-block: 2.5rem; }
  .feature-grid, .split { grid-template-columns: 1fr; gap: 1.5rem; }
  .feature-grid article { padding: 1.4rem; }
  .steps { gap: 1rem; }
  .steps h3 { font-size: 1.12rem; }
  .sponsor { padding: 1.5rem; }
  .docs-layout { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .docs-sidebar { position: static; max-height: none; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
  .docs-sidebar ul { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; }
  .docs-sidebar a { height: 100%; }
  .standalone { width: calc(100% - 2rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
