/* Shared tokens, base type, header and footer for every page on realmlint.dev. */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --ink: #142230;
  --muted: #566573;
  --rule: #d6dde4;
  --accent: #173f5f;
  --accent-ink: #ffffff;
  --signal: #b9770e;
  --term-bg: #0f1a24;
  --term-ink: #d7e1ea;
  --term-dim: #8496a6;
  --sev-high: #ff8a7a;
  --sev-medium: #f2b33d;
  --sev-low: #8fc3e8;
  --ok: #1e7a4c;
  --err: #b42318;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d151d; --surface: #13202b; --ink: #e3eaf0; --muted: #9aabb9; --rule: #24384a;
    --accent: #7fb6dc; --accent-ink: #0d151d; --signal: #f2b33d; --term-bg: #08111a;
    --ok: #5fcf95; --err: #ff8a7a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d151d; --surface: #13202b; --ink: #e3eaf0; --muted: #9aabb9; --rule: #24384a;
  --accent: #7fb6dc; --accent-ink: #0d151d; --signal: #f2b33d; --term-bg: #08111a;
  --ok: #5fcf95; --err: #ff8a7a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; }
.wrap { max-width: 64rem; margin: 0 auto; padding-inline: 20px; }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
code, pre, .mono { font-family: var(--mono); font-size: 0.88em; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; }
p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); font-weight: 600; }

/* Header */
header.top { padding-block: 20px; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
nav.links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.95rem; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--ink); }


/* Footer */
footer { border-top: 1px solid var(--rule); padding-block: 28px 40px; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }
