/* Headroom design tokens — Supraplay design code, light theme.
   Source of every value: reasoning-complex docs/design/2026-11-15-client-ui-redesign/design-code/DESIGN-CODE.md
   (§2.1 colours = Supraplay web/static/css/terminal.css :root lines 43-58, §3 type, §4 spacing, §6 shadows, §7 motion).
   THIS FILE IS THE ONE PLACE TO RESTYLE THE SITE. Components in site.css read only var(--…) from here. */

@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/IBMPlexMono-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;

  /* §2.1 colour — transfer */
  --bg: #ffffff;
  --panel: #fafafa;
  --panel-2: #f5f5f5;
  --hover: #f0f0f0;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --ink: #000000;
  --ink-hover: #1a1a1a;
  --fg: #0a0a0a;
  --fg-dim: #525252;      /* anything the reader must read */
  --fg-mute: #a3a3a3;     /* only optional text: separators, placeholders (contrast 2.52) */
  --ok: #16794a;   --ok-soft: #ecfdf5;
  --warn: #92400e; --warn-soft: #fffbeb;
  --err: #991b1b;  --err-soft: #fef2f2;
  --info: #1e40af; --info-soft: #eff6ff;
  --scrim: rgba(10, 10, 10, 0.4);

  /* Site additions (not in the Supraplay code; owner may change) */
  --brand: #e4002b;        /* the last cell of the logo meter — the only colour in the mark */
  --stale-fg: var(--fg-dim);   /* "source delayed": words + ink bar, deliberately not yellow (owner 2026-11-16) */
  --stale-bar: var(--ink);
  --vendor-accent: var(--ink); /* per-vendor tint hook: [data-vendor="gemini"] { --vendor-accent: … } */

  /* §3 type */
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --fs-10: 10px; --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px;
  --fs-16: 16px; --fs-20: 20px; --fs-24: 24px; --fs-28: 28px; --fs-32: 32px;
  --fs-hero: 40px;         /* site addition: landing headline, outside the 10-32 app scale */
  --lh: 1.5;

  /* §4 spacing scale 2…80 */
  --s-2: 2px; --s-4: 4px; --s-6: 6px; --s-8: 8px; --s-10: 10px; --s-12: 12px; --s-14: 14px; --s-16: 16px;
  --s-20: 20px; --s-24: 24px; --s-28: 28px; --s-32: 32px; --s-40: 40px; --s-48: 48px; --s-64: 64px; --s-80: 80px;
  --control-h: 32px;
  --page-max: 1200px;

  /* §5 lines; radius is 0 everywhere (M3) */
  --line: 1px solid var(--border);
  --line-strong: 1px solid var(--border-strong);

  /* §6 shadows — only for layers above content */
  --shadow-menu: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-toast: 0 8px 24px rgba(0, 0, 0, 0.15);

  /* §7 motion */
  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-fade: cubic-bezier(0.25, 0.1, 0.25, 1);
  --d-hover: 120ms; --d-state: 150ms; --d-small: 200ms; --d-move: 240ms; --d-reveal: 280ms; --d-enter: 320ms;
}

@media (prefers-reduced-motion: reduce) {
  :root { --d-small: 150ms; --d-move: 0ms; --d-reveal: 150ms; --d-enter: 150ms; }
}
