/* Grimoire — responsive layout scale.
   Narrow floor is 375px; the design width is 1440px. Every fluid value in the
   system interpolates between those two ends.
   CSS cannot read a custom property inside a media/container query, so the
   breakpoint numbers below are also written out literally in layout.css. These
   tokens are the single source of truth for what those numbers mean. */
:root {
  /* Breakpoints — narrow-first. Query at these, never between them. */
  --bp-xs: 375px;  /* @kind other */ /* smallest supported phone */
  --bp-sm: 640px;  /* @kind other */ /* large phone / two-up content */
  --bp-md: 900px;  /* @kind other */ /* tablet, side-by-side panels */
  --bp-lg: 1024px; /* @kind other */ /* persistent sidebar appears */
  --bp-xl: 1280px; /* @kind other */ /* full desktop chrome */
  --bp-2xl: 1440px; /* @kind other */ /* design width — nothing grows past here */

  /* Page gutters. Never pad a page edge with a fixed value. */
  --gutter: clamp(16px, 4vw, 40px); /* @kind spacing */
  --gutter-tight: clamp(12px, 2.5vw, 24px); /* @kind spacing */

  /* Reading and layout ceilings. */
  --w-container-sm: 640px;  /* @kind spacing */
  --w-container-md: 900px;  /* @kind spacing */
  --w-container-lg: 1180px; /* @kind spacing */
  --w-container-xl: 1440px; /* @kind spacing */
  --w-shell-aside: clamp(240px, 22vw, 320px); /* @kind spacing */

  /* Touch. Any interactive element must clear --tap-min on a coarse pointer. */
  --tap-min: 44px; /* @kind spacing */
  --tap-comfortable: 52px; /* @kind spacing */

  /* Fluid type ramp. Lives here rather than in typography.css because it is
     responsive math, not a type decision — tokens/typography.css just points
     --fs-* at these. Each interpolates 375px → 1440px and stops. */
  --ramp-hero: clamp(38px, 24.6px + 3.57vw, 76px);     /* @kind other */
  --ramp-display: clamp(30px, 22.3px + 2.07vw, 52px);  /* @kind other */
  --ramp-title: clamp(23px, 19.1px + 1.03vw, 34px);    /* @kind other */
  --ramp-heading: clamp(19px, 17.2px + 0.47vw, 24px);  /* @kind other */
  --ramp-plate: clamp(16px, 14.9px + 0.28vw, 19px);    /* @kind other */
  --ramp-stat-xl: clamp(36px, 28.3px + 2.07vw, 58px);  /* @kind other */
  --ramp-stat: clamp(24px, 21.9px + 0.56vw, 30px);     /* @kind other */
  --ramp-stat-sm: clamp(18px, 17.3px + 0.19vw, 20px);  /* @kind other */
}
