/* Self-hosted display font (CEO choice B, 2026-10-22). See fonts/cormorant-garamond/README.md.
 * Pages opt in through --arcana-font-display; Crystal Ball (frozen) does not load this file. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond/CormorantGaramond-latin-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215;
}
:root { --arcana-font-display: "Cormorant Garamond", "Cormorant Fallback Iowan", "Cormorant Fallback Palatino", "Cormorant Fallback Georgia", "Cormorant Fallback Times", "Cormorant Fallback Nimbus", "Cormorant Fallback Liberation", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; }

/* #609 CLS (G): metric-matched local fallbacks. While Cormorant Garamond downloads the hero title wrapped differently in
 * the platform serif (+45 px at 390 px), so everything below it jumped when the font swapped in (Home CLS 0.043).
 * size-adjust = Cormorant avg width / fallback avg width (measured on the site's own strings, weight 500); ascent/descent
 * overrides keep the line box. The visible font is still Cormorant once loaded; these faces only hold the space. */
@font-face { font-family: "Cormorant Fallback Iowan"; src: local("Iowan Old Style"); size-adjust: 88.00%; ascent-override: 104.5%; descent-override: 33.0%; line-gap-override: 0%; }
@font-face { font-family: "Cormorant Fallback Palatino"; src: local("Palatino"); size-adjust: 88.45%; ascent-override: 104.0%; descent-override: 32.8%; line-gap-override: 0%; }
@font-face { font-family: "Cormorant Fallback Georgia"; src: local("Georgia"); size-adjust: 88.57%; ascent-override: 103.9%; descent-override: 32.7%; line-gap-override: 0%; }
@font-face { font-family: "Cormorant Fallback Times"; src: local("Times New Roman"); size-adjust: 97.33%; ascent-override: 94.5%; descent-override: 29.8%; line-gap-override: 0%; }

/* Linux serif substitutes need the same metric correction as Times. Without an
 * explicit local face the mobile hero wraps for one frame before the webfont. */
@font-face { font-family: "Cormorant Fallback Nimbus"; src: local("Nimbus Roman"); size-adjust: 97.33%; ascent-override: 94.5%; descent-override: 29.8%; line-gap-override: 0%; }
@font-face { font-family: "Cormorant Fallback Liberation"; src: local("Liberation Serif"); size-adjust: 97.33%; ascent-override: 94.5%; descent-override: 29.8%; line-gap-override: 0%; }

/* Wave 3 languages (#609, infrastructure only; no language is active yet, so nothing below applies to a live page).
 * CJK: NO webfont. A usable Noto CJK subset is 1-4 MB per script and the CSP is font-src 'self', so every CJK page would pay the download
 * (LCP/CLS) for a title. Pages use the platform's own CJK faces, chosen per script by :lang(). Cormorant stays first for Latin digits and
 * brand words; its unicode-range is Latin-only, so CJK glyphs fall through to the first installed face of the list.
 * Cyrillic (uk): Cormorant's subset is Latin-only, so Ukrainian falls through to the existing stack (Georgia / Times New Roman have Cyrillic);
 * a self-hosted OFL Cormorant Cyrillic subset is optional work at activation, decided by the CLS gate. Latin Extended-A (pl, tr) is inside the
 * existing unicode-range (U+0100-017F covers ł ą ę ś ź ż ğ ş İ ı). */
