/* ── Alegreya — headings only (self-hosted, no Google CDN) ──────
   Coffee & Kraft heading face. Weight 500 only — every heading token
   resolves to 500 (see tokens.css).

   ⚠️ DO NOT REMOVE unicode-range.
   The files are Google-style subsets: *-cyrillic.woff2 contains ONLY
   Cyrillic (100 glyphs, zero Latin letters) and *-latin.woff2 contains
   ONLY Latin. unicode-range is what tells the browser which file covers
   which characters — it is not an optimisation, it is load-bearing.

   Removing it (2026-08-14) broke every browser: with a single src the
   browser fetches one subset and every character outside it — the whole
   Latin alphabet — falls back to Georgia / sans-serif. A second url() in
   src does NOT help: src is a format fallback list, not a character one,
   so the browser stops at the first file it can decode.

   Note also that src must list ONE url per @font-face here, because each
   subset needs its own unicode-range block. */

/* cyrillic */
@font-face {
  font-family: 'Alegreya';
  src: url('/fonts/Alegreya-500-cyrillic.woff2?v=2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin */
@font-face {
  font-family: 'Alegreya';
  src: url('/fonts/Alegreya-500-latin.woff2?v=2') format('woff2');
  font-weight: 500;
  font-style: normal;
  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;
}

/* ── Alegreya Sans — body & UI (self-hosted, no Google CDN) ─────
   Humanist sibling of Alegreya: headings and running text share one
   skeleton. Weights 400/500/700 + 400 italic.
   Same unicode-range rule as above applies to every block. */

/* 400 italic — cyrillic */
@font-face {
  font-family: 'Alegreya Sans';
  src: url('/fonts/AlegreyaSans-400italic-cyrillic.woff2?v=2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* 400 italic — latin */
@font-face {
  font-family: 'Alegreya Sans';
  src: url('/fonts/AlegreyaSans-400italic-latin.woff2?v=2') format('woff2');
  font-weight: 400;
  font-style: italic;
  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;
}

/* 400 — cyrillic */
@font-face {
  font-family: 'Alegreya Sans';
  src: url('/fonts/AlegreyaSans-400-cyrillic.woff2?v=2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* 400 — latin */
@font-face {
  font-family: 'Alegreya Sans';
  src: url('/fonts/AlegreyaSans-400-latin.woff2?v=2') format('woff2');
  font-weight: 400;
  font-style: normal;
  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;
}

/* 500 — cyrillic */
@font-face {
  font-family: 'Alegreya Sans';
  src: url('/fonts/AlegreyaSans-500-cyrillic.woff2?v=2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* 500 — latin */
@font-face {
  font-family: 'Alegreya Sans';
  src: url('/fonts/AlegreyaSans-500-latin.woff2?v=2') format('woff2');
  font-weight: 500;
  font-style: normal;
  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;
}

/* 700 — cyrillic */
@font-face {
  font-family: 'Alegreya Sans';
  src: url('/fonts/AlegreyaSans-700-cyrillic.woff2?v=2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* 700 — latin */
@font-face {
  font-family: 'Alegreya Sans';
  src: url('/fonts/AlegreyaSans-700-latin.woff2?v=2') format('woff2');
  font-weight: 700;
  font-style: normal;
  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;
}
