/* ===================================================
   fonts.css: the site's fonts, kept on our own site
   (faster than Google Fonts: no extra trips to Google)

   "font-display: optional" means: if a font isn't ready the moment the
   page is drawn, the page keeps the stand-in for that visit instead of
   swapping halfway (that swap made the page jump). Fonts are small and
   start loading first, so usually they're ready; after the first visit
   they're saved on the phone and always ready.
   The "Fallback" fonts are normal Arial, resized to take up the same
   space as our fonts, so the stand-in looks as close as possible.
   Fonts: Inter, Poppins and Bungee, free under the SIL Open Font
   License (see the OFL files in /fonts).
   =================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: optional; src: url("/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: optional; src: url("/fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: optional; src: url("/fonts/inter-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: optional; src: url("/fonts/inter-700.woff") format("woff"); }

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: optional; src: url("/fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: optional; src: url("/fonts/poppins-600.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: optional; src: url("/fonts/poppins-700.woff") format("woff"); }

@font-face { font-family: "Bungee"; font-style: normal; font-weight: 400; font-display: optional; src: url("/fonts/bungee-400.woff") format("woff"); }

/* The stand-ins (sized to match, so the page doesn't shift) */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 110.36%; ascent-override: 87.78%; descent-override: 21.86%; line-gap-override: 0%;
}
@font-face {
  font-family: "Poppins Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 104.86%; ascent-override: 100.13%; descent-override: 33.38%; line-gap-override: 9.54%;
}
@font-face {
  font-family: "Bungee Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Arial"), local("Roboto");
  size-adjust: 124.75%; ascent-override: 81.76%; descent-override: 24.05%; line-gap-override: 0%;
}
