/* ==========================================================================
   NULLPUNKT — tokens
   One surface, one ink, one signal. Everything else is a rule or a distance.
   ========================================================================== */

:root {
  /* Surfaces (archival papers → velvet graphite) */
  --paper: #f5f5f1;
  --paper-2: #efefea;
  --stone: #eaeae4;
  --stone-mid: #e4e4de;
  --stone-mist: #dcdcd5;
  --velvet: #1b1b1f;
  --velvet-deep: #151518;

  /* Ink ramp */
  --ink: #0a0a0b;
  --ink-2: #52525b;
  --ink-3: #82828c;
  --ink-rgb: 10, 10, 11;

  /* The only colour in the system */
  --signal: #d9481c;
  --signal-bright: #f05a28;
  --signal-rgb: 217, 72, 28;

  /* Rules and guides */
  --rule: rgba(10, 10, 11, 0.16);
  --rule-soft: rgba(10, 10, 11, 0.09);
  --guide: rgba(10, 10, 11, 0.18);

  /* Type */
  --sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --display: 'Geist', 'Inter', -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --t-hero: clamp(2.75rem, 7.1vw, 8.5rem);
  --t-display: clamp(2rem, 4.5vw, 4.25rem);
  --t-h2: clamp(1.55rem, 2.6vw, 2.6rem);
  --t-h3: clamp(1.125rem, 1.5vw, 1.5rem);
  --t-lead: clamp(1.0625rem, 1.35vw, 1.375rem);
  --t-body: clamp(0.9375rem, 1.02vw, 1.0625rem);
  --t-small: 0.8125rem;
  --t-mono: 0.6875rem;

  --lh-tight: 0.98;
  --lh-display: 1.04;
  --lh-body: 1.55;

  --track-tight: -0.032em;
  --track-mono: 0.085em;

  /* Space & grid */
  --pad: clamp(1.25rem, 4.2vw, 4.5rem);
  --gap: clamp(0.75rem, 1.5vw, 1.75rem);
  --stack-xs: 0.5rem;
  --stack-sm: 1rem;
  --stack: clamp(1.5rem, 2.4vw, 2.5rem);
  --stack-lg: clamp(3rem, 6vw, 7rem);
  --section: clamp(5rem, 11vh, 10rem);
  --shell: 1760px;
  --measure: 34ch;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 720ms;

  --nav-h: 3.75rem;
  --cursor: none;
}

/* Dark sections invert the ink ramp and the accent hex, exactly like the film's polarity split. */
[data-ground='dark'] {
  --paper: #1b1b1f;
  --paper-2: #17171b;
  --stone: #151518;
  --stone-mid: #202026;
  --stone-mist: #26262c;
  --ink: #f2f2ee;
  --ink-2: #b2b2bc;
  --ink-3: #8a8a94;
  --ink-rgb: 242, 242, 238;
  --signal: #f05a28;
  --signal-rgb: 240, 90, 40;
  --rule: rgba(242, 242, 238, 0.2);
  --rule-soft: rgba(242, 242, 238, 0.1);
  --guide: rgba(242, 242, 238, 0.24);
  color-scheme: dark;
}

:root { color-scheme: light; }
