/* The app's own fonts (Jelli/Jelli/Fonts in the app repo; OFL, licenses in /fonts/licenses/), one family per script as the
   app picks them (DesignSystem/JelliTypography.swift): Outfit for headings and Onest for text in Latin scripts, Onest for
   Cyrillic and Vietnamese (Outfit has neither), Readex Pro for Arabic and Urdu, Poppins for Hindi, the system's for CJK.
   Outfit and Onest are split (fontTools subset) into Latin and the rest: a browser fetches a half only for text that needs it.
   Latin stays second: where ranges overlap, the last face declared is checked first. */
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Light.rest.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0100-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0130, U+0132-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-0151, U+0154-015B, U+015E-0161, U+0164-0165, U+016A-017E, U+01CD-01CE, U+0218-021B, U+0237, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+0300-0303, U+0306-0307, U+030A-030C, U+0312, U+0326-0328, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2074, U+2120, U+FB01-FB02; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Light.latin.woff2") format("woff2"); font-weight: 300; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+21BA, U+2212, U+2215, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Regular.rest.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0130, U+0132-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-0151, U+0154-015B, U+015E-0161, U+0164-0165, U+016A-017E, U+01CD-01CE, U+0218-021B, U+0237, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+0300-0303, U+0306-0307, U+030A-030C, U+0312, U+0326-0328, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2074, U+2120, U+FB01-FB02; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Regular.latin.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+21BA, U+2212, U+2215, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Medium.rest.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0130, U+0132-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-0151, U+0154-015B, U+015E-0161, U+0164-0165, U+016A-017E, U+01CD-01CE, U+0218-021B, U+0237, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+0300-0303, U+0306-0307, U+030A-030C, U+0312, U+0326-0328, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2074, U+2120, U+FB01-FB02; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Medium.latin.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+21BA, U+2212, U+2215, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-SemiBold.rest.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0130, U+0132-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-0151, U+0154-015B, U+015E-0161, U+0164-0165, U+016A-017E, U+01CD-01CE, U+0218-021B, U+0237, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+0300-0303, U+0306-0307, U+030A-030C, U+0312, U+0326-0328, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2074, U+2120, U+FB01-FB02; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-SemiBold.latin.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+21BA, U+2212, U+2215, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Bold.rest.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-0107, U+010A-0113, U+0116-011B, U+011E-0123, U+0126-0127, U+012A-012B, U+012E-0130, U+0132-0133, U+0136-0137, U+0139-013E, U+0141-0148, U+014A-014D, U+0150-0151, U+0154-015B, U+015E-0161, U+0164-0165, U+016A-017E, U+01CD-01CE, U+0218-021B, U+0237, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+0300-0303, U+0306-0307, U+030A-030C, U+0312, U+0326-0328, U+1E80-1E85, U+1E9E, U+1EF2-1EF3, U+2074, U+2120, U+FB01-FB02; }
@font-face { font-family: "Outfit"; src: url("/fonts/Outfit-Bold.latin.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+21BA, U+2212, U+2215, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; src: url("/fonts/Onest-Variable.rest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-0130, U+0132-0151, U+0154-017F, U+0181, U+0186-018A, U+018E-0194, U+0196-0199, U+019D, U+01A0-01A1, U+01A4-01A5, U+01AC-01AD, U+01AF-01B0, U+01B2-01B4, U+01B7, U+01CD-01DD, U+01E6-01E7, U+01F0, U+01F8-01F9, U+0218-021B, U+0237, U+0244-0245, U+024C-024D, U+0253-0254, U+0256-0257, U+0259, U+025B, U+0260, U+0263, U+0268-0269, U+0272, U+0289, U+028B-028C, U+0292, U+0294, U+02B7, U+02C7, U+02D8-02D9, U+02DB, U+02DD, U+0300-0303, U+0306-0307, U+0309-030C, U+0312, U+031B, U+0323, U+0326-0328, U+0331, U+0401-040C, U+040E-044F, U+0451-045C, U+045E-045F, U+0490-049D, U+04A0-04A5, U+04AA-04AB, U+04AE-04B3, U+04B6-04BB, U+04C0-04C2, U+04CF-04D9, U+04DC-04DF, U+04E2-04EB, U+04EE-04F5, U+1E04-1E05, U+1E0C-1E0D, U+1E24-1E25, U+1E32-1E3B, U+1E3E-1E3F, U+1E42-1E47, U+1E56-1E57, U+1E5A-1E5D, U+1E62-1E63, U+1E6C-1E6D, U+1E80-1E85, U+1E90-1E93, U+1E9E, U+1EA0-1EF9, U+20B4, U+20B8, U+20BA, U+20BC-20BD, U+2116-2117, U+2153-215E, U+21A9, U+21B6-21B7, U+21BB, U+2248, U+2260, U+2264-2265, U+27F5-27F6, U+A78B-A78C; }
@font-face { font-family: "Onest"; src: url("/fonts/Onest-Variable.latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+21BA, U+2212, U+2215, U+2713, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; src: url("/fonts/ReadexPro-Variable.woff2") format("woff2"); font-weight: 160 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/Poppins-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/Poppins-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/Poppins-SemiBold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root:lang(ru), :root:lang(uk), :root:lang(vi) { --display: "Onest", sans-serif; --body: "Onest", sans-serif; }
:root:lang(ar) { --display: "Readex Pro", sans-serif; --body: "Readex Pro", sans-serif; }
:root:lang(ur) { --display: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", sans-serif; --body: "Geeza Pro", "Noto Naskh Arabic", "Segoe UI", sans-serif; }
:root:lang(hi) { --display: "Poppins", sans-serif; --body: "Poppins", sans-serif; }
:root:lang(ja), :root:lang(ko), :root:lang(zh-Hans), :root:lang(zh-Hant) { --display: system-ui, sans-serif; --body: system-ui, sans-serif; }
/* A fallback page's English words keep the Latin fonts. */
[lang="en"] { --display: "Outfit", sans-serif; --body: "Onest", "Outfit", sans-serif; }

/* The Reading menu's easier-to-read font (src/lib/reading.ts): Atkinson Hyperlegible Next, the Braille Institute's
   (OFL, licence in /fonts/licenses/), variable 200-800, Latin and Latin Extended as Google Fonts splits it. A browser
   fetches it only once the switch is on. Last, so it wins over the per-script picks above.
   ponytail: Latin scripts only; an Arabic, Hindi or CJK page with the switch on falls back to Onest and the system's,
   so give each script its own legible face when those pages ship. */
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/fonts/AtkinsonHyperlegibleNext-Variable.rest.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("/fonts/AtkinsonHyperlegibleNext-Variable.latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root[data-readable-font], :root[data-readable-font] [lang] { --display: "Atkinson Hyperlegible Next", "Onest", sans-serif; --body: "Atkinson Hyperlegible Next", "Onest", sans-serif; }
