/* DESIGN TOKENS: the single source of truth. Values 1:1 from prototype/src/styles/tokens.css (approved), plus the additions marked NEW. */
:root {
  /* colour */
  --paper: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #5c5c5c;      /* secondary text, 6.9:1 on paper */
  --hairline: #e7e7e7;
  --selection-bg: #0a0a0a;
  --selection-ink: #ffffff;

  /* type families (display swappable after type approval) */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-text: 'Barlow', system-ui, sans-serif;

  /* fluid display scale: set per composition with --display-size */
  --text-2xs: 0.675rem;   /* nav, 10.8px like the reference scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-lg: clamp(1.125rem, 1.2vw + 0.8rem, 1.75rem); /* tagline in display voice */
  --track-caps: 0.06em;
  --track-display: -0.01em;
  --leading-display: 0.86;

  /* space (4px base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem; --s-5: 1.5rem; --s-6: 2rem; --s-7: 3rem; --s-8: 4.5rem;
  --gutter: clamp(0.875rem, 1.6vw, 1.5rem);

  /* tiles: all four corners softly rounded; inset from screen edges by the same gap as between tiles */
  --radius-tile: clamp(8px, 0.85vw, 14px);

  /* image ramp */
  --gap: 16px;   /* measured on the reference: uniform 16px between tiles */
  --ramp-max: 68vh;   /* tallest image height; compositions override */

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);       /* exponential-ish ease-out */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 160ms; --dur-2: 320ms; --dur-3: 700ms; --dur-4: 1100ms;
  --stagger: 55ms;
}
@media (max-width: 63.9rem) { :root { --gap: 12px; } }
@media (max-width: 47.9rem) { :root { --gap: 8px; --ramp-max: 46vh; --text-2xs: 0.7rem; } }

/* NEW: scales the Astro build kept implicit, named here so components never hardcode them */
:root {
  /* layout */
  --container-max: 120rem;
  --container-text: 42rem;
  --nav-height: 3.5rem;
  /* breakpoints are documented here; CSS cannot use custom properties in @media, so components repeat these literals:
     --bp-tablet: 64rem (desktop below 63.9rem is tablet) | --bp-mobile: 48rem | compact menu switches at innerWidth <= 1022.4px (JS) */
  /* borders, radii, shadows (the approved design has no shadows: keep none) */
  --border-w: 1px;
  --border: var(--border-w) solid var(--hairline);
  --radius-0: 0;
  --shadow-none: none;
  /* interaction */
  --focus-ring: 2px solid var(--ink);
  --focus-offset: 3px;
  --link-opacity-idle: .5;
  --link-opacity-active: 1;
  /* display face metrics: set by html[data-font] in base.css */
  --dw: 400; --dt: 0; --em-w: 5.9;
  --font-nav: 'acumin-pro', 'Barlow', system-ui, sans-serif; /* header and menu face */
}
