/* Self-hosted webfonts (latin subsets, woff2 only). Served from this origin so the
   first paint never waits on a third-party stylesheet. */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/source-sans-3-400-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/source-sans-3-600-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Zilla Slab';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/zilla-slab-700-latin.woff2') format('woff2');
}

/* Metric-matched fallbacks. Text painted before the webfonts arrive keeps the same
   line box and average character width, so the swap moves nothing on the page.
   Overrides are derived from each face's own head/hhea/OS-2 tables:
   Source Sans 3 ascent 1024/1000, descent 400/1000, xAvg 471/1000.
   Zilla Slab ascent 944/1000, descent 256/1000, xAvg 538/1000. */
@font-face {
  font-family: 'Source Sans 3 Fallback';
  src: local('Arial'), local('Helvetica Neue'), local('Helvetica'), local('Liberation Sans'), local('DejaVu Sans');
  size-adjust: 89.2%;
  ascent-override: 91.3%;
  descent-override: 35.7%;
  line-gap-override: 0%;
}

@font-face {
  font-family: 'Zilla Slab Fallback';
  src: local('Georgia'), local('Noto Serif'), local('DejaVu Serif');
  size-adjust: 110.2%;
  ascent-override: 104%;
  descent-override: 28.2%;
  line-gap-override: 0%;
}
