/* Self-hosted fonts. Paths are relative to this CSS file.
   All three families are under the SIL Open Font License 1.1: see
   OFL-SourceSans3.txt, OFL-SourceSerif4.txt and OFL-JetBrainsMono.txt in this
   folder. */

/* Source Sans 3 is the maintained successor to Source Sans Pro, the face r4ds
   inherits from Bootswatch cosmo. These are the official Adobe variable builds
   (adobe-fonts/source-sans, WOFF2/VF), not a Google Fonts subset, so the full
   glyph set is present, including arrows such as U+2192 used in the glossary
   tooltips. Self-hosted for the same reason the rest of these are: cosmo pulls
   Source Sans Pro from Google Fonts with a blocking @import, which this avoids. */
/* The woff2-variations hint is non-standard, and a browser that does not know a
   format() value skips that src entirely, which would drop the body text to a
   system font. Plain woff2 is listed as a fallback: every browser that supports
   woff2 at all supports variations in it. */
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("SourceSans3Variable.woff2") format("woff2-variations"),
    url("SourceSans3Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("SourceSans3Variable-Italic.woff2") format("woff2-variations"),
    url("SourceSans3Variable-Italic.woff2") format("woff2");
}

/* Source Serif 4 sets the running text of each page. Official Adobe variable
   builds again (adobe-fonts/source-serif 4.005R, WOFF2/VAR, the .otf files),
   unmodified: the licence reserves the name "Source", and a subset would be a
   Modified Version that may not keep it. Axes: weight 200 to 900 and optical
   size, which browsers set from the font size on their own. */
@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("SourceSerif4Variable.woff2") format("woff2-variations"),
    url("SourceSerif4Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("SourceSerif4Variable-Italic.woff2") format("woff2-variations"),
    url("SourceSerif4Variable-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("JetBrainsMono-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("JetBrainsMono-Italic.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("JetBrainsMono-Bold.woff2") format("woff2");
}