:root:lang(ja) { --arcana-font-display: "Cormorant Garamond", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", "Noto Serif JP", "MS PMincho", serif; }
:root:lang(ko) { --arcana-font-display: "Cormorant Garamond", "AppleMyungjo", "Nanum Myeongjo", "Noto Serif CJK KR", "Noto Serif KR", "Batang", serif; }
:root:lang(zh-Hans) { --arcana-font-display: "Cormorant Garamond", "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "SimSun", serif; }
:root:lang(ja) body { font-family: Inter, ui-sans-serif, system-ui, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans CJK JP", "Noto Sans JP", "Meiryo", sans-serif; }
:root:lang(ko) body { font-family: Inter, ui-sans-serif, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Noto Sans KR", sans-serif; }
:root:lang(zh-Hans) body { font-family: Inter, ui-sans-serif, system-ui, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif; }
/* CJK has no word spaces and no case: tracking and forced breaks that suit Latin headings read as broken text. The brand wordmark keeps its tracking. */
:root:lang(ja) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(ko) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(zh-Hans) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand) { letter-spacing: normal; text-transform: none; }
:root:lang(ja) :is(h1, h2, h3, p, li), :root:lang(zh-Hans) :is(h1, h2, h3, p, li) { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
:root:lang(ko) :is(h1, h2, h3, p, li) { word-break: keep-all; overflow-wrap: break-word; }

/* Wave 3b (#609, owner list of 32 languages, 01.11): Traditional Chinese (TW, HK), Greek, Thai, Hindi and the RTL group (Arabic, Hebrew, Persian).
 * Same rule: no webfont, platform faces per script, nothing applies until a language is active. :lang(zh-Hant) covers zh-Hant-TW and zh-Hant-HK;
 * the HK rule comes after it so Hong Kong glyph forms win. Greek uses the existing stack (Georgia / Times New Roman include Greek).
 * Arabic-script and Indic text joins letters: letter-spacing MUST be normal there (tracking breaks the connected forms). */
:root:lang(zh-Hant) { --arcana-font-display: "Cormorant Garamond", "Songti TC", "STSong", "Noto Serif CJK TC", "Noto Serif TC", "PMingLiU", serif; }
:root:lang(zh-Hant-HK) { --arcana-font-display: "Cormorant Garamond", "Songti TC", "Noto Serif CJK HK", "Noto Serif HK", "MingLiU_HKSCS", "PMingLiU", serif; }
:root:lang(zh-Hant) body { font-family: Inter, ui-sans-serif, system-ui, "PingFang TC", "Heiti TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", sans-serif; }
:root:lang(zh-Hant-HK) body { font-family: Inter, ui-sans-serif, system-ui, "PingFang HK", "Microsoft JhengHei", "Noto Sans CJK HK", "Noto Sans HK", sans-serif; }
:root:lang(th) body { font-family: Inter, ui-sans-serif, system-ui, "Thonburi", "Sukhumvit Set", "Leelawadee UI", "Noto Sans Thai", sans-serif; }
:root:lang(hi) body { font-family: Inter, ui-sans-serif, system-ui, "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", sans-serif; }
:root:lang(ar) body { font-family: ui-sans-serif, system-ui, "Geeza Pro", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif; }
:root:lang(fa) body { font-family: ui-sans-serif, system-ui, "Geeza Pro", "Vazirmatn", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif; }
:root:lang(he) body { font-family: Inter, ui-sans-serif, system-ui, "Arial Hebrew", "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif; }
:root:lang(zh-Hant) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(th) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(hi) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(ar) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button, a, span):not(.brand),
:root:lang(fa) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button, a, span):not(.brand),
:root:lang(ur) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button, a, span):not(.brand),
:root:lang(pa-Arab) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button, a, span):not(.brand),
:root:lang(he) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand) { letter-spacing: normal; text-transform: none; }
:root:lang(zh-Hant) :is(h1, h2, h3, p, li) { line-break: strict; word-break: normal; overflow-wrap: anywhere; }
:root:lang(th) :is(h1, h2, h3, p, li) { word-break: normal; overflow-wrap: break-word; }

/* Wave 4 (#609, master list C): scripts of the 33 added languages. Same rule as above: no webfont, platform faces per script, nothing applies
 * until a page carries that lang. :lang(hi) already covers Devanagari for Hindi; bho, mr and ne get their own selector so the readiness test can pin each.
 * Latin-Extended (af az bs et eu fil gl hr is lt lv ms sk sl sr-Latn sw zu) and Cyrillic (bg mk, like uk) use the existing stack; no rule is needed,
 * the audit item is that Cormorant's Latin subset lacks some diacritics (ė ų ļ ŗ ə ğ ș ț ǆ) and Georgia / Times New Roman supply them. */
