:root {
  color-scheme: light dark;
  --canvas: #f4f4ef;
  --paper: #fbfbf8;
  --ink: #102033;
  --muted: #5f6d7a;
  --rule: #ccd2d0;
  --rule-strong: #9aa7aa;
  --navy: #102033;
  --navy-2: #16283d;
  --mint: #07796f;
  --mint-soft: #d9eee9;
  --amber: #a55c00;
  --amber-soft: #f5e6c8;
  --red: #a53c42;
  --red-soft: #f4dcde;
  --focus: #0f79cf;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --measure: 73rem;
  --reading: 46rem;
  --shadow: 0 12px 36px rgba(16, 32, 51, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--mint);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--mint); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--ink); }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--paper); color: var(--ink); padding: .65rem .9rem; border: 1px solid var(--rule); }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2.25rem), var(--measure)); margin-inline: auto; }
.reading { width: min(100%, var(--reading)); }
.site-header { background: rgba(244, 244, 239, .96); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(12px); }
.header-row { min-height: 4.65rem; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; flex: 0 0 auto; }
.brand img { width: 13rem; height: auto; }
.site-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .15rem; margin: 0; padding: 0; list-style: none; }
.nav-list a { display: block; padding: .55rem .65rem; color: var(--muted); text-decoration: none; font-weight: 650; font-size: .9rem; border-bottom: 2px solid transparent; }
.nav-list a[aria-current="page"], .nav-list a:hover { color: var(--ink); border-bottom-color: var(--mint); }
.nav-cta { margin-left: .4rem; border: 1px solid var(--ink) !important; border-radius: 999px; padding-inline: .9rem !important; color: var(--ink) !important; }
.menu-button { display: none; margin-left: auto; border: 1px solid var(--rule-strong); color: var(--ink); background: var(--paper); border-radius: .3rem; padding: .42rem .65rem; font-weight: 700; }

.eyebrow { margin: 0 0 .65rem; color: var(--mint); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { color: var(--ink); font-family: var(--serif); line-height: 1.07; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 6vw, 5.6rem); letter-spacing: -.045em; margin: 0; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3.15rem); letter-spacing: -.03em; margin: 0 0 1rem; }
h3 { font-size: 1.38rem; margin: 0 0 .5rem; letter-spacing: -.015em; }
p { margin: 0 0 1rem; }
.lede { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.42; color: var(--muted); max-width: 47rem; }
.fine { color: var(--muted); font-size: .83rem; }
.kicker-line { width: 4.5rem; height: 2px; background: var(--mint); margin-bottom: 1.2rem; }
.page-intro { padding: clamp(3.2rem, 8vw, 7rem) 0 2.7rem; border-bottom: 1px solid var(--rule); }
.page-intro h1 { max-width: 60rem; }
.page-intro .lede { margin-top: 1.4rem; }

