/* ============================================================
   TFE · Self-hosted webfonts (variable)
   Cormorant Garamond — variable wght axis 300–700 (we use 300–500)
   Manrope           — variable wght axis 200–800 (we use 400–600)
   One file per family + subset; the `font-weight: <min> <max>`
   range on each @font-face serves every weight in between from
   the single variable file. Subsets: latin + latin-ext (LV) +
   cyrillic (RU) — the browser picks the right file per glyph via
   unicode-range. Loaded BEFORE style.css so the font stacks
   resolve locally — no Google Fonts CDN request is ever made.

   NOTE: 'JetBrains Mono' inline declarations in legacy templates
   intentionally have NO alias here — they fall back to the system
   monospace stack until the Task 6 template sweep.
   ============================================================ */

/* ---------- Cormorant Garamond (display serif) ---------- */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/CormorantGaramond-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/CormorantGaramond-var-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: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/CormorantGaramond-var-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;
}

/* ---------- Manrope (UI / body) ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/Manrope-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/Manrope-var-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: 'Manrope';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/Manrope-var-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;
}

/* ============================================================
   LEGACY ALIASES — 'Barlow' / 'Barlow Condensed' → Manrope.
   The Task-6 public templates (produkts / kadra-auto / kubli /
   transports / grozs …) AND 20+ admin partials still declare the
   old shootix families in inline styles. Aliasing them to the
   local Manrope files keeps every page on brand type without a
   CDN. The 400–700 weight range maps the templates' 700/900
   requests onto the variable axis (clamped at 700 ≈ bold).

   LIFECYCLE: remove these aliases only after BOTH
     (a) the Task 6 public-template sweep replaces the inline
         'Barlow…' declarations with var(--font-ui), AND
     (b) a separate admin inline-style migration does the same
         for the admin partials — NOT currently scheduled.
   Removing them earlier silently drops admin typography to the
   generic sans-serif fallback.
   ============================================================ */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Manrope-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Manrope-var-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: 'Barlow';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Manrope-var-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: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Manrope-var-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Manrope-var-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: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/Manrope-var-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;
}
