/*
 * Cue Light: design tokens
 * Feel: a backstage control desk at night. Warm charcoal pages with a fine film grain,
 * heavy all-caps grotesque headlines where one word is only an outline, letterspaced mono
 * caps for every label, and a single coral light that marks what is running right now.
 * Square-ish 4px corners, thin warm borders, no soft shadows.
 *
 * Fonts (all free on Google Fonts):
 *   <link href="https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800&family=Instrument+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet">
 */
:root {
  /* Surfaces: warm charcoal, lifted in small steps */
  --cl-coal: #1a1816;          /* page background */
  --cl-deck: #211e1b;          /* bands, footer, inputs */
  --cl-panel: #282421;         /* cards, panels, the cue sheet */
  --cl-panel-2: #322d29;       /* hover, table heads, inline code */
  --cl-line: #3a3530;          /* every 1px border and divider */
  --cl-line-bright: #5a524a;   /* ghost buttons, focused edges */

  /* Text */
  --cl-chalk: #f3eee7;         /* headlines, body, the primary button fill */
  --cl-ash: #aaa299;           /* leads and secondary text */
  --cl-faint: #736c64;         /* captions, line numbers, disabled */

  /* Accents: coral is the live light, the rest are cue states */
  --cl-coral: #ff6a4f;         /* the one accent: running cue, main CTA, eyebrows */
  --cl-coral-deep: #d9472e;    /* coral hover */
  --cl-coral-soft: rgba(255, 106, 79, .14);   /* running row fill */
  --cl-coral-line: rgba(255, 106, 79, .55);   /* running row border */
  --cl-amber: #f0b44c;         /* standby state */
  --cl-amber-soft: rgba(240, 180, 76, .14);
  --cl-mint: #79d3a0;          /* done state, success */
  --cl-mint-soft: rgba(121, 211, 160, .12);
  --cl-sky: #86b6ee;           /* code values and links in code */

  /* The signature grain: a fine noise tile laid over the page */
  --cl-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --cl-spill: radial-gradient(60% 70% at 85% 10%, rgba(255, 106, 79, .10) 0%, rgba(26, 24, 22, 0) 70%);

  /* Type */
  --cl-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --cl-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --cl-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --cl-text-hero: clamp(40px, 7vw, 92px);
  --cl-text-h1: clamp(34px, 5vw, 64px);
  --cl-text-h2: clamp(28px, 3.6vw, 46px);
  --cl-text-h3: 20px;
  --cl-text-lead: 19px;
  --cl-text-body: 16px;
  --cl-text-small: 14px;
  --cl-text-micro: 12px;

  --cl-leading-display: .95;
  --cl-tracking-display: -.015em;
  --cl-tracking-caps: .12em;
  --cl-stroke: 1.5px;          /* outline width for the hollow word */

  /* Shape */
  --cl-radius-xs: 3px;         /* badges, chips, inline code */
  --cl-radius-sm: 4px;         /* buttons, inputs */
  --cl-radius-md: 8px;         /* cards, panels, plans */
  --cl-radius-round: 999px;    /* dots only */
  --cl-border: 1px solid var(--cl-line);

  /* Shadows: almost none; the running row glows a little */
  --cl-shadow: 0 24px 48px -24px rgba(0, 0, 0, .7);
  --cl-glow: 0 0 0 1px var(--cl-coral-line), 0 0 28px rgba(255, 106, 79, .18);
  --cl-focus: 0 0 0 3px rgba(255, 106, 79, .35);

  /* Space */
  --cl-space-1: 4px;
  --cl-space-2: 8px;
  --cl-space-3: 12px;
  --cl-space-4: 16px;
  --cl-space-5: 24px;
  --cl-space-6: 32px;
  --cl-space-7: 48px;
  --cl-space-8: 80px;
  --cl-space-9: 120px;
  --cl-container: 1200px;
  --cl-narrow: 720px;

  /* Motion */
  --cl-ease: cubic-bezier(.2, .7, .2, 1);
  --cl-fast: .16s;
  --cl-slow: .6s;
}
