/*
 * Self-hosted webfonts.
 *
 * These were served by Google Fonts before. Hosting them here means the page
 * makes no third-party requests at all: no visitor IP, referrer or user-agent
 * is handed to another company just for rendering type, and the Content
 * Security Policy can forbid outside origins outright rather than carving out
 * exceptions for them.
 *
 * The declarations below are the ones Google served, with the remote URLs
 * swapped for local files. Only the latin and latin-ext subsets are kept —
 * German needs no more than that — and unicode-range means a browser fetches
 * latin-ext only if a character actually calls for it.
 *
 * font-display: swap keeps text visible in a fallback face while these load.
 *
 * Both families are trimmed to what the page draws (tools/subset-fonts.py):
 * Montserrat to weights 300–700, Roboto Flex to the hero's glyphs (below).
 *
 * To update: refetch the CSS from fonts.googleapis.com, put the woff2 files it
 * points at into assets/_originals/fonts-vollstaendig/, re-run the script, and
 * replace the declarations here.
 */


@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/montserrat-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/montserrat-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;
}

/* Roboto Flex is only the hero's "Hello!" / "Hoi!" (js/textPressure.js), and
   only its weight axis moves. tools/subset-fonts.py cuts the file down to those
   letters, in both cases (the hero sets them in capitals), with the width axis pinned at 100 and weight limited to 100–900:
   about 5 KB instead of ~340 KB for the two full subsets. A greeting with new
   letters needs them added there and the script re-run. */
@font-face {
  font-family: 'Roboto Flex';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/roboto-flex-hero.woff2') format('woff2');
}
