/* Self-hosted webfonts. Latin (Literata) loads for everyone; Bengali/Devanagari
   faces are scoped with unicode-range so browsers only fetch them when a page
   actually contains those code points (per contract section 8). */

@font-face {
	font-family: 'Literata';
	src: url('../fonts/literata-latin-400-normal.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Literata';
	src: url('../fonts/literata-latin-400-italic.woff2') format('woff2');
	font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
	font-family: 'Literata';
	src: url('../fonts/literata-latin-500-normal.woff2') format('woff2');
	font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Literata';
	src: url('../fonts/literata-latin-600-normal.woff2') format('woff2');
	font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
	font-family: 'Literata';
	src: url('../fonts/literata-latin-700-normal.woff2') format('woff2');
	font-weight: 700; font-style: normal; font-display: swap;
}

/* Kalpurush — Amit's licensed Bengali display/reader face. Copied in at
   integration time from seed/fonts/kalpurush.woff2 (see
   spec/04_contract_changes.md, "Bengali reader font"). Declared first in the
   :lang(bn) stack so it's preferred once present; if the file is missing the
   browser silently falls through to Noto Serif Bengali below — no error. */
@font-face {
	font-family: 'Kalpurush';
	src: url('../fonts/kalpurush.woff2') format('woff2');
	font-weight: 400 700; font-style: normal; font-display: swap;
	unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}

@font-face {
	font-family: 'Noto Serif Bengali';
	src: url('../fonts/noto-serif-bengali-bengali-400-normal.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
	unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}
@font-face {
	font-family: 'Noto Serif Bengali';
	src: url('../fonts/noto-serif-bengali-bengali-700-normal.woff2') format('woff2');
	font-weight: 700; font-style: normal; font-display: swap;
	unicode-range: U+0980-09FF, U+200C-200D, U+20B9, U+25CC;
}

@font-face {
	font-family: 'Noto Serif Devanagari';
	src: url('../fonts/noto-serif-devanagari-devanagari-400-normal.woff2') format('woff2');
	font-weight: 400; font-style: normal; font-display: swap;
	unicode-range: U+0900-097F, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839;
}
@font-face {
	font-family: 'Noto Serif Devanagari';
	src: url('../fonts/noto-serif-devanagari-devanagari-700-normal.woff2') format('woff2');
	font-weight: 700; font-style: normal; font-display: swap;
	unicode-range: U+0900-097F, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839;
}

:root {
	--lore-font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	--lore-font-serif: 'Literata', Georgia, 'Source Serif 4', serif;
}
:lang(bn) { --lore-font-serif: 'Kalpurush', 'Noto Serif Bengali', 'Literata', serif; }
:lang(hi) { --lore-font-serif: 'Noto Serif Devanagari', 'Literata', serif; }
