/* Hallmark: genre=atmospheric surface: absolute posture: restrained */
/* ============================================================
   XE — Design tokens
   Concept: Night Watch. Black void, one lime signal, film grain.
   Research anchors: Rarible (single-accent dark discipline),
   SpaceX (full-bleed cinematic frames, floating type).
   ============================================================ */

:root {
  /* --- Surfaces ------------------------------------------- */
  --void: #000000;
  --surface-1: #0a0a0a;
  --surface-2: #111111;
  --surface-3: #161616;
  /* Signature bands draw their line art over a near-black field; the scrim
     sits between the poster and the diagram so the strokes stay readable. */
  --sig-field: #050505;
  --sig-scrim: rgba(4, 4, 4, 0.55);

  /* Checkout states. There was no failure colour anywhere in the system, so a
     declined or broken payment gets one that reads as a stop, not as a theme. */
  --buy-bad: #e5484d;

  /* --- Lines ---------------------------------------------- */
  --line: #1f1f1f;
  --line-strong: #2a2a2a;
  --line-bright: #3a3a3a;

  /* --- Ink ------------------------------------------------ */
  --paper: #ffffff;
  --paper-2: #b3b3b3;
  --paper-3: #6a6a6a;
  --paper-4: #3f3f3f;

  /* --- Signal --------------------------------------------- */
  --lime: #a3e635;
  --lime-deep: #8bca2b;
  --lime-dim: rgba(163, 230, 53, 0.16);
  --sos: #dc2626;
  --sos-dim: rgba(220, 38, 38, 0.18);

  /* --- Type ----------------------------------------------- */
  --font-sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(0.6875rem, 0.66rem + 0.12vw, 0.75rem);
  /* Body copy starts at 16px. The scale used to bottom out at 15px, which is
     where the "small grey sentence" tell came from; DESIGN.md sets 16px as the
     floor for any text in a body role, and this token is that floor. */
  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.5rem + 3vw, 4.25rem);
  --step-5: clamp(2.75rem, 1.2rem + 6.4vw, 7rem);
  --step-6: clamp(3.25rem, 0.8rem + 10vw, 10.5rem);

  --track-tight: -0.045em;
  --track-snug: -0.022em;
  --track-body: -0.008em;
  --track-label: 0.18em;

  /* --- Layout --------------------------------------------- */
  --page: 1440px;
  --gutter: clamp(20px, 4.4vw, 72px);
  --rail: 56px;
  --nav-h: 76px;

  /* --- Rhythm --------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --band-y: clamp(72px, 9vw, 160px);

  /* --- Shape ---------------------------------------------- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* --- Motion --------------------------------------------- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 180ms;
  --dur-2: 320ms;
  --dur-3: 620ms;
  --dur-4: 1100ms;

  /* --- Layers --------------------------------------------- */
  --z-media: 0;
  --z-scrim: 1;
  --z-content: 2;
  --z-rail: 40;
  --z-nav: 60;
  --z-menu: 70;
  --z-cursor: 80;
  --z-grain: 90;
}
