@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/next/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/fonts/next/AtkinsonHyperlegibleNext-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible Mono";
  src: url("/assets/fonts/mono/AtkinsonHyperlegibleMono-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --code-bg: #0d0d10;
  --panel: #121215;
  --raised: #1a1a1f;
  --overlay: #202026;
  --border: #26262c;
  --border-strong: #3a3a44;
  --text: #f4f4f5;
  --muted: #adadb8;
  --faint: #8a8a96;
  --accent: #5b8def;
  --accent-text: #a9c4ff;
  --selected: rgb(91 141 239 / 16%);
  --selected-line: rgb(29 78 216 / 28%);
  --hover: rgb(255 255 255 / 5%);
  --success: #4ade80;
  --danger: #f87171;
  --warning: #facc15;
  --info: #a9c4ff;
  --stale: #fb923c;
  --band: rgb(34 211 238 / 9%);
  --anchor: #22d3ee;
  --mark: #f2ede4;
  --added: rgb(74 222 128 / 11%);
  --removed: rgb(248 113 113 / 11%);
  --imported: #c4b5fd;
  --syntax-plain: #e4e4e7;
  --syntax-keyword: #c792ea;
  --syntax-type: #82aaff;
  --syntax-function: #7fdbca;
  --syntax-string: #c3e88d;
  --syntax-number: #f78c6c;
  --syntax-property: #addb67;
  --syntax-attribute: #ffcb6b;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-chip: 4px;
  --radius-control: 6px;
  --radius-card: 10px;
  --ui: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  --mono: "Atkinson Hyperlegible Mono", monospace;
  font-family: var(--ui);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-padding-top: var(--space-6); }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); text-underline-offset: 4px; }
a:hover { color: var(--text); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--anchor); outline-offset: 5px; }
::selection { color: var(--text); background: var(--selected-line); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, strong { font-weight: 600; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }
code, kbd { font-family: var(--mono); font-size: .85em; }
[hidden] { display: none !important; }
.shell { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 104px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { width: 148px; height: auto; }
.site-nav { display: flex; align-items: center; gap: var(--space-8); font-size: 14px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.eyebrow { color: var(--accent-text); font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); min-height: 48px; padding: var(--space-3) var(--space-6); border: 1px solid var(--border-strong); border-radius: var(--radius-control); background: var(--raised); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--overlay); }
.button-primary { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-text); color: var(--bg); border-color: var(--accent-text); }
.status { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--muted); font-size: 13px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: var(--space-8); border-top: 1px solid var(--border); color: var(--faint); font-size: 13px; }
.site-footer img { width: 28px; height: auto; }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); }
.skip-link { position: fixed; top: var(--space-4); left: var(--space-4); z-index: 10; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.error-page { display: grid; place-content: center; min-height: 80svh; gap: var(--space-6); padding-block: var(--space-16); }
.error-page h1 { font-size: clamp(36px, 7vw, 64px); }
.error-page p { color: var(--muted); }
@media (max-width: 700px) {
  .shell { width: calc(100% - 40px); }
  .site-header { min-height: 84px; gap: var(--space-4); }
  .brand img { width: 124px; }
  .site-nav { gap: var(--space-4); font-size: 13px; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: var(--space-3); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
