/* @pivotal/ui-theme — fonts.css
 *
 * The one font folder for every app (fonts/, with licenses; see fonts/LICENSES.md).
 * Lifted from zohar/public/style.css (the same set as Shnayim Mikra). Load after tokens.css.
 *
 * Default Hebrew face (--f-he in tokens.css) is Taamey Frank. SBL Hebrew is
 * non-commercial-only and is never in a fallback chain: it loads only when chosen.
 *
 * data-font="<id>" on the root (or any element) switches --f-he; ids match FONTS in index.js.
 * data-cfont="rashi" (shulchan) or data-tfont="rashi" (zohar, tehillim) switches the
 * commentary/translation face --f-text to the Rashi face.
 */

@font-face { font-family: 'Taamey Frank'; src: url('fonts/TaameyFrankCLM-Medium.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Noto Serif Hebrew'; src: url('fonts/NotoSerifHebrew.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Keter YG'; src: url('fonts/KeterYG-Medium.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Shofar'; src: url('fonts/ShofarRegular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Cardo'; src: url('fonts/Cardo-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Frank Ruhl Libre'; src: url('fonts/FrankRuhlLibre.ttf') format('truetype'); font-weight: 300 900; font-display: swap; }
@font-face { font-family: 'David Libre'; src: url('fonts/DavidLibre-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'SBL Hebrew'; src: url('fonts/SBL_Hbrw.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Ezra SIL'; src: url('fonts/EzraSIL.ttf') format('truetype'); font-display: swap; size-adjust: 86%; }
@font-face { font-family: 'Noto Rashi Hebrew'; src: url('fonts/NotoRashiHebrew.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

/* The Hebrew text face, by id. */
[data-font="frank"]     { --f-he: 'Taamey Frank', 'Noto Serif Hebrew', serif; }
[data-font="keter"]     { --f-he: 'Keter YG', 'Taamey Frank', serif; }
[data-font="ezra"]      { --f-he: 'Ezra SIL', 'Taamey Frank', serif; }
[data-font="shofar"]    { --f-he: 'Shofar', 'Taamey Frank', serif; }
[data-font="frankruhl"] { --f-he: 'Frank Ruhl Libre', 'Taamey Frank', serif; }
[data-font="david"]     { --f-he: 'David Libre', 'Taamey Frank', serif; }
[data-font="cardo"]     { --f-he: 'Cardo', 'Taamey Frank', serif; }
[data-font="noto"]      { --f-he: 'Noto Serif Hebrew', 'Taamey Frank', serif; }
[data-font="sbl"]       { --f-he: 'SBL Hebrew', 'Taamey Frank', serif; }

/* The commentary / translation face: square (default, = --f-he) or Rashi. */
[data-cfont="rashi"], [data-tfont="rashi"] { --f-text: var(--f-rashi); }
