/* The brand faces, served from this origin.
 *
 * WHY THIS FILE EXISTS AND WHERE IT SITS. These rules may not live in
 * app/src/index.css: an @font-face there is undiscoverable until the browser
 * has downloaded and parsed the whole token sheet, which is what put the fonts
 * on the page's longest critical chain (finding R1, measured at 1234ms). They
 * are loaded instead from a <link> in app/index.html, which the browser can act
 * on straight out of the raw markup. That is the same decision R1 made; only
 * the origin has changed, from fonts.googleapis.com to this one, so there is no
 * longer a DNS lookup, a TCP connection and a TLS handshake to two third
 * parties in front of the first glyph.
 *
 * A public/ file rather than a bundled one, deliberately: Vite would hash it
 * into /assets and the preloads in index.html could no longer name it.
 *
 * PLAYFAIR DISPLAY IS ONE FILE FOR BOTH WEIGHTS. It is a variable face, so the
 * descriptor states the range this app instances (400 and 700) and the browser
 * interpolates rather than downloading a second file. Google's own stylesheet
 * points its 400 and 700 rules at this same URL for that reason.
 *
 * LATO IS THREE FILES, because it is not variable. Italic is carried for body
 * copy that needs it; Playfair is never set in italic for UI copy.
 *
 * `font-display: swap` so text is readable while a face is in flight. The
 * generated share card uses `block` instead (scripts/brand-fonts.ts) and that
 * is not an inconsistency: a capture taken mid-fallback writes a wrongly
 * typeset PNG, where a page merely reflows.
 *
 * The unicode-range is the latin subset these files actually contain. Without
 * it a browser would use the face for text it has no glyphs for and paint
 * tofu; with it, anything outside the range falls back to the system stack.
 *
 * PROVENANCE. Downloaded from the Google Fonts CDN, latin subset, at the
 * versions in each filename (v40 and v25 are Google's own revision counters).
 * Both families are SIL Open Font License 1.1 and the licenses sit beside the
 * files, as that license requires of a redistribution.
 */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/playfair-display-v40-latin-variable.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: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lato-v25-latin-400.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: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/lato-v25-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;
}

@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/lato-v25-latin-400-italic.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;
}
