/* Noto Sans Devanagari - Self-hosted Hindi Font Subset
 * Source: Google Fonts (https://fonts.google.com/noto/specimen/Noto+Sans+Devanagari)
 * License: SIL Open Font License 1.1
 * 
 * This file contains @font-face declarations for Noto Sans Devanagari.
 * This is a subset containing only the Devanagari characters used on yaytimer.com/hi-IN/
 * plus basic Latin characters for mixed content.
 * 
 * Unicode ranges included:
 *   - Devanagari: U+0900-U+097F
 *   - Devanagari Extended: U+A8E0-U+A8FF  
 *   - Vedic Extensions: U+1CD0-U+1CFF
 *   - Basic Latin: U+0020-007F
 * 
 * Original font: ~10 MB (variable width + weight)
 * Subset font: ~100-200 KB (estimated)
 * 
 * font-display: swap - Shows fallback immediately, swaps when loaded
 * This provides best LCP while showing text immediately
 * 
 * Generated: February 1, 2026
 */

/* ==========================================================================
   Noto Sans Devanagari - Hindi Subset (Variable Weight 100-900)
   ========================================================================== */
@font-face {
    font-family: 'Noto Sans Devanagari';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/noto-sans-devanagari-subset-v2.woff2?v=bdf16800c779') format('woff2');
    /* Unicode ranges for Devanagari characters used on this site */
    unicode-range: U+0900-U+097F, U+A8E0-U+A8FF, U+1CD0-U+1CFF, U+0020-007F, U+20B9;
}

/* ==========================================================================
   Font Stack for Hindi Pages
   ========================================================================== */
/*
 * Usage in Hindi pages:
 * font-family: 'Noto Sans Devanagari', 'Inter', system-ui, -apple-system, sans-serif;
 * 
 * The site currently uses:
 * font-family: 'Noto Sans Devanagari', 'Inter', sans-serif;
 * 
 * This provides:
 * 1. Noto Sans Devanagari for Hindi text
 * 2. Inter for Latin characters (if not in Devanagari subset)
 * 3. System fonts as final fallback
 */

/* ==========================================================================
   Applied on the Hindi homepage only
   ========================================================================== */
/* Inter stays first for Latin text (the approved design) and this face paints the
 * script. Without this rule the subset was preloaded but never used: no font stack
 * named it, so system fonts painted the text. Scoped to the page language, so no other
 * page downloads this subset; native names of other languages ([lang] spans) keep the
 * shared Inter + system stack from custom-styles-v2.css. */
html:lang(hi), html:lang(hi) :lang(hi) {
    font-family: 'Inter', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
