/* Changed for Gould: body text is the one white (v23 --text: #fafafa), not the 75% grey (plan decision 10); the page is navy, as v23 (html, body { background: var(--page-navy) }). */
body {
  font-family: var(--font-primary);
  font-size: var(--text-base-size);
  font-weight: var(--fw-normal);
  line-height: var(--body-line-height);
  color: var(--color-white);
  letter-spacing: var(--tracking);
  /* The page stops at 1920px, centred; outside it, html's navy (decision 67
     item 19.18). The fixed header lines its content up by its own padding. */
  max-inline-size: var(--measure-page);
  /* lint-allow: restated(margin-inline) — centres the page only wider than 1920px, past the widest shot size; page_width_test.rb at 2560 */
  margin-inline: auto;
}

/* Changed for Gould: the navy, on html only: the browser paints it over the whole window, so body
   needs none (it would only repeat it inside the 1920 page). */
html {
  background: var(--color-bg-base);
  /* The window's width without its scrollbar, as 100cqi, for what runs past the 1920 page to the
     window's edges (cta.css --cta-out; 100vw counts a drawn scrollbar and scrolls the page sideways). */
  container-type: inline-size;
}

svg {
  height: 2ex;
  width: auto;
  flex: none;
}

blockquote:not([class]) {
  font-family: var(--font-serif);
  font-size: var(--size-step-2);
}

:where(blockquote:not([class]) p:last-of-type) {
  font-family: var(--font-base);
  font-size: var(--size-step-1);
  font-weight: var(--fw-normal);
}

/* Changed for Gould: no link is underlined, site-wide (Mitchell, 2026-11-30: "we shouldn't have
   underlines on any links; we would overrule that if we wanted a specific case"); a link that needs
   a line gets the text-underline utility. */
a {
  color: currentcolor;
  text-decoration: none;
}

/* Changed for Gould: hidden means hidden. The browser's own [hidden] rule loses to any class that
   sets display (a .stack is a flex box), so a hidden menu or panel showed (T9, 2026-11-11). */
[hidden] {
  /* stylelint-disable-next-line declaration-no-important -- the framework's own pattern for hiding (utilities/state.css .is-hidden) */
  display: none !important;
}

/* No `:focus` ring here on purpose. It would fire on mouse clicks as well as
   keyboard, and utilities/state.css already owns the ring via `:focus-visible`.
   Two competing rings is worse than one.

   An UNCLASSED <main> (a skip-link target with tabindex="-1") shows no ring at
   all: at (0,2,1) this rule beats state.css's `:focus-visible` (0,1,0). It never
   matches a <main> with a class, so a block class on <main> sets its own outline. */

main:not([class]):focus {
  outline: none;
}

::selection {
  background: var(--color-dark);
  color: var(--color-light);
}

mark {
  background-color: hsl(var(--color-accent-base-hsl) / 0.2);
  color: inherit;
}

/* Changed for Gould: the site's look on plain elements (rebuild spec §3.1, §4; manual §0 step 2).
   Set once here; sections set only knobs. Every heading is Red Hat Display 800 with the site's
   tracking (--tracking-xs); the framework's --tracking-s is left for its own use. */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: var(--fw-extra-bold);
  line-height: var(--heading-line-height);
  letter-spacing: var(--tracking-xs);
  text-wrap: balance;
}

h1 {
  font-size: min(var(--step-5), var(--hero-title-cap));   /* 13.2vw caps it on small phones */
  text-shadow: var(--shadow-heading);
}

h2 {
  font-size: var(--step-5);
  text-transform: uppercase;
}

/* Phones: one heading size for every section; the cap shrinks it under 340px so "MANUFACTURER"
   fits at 320 (ruled; the one size query a role carries). Line height 1.0, not 0.92: "too tight on
   all of the headers … for mobile" (Mitchell, CTA redesign decision 42); the h2 only, so the shared
   --heading-line-height (brand, menu, h1, h4, h5) stays. */
@media (max-width: 45em) {
  h2 {
    font-size: min(var(--step-3), var(--h2-phone-cap));
    line-height: 1;
  }
}

/* Card, panel and row titles: one look (decision 9); a knob exists only once a section needs one.
   White by role is added at T11, where the first muted block (the card) needs it. */
h3 {
  font-size: var(--step-1);
  line-height: 1.05;
}

small {
  font-size: var(--step--1);
  color: var(--text-muted);
}

/* Changed for Gould: the reading width only for headings without a class (as
   a:not([class]) and blockquote:not([class])); a classed heading is a designed
   piece and sets its own. :where() keeps it weightless, so blocks still win. */
:where(:is(h1, h2, h3, h4, h5):not([class])) {
  max-width: var(--measure-s);
}

p,
li,
blockquote:not([class]) {
  max-width: var(--measure);
}

/* A section's head (heading, rule, intro): one gap in every section (REF's shared section head:
   34 at 1440, 32 at 390). */
section header {
  --stack-space: var(--space-lg);
}

/* Its buttons' div, one step further down than the head's gap (News D6, the CTA; the mockup's
   inline --stack-space-before on that div). */
section header > div {
  --stack-space-before: var(--space-xl);
}
