/*
 * Self-hosted typefaces (LAUNCH-2 A2).
 *
 * These replace the Google Fonts <link> requests. The families, weights and
 * display behaviour are identical; only the origin changes, so no CSS anywhere
 * else has to move.
 *
 * Files come from @fontsource-variable (SIL Open Font License 1.1), copied into
 * public/fonts so they are served from our own domain:
 *   inter-latin-400-800.woff2          Inter, variable weight axis
 *   dm-sans-latin-opsz-400-700.woff2   DM Sans, variable optical-size axis
 *   inter-tight-latin-400-600.woff2    Inter Tight, variable weight axis
 *
 * The family names are the plain ones ("Inter", "DM Sans", "Inter Tight") rather
 * than fontsource's "Inter Variable" spelling, because the whole stylesheet and
 * every component already reference the plain names. Both the weight and the
 * optical-size ranges are declared so a variable file behaves like the static
 * cuts Google served.
 *
 * `unicode-range` is the Latin block only: the site's copy is English, and
 * shipping Cyrillic/Greek subsets would cost bytes no visitor uses.
 *
 * font-display: swap matches the `&display=swap` the Google URLs used.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url("/fonts/inter-latin-400-800.woff2") format("woff2-variations");
  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: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url("/fonts/dm-sans-latin-opsz-400-700.woff2") format("woff2-variations");
  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: "Inter Tight";
  font-style: normal;
  font-display: swap;
  font-weight: 400 600;
  src: url("/fonts/inter-tight-latin-400-600.woff2") format("woff2-variations");
  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;
}
