/* HeroAdmin design tokens: the single source of truth for both the site and the panel.
   Brand = the GTAHERO logo magenta (#F000FF -> #DA00FF). Three colours only: ground, ink, magenta.
   Green / amber / red exist only as STATUS colours inside the panel (online, warning, error). */
:root {
  /* colour */
  --ground: #0e0c10;          /* the page: a warm near-black, never pure #000 */
  --surface: #161319;         /* raised blocks */
  --surface-2: #1e1a22;       /* inputs, rows on hover */
  --surface-3: #27222c;
  --line: rgba(244, 240, 246, 0.08);
  --line-strong: rgba(244, 240, 246, 0.16);
  --ink: #f4f0f6;             /* text: off-white, never pure #fff */
  --ink-2: #a9a1b0;           /* secondary text (7.4:1 on the ground) */
  --ink-3: #888091;           /* hints and labels (4.8:1 on the ground) */
  --mag: #f000ff;             /* the brand */
  --mag-deep: #da00ff;
  --mag-ink: #0e0c10;         /* text ON magenta: dark (5.7:1), white would fail AA */
  --mag-soft: rgba(240, 0, 255, 0.12);
  --mag-line: rgba(240, 0, 255, 0.38);

  --ok: #5bd38a;
  --warn: #f2b544;
  --bad: #ff5a5f;
  --ok-soft: rgba(91, 211, 138, 0.12);
  --warn-soft: rgba(242, 181, 68, 0.12);
  --bad-soft: rgba(255, 90, 95, 0.12);

  /* type */
  --font-display: "Syne", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  /* fluid scale (320px -> 1440px) */
  --t-xs: clamp(0.75rem, 0.72rem + 0.12vw, 0.8125rem);
  --t-sm: clamp(0.8125rem, 0.79rem + 0.15vw, 0.9rem);
  --t-base: clamp(0.95rem, 0.92rem + 0.18vw, 1.0625rem);
  --t-lg: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  --t-xl: clamp(1.4rem, 1.2rem + 1vw, 2rem);
  --t-2xl: clamp(2rem, 1.5rem + 2.4vw, 3.4rem);
  --t-hero: clamp(2.6rem, 1.5rem + 4vw, 5.2rem);

  /* space */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section: clamp(80px, 9vw, 140px);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;

  /* shape */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --d-fast: 140ms;
  --d-med: 260ms;
  --d-slow: 640ms;
  --lift: translateY(-2px);
  --press: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  :root { --d-fast: 0ms; --d-med: 0ms; --d-slow: 0ms; --lift: none; --press: none; }
}