:root:lang(am) body { font-family: Inter, ui-sans-serif, system-ui, "Kefa", "Abyssinica SIL", "Nyala", "Noto Sans Ethiopic", sans-serif; }
:root:lang(bn) body { font-family: Inter, ui-sans-serif, system-ui, "Kohinoor Bangla", "Bangla Sangam MN", "Nirmala UI", "Vrinda", "Noto Sans Bengali", sans-serif; }
:root:lang(gu) body { font-family: Inter, ui-sans-serif, system-ui, "Kohinoor Gujarati", "Gujarati Sangam MN", "Nirmala UI", "Shruti", "Noto Sans Gujarati", sans-serif; }
:root:lang(kn) body { font-family: Inter, ui-sans-serif, system-ui, "Kannada Sangam MN", "Nirmala UI", "Tunga", "Noto Sans Kannada", sans-serif; }
:root:lang(ml) body { font-family: Inter, ui-sans-serif, system-ui, "Malayalam Sangam MN", "Nirmala UI", "Kartika", "Noto Sans Malayalam", sans-serif; }
:root:lang(or) body { font-family: Inter, ui-sans-serif, system-ui, "Oriya Sangam MN", "Nirmala UI", "Kalinga", "Noto Sans Oriya", sans-serif; }
:root:lang(ta) body { font-family: Inter, ui-sans-serif, system-ui, "Tamil Sangam MN", "InaiMathi", "Nirmala UI", "Latha", "Noto Sans Tamil", sans-serif; }
:root:lang(te) body { font-family: Inter, ui-sans-serif, system-ui, "Kohinoor Telugu", "Telugu Sangam MN", "Nirmala UI", "Gautami", "Noto Sans Telugu", sans-serif; }
:root:lang(bho) body { font-family: Inter, ui-sans-serif, system-ui, "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", sans-serif; }
:root:lang(mr) body { font-family: Inter, ui-sans-serif, system-ui, "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", sans-serif; }
:root:lang(ne) body { font-family: Inter, ui-sans-serif, system-ui, "Kohinoor Devanagari", "Nirmala UI", "Noto Sans Devanagari", sans-serif; }
:root:lang(pa):not(:lang(pa-Arab)) body { font-family: Inter, ui-sans-serif, system-ui, "Gurmukhi MN", "Gurmukhi Sangam MN", "Nirmala UI", "Raavi", "Noto Sans Gurmukhi", sans-serif; }
:root:lang(ur) body, :root:lang(pa-Arab) body { font-family: ui-sans-serif, system-ui, "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; }
:root:lang(am) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(bn) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(gu) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(kn) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(ml) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(or) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(ta) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(te) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(bho) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(mr) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(ne) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(pa) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button):not(.brand),
:root:lang(ur) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button, a, span):not(.brand),
:root:lang(pa-Arab) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button, a, span):not(.brand) { letter-spacing: normal; text-transform: none; }
/* Nastaliq has tall, deeply descending glyphs; the Latin line-height clips them. */
:root:lang(ur) :is(p, li, h1, h2, h3, label, button), :root:lang(pa-Arab) :is(p, li, h1, h2, h3, label, button) { line-height: 1.9; }
/* Ethiopic, Indic and Tamil scripts stack marks above/below the line: no tight display line-height. */
:root:lang(am) :is(h1, h2, h3),
:root:lang(bn) :is(h1, h2, h3),
:root:lang(gu) :is(h1, h2, h3),
:root:lang(kn) :is(h1, h2, h3),
:root:lang(ml) :is(h1, h2, h3),
:root:lang(or) :is(h1, h2, h3),
:root:lang(ta) :is(h1, h2, h3),
:root:lang(te) :is(h1, h2, h3),
:root:lang(hi) :is(h1, h2, h3),
:root:lang(bho) :is(h1, h2, h3),
:root:lang(mr) :is(h1, h2, h3),
:root:lang(ne) :is(h1, h2, h3) { line-height: 1.35; }
/* RTL typography (#609 G, Wave 3b). Platform faces only: the CSP is font-src 'self' and a usable Arabic / Hebrew / Nastaliq webfont is 0.3-2 MB.
 * Cormorant stays first in the display stacks for Latin digits and brand words (its unicode-range is Latin only), then the script's own
 * serif. Each stack names the face that ships with macOS / iOS, Windows, Android and Linux in that order, so every platform has one.
 *   ar, fa  Naskh:    Geeza Pro (Apple) - Segoe UI / Traditional Arabic (Windows) - Noto Naskh Arabic (Android, Linux) - Amiri
 *   he      Hebrew:   Arial Hebrew (Apple) - David / Segoe UI (Windows) - Noto Serif Hebrew / Noto Sans Hebrew
 *   ur, pa-Arab (Shahmukhi)  Nastaliq: Nastaliq Navees (Apple) - Urdu Typesetting (Windows) - Noto Nastaliq Urdu (Android, Linux) - Jameel Noori
 *            Nastaleeq; falls back to Naskh when no Nastaliq face is installed (readable, less calligraphic).
 * Arabic script joins letters, so tracking is off (see above) and italics are never synthesised: a slanted Arabic or Hebrew line is a
 * fake style. Nastaliq stacks its lines diagonally and needs about twice the line height of Latin; Naskh needs a little more than Latin. */
:root:lang(ar) { --arcana-font-display: "Cormorant Garamond", "Geeza Pro", "Noto Naskh Arabic", "Amiri", "Traditional Arabic", "Segoe UI", "Times New Roman", serif; }
:root:lang(fa) { --arcana-font-display: "Cormorant Garamond", "Geeza Pro", "Vazirmatn", "Noto Naskh Arabic", "Amiri", "Traditional Arabic", "Segoe UI", "Times New Roman", serif; }
:root:lang(he) { --arcana-font-display: "Cormorant Garamond", "Arial Hebrew", "Noto Serif Hebrew", "David", "Segoe UI", "Times New Roman", serif; }
:root:lang(ur), :root:lang(pa-Arab) { --arcana-font-display: "Cormorant Garamond", "Nastaliq Navees", "Urdu Typesetting", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Alvi Nastaleeq", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", serif; }
:root:lang(ur) body, :root:lang(pa-Arab) body { font-family: ui-sans-serif, system-ui, "Nastaliq Navees", "Urdu Typesetting", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Alvi Nastaleeq", "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; }
:root:is(:lang(ar), :lang(fa)) :is(p, li, label, figcaption, blockquote) { line-height: 1.8; }
:root:is(:lang(ur), :lang(pa-Arab)) :is(p, li, label, figcaption, blockquote) { line-height: 2.15; }
:root:is(:lang(ur), :lang(pa-Arab)) :is(h1, h2, h3, h4) { line-height: 1.95; }
:root:is(:lang(ar), :lang(fa), :lang(he), :lang(ur), :lang(pa-Arab)) * { font-style: normal !important; }
:root:is(:lang(ar), :lang(fa), :lang(he), :lang(ur), :lang(pa-Arab)) :is(h1, h2, h3, h4, h5, h6, p, li, label, legend, figcaption, blockquote, button) { hyphens: none; word-break: normal; }
