/* AllArounder self-hosted brand fonts: Rubik + Assistant, hebrew + latin
 * subsets, served same-origin. Replaces the Google Fonts css2 request on
 * brand pages, so the fonts start downloading with the page instead of after
 * two external round-trips - fixes the multi-second system-font flash (FOUT)
 * Nave reported 2026-07-17.
 *
 * Both families are VARIABLE fonts: one file per family+subset covers every
 * weight (Google served byte-identical files for each requested weight, so
 * the per-weight copies were deduplicated to these four). Total payload for
 * a Hebrew page: ~74KB across at most 4 cached-immutable files.
 *
 * Regeneration: T-tools/04-scripts/fetch-google-fonts.mjs against
 * https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700;800;900&family=Assistant:wght@300;400;600;700&display=swap
 * (then dedup by hash and keep one file per family+subset - see the script
 * header for the variable-font dedup note).
 */

/* Rubik - hebrew */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/assets/fonts/rubik-var-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* Rubik - latin */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/assets/fonts/rubik-var-latin.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;
}

/* Assistant - hebrew */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/assets/fonts/assistant-var-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* Assistant - latin */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(/assets/fonts/assistant-var-latin.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;
}

/* Heebo - the PORTAL design font (the public site uses Rubik + Assistant above).
 * Self-hosted 2026-08-30 for the same reason the other two are: the portal finance
 * page runs under a strict CSP with font-src 'self', so it physically cannot reach
 * fonts.gstatic.com. It asked for Heebo, got the system sans, and was the one portal
 * page whose header was rendered in a different typeface from every other page.
 * Variable font: one file per subset covers 300-900 (Google serves byte-identical
 * woff2 for every weight), matching the Rubik/Assistant dedup documented above.
 * Source: fonts.googleapis.com/css2?family=Heebo:wght@300..900 (v28).
 */

/* Heebo - hebrew */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/assets/fonts/heebo-var-hebrew.woff2) format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

/* Heebo - latin */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(/assets/fonts/heebo-var-latin.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;
}
