/* Three self-hosted roles for the site chrome only (display, flourish, body; licences in /fonts/OFL.txt); the charts' own lettering is each style's `fontFamily` in `src/render/style.ts`, part of the byte-determinism contract, so touching it owes a regen. */

@font-face {
  font-family: "IM Fell English SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/im-fell-english-sc-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "IM Fell English";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/im-fell-english-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/eb-garamond-latin-700-normal.woff2") format("woff2");
}

/* Pages repeat the serif stack inline as each var()'s fallback on purpose: the generated atlas download links no fonts.css, so with these vars undefined it still falls back to the serif. */
:root {
  --font-serif-fallback: "Iowan Old Style", "Palatino", Georgia, serif;
  --font-display: "IM Fell English SC", var(--font-serif-fallback);
  --font-flourish: "IM Fell English", var(--font-serif-fallback);
  --font-body: "EB Garamond", var(--font-serif-fallback);
}
