/* Self-hosted brand fonts.
 *
 * Source: Google Fonts (latin subset only, WOFF2).
 * Licenses: SIL Open Font License (OFL) 1.1 — both families.
 *
 * Wire-up: include this file from site.css (e.g. @import "../fonts/fonts.css")
 * OR link directly from head.php BEFORE site.css. Then update --serif / --sans
 * tokens in :root to use 'Montserrat' / 'PT Sans'.
 *
 * font-display: swap → text shows in fallback immediately, swaps to the
 * web font once it loads. No FOIT.
 */

/* Montserrat — variable font, single file covers weights 100–900. */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('montserrat/montserrat-variable.woff2') format('woff2-variations'),
       url('montserrat/montserrat-variable.woff2') format('woff2');
}

/* PT Sans — four explicit files (regular/bold + italic variants).
 * Filenames use semantic role names (regular/bold/italic) instead of
 * weight numbers — initial download mislabeled the URL→variant mapping
 * (Google's CSS orders italic before normal); semantic names make it
 * impossible to mix them up again, and incidentally bust any CDN cache
 * holding the prior wrong content. */
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('pt-sans/pt-sans-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('pt-sans/pt-sans-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'PT Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('pt-sans/pt-sans-bold.woff2') format('woff2');
}
@font-face {
  font-family: 'PT Sans';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('pt-sans/pt-sans-bold-italic.woff2') format('woff2');
}