.hero { padding: clamp(3.3rem, 7vw, 6.7rem) 0 3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(18rem, .72fr); gap: clamp(2.5rem, 6vw, 6.5rem); align-items: start; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy .lede { margin: 1.45rem 0 1.75rem; max-width: 39rem; }
.button-row { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .62rem 1rem; border: 1px solid var(--ink); border-radius: .25rem; color: var(--paper); background: var(--ink); text-decoration: none; font-weight: 750; }
.button:hover { background: var(--mint); color: #fff; border-color: var(--mint); }
.button.secondary { color: var(--ink); background: transparent; border-color: var(--rule-strong); }
.button.secondary:hover { border-color: var(--ink); background: var(--paper); }
.button.small { min-height: 2.4rem; padding: .45rem .8rem; font-size: .9rem; }

.status-board { border-top: 5px solid var(--mint); background: var(--navy); color: #edf4f4; box-shadow: var(--shadow); }
.status-head { padding: 1.3rem 1.4rem 1.05rem; border-bottom: 1px solid #35465a; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.status-label { display: inline-flex; gap: .55rem; align-items: center; font-size: .77rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.status-dot { width: .58rem; height: .58rem; border-radius: 50%; background: #5dd1c5; box-shadow: 0 0 0 5px rgba(93, 209, 197, .13); }
.status-dot[data-tone="amber"] { background: #f4b960; box-shadow: 0 0 0 5px rgba(244,185,96,.14); }
.status-dot[data-tone="red"] { background: #ef7d84; box-shadow: 0 0 0 5px rgba(239,125,132,.14); }
.status-board time { color: #9fb0c5; font-size: .76rem; }
.status-body { padding: 1.45rem; }
.status-body h2 { color: #f5f7f4; font-family: var(--sans); font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.03em; margin-bottom: .65rem; }
.status-summary { color: #b9c7d5; }
.time-block { border-top: 1px solid #35465a; margin-top: 1.25rem; padding-top: 1.15rem; }
.time-caption { color: #8fa3ba; font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.time-local { display: block; color: #f5f7f4 !important; font-size: 1.35rem !important; font-weight: 800; margin: .18rem 0 .12rem; }
.time-source { color: #9fb0c5; font-size: .8rem; }
.source-disclosure { border-top: 1px solid #35465a; padding: .85rem 1.4rem; color: #9fb0c5; font-size: .75rem; }

.section { padding: clamp(3.5rem, 7vw, 6.7rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: grid; grid-template-columns: minmax(0, .78fr) minmax(18rem, 1.22fr); gap: 2rem; align-items: end; margin-bottom: 2.25rem; }
.section-head p { color: var(--muted); max-width: 38rem; justify-self: end; }
.evidence-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .42fr); gap: 1.5rem; }
.ledger { border-top: 2px solid var(--ink); }
.ledger-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; gap: 1.2rem; padding: 1.2rem .2rem; border-bottom: 1px solid var(--rule); align-items: start; }
.ledger-tier { font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ledger-tier strong { color: var(--mint); display: block; margin-bottom: .2rem; }
.ledger-copy p { color: var(--muted); margin: .25rem 0 0; font-size: .92rem; }
.ledger-link { white-space: nowrap; font-size: .85rem; font-weight: 700; }
.proof-note { background: var(--paper); padding: 1.5rem; border: 1px solid var(--rule); align-self: start; }
.proof-note h3 { font-family: var(--sans); font-size: 1rem; }
.proof-note ol { margin: .7rem 0 0; padding-left: 1.25rem; }
.proof-note li + li { margin-top: .6rem; }
.proof-note li::marker { color: var(--mint); font-weight: 800; }

.state-path { display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--rule-strong); }
.state-step { padding: 1.2rem 1rem; border-right: 1px solid var(--rule); min-height: 9rem; }
.state-step:last-child { border-right: 0; }
.state-number { display: block; color: var(--mint); font-family: var(--mono); font-size: .75rem; margin-bottom: 1.8rem; }
.state-step strong { display: block; line-height: 1.2; margin-bottom: .4rem; }
.state-step span { color: var(--muted); font-size: .82rem; line-height: 1.4; display: block; }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.index-list li { border-bottom: 1px solid var(--rule); }
.index-list a { color: var(--ink); text-decoration: none; display: grid; grid-template-columns: 2.2rem 1fr auto; gap: .5rem; padding: 1rem .15rem; align-items: center; }
.index-list a:hover strong { color: var(--mint); }
.index-list small { color: var(--muted); }
.arrow { font-size: 1.2rem; color: var(--mint); }

.notice { border-left: 4px solid var(--amber); background: var(--amber-soft); padding: 1rem 1.15rem; color: #3e3529; }
.notice strong { display: block; color: #5e3900; margin-bottom: .25rem; }
.notice.positive { border-color: var(--mint); background: var(--mint-soft); color: #173b36; }
.notice.positive strong { color: #07594f; }
.prose { width: min(100%, var(--reading)); }
.prose h2 { margin-top: 2.8rem; }
.prose h3 { margin-top: 2rem; font-family: var(--sans); font-size: 1.08rem; }
.prose p, .prose li { color: #3f4c57; }
.prose li + li { margin-top: .5rem; }
.prose blockquote { margin: 1.75rem 0; padding: 1rem 1.3rem; border-left: 3px solid var(--mint); background: var(--paper); font-family: var(--serif); font-size: 1.15rem; }
.definition-list { margin: 2rem 0; border-top: 2px solid var(--ink); }
.definition-list > div { display: grid; grid-template-columns: 13rem 1fr; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); }
.definition-list dt { font-weight: 800; }
.definition-list dd { margin: 0; color: var(--muted); }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
table { border-collapse: collapse; width: 100%; min-width: 42rem; }
th, td { text-align: left; padding: .9rem .7rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: .92rem; }
.badge { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .22rem .55rem; font-size: .72rem; font-weight: 800; background: var(--mint-soft); color: #07594f; }
.badge::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.badge.neutral { color: var(--muted); background: #e8ebe9; }

.form-card { background: var(--navy); color: #eef4f3; padding: clamp(1.35rem, 4vw, 2.2rem); border-top: 5px solid var(--mint); }
.form-card h2, .form-card h3 { color: #f5f7f4; }
.form-card p { color: #b8c6d4; }
.field { margin: 1.1rem 0; }
.field label, .field legend { display: block; font-weight: 750; font-size: .9rem; margin-bottom: .35rem; }
.field input[type="email"] { width: 100%; min-height: 3.1rem; border: 1px solid #718399; border-radius: .2rem; padding: .65rem .75rem; background: #f9fbfa; color: #102033; }
.field fieldset { border: 1px solid #52657a; padding: .8rem 1rem; }
.choice { display: flex; gap: .65rem; align-items: flex-start; color: #ced8e1; margin: .65rem 0; font-size: .9rem; }
.choice input { margin-top: .28rem; flex: 0 0 auto; }
.form-card .button { background: #f5f7f4; color: var(--navy); border-color: #f5f7f4; cursor: pointer; }
.form-card .button:hover { background: #5dd1c5; border-color: #5dd1c5; }
.form-status { min-height: 1.5em; font-weight: 700; margin-top: .7rem; }
.form-status[data-tone="error"] { color: #ffafb4; }
.form-status[data-tone="success"] { color: #83e6dc; }
.turnstile-slot { min-height: 68px; display: flex; align-items: center; color: var(--muted); font-size: .88rem; }
.honeypot { position: absolute !important; left: -9999px !important; }

.site-footer { background: var(--navy); color: #acbdcd; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 2rem; }
.site-footer .brand-text { color: #f5f7f4; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.site-footer p { max-width: 27rem; font-size: .86rem; }
.footer-heading { color: #f5f7f4; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-links { list-style: none; margin: .6rem 0 0; padding: 0; }
.footer-links li + li { margin-top: .4rem; }
.footer-links a { color: #b8c7d4; text-decoration: none; font-size: .86rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #35465a; margin-top: 2rem; padding-top: 1rem; display: flex; gap: 1rem; justify-content: space-between; color: #8fa3ba; font-size: .74rem; }

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0c1622;
    --paper: #132131;
    --ink: #eef2ef;
    --muted: #a9b6c2;
    --rule: #344457;
    --rule-strong: #596b7f;
    --mint: #67d7cc;
    --mint-soft: #173a37;
    --amber: #f0b75f;
    --amber-soft: #3d2e1c;
    --red-soft: #3e2429;
    --focus: #76bfff;
    --shadow: 0 16px 42px rgba(0, 0, 0, .25);
  }
  .site-header { background: rgba(12, 22, 34, .96); }
  .brand img { filter: invert(1) hue-rotate(178deg) saturate(.55) brightness(1.25); }
  .prose p, .prose li { color: #bdc7d0; }
  .notice { color: #f2ddbb; }
  .notice strong { color: #ffd287; }
  .notice.positive { color: #c9eae5; }
  .notice.positive strong { color: #78e0d4; }
  .form-card { border: 1px solid #35465a; border-top: 5px solid #67d7cc; }
  .badge.neutral { background: #263649; }
}

@media (max-width: 860px) {
  .menu-button { display: inline-flex; }
  .site-nav { display: none; position: absolute; inset: 4.65rem 0 auto; background: var(--paper); border-bottom: 1px solid var(--rule); padding: .7rem 1.1rem 1rem; box-shadow: var(--shadow); }
  .site-nav[data-open="true"] { display: block; }
  .nav-list { display: grid; }
  .nav-list a { padding: .65rem .4rem; }
  .nav-cta { margin: .4rem 0 0; text-align: center; }
  .hero-grid, .section-head, .split, .evidence-layout { grid-template-columns: 1fr; }
  .section-head p { justify-self: start; }
  .state-path { grid-template-columns: 1fr; }
  .state-step { min-height: auto; border-right: 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 2.4rem minmax(7rem,.5fr) 1fr; gap: .5rem; }
  .state-step:last-child { border-bottom: 0; }
  .state-number { margin: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 1.3rem), var(--measure)); }
  .brand img { width: 10.8rem; }
  .ledger-row { grid-template-columns: 1fr; gap: .4rem; }
  .ledger-link { white-space: normal; }
  .definition-list > div { grid-template-columns: 1fr; gap: .35rem; }
  .state-step { grid-template-columns: 2rem minmax(0,1fr); }
  .state-step .state-number { grid-column: 1; grid-row: 1 / span 2; }
  .state-step strong { grid-column: 2; }
  .state-step span:not(.state-number) { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: .45rem; }
  h1 { font-size: clamp(2.45rem, 13vw, 3.7rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .button-row, .form-card { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding: 2rem 0; }
  a { color: #000; }
}
