/* =====================================================================
   HSR-Fonts — self-hosted brand fonts (Brand Kit V3.0)
   =====================================================================
   Two fonts, two jobs:
     Poppins  — every heading. Display / H1 / H2 / H3.
     Inter    — body copy and all UI.
     Lato     — legacy fallback only. Not loaded; named in the stack so old
                inline styles that ask for it degrade sensibly.

   WHY THIS FILE EXISTS
   On HFT, Elementor's font manager was the ONLY loader for the body typeface.
   Uninstalling Elementor would have silently changed the font of the entire
   site. It was the single thing that came closest to breaking that migration.
   This file removes that dependency here BEFORE it can bite: the theme owns
   its typography end to end, so Elementor can be removed without touching a
   single glyph.

   SOW gate: "Fonts self-hosted (WS2) before WS12."

   ── 🔴 POPPINS IS NOT IN THIS BUILD ───────────────────────────────────────
   Inter shipped (see assets/fonts/inter-var.woff2, sourced from the copy
   already on this server under wp-content/themes/twentytwentyfour — SIL Open
   Font License, LICENSE bundled alongside it).

   Poppins could NOT be fetched: this build ran in a sandbox with no access to
   Google Fonts, npm or PyPI. `poppins-var.woff2` is therefore MISSING and the
   @font-face below points at a file that does not exist yet.

   THIS IS SAFE AND DELIBERATE. A missing @font-face src is a no-op: the
   browser silently falls through the stack to Inter, which is loaded. Headings
   render in Inter until the file lands — visibly a little different, not
   broken.

   TO COMPLETE IT (one step, ~2 minutes, do it before WS3 ships the header):
     1. https://fonts.google.com/specimen/Poppins → "Get font" → download.
        Or, better, the variable build:
        https://github.com/itfoundry/Poppins  (SIL OFL 1.1)
        Or fontsource: https://www.npmjs.com/package/@fontsource/poppins
     2. Convert/collect a LATIN-SUBSET variable woff2, weights 400–800.
     3. Save it as: assets/fonts/poppins-var.woff2
     4. Save its OFL licence next to it as: assets/fonts/poppins-LICENSE.txt
     5. Bump HSR_VERSION. filemtime cache-busting will do the rest.

   If a variable build is inconvenient, static weights work — replace the
   single @font-face below with one per weight (400, 600, 700, 800) and drop
   the `font-weight: 400 800;` range.

   ── Notes ─────────────────────────────────────────────────────────────────
   font-display:swap everywhere, so text paints immediately in the fallback and
   swaps when the file arrives. Never `block` — on a phone, on a slow
   connection, that is a blank screen.

   Inter here is the FULL unicode variable build (~327 KB) because that is the
   copy already on the server. Subsetting it to latin + latin-ext would cut it
   to roughly 100 KB. Worth doing in WS13's perf pass; not worth blocking on.
   ===================================================================== */

/* 2026-08-04 session 16 -- Poppins is now SELF-HOSTED, closing the font half
   of blocker #2. It used to point at ../fonts/poppins-var.woff2, which 404'd,
   so headings silently fell through to Inter and real Poppins only ever came
   from Elementor's Google Fonts link -- i.e. it would have vanished at WS12.
   Google Fonts does not publish a VARIABLE Poppins, so this is four static
   weights (400/600/700/800), exactly as this file's own notes proposed.
   The files live in the CHILD theme because the WP theme editor cannot create
   files and replacing the whole parent theme to add four fonts is not a trade
   worth making. Absolute paths, so the parent stylesheet resolves them. */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('/wp-content/themes/homeschool-reports-child/assets/fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url('/wp-content/themes/homeschool-reports-child/assets/fonts/poppins-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url('/wp-content/themes/homeschool-reports-child/assets/fonts/poppins-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url('/wp-content/themes/homeschool-reports-child/assets/fonts/poppins-800.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/inter-var.woff2') format('woff2-variations');
}
