/* ============================================================================
   Chassira — Design Tokens · "The Line"
   Light silver and white, one violet. Brushed-alloy surfaces, graphite ink,
   a single pack-violet accent taken from the logo (logo/LOGO_RESEARCH.md:
   pack violet #5B3BE0, wheel graphite #1C1D29, alloy #C9CBD8).
   Single source of truth. Every custom property referenced by the pages
   (inline styles, SVG fills, the stylesheet) is defined here.
   ========================================================================== */

:root {
  color-scheme: light;

  /* ---- Base palette (named) ---- */
  --c-white: #ffffff;
  --c-silver: #f3f4f7;      /* page: cool showroom white */
  --c-alloy: #c9cbd8;       /* the logo's wheel alloy */
  --c-alloy-soft: #e4e6ed;
  --c-graphite: #1c1d29;    /* the logo's wheel graphite, the one dark surface */
  --c-ink: #17152b;         /* wordmark ink */
  --c-violet: #5b3be0;      /* pack violet, the accent */
  --c-violet-deep: #4327bb;
  --c-violet-wash: #eeeafd;
  --c-violet-bright: #a594ff; /* violet on graphite only */

  /* ---- Background / surfaces ---- */
  --bg-base: var(--c-silver);
  --bg-900: var(--c-silver);
  --bg-800: #eceef2;
  --surface-1: var(--c-white);
  --surface-2: #eef0f4;
  --surface-3: #e3e5ec;
  --canvas: #fafbfc;
  --band: var(--c-graphite);
  --band-text: #f2f1f8;
  --band-muted: #b4b3c6;
  --band-line: #34364a;

  /* ---- Text ---- */
  --text-primary: var(--c-ink);
  --text-secondary: #3a3850;
  --text-muted: #57556b;
  --text-faint: #646278;
  --text-on-accent: #ffffff;

  /* ---- Borders / rail ---- */
  --border-subtle: #e2e4eb;
  --border-default: #d2d4de;
  --border-strong: #a9abba;
  --grid-line: #e7e9ef;
  --rail: #1c1d29;
  --rail-tick: #a9abba;
  --ring: #5b3be0;

  /* ---- Accent ---- */
  --accent: var(--c-violet);
  --accent-hover: #4c2ed0;
  --accent-press: var(--c-violet-deep);
  --accent-soft: var(--c-violet-wash);
  --accent-line: #c9bff7;

  /* ---- Status (always paired with glyph + text label) ---- */
  --st-queued: #5f5d74;
  --st-queued-soft: #eceef3;
  --st-running: #5b3be0;
  --st-running-soft: #eeeafd;
  --st-waiting: #0369a1;
  --st-waiting-soft: #e2f0f8;
  --st-approve: #92580a;
  --st-approve-soft: #fbf1dc;
  --st-success: #0f7663;
  --st-success-soft: #e0f2ec;
  --st-failed: #be123c;
  --st-failed-soft: #fbe6eb;
  --st-blocked: #9f1239;
  --st-blocked-soft: #f6e3e9;

  /* ---- Graph nodes / edges ---- */
  --node-bg: var(--c-white);
  --node-border: var(--border-default);
  --node-active: var(--accent);
  --edge: #b9bbc8;
  --edge-active: var(--accent);
  --edge-wrap: #a493f4;
  --run-done: #8fc9b8;

  /* ---- Brand mark fills ---- */
  --mark-pack: #5b3be0;
  --mark-wheel: #1c1d29;

  /* ---- Generic semantic ---- */
  --good: var(--st-success);
  --warn: var(--st-approve);
  --bad: var(--st-failed);
  --info: var(--st-waiting);

  /* ---- Type ----
     Archivo is variable on width: the display cut runs at 125% (extended),
     the nameplate register of a launch reveal; running text sits at 100%.
     JetBrains Mono is kept for code, logs, station IDs and part numbers. */
  --font-sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --wdth-display: 125%;
  --wdth-body: 100%;
  --wdth-tight: 88%;

  --fs-hero: clamp(2.3rem, 1.2rem + 4.6vw, 5.2rem);
  --fs-display: clamp(2rem, 1.3rem + 3vw, 3.6rem);
  --fs-h1: clamp(1.9rem, 1.35rem + 2.3vw, 3rem);
  --fs-h2: clamp(1.55rem, 1.2rem + 1.5vw, 2.35rem);
  --fs-h3: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  --fs-h4: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  --fs-lead: clamp(1.075rem, 1rem + 0.4vw, 1.3rem);
  --fs-body: 1rem;
  --fs-body-lg: 1.125rem;
  --fs-small: 0.875rem;
  --fs-mono: 0.8125rem;
  --fs-micro: 0.75rem;
  --fs-metric: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  --fs-price: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --fs-takt: clamp(4.2rem, 2rem + 11vw, 11rem);

  /* ---- Spacing: 4-pt base ---- */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-28: 112px;
  --space-32: 128px;
  --space-40: 160px;

  /* ---- Radii: sleek body panels, pill controls, crisp data ---- */
  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* ---- Containers ---- */
  --container-sm: 680px;
  --container-md: 840px;
  --container-lg: 1080px;
  --container-xl: 1280px;
  --container-2xl: 1440px;
  --gutter: clamp(16px, 4vw, 48px);

  /* ---- Section rhythm: long straights, like a line hall ---- */
  --section-y: clamp(64px, 7vw, 112px);
  --section-y-lg: clamp(88px, 10vw, 160px);
  --nav-h: 68px;

  /* ---- Density (legacy component names) ---- */
  --panel-gap: clamp(14px, 1.4vw, 22px);
  --panel-pad: clamp(18px, 2vw, 28px);
  --log-line-y: 4px;
  --node-pad: var(--space-3) var(--space-4);
  --step-gap: var(--space-5);
  --stack: clamp(12px, 1.4vw, 20px);

  /* ---- Motion ---- */
  --dur-fast: 120ms;
  --dur-base: 220ms;
  --dur-slow: 420ms;
  --dur-run: 600ms;
  --ease-out: cubic-bezier(0.2, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --pulse: 1.6s;

  /* ---- Elevation: paint-shop flat; one soft lift for floating menus only ---- */
  --hairline: 1px solid var(--border-subtle);
  --shadow-1: none;
  --shadow-2: 0 18px 40px -24px rgba(23, 21, 43, 0.35);
  --shadow-3: 0 30px 70px -30px rgba(23, 21, 43, 0.45);
  --scrim: rgba(23, 21, 43, 0.42);

  /* ---- Grid ---- */
  --grid-cols: 12;
  --grid-gap: var(--panel-gap);
}
