/* Space Grotesk, self-hosted — the heading face.
 *
 * Brought over from the neoboard design, where it is what gives a heading its
 * character: a geometric grotesque with flat terminals and a wide eye, set
 * against Inter's neutral body text. Two faces on a page is a deliberate pair,
 * not a drift — Inter carries everything a reader reads at length, and this
 * carries only the lines they scan.
 *
 * Self-hosted for the same reasons inter.css gives, and they apply with more
 * force to a SECOND family: pulling this from fonts.googleapis.com would have
 * put a third-party stylesheet back in front of first paint on a site that
 * removed exactly that, and would have needed font-src and style-src
 * exceptions in a Content-Security-Policy whose point is that it has none.
 * Served from our own origin it is one more file on a connection already open.
 *
 * Space Grotesk is SIL Open Font License 1.1, which permits this. The files
 * are the unmodified upstream woff2 with the same unicode-range splits, so a
 * page of plain English fetches only the 22 kB latin subset.
 *
 * VARIABLE, weight 400-700 in one file per subset. The vietnamese subset
 * upstream offers is not shipped: nothing on this site uses it, and inter.css
 * makes the same cut.
 *
 * To refresh: take the latin and latin-ext URLs from
 *   https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400..700&display=swap
 * (sent with a modern browser's User-Agent, or Google serves the TrueType
 * fallback instead of woff2) and replace the two files beside this one.
 * Upstream is Space Grotesk v22.
 */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  /* swap, matching Inter: a heading in the fallback for a moment is a better
     first paint than a heading that is not there at all. */
  font-display: swap;
  src: url('/fonts/space-grotesk-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: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/space-grotesk-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;
}
