/* =============================================================================
   HEALS self-hosted webfonts
   =============================================================================
   Sora for headings, Public Sans for body, served from the theme rather than a
   CDN: no third-party request on a health site, no layout shift waiting on
   fonts.googleapis.com, and nothing to break if that host is blocked.

   The .woff2 files ARE committed. Both families are OFL licensed so redistribution
   is fine, the whole set is about 116 KB, and committing them means a fresh clone
   renders on-brand with no setup step and no network. `.build\fetch-fonts.ps1`
   refreshes them if a weight ever needs adding.

   `local()` comes first so a machine with the family installed skips the download
   entirely, and if a file were ever missing the stack in tokens.css falls through to
   a system sans, so the site still renders, just off-brand.

   font-display:swap keeps text visible during load, which matters more here than
   a flash of fallback: this is a site people may reach in distress.
   ========================================================================== */

/* ---------------------------------------------------------------- Sora ---- */
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Sora SemiBold'), local('Sora-SemiBold'),
       url('../fonts/sora-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Sora Bold'), local('Sora-Bold'),
       url('../fonts/sora-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: local('Sora ExtraBold'), local('Sora-ExtraBold'),
       url('../fonts/sora-800.woff2') format('woff2');
}

/* --------------------------------------------------------- Public Sans ---- */
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Public Sans Regular'), local('PublicSans-Regular'),
       url('../fonts/public-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: local('Public Sans Medium'), local('PublicSans-Medium'),
       url('../fonts/public-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: local('Public Sans SemiBold'), local('PublicSans-SemiBold'),
       url('../fonts/public-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: local('Public Sans Bold'), local('PublicSans-Bold'),
       url('../fonts/public-sans-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: local('Public Sans Italic'), local('PublicSans-Italic'),
       url('../fonts/public-sans-400-italic.woff2') format('woff2');
}
