/* The site's fonts, served from Flyaboo rather than from Google.
 *
 * These used to come from fonts.googleapis.com, which told Google the IP address of everybody who opened any page
 * of the site - the one third party present on every single request. The original build plan called for
 * self-hosting for exactly that reason and it never happened. This is that.
 *
 * The name is deliberate: stylesheets are served alphabetically, and @font-face has to be declared before the
 * rules that use the family.
 *
 * Only what is actually used is here. Montserrat is the wordmark, so latin only. Share Tech Mono is the whole
 * interface. Noto Color Emoji is 2MB across eleven subsets, and Flyaboo wants exactly one of them: Windows has no
 * flag emoji of its own (see base.css), so the flags subset is kept and the other ten are not. The unicode-range
 * means a browser only downloads it when a flag is actually on the page.
 */

@font-face {
  font-family: 'Share Tech Mono';
  font-style: normal;
  font-weight: 400;
  /* block, not swap: a brief wait beats the whole terminal-style layout reflowing in a different font. */
  font-display: block;
  src: url("/assets/ShareTechMono-Regular-da68c7ea.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: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url("/assets/Montserrat-ExtraBold-latin-a35a0e81.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: 'Noto Color Emoji';
  font-style: normal;
  font-weight: 400;
  /* swap, not block: a flag appearing a moment late is nothing, and 692KB is too long to hold text back for. */
  font-display: swap;
  src: url("/assets/NotoColorEmoji-flags-ee71ebe5.woff2") format('woff2');
  unicode-range: U+1F1E6-1F1FF;
}
