/* 00-fonts.css: the self-hosted faces (served from nitya/fonts/, the synced copies; nothing from Google)
   Part 1 of the app's styles; index.html loads them in number order (css/README.md).
   unicode-range keeps each face to its own letters, so a browser downloads only what a page shows.
   Only Tiro, Noto Serif and Noto Sans draw the Vedic svara marks in every script (Nitya's fonts/README.md).
   Sections:
   - Interface: Inter (Latin), Noto Sans in each Indian script
   - The text: Tiro Devanagari Sanskrit; Tiro Kannada, Tiro Telugu, Noto Serif Gujarati; Noto Serif for IAST
*/

/* ==== Interface ==== */
@font-face {
  font-family: "AB UI";
  font-display: swap;
  src: url(../nitya/fonts/inter-latin.woff2) 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: "AB UI";
  font-display: swap;
  src: url(../nitya/fonts/inter-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "AB UI";
  font-display: swap;
  src: url(../nitya/fonts/noto-sans-deva-devanagari.woff2) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: "AB UI";
  font-display: swap;
  src: url(../nitya/fonts/noto-sans-kannada-kannada.woff2) format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0C80-0CF3, U+1CD0-1CFA, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "AB UI";
  font-display: swap;
  src: url(../nitya/fonts/noto-sans-telugu-telugu.woff2) format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0C00-0C7F, U+1CDA, U+1CF2, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "AB UI";
  font-display: swap;
  src: url(../nitya/fonts/noto-sans-gujarati-gujarati.woff2) format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839;
}

/* ==== The text ==== */
@font-face {
  font-family: "AB Text";
  font-display: swap;
  src: url(../nitya/fonts/tiro-sanskrit-devanagari.woff2) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: "AB Text";
  font-display: swap;
  src: url(../nitya/fonts/tiro-kannada-kannada.woff2) format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0C80-0CF3, U+1CD0-1CFA, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "AB Text";
  font-display: swap;
  src: url(../nitya/fonts/tiro-telugu-telugu.woff2) format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0C00-0C7F, U+1CDA, U+1CF2, U+200C-200D, U+25CC;
}
@font-face {
  font-family: "AB Text";
  font-display: swap;
  src: url(../nitya/fonts/noto-serif-gujarati-gujarati.woff2) format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0A80-0AFF, U+200C-200D, U+20B9, U+25CC, U+A830-A839;
}
/* IAST: Noto Serif's Latin as Nitya cut it, with every combining accent the svara marks need */
@font-face {
  font-family: "AB Text";
  font-display: swap;
  src: url(../nitya/fonts/noto-serif-latin.woff2) format("woff2");
  unicode-range: U+0000-024F, U+0259, U+02B0-02FF, U+0300-036F, U+1E00-1EFF, U+2000-206F, U+20AC, U+20B9, U+2122, U+2190-2193, U+2212, U+2215, U+25CC, U+FEFF, U+FFFD;
}
