/* This site's own font rules: the faces, plus what is set in them.

   Shared by Quarto and vanilla Pandoc for both HTML recipes, and the one file
   that demonstrates the whole pattern. Another site almost certainly wants
   `faces.css` instead -- the same @font-face declarations without the family
   assertions below, which belong to this theme and to no one else's.

   The faces arrive through an @import rather than being repeated here, so the
   two files cannot drift. That costs this site one round trip before the fonts
   are discovered; a consumer avoids it by linking `faces.css` directly. */
@import url("faces.css");

/* Noto's official Google Fonts web family. The API returns unicode-ranged
   WOFF2 slices, so browsers only fetch the Traditional Chinese ranges used --
   but this stylesheet itself is fetched every time, from a third origin, and
   an English-only site gets nothing for it. That is why it is here and not in
   `faces.css`: taking the faces does not drag Google in with them. */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;700&display=swap");

body {
  font-family: var(--font-body);
}

:lang(el) {
  font-family: "Gentium", serif;
}

:lang(he) {
  font-family: "Ezra SIL", serif;
}

:lang(zh), :lang(zh-Hant) {
  font-family: "Noto Sans TC", sans-serif;
}

code, kbd, samp, pre {
  font-family: var(--font-code);
}

math {
  font-family: "TeX Gyre Schola Math", math;
}
