/* The two typefaces, shipped with the application under the SIL Open Font
 * License (resources/fonts/OFL.txt, OFL-Fraunces.txt).
 *
 * Inter sets everything you read and operate: messages, controls, lists.
 * Fraunces is the brand's voice and is used sparingly — the wordmark, the
 * greeting on an empty page, dialog titles, the headline of a project. A serif
 * that shows up everywhere stops meaning anything.
 */

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: block;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-latin-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
  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: "Fraunces";
  src: url("../fonts/Fraunces-latin-ext-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: block;
  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: "Fraunces";
  src: url("../fonts/Fraunces-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: block;
  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: "Fraunces";
  src: url("../fonts/Fraunces-latin-ext-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: block;
  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;
}

/* Maths (ui/math_tex.py draws TeX as MathML): Latin Modern Math, under the
 * GUST Font License (resources/fonts/GUST-FONT-LICENSE.txt). It carries the
 * MATH table Chromium lays formulas out with, on every system; Windows' own
 * Cambria Math is the fallback. Loaded only when a formula is on the page. */
@font-face {
  font-family: "Latin Modern Math";
  src: url("../fonts/LatinModernMath.woff2") format("woff2");
  font-display: swap;
}

/* Japanese (chat.css) in the system's fonts: Windows' default, Yu Gothic
 * Regular, is a hairline. Kana and kanji only. */
@font-face {
  font-family: "Mosaik Japanese";
  src: local("Yu Gothic Medium"), local("YuGothic-Medium"), local("Meiryo"), local("Noto Sans CJK JP");
  font-weight: 100 500;
  unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}
@font-face {
  font-family: "Mosaik Japanese";
  src: local("Yu Gothic Bold"), local("YuGothic-Bold"), local("Meiryo Bold"), local("Noto Sans CJK JP Bold");
  font-weight: 600 900;
  unicode-range: U+3000-30FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}
