/* The brand's two typefaces, SELF-HOSTED. Nothing here reaches a third party.
 *
 * WHY THIS FILE EXISTS (review finding F3). Every page in hub mode used to
 * load its fonts from fonts.googleapis.com, which meant a stylesheet request
 * and then font requests to fonts.gstatic.com. Each of those hands Google the
 * visitor's IP address, User-Agent and the Referer of the page they were
 * reading. That is a defensible trade on most sites. It is not defensible on
 * /privacy, which says in as many words that there is nothing on the page that
 * could learn who you are, and it was not a lie only because a paragraph
 * further down disclosed the exception. A strong claim that needs a footnote
 * to stay true is a claim worth making unnecessary instead.
 *
 * So the two families are served from /static like every other asset, and
 * security.HUB_CSP no longer names a Google host at all. `default-src 'self'`
 * is now the whole story for these pages: a font request that tried to leave
 * this origin would be blocked by the policy rather than merely absent.
 *
 * LICENCE. Poppins (Indian Type Foundry, Jonny Pinhorn) and DM Sans (Colophon
 * Foundry, Jonny Pinhorn) are both SIL Open Font License 1.1, which permits
 * redistribution and self-hosting. See fonts/OFL.txt.
 *
 * WHAT WAS TAKEN, AND WHAT WAS NOT. The LATIN subset only, which is what
 * Google's own CSS serves a browser reporting a Western locale. Player names
 * on the board are ASCII as the FPL API supplies them, and the fallback stack
 * below covers anything outside the subset. The latin-ext and Vietnamese
 * subsets are 4x the bytes for glyphs this site does not set.
 *
 * DM Sans is one VARIABLE file covering 400 to 700; Poppins is three static
 * weights, because that is how the foundry ships it. Four files, 86 KB total,
 * against three round trips to two third-party hosts.
 *
 * `font-display: swap` matches what Google's CSS asked for: text paints in the
 * fallback immediately and reflows when the file lands, rather than holding a
 * blank page hostage to a font.
 */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('/static/fonts/dmsans-latin-var.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: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/poppins-latin-500.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: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/poppins-latin-600.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: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/poppins-latin-700.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;
}
