/* ============================================================
   Self-hosted webfonts — Mulish (body) and Poppins (display).

   Replaces the render-blocking cross-origin request to
   fonts.googleapis.com. That request cost ~772 ms on mobile: the
   browser had to resolve DNS, complete a TLS handshake and fetch the
   CSS from googleapis before it could even discover the woff2 files
   on a *second* origin (gstatic). Served from our own origin, the
   connection is already open and the files are one hop away.

   Note this is a performance and privacy change, NOT a cookie one —
   Google Fonts sets no cookies. It does expose the visitor's IP to
   Google, which this removes; the consent banner is for GTM/GA4/Ads/
   Meta/TikTok and is unaffected.

   ## Regenerating

   Only the `latin` and `latin-ext` subsets are carried. Google serves
   six (adding cyrillic, cyrillic-ext, devanagari, vietnamese) which is
   37 files; this site is Swedish and English, so 10 cover it. The
   `unicode-range` values are kept verbatim, so a page containing a
   character outside these ranges simply falls back rather than
   rendering wrong.

   To refresh, re-run the download against the same family string:

     https://fonts.googleapis.com/css2?family=Mulish:wght@200..1000
       &family=Poppins:ital,wght@0,500;0,600;0,700;1,400&display=swap

   Mulish comes back as ONE variable file per subset. Poppins does not —
   Google serves it as static instances, so it keeps a face per weight.

   ⚠️ Keep the face list in step with the callers. This file is linked
   from src/layouts/BaseLayout.astro, public/header.html and the six
   public/blog/<category>/index.html pages — the same three places the
   Google Fonts URL used to live.
============================================================ */

/* ============================================================
   Mulish is a VARIABLE font — one file covers 200..1000.

   ⚠️ Do not go back to one @font-face per weight. This file used to
   declare Mulish five times (400/500/600/700/800), each pointing at a
   *separate* filename — and all five files were byte-identical, because
   Google serves Mulish as a single variable font whatever weights you
   ask for in the family string. So a page using four weights fetched
   the same 30 kB four times over, at VeryHigh priority, on the critical
   render path. The homepage did exactly that: 5 requests, 150 kB, where
   1 request and 30 kB renders identically.

   Declaring the wght range instead makes the browser instantiate any
   weight in it from this one file, so adding a weight to the design
   costs no extra bytes.
============================================================ */

/* Mulish variable — latin-ext */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 200 1000;
  src: url('/fonts/mulish-variable-latin-ext.woff2') format('woff2');
  font-display: swap;
  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;
}

/* Mulish variable — latin */
@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 200 1000;
  src: url('/fonts/mulish-variable-latin.woff2') format('woff2');
  font-display: swap;
  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;
}

/* Poppins 400 italic — latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400-italic-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;
}
/* Poppins 400 italic — latin */
@font-face {
  font-family: 'Poppins';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/poppins-400-italic-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;
}
/* Poppins 500 — latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-500-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;
}
/* Poppins 500 — latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/poppins-500-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;
}
/* Poppins 600 — latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600-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;
}
/* Poppins 600 — latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/poppins-600-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;
}
/* Poppins 700 — latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-700-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;
}
/* Poppins 700 — latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/poppins-700-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;
}
