:root {
  --bg: #090909;
  --panel: #101010;
  --text: #f3f3ee;
  --muted: #999994;
  --line: #242424;
  --accent: #c8ff5b;
  --max: 74rem;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-synthesis: none; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
code { font: .92em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); overflow-wrap: anywhere; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 20; padding: .75rem 1rem; background: var(--text); color: var(--bg); }
.skip:focus { top: 1rem; }

.site-header, footer, main { width: min(calc(100% - 2.5rem), var(--max)); margin-inline: auto; }
.site-header { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { font-size: .92rem; font-weight: 800; letter-spacing: .2em; text-decoration: none; }
nav { display: flex; align-items: center; gap: 1.25rem; }
nav a { color: var(--muted); font-size: .9rem; text-decoration: none; }

.hero { padding: clamp(5.5rem, 13vw, 10rem) 0 clamp(4.5rem, 10vw, 7rem); }
.eyebrow { margin: 0 0 1.5rem; color: var(--accent); font-size: .72rem; font-weight: 800; letter-spacing: .16em; }
h1 { max-width: 11ch; margin: 0; font-size: clamp(3.5rem, 10vw, 8.4rem); line-height: .92; letter-spacing: -.06em; font-weight: 750; text-wrap: balance; overflow-wrap: anywhere; }
h2 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
h3 { margin: 0 0 .75rem; font-size: 1rem; }
.lede { max-width: 42rem; margin: 2rem 0 0; color: #c9c9c4; font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.5; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; min-height: 2.9rem; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 700; }
.button.primary { border-color: var(--text); }
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { min-width: 0; padding: 1.5rem 1rem 1.5rem 0; }
.stats div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.stats strong { display: block; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1; letter-spacing: -.04em; }
.stats span { display: block; margin-top: .55rem; color: var(--muted); font-size: .8rem; }

.section { padding: clamp(4.5rem, 9vw, 7rem) 0; border-bottom: 1px solid var(--line); }
.section > h2, .section-head h2 { max-width: 14ch; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 3rem; background: var(--line); border: 1px solid var(--line); }
.grid article { min-width: 0; padding: 1.5rem; background: var(--bg); }
.grid p, .principle p, .page p, .page li { margin: 0; color: #c9c9c4; line-height: 1.65; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.section-head > a { color: var(--muted); font-size: .86rem; }

.change-list { list-style: none; margin: 3rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.change-list li { display: grid; grid-template-columns: 9rem 1fr auto; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.change-list time, .change-list > li > span { color: var(--muted); font-size: .82rem; }
.change-list strong { overflow-wrap: anywhere; }
.change-list p { margin: .4rem 0 0; color: var(--muted); line-height: 1.5; }

.principle { max-width: 54rem; padding: clamp(5rem, 10vw, 8rem) 0; }
.principle h2 { max-width: none; }
.principle p { max-width: 43rem; margin-top: 1.5rem; font-size: 1.08rem; }
.principle a { display: inline-block; margin-top: 1.5rem; }

.page { max-width: 48rem; padding: clamp(4rem, 10vw, 8rem) 0 7rem; }
.page h1 { max-width: none; font-size: clamp(3rem, 8vw, 6.5rem); }
.page h2 { margin: 3.5rem 0 1rem; font-size: 1.5rem; letter-spacing: -.025em; }
.page h3 { margin-top: 2rem; }
.page .intro { margin: 2rem 0 0; font-size: 1.2rem; }
.page ul, .page ol { padding-left: 1.25rem; }
.page li + li { margin-top: .5rem; }
.notice { margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: .75rem; }
.data-link { display: block; margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); text-decoration: none; overflow-wrap: anywhere; }
.data-link:hover { border-color: var(--accent); }

footer { display: flex; justify-content: space-between; gap: 2rem; padding: 3rem 0 4rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
footer p { margin: 0; }

@media (max-width: 720px) {
  .site-header, footer, main { width: min(calc(100% - 2rem), var(--max)); }
  .site-header { min-height: 4.25rem; }
  .hero { padding-top: 5rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .stats div:nth-child(4) { border-top: 1px solid var(--line); }
  .grid { grid-template-columns: 1fr; }
  .change-list li { grid-template-columns: 1fr; gap: .45rem; }
  .section-head, footer { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
