/* SomethingPR — base: reset, type roles, grounds, focus.
   Depends on tokens.css. No value is written here that is not a token,
   except 0, 1, 100% and the two breakpoints named in tokens.css PART 2. */

/* ───────── Font: Archivo, one variable file, hosted by the site ─────────
   Both axes in one file: width 62–125, weight 100–900, Latin subset, 88 KB.
   The same file is declared under two names so the two kinds of text can wait differently
   while it loads (it is still one download, preloaded in the page head):
   - "Archivo": reading text. Shows the fallback at once, then swaps.
   - "Archivo Display": fitted headlines, wordmark, buttons. Waits briefly for the real font,
     because a fallback has other widths and every fitted line would be the wrong size. */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-latin-wdth-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Display";
  src: url("../assets/fonts/archivo-latin-wdth-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: block;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* What reading text shows for the moment before Archivo arrives: Arial, resized so its lines
   run to nearly the same length and height (Archivo regular is 98.2 % as wide as Arial on
   this page's own paragraphs, measured in the browser), so the text barely moves on the swap. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 98.2%;
  ascent-override: 89.6%;
  descent-override: 21.4%;
  line-gap-override: 0%;
}

:root {
  --font-read:    "Archivo", "Archivo Fallback", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo Display", "Arial Narrow", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-read);
  font-size: var(--fs-2);
  font-weight: var(--wt-regular);
  font-stretch: var(--wd-regular);
  line-height: var(--lh-body);
  overflow-x: clip;
}

h1, h2, h3, h4, p, ul, ol, dl, dt, dd, figure, fieldset, legend {
  margin: 0; padding: 0; border: 0; min-width: 0;
  font: inherit;
}
ul, ol { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; border-radius: 0; }
svg { display: block; }
[hidden] { display: none !important; }

::selection { background: var(--ink); color: var(--yellow); }

/* Focus: an ink ring with a yellow halo either side, so it shows on every ground. */
:focus-visible {
  outline: var(--line) solid var(--ink);
  outline-offset: var(--line);
  box-shadow: 0 0 0 calc(var(--line) * 3) var(--yellow);
}

/* ───────── Grounds ─────────
   --bg ground, --fg text and outlines, --ac the accent for display type only.
   Reading text is never placed on .on-red or .on-yellow (brief). */
.on-paper  { --bg: var(--paper);  --fg: var(--ink);   --ac: var(--red); }
.on-ink    { --bg: var(--ink);    --fg: var(--paper); --ac: var(--yellow); }
.on-navy   { --bg: var(--navy);   --fg: var(--paper); --ac: var(--yellow); }
.on-orange { --bg: var(--orange); --fg: var(--ink);   --ac: var(--navy); }
.on-red    { --bg: var(--red);    --fg: var(--ink);   --ac: var(--ink); }
.on-yellow { --bg: var(--yellow); --fg: var(--ink);   --ac: var(--ink); }
.on-paper, .on-ink, .on-navy, .on-orange, .on-red, .on-yellow {
  background: var(--bg);
  color: var(--fg);
}

/* ───────── Band ───────── ruled edge: bands simply meet on a straight line. */
.band { padding-block: var(--band-top) var(--band-bottom); }
.band--hero { padding-top: var(--hero-top); }
.wrap {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap-3);
}
[id] { scroll-margin-top: calc(var(--fs-4) + var(--gap-2) * 2 + var(--line) + var(--gap-3)); }

/* ───────── Type roles: every piece of text takes one size, one width, one weight ───────── */
.label {
  font-size: var(--fs-1);
  font-weight: var(--wt-extrabold);
  font-stretch: var(--wd-regular);
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  line-height: var(--lh-tight);
}
.lede {
  font-size: var(--fs-3);
  font-weight: var(--wt-extrabold);
  font-stretch: var(--wd-regular);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  max-width: calc(var(--measure) / 2);
}
.body {
  font-size: var(--fs-2);
  font-weight: var(--wt-regular);
  font-stretch: var(--wd-regular);
  line-height: var(--lh-body);
  max-width: var(--measure);
}
.strong { font-weight: var(--wt-extrabold); }

.subhead, .heading, .numeral, .big {
  font-family: var(--font-display);
  font-weight: var(--wt-black);
  font-stretch: var(--wd-condensed);
  text-transform: uppercase;
  line-height: var(--lh-display);
}
.subhead { font-size: var(--fs-4); }
.heading { font-size: var(--fs-5); }
.numeral { font-size: var(--fs-6); }
.big     { font-size: var(--fs-7); }
.wide    { font-stretch: var(--wd-expanded); }   /* the one contrasting line */
.accent  { color: var(--ac); }
.c-red { color: var(--red); }

/* Trim a line of capitals to its cap height, so gaps are measured from the letters
   themselves. The margin removes exactly the blank space a line-height of 1 leaves
   above and below capitals; it never pulls a box over its neighbour. */
.trim, .numeral, .big {
  line-height: var(--lh-display);
  margin-block: var(--trim-top) var(--trim-bottom);
}
