/* Version D v5 (v7: + the fallbacks at the end) — only the two families D uses (the shared /assets/fonts/fonts.css keeps every family for E).
   Heebo (variable, used at 400 / 700 / 900) for all text; Amatic SC 700 for the handwriting only
   (the addressee line and the signatures). Files: /assets/fonts/ (subsets from Google Fonts, OFL). */
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/heebo-hebrew.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: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/heebo-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;
}
@font-face {
  font-family: 'Amatic SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/amatic-sc-700-hebrew.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: 'Amatic SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/amatic-sc-700-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;
}
/* v9: the space and the punctuation of the handwriting ("משרד החינוך, ירושלים", "אלעד ס. מירושלים", "חתמתי. ואתם?"),
   cut from the latin file above (fontTools subset, 1.5KB) and preloaded with the Hebrew faces. Declared last, so it is
   the face checked first for these characters: the 27KB latin file is fetched only when Latin letters are written
   (a signature in Latin). Before, the addressee block was painted again when that file arrived, late (LCP). */
@font-face {
  font-family: 'Amatic SC';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/amatic-sc-700-punct.woff2) format('woff2');
  unicode-range: U+0020-0022, U+0027-0029, U+002C-002F, U+003A-003B, U+003F, U+00A0, U+2013-2014, U+2018-201D, U+2026;
}

/* v7: metric-matched fallbacks for Heebo, so text drawn before (or without) the webfont takes the same room and the
   swap moves no line. Widths measured on the Hebrew of the letter: Heebo is ~96% of Arial (its metric twins Liberation
   Sans / Arimo) and ~97% of Noto Sans Hebrew (Android); the vertical metrics are Heebo's own (ascent 1.048, descent
   .421, no line gap), divided by the size-adjust. A face whose local() fonts are all missing is skipped. */
@font-face {
  font-family: 'Heebo Fallback';
  font-weight: 100 600;
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo');
  size-adjust: 97%; ascent-override: 108%; descent-override: 43.4%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Heebo Fallback';
  font-weight: 700 900;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold');
  size-adjust: 95%; ascent-override: 110.3%; descent-override: 44.3%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Heebo Fallback N';
  font-weight: 100 600;
  src: local('Noto Sans Hebrew'), local('NotoSansHebrew-Regular'), local('Roboto');
  size-adjust: 96.8%; ascent-override: 108.3%; descent-override: 43.5%; line-gap-override: 0%;
}
@font-face {
  font-family: 'Heebo Fallback N';
  font-weight: 700 900;
  src: local('Noto Sans Hebrew Bold'), local('NotoSansHebrew-Bold'), local('Roboto Bold');
  size-adjust: 96.6%; ascent-override: 108.5%; descent-override: 43.6%; line-gap-override: 0%;
}
