:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --surface: #11161f;
  --text: #f3f6fb;
  --text-muted: #8993a4;
  --accent: #70d6ff;
  --border: #222b38;
  --focus: var(--accent);
  font-family: Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); color: var(--text); scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.page-shell { display: flex; min-height: 100vh; flex-direction: column; }
.site-header, main, footer { width: min(100% - 3rem, 72rem); margin-inline: auto; }
.site-header { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 1.5rem; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 0.65rem; color: var(--text); font-size: 1.1rem; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--accent); font: 700 0.82rem/1 "JetBrains Mono", monospace; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.site-header nav a { display: inline-flex; min-height: 44px; align-items: center; padding-inline: 0.8rem; border-radius: 7px; color: var(--text-muted); font-size: 0.92rem; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { background: var(--surface); color: var(--text); }
.site-header nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--accent); }
main { width: min(calc(100% - 3rem), 70ch); flex: 1 0 auto; padding-block: clamp(2.25rem, 6vw, 4.25rem) 4.5rem; }
.eyebrow { margin: 0 0 0.35rem; color: var(--accent); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
h1, h2 { font-family: Inter, system-ui, sans-serif; line-height: 1.25; }
h1 { margin: 0 0 0.75rem; font-size: clamp(2rem, 4vw, 2.4rem); letter-spacing: -0.035em; }
h2 { margin: 2.5rem 0 0.65rem; font-size: 1.3rem; letter-spacing: -0.015em; }
p { margin: 0.8rem 0; }
code { font-family: "JetBrains Mono", monospace; font-size: 0.88em; }
pre { max-width: 100%; overflow-x: auto; padding: 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); line-height: 1.5; white-space: pre; }
pre code { font-size: 0.84rem; }
pre.diagnostic { border-color: color-mix(in srgb, #c2410c 42%, var(--border)); background: color-mix(in srgb, #c2410c 8%, var(--surface)); color: var(--text); overflow-x: auto; }
.breadcrumb { margin: 0 0 1.25rem; font-size: 0.9rem; color: var(--text-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.5rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
@media (max-width: 390px) { .breadcrumb ol { column-gap: 0.25rem; } }
details { margin-block: 1rem; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
details summary { cursor: pointer; color: var(--accent); font-weight: 600; }
details pre { margin-bottom: 0; }
.effective { margin: 0 0 1.25rem; color: var(--text-muted); font-size: 0.9rem; }
.draft-notice { margin: 0 0 1.75rem; padding: 0.75rem 0.9rem; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 7px; background: var(--surface); color: var(--text-muted); font-size: 0.9rem; }
.placeholder { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; padding: 0.12rem 0.42rem; border: 1px solid color-mix(in srgb, var(--accent) 48%, var(--border)); border-radius: 5px; background: var(--surface); color: var(--text); font-size: 0.92em; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.placeholder::before { content: "Pending before launch"; color: var(--accent); font: 700 0.68rem/1.4 Inter, system-ui, sans-serif; letter-spacing: 0.025em; white-space: nowrap; }
footer { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; padding-block: 0.8rem; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; }
footer nav { gap: 0.15rem; }
footer a { color: var(--text-muted); }
footer .footer-app-link { margin-left: 0.8rem; }
@media (max-width: 700px) {
  .site-header, main, footer { width: calc(100% - 2rem); }
  .site-header { min-height: 0; flex-wrap: wrap; justify-content: flex-start; gap: 0.25rem 0.75rem; padding-block: 0.7rem; }
  .site-header nav { width: 100%; gap: 0.1rem; }
  .site-header nav a, footer a { min-height: 44px; padding-inline: 0.65rem; }
  main { padding-block: 2rem 3rem; }
  footer { flex-wrap: wrap; }
  footer nav { gap: 0; }
  footer .footer-app-link { margin-left: 0; }
}
@media (max-width: 380px) {
  footer { align-items: flex-start; }
  footer nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
