/* Self-hosted fonts. No runtime requests to Google Fonts or any CDN.
   Provenance and licences: static/fonts/README.md. */

/* Newsreader: display and headings. One variable file per style; the weight
   axis runs 300-600 and the optical-size axis 18-72 (the browser drives it
   from font-size). The italic is a static 400. */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Roman.3b2295c1ec86.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic.003c161e84be.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Hanken Grotesk: body and interface text. One variable file, 400-600. */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk.f17ad3f5229d.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* IBM Plex Mono: figures, clause numbers and small labels. */
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.c287a34a4cf0.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Medium.2f3b629a8e3c.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched stand-ins shown while the web fonts load, so lines wrap the
   same before and after the swap and the page below stops moving. Hanken
   Grotesk: Arial scaled to its average advance, per weight (measured on mixed
   EN/FR text: 400 1.009x, 500 1.014x, 600 against Arial Bold 0.945x).
   Newsreader: Georgia at 0.98x (300 0.976x, 400 1.010x, 500 0.968x). Each is
   listed right after its family in --font-body / --font-heading. */
@font-face {
  font-family: "Hanken Grotesk Fallback";
  src: local("Arial");
  font-weight: 400;
  size-adjust: 100.9%;
}

@font-face {
  font-family: "Hanken Grotesk Fallback";
  src: local("Arial");
  font-weight: 500;
  size-adjust: 101.4%;
}

@font-face {
  font-family: "Hanken Grotesk Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT");
  font-weight: 600;
  size-adjust: 94.5%;
}

@font-face {
  font-family: "Newsreader Fallback";
  src: local("Georgia");
  font-weight: 300 600;
  size-adjust: 98%;
}
