/*
 * Self-hosted fonts — works in China, no Google Fonts CDN needed, and
 * (2026-07-19, Olivier: "links to google reduces site speed, remove
 * them, only use local fonts in the font/ folder") no external request
 * at all anymore, on any page.
 * Files live in fonts/
 * Usage: <link rel="stylesheet" href="fonts.css">
 *
 * Covers every font-family actually used in the site's CSS (checked via
 * grep across all pages, 2026-07-19):
 *   - Nunito 400/600/700/800/900 — main body font, used everywhere
 *   - Fredoka One 400          — rounded heading font (dashboard,
 *                                 register, start, student-profile, etc.)
 *   - Dancing Script 700       — script "Turtelino" wordmark, used widely
 *   - Baloo 2 600/700/800      — index.html hero heading only
 * Cinzel was loaded on ~26 pages via Google Fonts but never actually
 * referenced by any font-family rule anywhere on the site (confirmed via
 * grep) — dropped entirely rather than self-hosted, since nothing uses
 * it. One less font family to even think about.
 *
 * Every font-family declaration in the site's CSS already ends in a
 * generic fallback (sans-serif/cursive/Georgia/etc.), so font-display:
 * swap here means a page never looks "broken" even in the short window
 * before a file below actually exists locally — it just shows the
 * fallback font until the real file is in place.
 */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/nunito-latin-400-normal.woff2') format('woff2'),
       url('fonts/nunito-latin-400-normal.woff')  format('woff');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/nunito-latin-600-normal.woff2') format('woff2'),
       url('fonts/nunito-latin-600-normal.woff')  format('woff');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/nunito-latin-700-normal.woff2') format('woff2'),
       url('fonts/nunito-latin-700-normal.woff')  format('woff');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/nunito-latin-800-normal.woff2') format('woff2'),
       url('fonts/nunito-latin-800-normal.woff')  format('woff');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/nunito-latin-900-normal.woff2') format('woff2'),
       url('fonts/nunito-latin-900-normal.woff')  format('woff');
}

/* ── Fredoka One (single weight, 400/regular) ────────────────────────
   2026-07-19: files not downloaded yet — Olivier is grabbing these from
   Google Webfonts Helper (https://gwfh.mranftl.com/fonts/fredoka-one)
   and dropping them straight into fonts/, same convention as the Nunito
   files above. Safe to ship this rule ahead of the files existing:
   every .logo-name/h3/etc. that uses 'Fredoka One' already lists
   ,sans-serif as a fallback, so a missing file just means the fallback
   shows until the file lands — never a broken/blank heading. */
@font-face {
  font-family: 'Fredoka One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/fredokaone-latin-400-normal.woff2') format('woff2'),
       url('fonts/fredokaone-latin-400-normal.woff')  format('woff');
}

/* ── Dancing Script (weight 700 only — the "Turtelino" script wordmark) */
@font-face {
  font-family: 'Dancing Script';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/dancingscript-latin-700-normal.woff2') format('woff2'),
       url('fonts/dancingscript-latin-700-normal.woff')  format('woff');
}

/* ── Baloo 2 (index.html hero heading only — 600/700/800) ────────────── */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/baloo2-latin-600-normal.woff2') format('woff2'),
       url('fonts/baloo2-latin-600-normal.woff')  format('woff');
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/baloo2-latin-700-normal.woff2') format('woff2'),
       url('fonts/baloo2-latin-700-normal.woff')  format('woff');
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/baloo2-latin-800-normal.woff2') format('woff2'),
       url('fonts/baloo2-latin-800-normal.woff')  format('woff');
}
