/* Self-hosted latin subsets — no third-party font chain on the critical path.
 *
 * ONE FILE PER FAMILY+STYLE. Every file here is a VARIABLE font with a `wght`
 * axis, so a single woff2 covers the whole weight range and the browser
 * interpolates. That is not a nicety — it is the fix for a real regression:
 * this stylesheet used to declare one static-looking @font-face per weight
 * (schibsted-grotesk-500/600/700, instrument-sans-400/500/600,
 * jetbrains-mono-400/500) whose files were BYTE-IDENTICAL to each other
 * (verified by md5). The browser could not know that, so it downloaded the
 * same 46,752-byte Schibsted file three times under three URLs, the same
 * 30,092-byte Instrument file three times, and the same 31,432-byte JetBrains
 * file twice — 297 kB of font traffic on the homepage to deliver 162 kB of
 * distinct bytes, all at `rel=preload` priority, competing with the LCP text.
 *
 * The weight ranges below are the real `fvar` wght axis bounds of each file
 * (read with fontTools, not guessed). Declaring the range is what makes the
 * browser apply the axis instead of rendering the default instance: with a
 * single-value descriptor it clamps to that value, which is why the old setup
 * still LOOKED right while shipping the duplicates.
 *
 * If you add a weight, do NOT add a file — widen the range. If you add a
 * family, check `fvar` first; instrument-sans-italic genuinely has no axis
 * and so is correctly declared at a single weight.
 */

/* wght 400..900 */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/schibsted-grotesk.woff2) format('woff2');
}

/* wght 400..900 */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url(/fonts/schibsted-grotesk-italic.woff2) format('woff2');
}

/* wght 400..700 */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/instrument-sans.woff2) format('woff2');
}

/* No `fvar` axis on this one — a genuine single-weight file. */
@font-face {
  font-family: 'Instrument Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/instrument-sans-italic.woff2) format('woff2');
}

/* wght 400..800 */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/jetbrains-mono.woff2) format('woff2');
}
