/*
 * Hindi typography. Loaded on Hindi pages only (app.vue adds it from the `hi`
 * entry of LOCALES in nuxt.config.ts); English pages never download it.
 *
 * The faces below add Devanagari letters to the font names the site already
 * uses. Every style that says 'Inter' or 'Fraunces' (the Tailwind classes and
 * the ~40 hand-written font-family rules alike) then draws Hindi in the Hindi
 * font, with no per-component change. unicode-range keeps them to Devanagari:
 * English letters, digits and ₹ on a Hindi page are still Inter / Fraunces.
 *
 * Weights match the Latin faces the site loads (Inter/Fraunces 400-700,
 * Playfair 600-700), so a heavier class like font-extrabold resolves to 700
 * for both scripts alike.
 *
 * Fonts: Anek Devanagari (body, a variable font: one file for every weight)
 * and Mukta (headings), both SIL Open Font License, Devanagari subset from
 * Google Fonts. To change a Hindi font, swap the files and the src lines.
 */

/* Body text: 'Inter' -> Anek Devanagari */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('./anek-devanagari.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('./anek-devanagari.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('./anek-devanagari.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('./anek-devanagari.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }

/* Headings: 'Fraunces' (and the few 'Playfair Display' titles) -> Mukta */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400; font-display: swap; src: url('./mukta-400.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 500; font-display: swap; src: url('./mukta-500.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 600; font-display: swap; src: url('./mukta-600.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 700; font-display: swap; src: url('./mukta-700.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 600; font-display: swap; src: url('./mukta-600.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 700; font-display: swap; src: url('./mukta-700.woff2') format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+25CC, U+A830-A839, U+A8E0-A8FF; }

/* Two Latin habits that break Devanagari, switched off for every element in
   a Hindi page (Tailwind classes, hand-written CSS and inline styles alike,
   hence !important). An element marked lang="en" keeps them.
   - Letter-spacing pulls syllables apart ("का नू नी" instead of "कानूनी").
   - Devanagari has no italics; a browser-slanted one looks broken, so
     emphasis keeps only its colour and weight. */
:lang(hi) {
  letter-spacing: normal !important;
  font-style: normal !important;
}
