/* Solaiman Lipi — self-hosted Bengali web font.
 *
 * Font files go in: assets/frontend/fonts/solaiman-lipi/
 *   SolaimanLipi.woff2  (primary — best compression)
 *   SolaimanLipi.ttf    (fallback for older browsers)
 *
 * Download TTF: https://www.omicronlab.com/bangla-fonts.html
 * Convert to WOFF2: https://cloudconvert.com/ttf-to-woff2
 * License: Free for personal and commercial use.
 *
 * Performance notes:
 *  - font-display:swap  → page text stays visible while font loads (no FOIT)
 *  - unicode-range      → font binary is fetched ONLY when Bengali characters
 *                         are actually present on the page; Latin/numeric text
 *                         never triggers a download even if this CSS is loaded
 *  - local()            → zero-cost: if the visitor already has Solaiman Lipi
 *                         installed, the browser uses it without any network request
 */

@font-face {
  font-family: 'SolaimanLipi';
  src: local('SolaimanLipi'),
       local('Solaiman Lipi'),
       url('../../fonts/solaiman-lipi/SolaimanLipi.woff2') format('woff2'),
       url('../../fonts/solaiman-lipi/SolaimanLipi.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  /* Bengali Unicode block + joiners + dotted circle (used in Bengali rendering) */
  unicode-range: U+0980-U+09FF, U+200C-U+200D, U+25CC;
}

/* Apply Solaiman Lipi to all content on Bengali pages.
   Hind Siliguri and Nirmala UI serve as immediate fallbacks while the font loads. */
:lang(bn) {
  font-family: 'SolaimanLipi', 'Hind Siliguri', 'Nirmala UI', 'Vrinda', sans-serif;
}
