/* Design tokens: the only place colours, type, spacing and radius are defined.
   Components use var(--token) only (guarded by tests/site.test.mjs).
   Palette from the Owner's brief (2026-11-02). The brand is a dark identity, so
   there is one scheme; light-mode requests get the same dark page on purpose. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette (brief): Obsidian, Graphite, Bone, Muted grey, Signal orange */
  --obsidian: #111111;
  --graphite: #202020;
  --bone: #eae8e3;
  --muted: #858585;
  --signal: #d76a3d;

  /* Roles. Contrast on obsidian: bone 15.4, muted 5.1, signal 5.4 (AA for body text).
     On graphite: muted 4.4 fails AA for small text, so text on graphite uses --text-soft. */
  --bg: var(--obsidian);
  --surface: var(--graphite);
  --text: var(--bone);
  --text-muted: var(--muted);
  --text-soft: #b4b2ad;
  --line: #2e2e2e;
  --line-strong: #4a4a4a;
  --accent: var(--signal);
  --accent-contrast: var(--obsidian);
  --focus: var(--signal);

  /* Type */
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.1875rem;
  --text-xl: clamp(1.75rem, 1.1rem + 2.6vw, 3rem);
  --text-display: clamp(2.6rem, 0.6rem + 7.6vw, 7.25rem);

  /* Space and shape */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-section: clamp(96px, 12vw, 192px);
  --gutter: clamp(20px, 4vw, 64px);
  --max: 1440px;
  --radius: 0;
  --tap: 44px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --dur: 240ms;

  color-scheme: dark;
}

body { background: var(--bg); color: var(--text); font-family: var(--font-sans); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
