/*
 * Self-hosted web fonts for PIPI Stay.
 *
 * These live under /public rather than the asset pipeline on purpose: the
 * pipeline is fronted by an asset_host CDN in production, and the whole point
 * of self-hosting is to keep the font files on the same origin as the page.
 * Google Fonts (fonts.googleapis.com / fonts.gstatic.com) is unreachable from
 * mainland China, and a render-blocking <link rel="stylesheet"> to it stalled
 * first paint until the TCP connection timed out.
 *
 * Inter is a variable font, so one file per subset covers weights 400-700.
 * Playfair Display is subset to the glyphs of the "stay." wordmark. Both are
 * SIL Open Font License 1.1 (see Inter-OFL.txt / PlayfairDisplay-OFL.txt in
 * this directory), which permits redistribution. File names carry the upstream
 * version so they can be cached indefinitely.
 *
 * Regenerate from:
 *   https://fonts.googleapis.com/css2?family=Inter:wght@400..700&display=swap
 *   https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600&text=stay.&display=swap
 */

/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-v20-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;
}

/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-v20-latin-ext-variable.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* "stay." wordmark only */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/playfair-display-v40-600-stay.woff2) format('woff2');
  unicode-range: U+2E, U+61, U+73-74, U+79;
}
