:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #0e0e10;
  --border: #2a2a30;
  --text: #ececee;
  --muted: #a1a1aa;
  --accent: #8aaff8;
  --scroll-thumb: #65656f;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 100px; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Geist', system-ui, sans-serif; line-height: 1.65; }
* { scrollbar-width: auto; scrollbar-color: var(--scroll-thumb) var(--surface); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 3px solid var(--surface); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #85858f; }
::-webkit-scrollbar-thumb:active { background: var(--accent); }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: var(--text); }
a:active { opacity: .8; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
.skip { position: absolute; top: 8px; left: 16px; transform: translateY(-180%); z-index: 3; background: var(--text); color: var(--bg); padding: 8px 16px; }
.skip:focus { transform: none; }
.container { max-width: 1120px; margin-inline: auto; padding-inline: 32px; }
.site-nav { border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 20px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.nav-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a[aria-current='page'] { color: var(--text); }
.hero { padding-block: 84px 48px; border-bottom: 1px solid var(--border); }
.eyebrow, .number, .meta { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .06em; }
.eyebrow { color: var(--accent); text-transform: uppercase; }
h1 { font-size: clamp(36px, 6.5vw, 76px); line-height: 1.06; font-weight: 500; letter-spacing: -.045em; max-width: 18ch; margin: 20px 0 24px; overflow-wrap: anywhere; }
.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-style: italic; color: var(--muted); }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 66ch; }
.meta { color: var(--muted); margin-top: 32px; }
.body-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 72px; padding-block: 56px 88px; }
.contents { align-self: start; position: sticky; top: 24px; display: grid; gap: 12px; font-size: 14px; }
.contents a { color: var(--muted); }
.prose { max-width: 72ch; min-width: 0; }
.prose section { margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.prose section:last-child { margin-bottom: 0; }
h2 { font-size: 27px; line-height: 1.25; letter-spacing: -.025em; font-weight: 500; margin: 0 0 18px; }
h3 { font-size: 20px; font-weight: 500; }
p { margin: 0 0 16px; }
.prose p, .prose li { color: var(--muted); }
strong { color: var(--text); font-weight: 500; }
ul, ol { padding-left: 24px; }
li { margin-bottom: 10px; }
.number { display: inline-block; color: var(--accent); margin-right: 12px; vertical-align: middle; }
.notice { padding: 20px 24px; border-left: 2px solid var(--accent); background: var(--surface); margin-block: 24px; }
.notice p:last-child { margin-bottom: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; background: var(--text); color: var(--bg); border: 1px solid var(--text); border-radius: 8px; padding: 12px 20px; text-decoration: none; font-weight: 500; }
.button:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.button:active { background: #c5d7fb; }
.site-footer { border-top: 1px solid var(--border); padding-block: 32px 48px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 24px; }
.operator { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.prose a { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .container { padding-inline: 20px; }
  .nav-row { align-items: flex-start; flex-direction: column; gap: 16px; padding-block: 20px; }
  .hero { padding-block: 48px 32px; }
  .body-grid { grid-template-columns: 1fr; gap: 36px; padding-block: 32px 56px; }
  .contents { position: static; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
  .lede { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (forced-colors: active) { * { scrollbar-color: auto; } .button, .notice { border: 1px solid CanvasText; } }
