/* stevenblank.me — design tokens shared by every page.
   Follows the visitor's light/dark setting; the theme toggle overrides it with [data-theme]. */
:root {
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --paper-3: #eceef2;
  --ink: #0d0f12;
  --ink-2: #4a505b;
  --ink-3: #848a96;
  --rule: #e6e8ed;
  --rule-strong: #d3d7de;
  --accent: #2550f0;
  --accent-text: #2550f0;
  --accent-ink: #ffffff;
  --accent-soft: rgba(37, 80, 240, .08);
  --fig-muted: #c3c8d1;
  --fig-faint: #dde0e6;
  --hl: #2550f0;
  --hl-ink: #ffffff;
  --cell: #ffffff;
  --grid-line: #0d0f12;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-serif: var(--font-sans);

  --col: 700px;
  --gutter: clamp(18px, 5vw, 32px);
  --radius: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0c0f;
    --paper-2: #121419;
    --paper-3: #1a1d23;
    --ink: #e8eaee;
    --ink-2: #a0a6b1;
    --ink-3: #6c727e;
    --rule: #20232a;
    --rule-strong: #2d3139;
    --accent: #7b98ff;
    --accent-text: #8ea6ff;
    --accent-ink: #0b0c0f;
    --accent-soft: rgba(123, 152, 255, .10);
    --fig-muted: #3d424c;
    --fig-faint: #252930;
    --hl: #7b98ff;
    --hl-ink: #0b0c0f;
    --cell: #0f1115;
    --grid-line: #6c727e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b0c0f;
  --paper-2: #121419;
  --paper-3: #1a1d23;
  --ink: #e8eaee;
  --ink-2: #a0a6b1;
  --ink-3: #6c727e;
  --rule: #20232a;
  --rule-strong: #2d3139;
  --accent: #7b98ff;
  --accent-text: #8ea6ff;
  --accent-ink: #0b0c0f;
  --accent-soft: rgba(123, 152, 255, .10);
  --fig-muted: #3d424c;
  --fig-faint: #252930;
  --hl: #7b98ff;
  --hl-ink: #0b0c0f;
  --cell: #0f1115;
  --grid-line: #6c727e;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: .22em; text-decoration-thickness: 1px; transition: color .15s, text-decoration-color .15s; }
a:hover { color: var(--accent-text); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--hl); color: var(--hl-ink); }

.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
