/* Noto Sans Bengali - Self-hosted Bengali Font Subset
 * Source: Google Fonts (https://fonts.google.com/noto/specimen/Noto+Sans+Bengali)
 * License: SIL Open Font License 1.1
 * 
 * This file contains @font-face declarations for Noto Sans Bengali.
 * This is a subset containing only the Bengali characters used on yaytimer.com/bn-IN/
 * plus basic Latin characters for mixed content.
 * 
 * Unicode ranges included:
 *   - Bengali: U+0980-U+09FF
 *   - Danda / double danda: U+0964-U+0965 (Devanagari block; end Bengali sentences)
 *   - Zero-width joiners: U+200C-U+200D (for conjuncts)
 *   - Basic Latin: U+0020-007F
 *   - Indian Rupee: U+20B9
 * 
 * Original font: ~0.5 MB (variable width + weight)
 * Subset font: ~80-150 KB (estimated)
 * 
 * font-display: swap - Shows fallback immediately, swaps when loaded
 * This provides best LCP while showing text immediately
 * 
 * Generated: February 27, 2026
 */

/* ==========================================================================
   Noto Sans Bengali - Bengali Subset (Variable Weight 100-900)
   ========================================================================== */
@font-face {
    font-family: 'Noto Sans Bengali';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('/assets/fonts/noto-sans-bengali-subset-v2.woff2?v=c4004f884d96') format('woff2');
    /* Unicode ranges for Bengali characters used on this site */
    unicode-range: U+0980-09FF, U+0964-0965, U+200C-200D, U+0020-007F, U+20B9;
}

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

/* ==========================================================================
   Applied on the Bengali 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(bn), html:lang(bn) :lang(bn) {
    font-family: 'Inter', 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
