/*
  Brand fonts. Load before tokens.css.

  Lora and Karla are self-hosted (SIL Open Font License, see fonts/*-OFL.txt).
  Each is one variable file covering every upright weight the site uses.
  Lora Italic is not loaded yet; add it when a page uses heading/quote.
*/
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-latin-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Karla";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/karla-latin-variable.woff2") format("woff2");
}

/*
  Metric-matched fallbacks (DESIGN.md §2). While the web fonts load, text shows
  in a local font scaled to the same width and line box, so nothing jumps when
  Lora and Karla arrive. Values were measured in Chromium against a sample of the
  site's copy: size-adjust = web width / fallback width; the overrides are the
  web font's ascent and descent divided by size-adjust. Re-measure if the font
  files change.
*/
@font-face {
  font-family: "Lora Fallback";
  src: local("Georgia");
  size-adjust: 104.53%;
  ascent-override: 96.24%;
  descent-override: 26.21%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Karla Fallback";
  src: local("Arial");
  size-adjust: 102.28%;
  ascent-override: 89.66%;
  descent-override: 24.64%;
  line-gap-override: 0%;
}
