/* ============================================================================
   School theme — web fonts (Contao 5.7, no-build)
   ----------------------------------------------------------------------------
   100% LOCAL @font-face declarations. ZERO external URLs (the original
   open-sans loaded from Google in some setups — that is removed here).

   All files live under files/school/fonts/<family>/...; paths below are
   relative to this file (files/school/dist/), i.e. "../fonts/...".

   Families (mapped to the theme vars):
     Open Sans     -> --font-1  (body)      variable weight 300..800
     Ubuntu        -> --font-2  (headings)  weights 300/400/500/700
     Homemade Apple-> --font-3  (intro)     weight 400

   Strategy:
     - woff2 first (latin + latin-ext subsets), woff as a single fallback.
     - font-display: swap so text paints immediately with the fallback.
     - Open Sans / Homemade Apple use the variable-font woff2 the export ships;
       Ubuntu ships discrete per-weight woff2 files, declared individually.
     - Only latin + latin-ext subsets are wired up (this is a German/English
       school site). The export also contains cyrillic / greek / hebrew /
       vietnamese woff2 — add @font-face blocks for those if ever needed.
   ============================================================================ */


/* ===========================================================================
   OPEN SANS  (--font-1, body)  — variable font, weight axis 300..800
   The export ships OpenSans-VariableFont_wght(.woff2) per subset, plus
   discrete per-weight .woff files in open-sans/full/ used as the fallback.
   =========================================================================== */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans/latin/OpenSans-VariableFont_wght.woff2') format('woff2'),
       url('../fonts/open-sans/full/OpenSans-400.woff') format('woff');
  /* latin */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans/latin/OpenSans-VariableFont_wght-italic.woff2') format('woff2'),
       url('../fonts/open-sans/full/OpenSans-400-italic.woff') format('woff');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans/latin-ext/OpenSans-VariableFont_wght.woff2') format('woff2');
  /* latin-ext (German umlauts, Eastern-European diacritics, etc.) */
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans/latin-ext/OpenSans-VariableFont_wght-italic.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ===========================================================================
   UBUNTU  (--font-2, headings + nav)  — discrete weights 300/400/500/700
   latin + latin-ext woff2, with the matching open-weight .woff as fallback.
   =========================================================================== */

/* --- Ubuntu 300 (Light) --------------------------------------------------- */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/ubuntu/latin/Ubuntu-300.woff2') format('woff2'),
       url('../fonts/ubuntu/full/Ubuntu-300.woff') format('woff');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/ubuntu/latin/Ubuntu-300-italic.woff2') format('woff2'),
       url('../fonts/ubuntu/full/Ubuntu-300-italic.woff') format('woff');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/ubuntu/latin-ext/Ubuntu-300.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Ubuntu 400 (Regular) ------------------------------------------------- */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ubuntu/latin/Ubuntu-400.woff2') format('woff2'),
       url('../fonts/ubuntu/full/Ubuntu-400.woff') format('woff');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ubuntu/latin/Ubuntu-400-italic.woff2') format('woff2'),
       url('../fonts/ubuntu/full/Ubuntu-400-italic.woff') format('woff');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ubuntu/latin-ext/Ubuntu-400.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Ubuntu 500 (Medium) -------------------------------------------------- */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ubuntu/latin/Ubuntu-500.woff2') format('woff2'),
       url('../fonts/ubuntu/full/Ubuntu-500.woff') format('woff');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ubuntu/latin/Ubuntu-500-italic.woff2') format('woff2'),
       url('../fonts/ubuntu/full/Ubuntu-500-italic.woff') format('woff');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ubuntu/latin-ext/Ubuntu-500.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Ubuntu 700 (Bold) ---------------------------------------------------- */
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ubuntu/latin/Ubuntu-700.woff2') format('woff2'),
       url('../fonts/ubuntu/full/Ubuntu-700.woff') format('woff');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ubuntu/latin/Ubuntu-700-italic.woff2') format('woff2'),
       url('../fonts/ubuntu/full/Ubuntu-700-italic.woff') format('woff');
}
@font-face {
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/ubuntu/latin-ext/Ubuntu-700.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
                 U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


/* ===========================================================================
   HOMEMADE APPLE  (--font-3, intro / accent script)  — weight 400 only
   =========================================================================== */
@font-face {
  font-family: 'Homemade Apple';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/homemade-apple/latin/HomemadeApple-400.woff2') format('woff2'),
       url('../fonts/homemade-apple/full/HomemadeApple-400.woff') format('woff');
  /* latin */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193,
                 U+2212, U+2215, U+FEFF, U+FFFD;
}
