/* Self-hosted fonts (SIL OFL 1.1 — see ../fonts/LICENSES.txt). No third-party font requests. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-display.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2009-200A, U+2013-2014, U+2018-201D, U+2022, U+2026, U+20B9, U+2190-2193, U+2197, U+2212;
}

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/publicsans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2009-200A, U+2013-2014, U+2018-201D, U+2022, U+2026, U+20B9, U+2190-2193, U+2197, U+2212;
}

/* Telugu: only downloaded by pages that actually contain Telugu characters */
@font-face {
  font-family: "Noto Sans Telugu";
  src: url("../fonts/notosanstelugu.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0C00-0C7F, U+200C-200D, U+0964-0965;
}

/* Metric-matched fallbacks (values computed from the font files) so swapping fonts causes minimal layout shift */
@font-face {
  font-family: "Fraunces Fallback";
  src: local("Georgia");
  size-adjust: 106%;
  ascent-override: 92.3%;
  descent-override: 24.1%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Public Sans Fallback";
  src: local("Arial");
  size-adjust: 102.4%;
  ascent-override: 92.8%;
  descent-override: 22%;
  line-gap-override: 0%;
}
