/* =============================================================================
   fonts.css - Fonts shipped with the game.

   Reference: `assets/fonts/`, and `.docs/main.md` (section 3.I, player titles).

   ONE family for now: **Press Start 2P**, the pixel face the card Styles name ("Press Start 2P
   (Pixel)") and the one the card maker under `external/cardmakerz/` pulls from Google Fonts. It is
   used for ONE thing only - a player title, under the pseudo and in the notifications that announce
   one - so it is loaded here, once, instead of being repeated by the stylesheets that need it.

   The two `.woff2` files are the Latin subsets Google serves (SIL Open Font License 1.1, so they
   ship with the project): the shell pre-caches them (`sw.js`), which is what keeps a title looking
   like a title with no network at all. `font-display: swap` is deliberately NOT used: the fallback
   of `--font-family-title` is a monospace stack, and swapping a pixel face mid-paint would move
   every line under it.

   A title is never content the player has to read to play: falling back to monospace when a file
   is missing is acceptable, which is why `unicode-range` cuts the subsets as Google declares them.
   ============================================================================= */

@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/press-start-2p-latin.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: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/press-start-2p-latin-ext.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-20C4, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
