/* fonts.css  (stage A)
   The four self-hosted faces from spec 2.3. All SIL Open Font Licence.
   Stage B may link this file before site.css, or paste these rules at the top of site.css.
   Paths are relative to this file (assets/css/), so they also work if pasted into site.css.

   Preload in <head> (the two faces used on the first screen):
   <link rel="preload" href="assets/fonts/instrument-serif-400.woff2?v=3" as="font" type="font/woff2" crossorigin>
   <link rel="preload" href="assets/fonts/instrument-sans-var.woff2?v=3" as="font" type="font/woff2" crossorigin>

   Stacks (spec 2.3):
   display  "Instrument Serif", "Instrument Serif Fallback", "Iowan Old Style", Georgia, serif
   body     "Instrument Sans", system-ui, "Segoe UI", Roboto, Arial, sans-serif
   deva     "Tiro Devanagari Sanskrit", "Kohinoor Devanagari", "Noto Serif Devanagari", serif
*/

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400.woff2?v=3") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-400-italic.woff2?v=3") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Variable weight axis, 400 to 700. */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-var.woff2?v=3") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* A subset that holds only the letters of आदि, पादुका, पूर्णम् and आदिवाहन.
   Never set any other Devanagari word in it without rebuilding the subset (spec 2.3).
   Never apply fake bold or fake italic to it. */
@font-face {
  font-family: "Tiro Devanagari Sanskrit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tiro-deva-subset.woff2?v=3") format("woff2");
  unicode-range: U+0906, U+0915, U+0923, U+0926, U+0928, U+092A, U+092E, U+0930, U+0935, U+0939, U+093E-093F,
    U+0941-0942, U+094D;
}

/* Metric fallback, so the page does not jump when Instrument Serif arrives (spec 2.3). */
@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Iowan Old Style"), local("Georgia");
  size-adjust: 92%;
}
