/*
  Web fonts. Linked from the document head (renderer/+onRenderHtml.tsx), not imported into the
  app stylesheet: in dev, Vite swaps that stylesheet for an injected style tag after load, which
  re-declared these faces, made the browser fetch them again, and briefly reflowed the text in a
  system font. As a plain file the faces are declared once, next to the preload links.

  ABC Schengen A (Light, Regular, Medium) and ABC Schengen A Mono (Regular) by Dinamo, in
  public/fonts/schengen/. They're licensed to Pulley: don't use them anywhere else. Medium (500)
  is only for article sub-headings and bold run-ins, so it isn't preloaded; the browser fetches it
  on the pages that use it.
*/
@font-face {
  font-family: 'ABC Schengen A';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/fonts/schengen/ABCSchengenA-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'ABC Schengen A';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/schengen/ABCSchengenA-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'ABC Schengen A';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/schengen/ABCSchengenA-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'ABC Schengen A Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/schengen/ABCSchengenAMono-Regular.woff2') format('woff2');
}

/*
  What shows while the fonts load: Arial and Courier New, scaled and with their vertical metrics
  set to Schengen's, so text keeps its size and lines keep their breaks when the real faces swap in.
  Arial runs about 1.5% narrower than Schengen Regular and Courier New about 3% narrower than the
  Mono. (Liberation Sans and Liberation Mono have the same metrics, for Linux.)
*/
@font-face {
  font-family: 'ABC Schengen A Fallback';
  src: local('Arial'), local('ArialMT'), local('Liberation Sans');
  size-adjust: 101%;
  ascent-override: 96.5%;
  descent-override: 27.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'ABC Schengen A Mono Fallback';
  src: local('Courier New'), local('CourierNewPSMT'), local('Liberation Mono');
  size-adjust: 103.3%;
  ascent-override: 94.4%;
  descent-override: 26.6%;
  line-gap-override: 0%;
}
