/* Paper: the visual world of the 2026-11 site redesign.

   Brand kept: the wordmark, the azure accent ramp, the navy, the cool neutral
   ramp and the three faces (Barlow, Barlow Condensed, IBM Plex Mono). What
   changes is how they are used: a quiet paper ground with a fine grain,
   sentence-case display headings, mono labels, white cards with hairline
   borders and soft corners, and azure kept for the few things that carry the
   point (a dot, a line, a link).

   This file only remaps semantic tokens and adds the page-level ones. It
   loads after the vendored design system and before styles/site.css. The
   site is light only on purpose: dark sections (navy) are part of the page
   composition, not a theme. */

:root {
  /* ── Ground and surfaces ── */
  --color-bg: var(--color-neutral-100);
  --color-surface: var(--surface-raised);
  --surface-sunken: color-mix(in srgb, var(--color-neutral-200) 60%, var(--color-neutral-100));
  --color-text: var(--color-neutral-900);
  --color-divider: var(--color-neutral-200);
  --border: var(--color-neutral-200);
  --border-strong: var(--color-neutral-300);

  /* Page roles. Muted copy is neutral-700 (6.4:1 on the paper), labels are
     neutral-700 too: a 12px mono label in neutral-600 measured 4.2:1. */
  --paper: var(--color-neutral-100);
  --paper-band: color-mix(in srgb, var(--color-neutral-200) 55%, var(--color-neutral-100));
  --card: var(--surface-raised);
  --ink: var(--color-neutral-900);
  --ink-soft: var(--color-neutral-700);
  --ink-faint: var(--color-neutral-500);
  --hairline: var(--color-neutral-200);
  --hairline-strong: var(--color-neutral-300);
  --navy: var(--color-accent-900);
  --navy-soft: color-mix(in oklch, var(--color-accent-900), var(--color-accent-800) 45%);
  --on-navy: var(--color-neutral-100);
  --on-navy-soft: color-mix(in srgb, var(--color-neutral-100) 74%, transparent);
  --azure: var(--color-accent-500);
  --azure-ink: var(--color-accent-700);
  --azure-wash: var(--color-accent-100);
  --amber: var(--color-warning-500);
  --violet: var(--color-violet-500);

  /* ── Corners: the Industry world is square; this one is not ── */
  --radius-sm: 0.375rem;   /* 6 */
  --radius-md: 0.625rem;   /* 10 */
  --radius-lg: 1rem;       /* 16 */
  --radius-marketing: 1.25rem; /* 20 */
  --radius-full: 999px;

  /* ── Type roles ──
     Display is Barlow (regular width) at 400, sentence case, tight: calmer
     than the condensed cut at these sizes. Body is Barlow at 17px. Labels
     are IBM Plex Mono, uppercase, wide tracking. */
  --font-display: "Barlow", system-ui, sans-serif;
  --font-heading: "Barlow", system-ui, sans-serif;
  --ink-mid: var(--color-neutral-600);
  --type-hero: clamp(2.5rem, 1rem + 3.9vw, 4.375rem);   /* 40 -> 70 */
  --type-h2: clamp(1.875rem, 1.25rem + 1.75vw, 2.875rem);/* 30 -> 46 */
  --type-h3: clamp(1.375rem, 1.15rem + 0.6vw, 1.75rem);  /* 22 -> 28 */
  --type-card: clamp(1.25rem, 1.15rem + 0.3vw, 1.4375rem);/* 20 -> 23 */
  --type-lede: clamp(1.0625rem, 0.98rem + 0.32vw, 1.25rem); /* 17 -> 20 */
  --type-body: 1.0625rem;  /* 17 */
  --type-stat: clamp(2.75rem, 1.6rem + 2.8vw, 4.25rem);  /* 44 -> 68 */
  --tracking-hero: -0.03em;
  --tracking-mono: 0.12em;

  /* ── Layout ── */
  --page-max: 75rem;        /* 1200 */
  --page-gutter: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(var(--space-14), 6vw, var(--space-20));
  --measure-lede: 36rem;

  /* A fine paper grain, drawn as an SVG turbulence tile. 6% ink. */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
