/*
 * Self-hosted fonts for Hypnoerotica theme — "David Marius" identity.
 * Bilingual (Hebrew + Latin) per-glyph font fallback strategy via unicode-range:
 *
 *   Headings:  Work Sans (Latin)  +  Heebo (Hebrew, and Latin fallback)
 *   Body:      EB Garamond (Latin)  +  Frank Ruhl Libre (Hebrew, and Latin fallback)
 *
 * Work Sans + EB Garamond are restricted to Latin (unicode-range excludes
 * Hebrew U+0590-05FF) so Hebrew glyphs fall THROUGH to Heebo / Frank Ruhl.
 * Heebo carries the Hebrew (it is the primary Hebrew heading face).
 *
 * Files are Google Fonts variable woff2 subsets (one file covers the weight
 * range), self-hosted under assets/fonts/.
 */

/* ============================================================
   WORK SANS — Latin only (headings, Latin glyphs)
   unicode-range excludes Hebrew (U+0590-05FF) intentionally
   ============================================================ */
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/work-sans-latin-400.woff2') format('woff2');
  unicode-range: U+0000-058F, U+2000-20CF, U+2100-214F;
}

/* ============================================================
   EB GARAMOND — Latin only (body, Latin glyphs)
   unicode-range excludes Hebrew (U+0590-05FF) intentionally
   ============================================================ */
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/eb-garamond-latin-400.woff2') format('woff2');
  unicode-range: U+0000-058F, U+2000-20CF, U+2100-214F;
}

/* ============================================================
   HEEBO — Hebrew + Latin (heading Hebrew face / fallback)
   Hebrew subset declared first so it is matched for Hebrew glyphs;
   Latin subset covers Latin where Work Sans is absent.
   ============================================================ */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/heebo-hebrew-400.woff2') format('woff2'),
       url('../fonts/heebo-latin-400.woff2') format('woff2');
}

/* ============================================================
   RUBIK — rounded display face for HEADINGS (Hebrew + Latin).
   Two @font-face rules, one family, split by unicode-range so each
   glyph loads from its own subset (the Google Fonts pattern). Variable
   weight 300–900 in a single file per subset. Rounded corners add the
   warmth of the reference's Hebrew display type.
   ============================================================ */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/rubik-hebrew-var.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('../fonts/rubik-latin-var.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   FRANK RUHL LIBRE — Hebrew + Latin (body Hebrew face / fallback)
   Kept from the previous build; carries Hebrew body glyphs since
   EB Garamond is Latin-only.
   ============================================================ */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/frank-ruhl-libre-hebrew-400.woff2') format('woff2'),
       url('../fonts/frank-ruhl-libre-latin-400.woff2') format('woff2');
}

/* ============================================================
   ASSISTANT — Hebrew body face (clean modern sans, readable).
   Hebrew subset first (matched for Hebrew glyphs); Latin subset as
   fallback where Inter is absent.
   ============================================================ */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/assistant-hebrew-400.woff2') format('woff2'),
       url('../fonts/assistant-latin-400.woff2') format('woff2');
}

/* ============================================================
   INTER — Latin body face. Restricted to Latin so Hebrew falls
   through to Assistant.
   ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/inter-latin-400.woff2') format('woff2');
  unicode-range: U+0000-058F, U+2000-20CF, U+2100-214F;
}
