/* Asymmetry brand system — tokens.
   Three tiers: 1) raw ramps, 2) semantic roles, 3) component/diagram tokens.
   Site code should only ever reference tiers 2 and 3. */

:root{
  /* ── 1. Ramps ─────────────────────────────────────────────── */
  /* Indigo: the brand colour at 600, used at full strength or not at all.
     There are no pale tints: a washed indigo adds colour without adding contrast. */
  --indigo-300:#8F8DFF;            /* on dark only: links, lines */
  --indigo-500:#4B49FF; --indigo-600:#1412DF; --indigo-700:#0E0CB0;
  --indigo-800:#0B0A85; --indigo-900:#08075C;

  /* Neutral: one true grey family. The light end moves in small, even steps
     so surfaces separate quietly; the contrast comes from black and indigo.
     Replaces both the cool (#F6F6F6/#EEE) and warm (#F3F3F0/#FAFAF8) greys in use today. */
  --n-0:#FFFFFF;  --n-50:#FAFAFA; --n-100:#F5F5F5; --n-200:#EBEBEB; --n-300:#D6D6D6;
  --n-400:#A3A3A3; --n-500:#737373; --n-600:#525252; --n-700:#363636; --n-800:#222222;
  --n-900:#141414; --n-950:#0A0A0A;

  /* ── 2. Semantic roles ────────────────────────────────────── */
  /* Surfaces, lowest to highest. */
  --surface-well:var(--n-100);     /* L-1  recessed: diagram stages, footer */
  --surface-page:var(--n-0);       /* L0   the page */
  --surface-card:var(--n-50);      /* L1   resting card, ink top bar */
  --surface-raised:var(--n-0);     /* L2   interactive card, hairline outline */
  --surface-float:var(--n-0);      /* L3   menus, popovers: ink outline, no shadow */
  --surface-brand:var(--indigo-600);
  --surface-brand-raised:var(--indigo-500);
  --surface-brand-sunken:var(--indigo-700);
  /* Dark surfaces step up in tone, the way light ones step up in whiteness. */
  --surface-dark:var(--n-950);
  --surface-dark-raised:var(--n-900);
  --surface-dark-float:var(--n-800);
  --surface-black:var(--n-950);

  /* Text. */
  --text-1:var(--n-900);           /* headings, body          18.4:1 on page */
  --text-2:var(--n-600);           /* supporting copy          7.8:1 */
  --text-3:var(--n-500);           /* captions                 4.7:1 */
  --text-disabled:var(--n-400);
  --text-accent:var(--indigo-600);
  --text-on-brand:var(--n-0);
  --text-on-brand-2:rgba(255,255,255,.78);

  /* Lines. */
  --line-1:var(--n-200);           /* hairline dividers */
  --line-2:var(--n-300);           /* field borders, card outlines */
  --line-strong:var(--n-900);      /* the 3px section rule */
  --line-on-brand:rgba(255,255,255,.28);
  --line-on-dark:rgba(255,255,255,.16);

  /* Accent. */
  --accent:var(--indigo-600);
  --accent-hover:var(--indigo-700);
  --accent-press:var(--indigo-800);
  --focus:var(--indigo-500);

  /* Elevation: there are no shadows. Height is a tone step plus an outline. */

  /* Type. One family, Switzer: Light for display, Regular and Medium for text and controls.
     There is no second typeface: annotations are the same face, small and medium weight. */
  --font-sans:'Switzer',"Helvetica Neue",Helvetica,Arial,sans-serif;
  --fs-display:clamp(38px,4.3vw,66px);
  --fs-h1:clamp(36px,4.1vw,62px);
  --fs-h2:clamp(25px,2.6vw,40px);
  --fs-h3:clamp(21px,1.95vw,29px);
  --fs-lead:clamp(16px,1.25vw,18px);
  --fs-body:16px;
  --fs-small:14px;
  --fs-caption:12.5px;
  --fs-note:12px;                  /* annotations inside diagrams */
  --lh-display:1.02; --lh-tight:1.06; --lh-snug:1.18; --lh-body:1.5;
  /* Tracking follows size: about -4% on the largest headlines, easing toward natural as type gets smaller. */
  --ls-display:-.04em; --ls-heading:-.022em; --ls-sub:-.018em; --ls-body:-.004em;
  --fw-display:300;
  --fw-regular:400; --fw-medium:500; --fw-bold:700;

  /* Space: 4px base. */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:24px; --sp-6:32px;
  --sp-7:48px; --sp-8:64px; --sp-9:96px; --sp-10:144px;

  /* Shape. Everything is square, like the rules that divide the page. */
  --radius-0:0; --radius-s:2px;
  --rule-w:3px;

  /* Icons: Lucide shapes drawn at hairline weight with square ends, to match the rules. */
  --icon-stroke:1.25; --icon-size:18px;

  /* Motion. */
  --dur-1:120ms;                   /* press, colour */
  --dur-2:200ms;                   /* hover, small moves */
  --dur-3:400ms;                   /* reveal, state change in a diagram */
  --dur-4:900ms;                   /* one orchestrated entrance per view */
  --ease-out:cubic-bezier(.2,.7,.2,1);
  --ease-inout:cubic-bezier(.6,0,.2,1);

  /* ── 3. Diagram tokens ────────────────────────────────────── */
  /* One light source, top-left. Top face lightest, right face darkest. */
  --dia-stage:var(--n-100);
  --dia-line:var(--n-800);
  --dia-line-soft:var(--n-400);
  --dia-w-hair:.6; --dia-w-line:1.1; --dia-w-strong:2;
  --dia-face-top:var(--n-0);        --dia-face-left:var(--n-100);       --dia-face-right:var(--n-200);
  --dia-ink-top:var(--n-700);       --dia-ink-left:var(--n-800);        --dia-ink-right:var(--n-900);
  --dia-hi-top:var(--indigo-600);   --dia-hi-left:var(--indigo-700);    --dia-hi-right:var(--indigo-800);
  --dia-label:var(--n-900);
  --dia-note:var(--n-500);
}
