/**
 * Self-hosted Indic type — Phase 1 of docs/tasks/web-ui-demo-elevation-plan.md.
 *
 * The problem this fixes, verified: index.html's font stack *named*
 * "Noto Sans Devanagari" / "Noto Sans Bengali" as local families with no @font-face and no
 * preload. On a machine that happens to have them installed, Bengali renders correctly; on the
 * projector laptop it silently falls back to Nirmala UI, Vrinda, or tofu boxes. Bengali is the
 * headline demo scenario (Ananya Chatterjee's link opens in Bengali), so "it depends what's
 * installed" is not an acceptable answer.
 *
 * These two files are Google's own already-subsetted woff2 builds, fetched once and committed
 * into static/fonts/ — the `unicode-range` below is theirs verbatim, so the browser only
 * downloads a face when a codepoint in that range actually appears on the page. An
 * English-only session pays nothing for either file.
 *
 * Both are *variable* fonts (one binary covers 400-700; the wght@400/600/700 URLs Google serves
 * are byte-identical, confirmed by md5). So one @font-face per family with a weight *range*,
 * not three near-duplicate files.
 *
 * No build step, no bundler, no CDN: served by the same FastAPI StaticFiles mount as everything
 * else under static/, which is what makes the demo work with the network unplugged.
 */

/* Devanagari — Hindi (हिंदी), plus Nepali (ne) which shares the script. */
@font-face {
  font-family: "Noto Sans Devanagari";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/noto-sans-devanagari-var.woff2) format("woff2");
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC,
    U+A830-A839, U+A8E0-A8FF, U+11B00-11B09;
}

/* Bengali (বাংলা) — the headline scenario. */
@font-face {
  font-family: "Noto Sans Bengali";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/noto-sans-bengali-var.woff2) format("woff2");
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8,
    U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}

/* Display serif — Cormorant Garamond, the greeting + card headlines of the daylight redesign.
   Two Latin-subset static instances (Google's own woff2, committed under static/fonts/), so the
   serif is premium offline too; Georgia is the pre-load fallback (never Times). Latin only: Indic
   headlines fall through to the Noto families above, which is correct — Cormorant has no Bengali. */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-600-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/cormorant-garamond-700-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
