/* ═══════════════════════════════════════════════════════════════════
   Lamma — the identity's faces, served from lamma.cc itself.

   The site used to ask Google Fonts for these, which handed every
   visitor's address to Google before the page had said a word about
   privacy. These are the app's own files (assets/fonts/identity/, built
   and subset by tool/build_fonts.py), copied byte for byte into
   site/assets/fonts/ — `python3 tool/build_fonts.py` keeps the copies in
   step and tool/tests/site_fonts.test.mjs fails when they drift. SIL Open
   Font Licence 1.1; each licence sits beside its files.

   unicode-range keeps a face from loading until a page shows a character
   it covers: an English visitor never downloads Amiri, and the Chinese,
   Japanese and Devanagari serifs load only under their own languages
   (base.css names them only for :lang(zh), :lang(ja) and :lang(hi)).

   Newsreader, Readex Pro and Vazirmatn are variable fonts, so one file
   covers the weight range declared. Amiri has a real bold. The others are
   single 400 instances (build_fonts.py pins them): a heavier request is
   synthesised by the browser, as it is in the app.
   ═══════════════════════════════════════════════════════════════════ */

/* Display serif, Latin. Variable: weight 200–800, optical size 6–72. */
@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/Newsreader.ttf') format('truetype');
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0218-021B, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0300-0308, U+030A, U+030C, U+0327, U+2000-206F, U+20AC,
    U+20B9-20BA, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  src: url('../fonts/Newsreader-Italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0218-021B, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0300-0308, U+030A, U+030C, U+0327, U+2000-206F, U+20AC,
    U+20B9-20BA, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Interface, Latin and Arabic. Variable: weight 160–700. */
@font-face {
  font-family: 'Readex Pro';
  src: url('../fonts/ReadexPro.ttf') format('truetype');
  font-style: normal;
  font-weight: 160 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-017F, U+0218-021B, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0300-0308, U+030A, U+030C, U+0327, U+2000-206F, U+20AC,
    U+20B9-20BA, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD,
    U+0600-06FF, U+25CC;
}

/* Arabic display (and Persian display). */
@font-face {
  font-family: 'Amiri';
  src: url('../fonts/Amiri-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200F, U+25CC;
}

@font-face {
  font-family: 'Amiri';
  src: url('../fonts/Amiri-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200F, U+25CC;
}

/* Persian interface. Variable: weight 100–900. */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200F, U+25CC;
}

/* Urdu, display and interface. */
@font-face {
  font-family: 'Noto Nastaliq Urdu';
  src: url('../fonts/NotoNastaliqUrdu.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF, U+200C-200F, U+25CC;
}

/* Chinese display: GB 2312 level one plus the app's own characters. */
@font-face {
  font-family: 'Noto Serif SC';
  src: url('../fonts/NotoSerifSC.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+00B7, U+2018-201F, U+2026, U+3000-303F, U+3400-4DBF,
    U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

/* Japanese display: JIS X 0208 level one, kana, and the app's own. */
@font-face {
  font-family: 'Noto Serif JP';
  src: url('../fonts/NotoSerifJP.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+00B7, U+2018-201F, U+2026, U+3000-303F, U+3040-30FF,
    U+31F0-31FF, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FF00-FFEF;
}

/* Hindi display. */
@font-face {
  font-family: 'Noto Serif Devanagari';
  src: url('../fonts/NotoSerifDevanagari.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CFF, U+200C-200D, U+20B9, U+25CC,
    U+A8E0-A8FF;
}
