/* ==========================================================================
   Euclid Square — Web Fonts
   Paths are relative to this file. Files live in: <theme-root>/fonts/
   If fonts.css is NOT at the theme root, adjust the url() prefix
   (e.g. '../fonts/' from a /css/ subfolder).

   src order: WebS (small) is preferred; WebXL is the load fallback.
   Note: this is a load/format fallback, not a per-glyph coverage fallback.
   For true missing-glyph fallback you'd split the families with unicode-range.
   ========================================================================== */

/* --- Light --------------------------------------------------------------- */
/* Covers 300 (light) + 400 (default body copy) so body text renders Light. */
@font-face {
  font-family: 'Euclid Square';
  font-style: normal;
  font-weight: 300 400;
  font-display: swap;
  src: url('../fonts/EuclidSquare-Light-WebS.woff2') format('woff2'),
       url('../fonts/EuclidSquare-Light-WebS.woff') format('woff'),
       url('../fonts/EuclidSquare-Light-WebXL.woff2') format('woff2'),
       url('../fonts/EuclidSquare-Light-WebXL.woff') format('woff'),
       url('../fonts/EuclidSquare-Light-WebS.ttf') format('truetype'),
       url('../fonts/EuclidSquare-Light-WebXL.ttf') format('truetype');
}

/* --- Semibold ------------------------------------------------------------ */
/* Covers 600 (semibold, as specified) + 700 (bold / <strong>). */
@font-face {
  font-family: 'Euclid Square';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../fonts/EuclidSquare-Semibold-WebS.woff2') format('woff2'),
       url('../fonts/EuclidSquare-Semibold-WebS.woff') format('woff'),
       url('../fonts/EuclidSquare-Semibold-WebXL.woff2') format('woff2'),
       url('../fonts/EuclidSquare-Semibold-WebXL.woff') format('woff'),
       url('../fonts/EuclidSquare-Semibold-WebS.ttf') format('truetype'),
       url('../fonts/EuclidSquare-Semibold-WebXL.ttf') format('truetype');
}

/* --- Variable override --------------------------------------------------- */
/* Must load AFTER the stylesheet that defines --font-primary. */
:root {
  --font-primary: 'Euclid Square', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
