/*
 * Self-hosted webfonts.
 *
 * Replaces the Google Fonts CDN requests previously made from header.php.
 * Variable fonts are used so a single file covers every weight in use.
 * Licences are alongside these files: OFL-Inter.txt, OFL-EBGaramond.txt
 */

/* Inter — variable weight 100-900, optical size handled automatically */
@font-face {
  font-family: 'Inter';
  src: url('Inter-Variable.woff2') format('woff2-variations'),
       url('Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* EB Garamond — variable weight 400-800 */
@font-face {
  font-family: 'EB Garamond';
  src: url('EBGaramond-Variable.woff2') format('woff2-variations'),
       url('EBGaramond-Variable.woff2') format('woff2');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'EB Garamond';
  src: url('EBGaramond-Italic-Variable.woff2') format('woff2-variations'),
       url('EBGaramond-Italic-Variable.woff2') format('woff2');
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
