/*
 * Ponks, self-hosted web fonts.
 *
 * Replaces the two Google Fonts requests both public pages used to make. That
 * had two costs: every visitor's IP went to Google before a single pixel of the
 * site rendered, and the CSP had to name fonts.googleapis.com in style-src and
 * fonts.gstatic.com in font-src. Serving them from our own origin removes both,
 * and lets connect/style/font all collapse to 'self'.
 *
 * Latin subset only, matching what Google served for these pages. The site has
 * no non-latin copy; adding a subset later means adding a file and a second
 * @font-face with the matching unicode-range, not editing these.
 *
 * All three are SIL Open Font License 1.1, which permits self-hosting.
 *
 * To refresh: request the CSS from fonts.googleapis.com with a modern browser
 * user-agent (an old one is served woff instead of woff2), take the woff2 URL
 * out of the U+0000-00FF block, and replace the file in assets/fonts/.
 */

/* display: the big Anton headline face */
@font-face {
  font-family: 'Anton';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/anton-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;
}

/* the pixel face, used for every .px element */
@font-face {
  font-family: 'Press Start 2P';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  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;
}

/*
 * Body copy. This one is a VARIABLE font: Google serves the same file for 400,
 * 600, 700 and 800, so one 27KB download covers every weight the pages use.
 * Declared as a range rather than four faces, which is what makes that work.
 */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-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;
}
