/* ==========================================================================
   JFL shared typography — mirrors the jfllms (JFL LMS) stack.

   English  → Inter (sans)
   বাংলা    → Noto Serif Bengali (self-hosted)

   The Bengali faces are restricted to the Bengali Unicode block, so Latin
   text can never fall back to a serif Bengali face when Inter is slow or
   blocked — English always stays sans-serif.

   Loaded LAST on every surface (jflit · Blog · Shop · JFLbilling). Icon fonts
   (Bootstrap Icons / FontAwesome / Material) are untouched: this file never
   targets `i` or their classes.
   ========================================================================== */

@font-face {
  font-family: 'Bangla';
  src: url('../fonts/Bangla.woff2') format('woff2'),
       url('../fonts/Bangla.woff') format('woff'),
       url('../fonts/Bangla.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Noto Serif Bengali';
  src: local('Noto Serif Bengali'),
       url('../fonts/NotoSerifBengali-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Noto Serif Bengali';
  src: local('Noto Serif Bengali Bold'),
       url('../fonts/NotoSerifBengali-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Inter';
  src: local('Inter'),
       url('../fonts/Inter.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: local('Inter Bold'),
       url('../fonts/Inter.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Inter first (Latin); system sans stays ahead of the Bengali serif so
     English never falls back to a serif. Bengali glyphs skip both and land on
     Noto Serif Bengali via its unicode-range. */
  --jfl-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Serif Bengali", "Bangla", Arial, sans-serif;
  --jfl-font-family-bn: "Noto Serif Bengali", "Bangla", system-ui, sans-serif;
}

html,
body,
html[lang] body {
  font-family: var(--jfl-font-family);
}

button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
}
