/* Per-language fonts.
   Standard = body text, fancy = headings. The actual font for each language
   comes from Project X's fonts_project_x.json. Fonts are selected purely via
   the --font-standard / --font-fancy custom properties, which are switched by
   the <html lang> attribute (set by lang.js). English/French/Italian/Spanish/
   Brazilian Portuguese share the :root defaults. */

/* ----- Standard (body) fonts ----- */
@font-face { font-family: liberation_sans;               src: url("../fonts/standard/liberation_sans.ttf"); }
@font-face { font-family: pretendard;                    src: url("../fonts/standard/pretendard.ttf"); }
@font-face { font-family: un_bom;                        src: url("../fonts/standard/un_bom.ttf"); }
@font-face { font-family: noto_serif;                    src: url("../fonts/standard/noto_serif.ttf"); }
@font-face { font-family: source_han_serif_simplified;   src: url("../fonts/standard/source_han_serif_simplified.ttf"); }
@font-face { font-family: source_han_serif_traditional;  src: url("../fonts/standard/source_han_serif_traditional.ttf"); }

/* ----- Fancy (heading) fonts ----- */
@font-face { font-family: chapbook;   src: url("../fonts/fancy/chapbook.otf"); }
@font-face { font-family: postamt;    src: url("../fonts/fancy/postamt.ttf"); }
@font-face { font-family: reggae_one; src: url("../fonts/fancy/reggae_one.ttf"); }
@font-face { font-family: do_hyeon;   src: url("../fonts/fancy/do_hyeon.ttf"); }
@font-face { font-family: molot;      src: url("../fonts/fancy/molot.otf"); }

/* Defaults — English, French, Italian, Spanish, Brazilian Portuguese */
:root {
	--font-standard: liberation_sans;
	--font-fancy: chapbook;
}

/* Per-language overrides, keyed on the BCP-47 code lang.js writes to <html lang>. */
html[lang="de"]      { --font-fancy: postamt; }
html[lang="ja"]      { --font-standard: pretendard; --font-fancy: reggae_one; }
html[lang="ko"]      { --font-standard: un_bom;     --font-fancy: do_hyeon; }
html[lang="ru"]      { --font-standard: noto_serif; --font-fancy: molot; }
html[lang="zh-Hans"] { --font-standard: source_han_serif_simplified;  --font-fancy: source_han_serif_simplified; }
html[lang="zh-Hant"] { --font-standard: source_han_serif_traditional; --font-fancy: source_han_serif_traditional; }
