/* Gould's own sizes: the one-offs no framework token fits (Mitchell, 2026-11-04: "So we're always
   using tokens if we need to change something that makes it so much easier to change"). A token
   is added only when a rule needs it (rebuild, 2026-11-11: the old site's unused one-offs were
   deleted; each section derives its own). A value with % or vw is worked out where it is used. */
:root {
  /* The site's heading line height (every heading overrode the framework's 1 by hand; the h2's
     0.92 is the majority). tokens/typography.css stays as shipped; sizes.css loads after it, so
     this wins (spec §4, decision 11.8). */
  --heading-line-height: 0.92;

  /* Headings: the letter-spacing (in em, so it follows each heading's size) */
  --tracking-xs: 0.01em;
  /* The brand name (the wordmark stand-in) */
  --tracking-tight: -0.018em;

  /* The brand name: --step-1 on phones, --step-2 from about 650px (D1: one fluid size instead of a
     step at a 720px row; the bar is the window's width, so vw is the row's width) */
  --brand-name-size: clamp(var(--step-1), 4vw, var(--step-2));

  /* Phone caps: the h2 so "MANUFACTURER" fits at 320px; the h1 on small phones */
  --h2-phone-cap: 9.2vw;
  --hero-title-cap: 13.2vw;

  /* The hero fills the window, never taller than 1080px (decision 67 item 19.18) */
  --hero-max-h: 67.5rem;
  /* Desktop: up to 80px more room under the hero button than over the headline (Mitchell, 2026-10-16) */
  --hero-foot-room: 5rem;

  /* Quality: the open panel's fixed width in the desktop row (spec decision 25), and the row's
     height floor, so panel 05's text and Learn more fit (spec 35.15) */
  --quality-panel-open: 31.4375rem;
  --quality-panel-h: 46rem;

  /* Services: the dotted wave (wave.svg) in each card's top right, and at least the tallest card, so a card taller
     than the room under its line sticks higher and its Learn more stays on screen. Phone + tablet
     layout measured 320-1279 wide on 3004, 2026-11-16 (645-973px at 19 widths; the larger of the two lines
     is at least 15px over every point; one line over-guessed phones by ~125px, so cards stuck under
     the header); desktop 1024-2560 (419-480px). Re-measure when the cards' words or sizes change. */
  --services-wave-w: min(45%, 36rem);
  --services-tallest-phone: max(calc(70rem - 106.8vw), calc(34.25rem + 34.6vw)); /* phones: cards shrink as words unwrap; tablets: grow with the picture */
  --services-tallest-desktop: 31rem;
  --services-title-desktop: min(var(--step-3), 2.9vi); /* one line: 1024 to 1247 wide wrapped "Custom Packaging" (measured 2026-11-16) */

  /* Page sides: 24px on phones growing to 34px on desktops (one fluid pair, no size query), never
     under a notch (rebuild spec §5.2; viewport-fit=cover). Read by the header and .page-gutter. */
  --page-side-left: max(var(--space-md-lg), env(safe-area-inset-left));
  --page-side-right: max(var(--space-md-lg), env(safe-area-inset-right));

  /* Blueprint background: never smaller than at 1280 wide */
  --blueprint-min-w: 80rem;

  /* The space between home sections and above the first (blueprint-run.css): the step + 60px
     (Mitchell, CTA redesign decision 52: "another twenty, please", three times), the 60 mapped to
     --space-2xl: 136.6px at 390 (asked 140.5), 179px at 1440. */
  --section-gap: calc(var(--space-3xl-4xl) + var(--space-2xl));

  /* CTA: the phone strip's widest, so a turned phone or a narrow tablet does not get a strip taller
     than its screen (CTA redesign decision 56; 844 x 390: 800 x 581px instead of 928 x 674). */
  --cta-strip-max: 50rem;
  /* CTA: how far the wide picture runs past the right edge, at most its 1440 value (Mitchell 2026-11-27: wider screens use the room, not cut more) */
  --cta-art-shift-max: 9rem;
  --footer-col-min: 13rem; /* one list per row at 480 and below with no scrollbar (phones): two need 2 × 13rem + the gap, over 480's 430px row */
  --footer-glow: min(25rem, 23rem + 2.5vw); /* the footer glow band's length back from the corner: 25rem from about 1400 up (the approved desktop look), about 22px shorter on a phone (Mitchell, iPhone 2026-12-01: "ten to fifteen pixels", then "another ten") */
  --footer-dots-w: calc(var(--space-s) * 5); /* 5 dots along each short side of the corner's dot triangle; whole tiles, so its diagonal runs through dot centres (one more comes within 20px of the legal links at 390) */

  /* Temporary: the drift-proof frame on /styleguide (rebuild Task 3) reads these; deleted with it
     at T11. */
  --blueprint-fade-in: 29.5rem; /* the drawing fades in under the hero over ~470px (REF 40% of industries) */
  --industries-slider-h: clamp(560px, 62vh, 690px);
  --industry-card-min: 280px;
  --industry-card-w-small: min(78vw, 380px);

  /* Latest News: the card's widest width (the approved mockup's 27rem, News decision 25). A box
     width: the Utopia scale has spacing and type steps, none for this. Every News space is a step
     used directly in the blocks (Mitchell, 2026-11-19: "never … fixed spacing"). */
  --news-card-w: 27rem;
  /* The card body's least height, built from a step (the mockup's 20rem; 20 to 21.25rem). */
  --news-card-body-min: calc(2 * var(--space-5xl));
}
