/* Bookie Sans — the MARKETING homepage's faces, and no other screen's.
 * Loaded by the public landing template instead of heebo.css; every signed-in screen still
 * links heebo.css and is untouched by this file.
 *
 * WHAT IT IS: IBM Plex Sans Hebrew (Mike Abbink & Bold Monday for IBM Corp.), SIL Open Font
 * License 1.1, subset and RENAMED. The rename is not branding: OFL-FAQ 2.6 makes a
 * unicode-range webfont subset a Modified Version, and 2.7 only lets a Reserved Font Name
 * survive "Functional Equivalence", which a subset breaks by definition. "Plex" is IBM's RFN,
 * so naming IDs 1/2/3/4/6/16/17/18/21/22 read "Bookie Sans" while nameID 0 (IBM's copyright),
 * 13 (the licence) and 14 (its URL) are retained as OFL 2 requires. OFL.txt ships in
 * static/fonts/marketing/. Rationale and the cut recipe: docs/landing/03-design.md.
 *
 * THREE WEIGHTS, no 700. Plex's alef is 0.606 em tall against Heebo's 0.575, so 600 already
 * carries a 56px Hebrew headline. 33.7 KB for all six faces against Heebo's 68 KB for eight.
 *
 * The Latin range is ASCII plus exactly the punctuation this page uses. WHAT THAT COSTS,
 * stated rather than discovered: an accented Latin letter (facade with a cedilla) falls back
 * mid-word to the next family. The homepage's Latin is fixed, reviewed copy - "Bookie",
 * "Google Calendar", "Forest Technologies", an email address - so the trade is safe for this
 * page only. A new Latin string must be checked against the range.
 */

@font-face {
  font-family: 'Bookie Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/marketing/bookiesans-400-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: 'Bookie Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/marketing/bookiesans-400-latin.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00BB, U+00B0, U+00B7, U+00D7, U+2013-2014,
                U+2018-201A, U+201C-201E, U+2022, U+2026, U+2190, U+2192, U+FEFF;
}

@font-face {
  font-family: 'Bookie Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/marketing/bookiesans-500-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: 'Bookie Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/marketing/bookiesans-500-latin.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00BB, U+00B0, U+00B7, U+00D7, U+2013-2014,
                U+2018-201A, U+201C-201E, U+2022, U+2026, U+2190, U+2192, U+FEFF;
}

@font-face {
  font-family: 'Bookie Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/marketing/bookiesans-600-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: 'Bookie Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/marketing/bookiesans-600-latin.woff2) format('woff2');
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00BB, U+00B0, U+00B7, U+00D7, U+2013-2014,
                U+2018-201A, U+201C-201E, U+2022, U+2026, U+2190, U+2192, U+FEFF;
}

/* The metric-matched fallback, so `swap` is a colour change and not a reflow: CLS 0.
   Measured, not guessed. The mean advance of the 22 Hebrew letters is 0.5406 em in Bookie
   Sans and 0.5037 em in Arial Hebrew, so the fallback needs 107% to set the same line
   length; ascent and descent are then Bookie Sans's own hhea values divided by that scale
   (1.025/1.073 = 95.5%, 0.275/1.073 = 25.6%). Rendered side by side at 56/32/20/16/14px the
   two blocks break on the same words and end within ~1% of the same x.

   font-display is swap and never optional: on a cold mobile connection `optional` ships the
   whole page in Arial and nobody ever sees the face that was chosen. */
@font-face {
  font-family: 'Bookie Fallback';
  src: local('Arial Hebrew'), local('Arial'), local('Segoe UI'), local('Noto Sans Hebrew');
  size-adjust: 107%;
  ascent-override: 95.5%;
  descent-override: 25.6%;
  line-gap-override: 0%;
}
