/*
 * public/fonts/fonts.css — the app's fonts, served from its own domain (checklist C8; spec v0.2).
 *
 * Every page used to ask Google for its fonts, so Google received each visitor's IP address and browser details.
 * This one stylesheet replaces those requests. It keeps the family names the code already uses, so no style changes.
 * Each family's license file sits beside its files. check-self-hosted-fonts pins this file, the files it names and
 * every family the code names.
 *
 *   DM Sans, DM Mono   SIL Open Font License 1.1, no Reserved Font Name. Fontsource's latin and latin-ext files
 *                      (@fontsource-variable/dm-sans 5.3.0, @fontsource/dm-mono 5.3.0).
 *   Source Sans 3,     SIL Open Font License 1.1, with Adobe's Reserved Font Name 'Source'. Adobe's own WOFF2 files,
 *   Source Serif 4     unmodified, from its packages (source-sans 3.52.0, source-serif 4.5.1), so no Modified Version
 *                      carries the name.
 *
 * "Source Sans Pro" is Source Sans 3's former name. The code still names both, so both point to the same file.
 * DM Mono has no 600 or 700: browsers draw a synthesized bold there, as they did before.
 */

/* DM Sans: upright, weights 100 to 1000, optical size 9 to 40 */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/fonts/dm-sans/dm-sans-latin-ext-opsz-normal.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: 'DM Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url(/fonts/dm-sans/dm-sans-latin-opsz-normal.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;
}

/* DM Mono: 400 and 500 */
@font-face {
  font-family: 'DM Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/dm-mono/dm-mono-latin-ext-400-normal.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: 'DM Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fonts/dm-mono/dm-mono-latin-400-normal.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: 'DM Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/dm-mono/dm-mono-latin-ext-500-normal.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: 'DM Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/fonts/dm-mono/dm-mono-latin-500-normal.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;
}

/* Source Sans 3 at 300, the wordmark's font, under its name and its former one */
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/fonts/source-sans-3/SourceSans3-Light.ttf.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Sans Pro';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/fonts/source-sans-3/SourceSans3-Light.ttf.woff2) format('woff2');
}

/* Source Serif 4: the Knowledge Base's reading font, weights 200 to 900, optical size 8 to 60, upright and italic */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-serif-4/SourceSerif4Variable-Roman.ttf.woff2) format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url(/fonts/source-serif-4/SourceSerif4Variable-Italic.ttf.woff2) format('woff2');
}
