/*
 * catus design tokens — shared by catus.tv and catus for Windows.
 * The Windows app links this exact file (desktop/Catus/Catus.csproj → ui/css/tokens.css),
 * so a change here changes both. Fonts are self-hosted next to it (../fonts).
 *
 * Direction "Replay": cool graphite surfaces, one brand signal (record / live / primary),
 * and an event spectrum used only where game moments are shown on a timeline.
 */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter.woff2') format('woff2-variations'), url('../fonts/inter.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('../fonts/archivo.woff2') format('woff2-variations'), url('../fonts/archivo.woff2') format('woff2');
}

:root {
  color-scheme: dark;

  /* Surfaces: cool graphite, from the video stage up to pressed controls */
  --ink-0: #050608;
  --ink-1: #0b0d10;
  --ink-2: #111418;
  --ink-3: #171a1f;
  --ink-4: #1f2329;
  --line-1: #1c2026;
  --line-2: #272c33;
  --line-3: #373d46;

  /* Text */
  --fg-1: #eef1f5;
  --fg-2: #a4acb8;
  --fg-3: #6d7582;
  --fg-4: #4b525d;

  /* The one brand signal: recording, live, the logo dot, the primary action */
  --signal: #ff5b2e;
  --signal-hi: #ff7a54;
  --signal-lo: #e0471d;
  --signal-wash: rgba(255, 91, 46, 0.12);
  --signal-line: rgba(255, 91, 46, 0.38);

  /* Event spectrum: only for game moments on timelines and markers */
  --ev-kill: #f3f5f8;
  --ev-multi: #ff5b2e;
  --ev-win: #ffc24b;
  --ev-objective: #5fd4a0;
  --ev-manual: #8fb2ff;

  /* Status */
  --ok: #4fd69c;
  --warn: #ffc24b;
  --err: #ff5468;
  --info: #8fb2ff;

  /* Type */
  --font-ui: 'Inter Variable', 'Segoe UI Variable Text', 'Segoe UI', ui-sans-serif, system-ui, sans-serif;
  --font-display: 'Archivo Variable', 'Inter Variable', 'Segoe UI', ui-sans-serif, sans-serif;
  --wide: 118%;
  --fs-11: 11.5px;
  --fs-12: 12.5px;
  --fs-13: 13.5px;
  --fs-14: 14.5px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-22: 22px;
  --fs-28: 28px;
  --fs-36: clamp(28px, 3.4vw, 36px);
  --fs-48: clamp(34px, 4.6vw, 48px);
  --fs-72: clamp(40px, 6.6vw, 76px);

  /* Shape: small controls are tight, media frames a little softer */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;

  /* Space (4 px grid) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;

  /* Motion: fast, decisive, no bounce */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);
  --t-1: 120ms;
  --t-2: 200ms;
  --t-3: 360ms;

  --shadow-pop: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 18px 48px -12px rgba(0, 0, 0, 0.7);
  --focus: 0 0 0 2px var(--ink-1), 0 0 0 4px var(--signal);

  /* Aliases used by older stylesheets (admin, player). Keep in step with the tokens above. */
  --bg: var(--ink-1);
  --bg-1: var(--ink-2);
  --bg-2: var(--ink-3);
  --bg-3: var(--ink-4);
  --line: var(--line-1);
  --text: var(--fg-1);
  --text-2: var(--fg-2);
  --text-3: var(--fg-3);
  --accent: var(--signal);
  --accent-hi: var(--signal-hi);
  --accent-soft: var(--signal-wash);
  --radius-sm: var(--r-sm);
  --radius: var(--r-md);
  --radius-lg: var(--r-lg);
  --font: var(--font-ui);
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
}

@media (prefers-reduced-motion: reduce) {
  :root { --t-1: 1ms; --t-2: 1ms; --t-3: 1ms; }
}
