/* SpotRaces — approved dark and light palettes (spec #43).
   Keep docs/design/tokens.css in sync; its font URLs are relative to the reference assets. */

@font-face { font-family: "Inter Tight"; src: url("../fonts/InterTight-latin-wght.f5af7a761c2b.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("../fonts/RobotoMono-latin-wght.877722deef76.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #0f0f0f;
  --surface-2: #1a1a1a;
  --line: #272727;
  --line-strong: #666666;
  --dot-off: #303030;
  --ink: #f8f8f8;
  --ink-muted: #b0b0b0;
  --ink-subtle: #858585;
  --accent: #fc4c02;
  --on-accent: #050505;
  --focus: #fc4c02;
  --title-active: var(--accent);
  --title-decoration: none;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-full: 999px;
  --container: 1152px;
  --sidebar: 264px;
  --measure: 640px;
  --control-height: 40px;
  --status-dot: 8px;
  --border-width: 1px;
  --focus-width: 2px;
  --focus-offset: 2px;

  --font-sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* Without JS there is no data-theme: follow the device. JS sets the effective appearance before paint. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f8f8f8;
    --surface: #ffffff;
    --surface-2: #efefef;
    --line: #e2e2e2;
    --line-strong: #8a8a8a;
    --dot-off: #d9d9d9;
    --ink: #050505;
    --ink-muted: #474747;
    --ink-subtle: #666666;
    --accent: #fc4c02;
    --on-accent: #050505;
    --focus: #050505;
    --title-active: var(--ink);
    --title-decoration: underline;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8f8f8;
  --surface: #ffffff;
  --surface-2: #efefef;
  --line: #e2e2e2;
  --line-strong: #8a8a8a;
  --dot-off: #d9d9d9;
  --ink: #050505;
  --ink-muted: #474747;
  --ink-subtle: #666666;
  --accent: #fc4c02;
  --on-accent: #050505;
  --focus: #050505;
  --title-active: var(--ink);
  --title-decoration: underline;
}
