/* tokens.css — the ONE source of truth for the mockups.
   Brand palette locked 2026-12-06: 2 · Ink & Signal (ink black + electric blue).
   Scale tokens are theme-free. Raw colour tokens sit in :root; derived tokens at the bottom recompute from them.
   Dark mode later: add [data-theme="dark"] { ...same raw names... } where marked; nothing else changes. */

:root {
  /* Spacing: 4px base */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* Type: one family (Geist), seven sizes */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 28px;
  --text-2xl: 40px;
  --leading-tight: 1.2;
  --leading: 1.5;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Elevation: always an offset + soft blur */
  --shadow-sm: 0 1px 2px rgb(16 16 32 / 0.06);
  --shadow-md: 0 1px 2px rgb(16 16 32 / 0.05), 0 8px 24px -12px rgb(16 16 32 / 0.18);
  --shadow-lg: 0 2px 4px rgb(16 16 32 / 0.06), 0 24px 48px -16px rgb(16 16 32 / 0.28);

  /* Interaction */
  --tap: 44px;              /* minimum touch target, both axes */
  --bar-h: 76px;            /* mobile bottom action bar */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 160ms;
  --dur: 220ms;
}

/* ---------- Brand colours · Ink & Signal (light) ---------- */
:root {
  --primary: #15171C;
  --primary-hover: #2B2F38;
  --on-primary: #FFFFFF;
  --accent: #2F5BFF;
  --on-accent: #FFFFFF;
  --success: #127A46;
  --warning: #A35400;
  --danger: #C8283A;
  --bg: #F7F7F8;
  --surface: #FFFFFF;
  --border: #E5E6EA;
  --text: #111318;
  --text-muted: #5A5F6C;
}
/* [data-theme="dark"] { ...same raw names... } — reserved */

/* ---------- Derived tokens: recomputed from the raw colours (add [data-theme] here with dark mode) ---------- */
:root {
  --surface-2: color-mix(in srgb, var(--text) 4%, var(--surface));
  --border-strong: color-mix(in srgb, var(--text) 48%, var(--surface));
  --primary-soft: color-mix(in srgb, var(--primary) 9%, var(--surface));
  --accent-soft: color-mix(in srgb, var(--accent) 22%, var(--surface));
  --success-soft: color-mix(in srgb, var(--success) 10%, var(--surface));
  --warning-soft: color-mix(in srgb, var(--warning) 10%, var(--surface));
  --danger-soft: color-mix(in srgb, var(--danger) 9%, var(--surface));
  --focus: var(--primary);
  --scrim: rgb(12 10 24 / 0.48);
  /* Player chrome is dark in every theme: video reads best on near-black */
  --player-bg: #0C0B10;
  --player-text: #F4F3F8;
  --player-muted: #B9B6C8;
}
