/* GT Walsheim — the Parcelhero brand face, and now the Portal's only sans.
 *
 * It was already the brand face everywhere OUTSIDE this app: `public/components/relay-quote-box.js`
 * ships `--font-ph: 'GT Walsheim', …` to every site that embeds the quote box. The Portal was the
 * odd one out, drawing its chrome in Poppins and its migrated Freight screens in DM Sans — two
 * Google faces, neither of them the brand's.
 *
 * ## Five faces, not sixteen
 *
 * The family ships eight weights each with an oblique. Declared here are only the slots the app
 * actually asks for, counted from the call sites:
 *
 *     font-normal    400   44 uses     Regular
 *     font-medium    500   23 uses     Medium
 *     font-semibold  600  605 uses     Medium      ← see below
 *     font-bold      700  269 uses     Bold
 *     font-extrabold 800   61 uses     Ultra Bold
 *     italic         400   32 uses     Regular Oblique
 *
 * Thin, Ultra Light, Light and Black are not referenced, and neither are seven of the eight
 * obliques. An unreferenced `@font-face` costs no bytes at runtime — the browser fetches only what
 * a rendered glyph needs — but it does cost a reader working out which weights this app really has.
 *
 * **`font-semibold` is served by MEDIUM, deliberately.** GT Walsheim has no 600, and left alone CSS
 * resolves 600 *upwards* — so all 605 of those call sites would have rendered in Bold, heavier than
 * the Poppins SemiBold they were designed against and indistinguishable from the 269 that ask for
 * Bold on purpose. Medium at 600 keeps the two steps apart and lands closer to what was signed off.
 * Medium is therefore declared twice, at 500 and at 600, pointing at one file: same URL, one
 * download, two slots.
 *
 * `font-display: swap` — text paints immediately in the fallback and reflows when the face lands.
 * The alternative (`block`) is a Portal that shows nothing for up to three seconds on a cold cache.
 */

@font-face {
  font-family: 'GT Walsheim';
  src: url('/fonts/GT-Walsheim-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GT Walsheim';
  src: url('/fonts/GT-Walsheim-Regular-Oblique.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'GT Walsheim';
  src: url('/fonts/GT-Walsheim-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* The semibold slot. One file, two weights — see the note above. */
@font-face {
  font-family: 'GT Walsheim';
  src: url('/fonts/GT-Walsheim-Medium.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GT Walsheim';
  src: url('/fonts/GT-Walsheim-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GT Walsheim';
  src: url('/fonts/GT-Walsheim-Ultra-Bold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
