/*
 * Scripture typography. The SBL fonts are used for Bible text and nothing else.
 * Fonts are lossless WOFF2 conversions of the SBL TTFs (tools/ttf2woff2.js); glyph data is unchanged.
 * Licence terms: assets/fonts/LICENSE-SBL-FONTS.txt.
 * The browser picks the right face per character, so Hebrew quoted inside the text
 * falls through to SBL Hebrew automatically.
 */
@font-face {
	font-family: "SBL BibLit";
	src: url("../fonts/SBL_BLit.woff2") format("woff2");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "SBL Hebrew";
	src: url("../fonts/SBL_Hbrw.woff2") format("woff2");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0590-05FF, U+FB1D-FB4F;
}

:root {
	--tbe-scripture: "SBL BibLit", "SBL Hebrew", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

/* The ESV text in the reader, including its verse numbers. */
.tbe-text,
.tbe-text .tbe-vn,
.tbe-text .tbe-vt,
.tbe-text .tbe-line,
.tbe-text .tbe-para,
.tbe-text .tbe-para::first-letter {
	font-family: var(--tbe-scripture);
}

/* Bible quotations inside commentary: add the "Scripture" style to a Quote block,
   or the class tbe-scripture to any element. */
.tbe-scripture,
.wp-block-quote.is-style-scripture,
.wp-block-quote.is-style-scripture p,
.wp-block-quote.is-style-scripture cite {
	font-family: var(--tbe-scripture);
}
.wp-block-quote.is-style-scripture {
	border-inline-start: 3px solid var(--tbe-gold);
	padding-inline-start: 1.25rem;
}

/* Hebrew words in the interlinear: SBL Hebrew, nothing else. */
.tbe-il__he,
.tbe-il__lemma.tbe-il__he { font-family: "SBL Hebrew", "SBL BibLit", serif; }
.tbe-il__esv { font-family: var(--tbe-scripture); }
