/*
File: tokens.css
Description: CSS custom properties defining colors, typography, spacing,
    and dimensions for the design system.
Author(s): Tyler Black, Steph Rivera
*/

:root {
  /* Colors */
  --bg: #040508;
  --grid: rgba(32, 230, 255, 0.05);
  --surface: #070a0f;
  --surface-raised: #0c1018;
  --line: rgba(255, 255, 255, 0.06);
  --ink: #dfe6f0;
  --ink-strong: #f4f7fb;
  --muted: #8b93a7;
  --cyan: #20e6ff;
  /* Second accent: an anaglyph crimson, red with a trace of pink. */
  --magenta: #ff2d5a;
  /* Critical state only; warmer than --magenta so the two never blur. */
  --red: #ff4a2e;
  --yellow: #f9f871;
  --green: #3dffa2;

  /* Difficulty tiers: a cool-to-hot ramp around the hue wheel */
  --tier-beginner: var(--cyan);
  --tier-easy: #5c8dff;
  --tier-medium: #b06bff;
  --tier-hard: var(--magenta);
  --tier-expert: #ff8a1f;

  /* Bevel colors */
  --bevel-light: rgba(255, 255, 255, 0.15);
  --bevel-dark: rgba(0, 0, 0, 0.6);

  /* Glow, energy, and holographic foil */
  --cyan-hot: #d4fbff;
  --magenta-hot: #ffd3dd;
  --glow-cyan: rgba(32, 230, 255, 0.45);
  --glow-magenta: rgba(255, 45, 90, 0.5);
  --glow-red: color-mix(in srgb, var(--red) 50%, transparent);
  --anaglyph-cyan: rgba(32, 230, 255, 0.55);
  --anaglyph-red: rgba(255, 45, 90, 0.6);
  --sheen: rgba(255, 255, 255, 0.035);
  --well: rgba(0, 0, 0, 0.35);
  --vignette: rgba(0, 0, 0, 0.7);

  /* Typography families */
  --font-display: "Syne", sans-serif;
  --font-shout: "Michroma", sans-serif;
  --font-body: "Geist", sans-serif;
  --font-mono: "Space Mono", monospace;

  /* Typography scale */
  --text-12: 12px;
  --text-14: 14px;
  --text-17: 17px;
  --text-22: 22px;
  --text-34: 34px;
  --text-64: 64px;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;

  /* Geometry cuts */
  --cut-window: 24px;
  --cut-button: 12px;

  /* Content widths, on the 64 px grid */
  --width-form: 448px;
  --width-page: 1152px;
  /* The game screen gives the editor more room (24 grid cells) */
  --width-game: 1536px;

  /* Glow radii and anaglyph offsets */
  --glow-tight: 6px;
  --glow-wide: 28px;
  --anaglyph-offset: 2px;
  --anaglyph-offset-sm: 1px;

  /* Motion */
  --energy-period: 7s;
  --press-duration: 120ms;
  --visor-period: 2.4s;
  --impossible-period: 2.2s;
  --critical-pulse-period: 1.6s;
  --critical-glitch-duration: 240ms;

  /* Shadow offsets */
  --shadow-offset-window: 8px;
  --shadow-offset-button: 4px;

  /* Grid and border dimensions */
  --grid-size: 64px;
  --border-1: 1px;
  --border-2: 2px;
  --focus-outline: 2px;
  --focus-offset: 2px;
}
