/* Solaigo — typefaces.
 *
 * Split out of solaigo.css so the webapp under /cockpit/ can load the same
 * declarations without pulling in the marketing site's layout, which would fight
 * with the app's own styles. One copy, two consumers.
 *
 * Kept at the site root rather than inside fonts/, because nginx serves that
 * directory with a one-year immutable cache. The .woff2 files carry their version
 * in the filename and can be pinned that way; this file does not, so a change to a
 * @font-face rule would otherwise be invisible to returning visitors for a year.
 */

/* ---------- typefaces ----------
   Self-hosted rather than loaded from fonts.googleapis.com. A CDN link would send
   every visitor's IP address to Google before the first paint, which is hard to
   square with the footer's "Hosted in the European Union" — and is the practice a
   Munich court ruled against in 2022 (LG München I, 3 O 17493/20).

   Both families are variable fonts: one file covers the whole weight range, which is
   why four declared weights collapse into one @font-face per subset. The `latin` and
   `latin-ext` subsets are the ones the content needs; Google also publishes
   `vietnamese` and `cyrillic-ext`, left out here so the repo carries only what is
   used. `unicode-range` means an unused subset costs nothing at runtime — a browser
   downloads a file only when a character on the page falls inside its range — so the
   only cost of dropping them is a system-font fallback if such text ever appears.

   Refresh with scripts/fetch-fonts.sh, which also explains the version in each
   filename: Google revs the path (v9, v12) when a face changes, so a new file gets a
   new name and can be cached immutably. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  /* The file carries wght 200-800 and the browser interpolates. Declaring the range
     matters: the face defaults to 800, so a narrower claim here would render every
     lighter weight at ExtraBold. */
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-v9-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: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('fonts/bricolage-grotesque-v9-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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/hanken-grotesk-v12-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: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/hanken-grotesk-v12-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;
}
