/* Self-hosted Assistant + Rubik.
 *
 * Both are SIL Open Font License 1.1, which permits self-hosting and
 * redistribution — see fonts/OFL.txt.
 *
 * Both are variable fonts, so one file per family+subset covers the whole
 * weight range: 4 files, 80 KB total, instead of 14 files and 251 KB.
 *
 * Why self-hosted rather than fonts.googleapis.com:
 *   - removes a render-blocking cross-origin request on every page
 *   - removes two entries from the CSP (style-src and font-src)
 *   - removes a Cloudflare cache variable
 *   - the Latin subset never downloads for a Hebrew-only page, and vice
 *     versa, because unicode-range gates it
 *
 * The current site loads Roboto, which has no Hebrew glyphs at all — so
 * every Hebrew character silently falls back to whatever the OS provides
 * and the site renders differently on Windows, macOS and Android.
 */

/* ── Assistant — body / UI. Hebrew-first, holds up at 14–16px. ────── */

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/assistant-he.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/static/fonts/assistant-lat.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                 U+FFFD;
}

/* ── Rubik — headings and numerals. Excellent Hebrew display face. ── */

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/static/fonts/rubik-he.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/static/fonts/rubik-lat.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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF,
                 U+FFFD;
}
