/* ==========================================================================
   Self-hosted typefaces — Fraunces (display) and Inter (UI).

   These are weight-clamped, glyph-subset copies of the Google Fonts releases:
   Fraunces is pinned to 300–400 and Inter to 400–500, and both are cut down to
   Latin plus the extended characters the copy actually needs (the macrons in
   "Kōhī", the acute in "café", em dashes and smart quotes).

   403 KB of upstream woff2 becomes ~135 KB, served same-origin, with no
   render-blocking request to a third party. Generated once — there is no build
   step. Re-run tools/build-fonts.py if the copy ever needs new characters.
   ========================================================================== */

/* --- Latin ---------------------------------------------------------------- */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00AE, U+00B0, U+00B7,
                 U+00BB, U+00C0-00FF, U+2013-2014, U+2018-2019, U+201C-201D,
                 U+2022, U+2026, U+2039-203A, U+20AC;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00AE, U+00B0, U+00B7,
                 U+00BB, U+00C0-00FF, U+2013-2014, U+2018-2019, U+201C-201D,
                 U+2022, U+2026, U+2039-203A, U+20AC;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00AE, U+00B0, U+00B7,
                 U+00BB, U+00C0-00FF, U+2013-2014, U+2018-2019, U+201C-201D,
                 U+2022, U+2026, U+2039-203A, U+20AC;
}

/* --- Latin Extended-A (ō, ī, š, ž, Œ …) ----------------------------------- */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-0101, U+012A-012B, U+014C-014D, U+0160-0161, U+0178,
                 U+017D-017E;
}

@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 400;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-0101, U+012A-012B, U+014C-014D, U+0160-0161, U+0178,
                 U+017D-017E;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-0101, U+012A-012B, U+014C-014D, U+0160-0161, U+0178,
                 U+017D-017E;
}
