/* Self-hosted latin subsets. Licences in OFL.txt.
 * Fallback metrics are tuned so the swap does not shift layout. */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('schibsted-grotesk-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('Figtree-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('JetBrainsMono-latin.woff2') format('woff2');
}

/* Metric-matched fallbacks: the page holds its shape before the webfont
 * arrives, so there is no cumulative layout shift on a slow connection. */
@font-face {
  font-family: 'Schibsted Fallback';
  src: local('Helvetica Neue'), local('Arial');
  size-adjust: 97%;
  ascent-override: 96%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Figtree Fallback';
  src: local('Helvetica Neue'), local('Arial');
  size-adjust: 99%;
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
}
