/* === TinyMind Self-hosted Fonts === */

@font-face {
  font-family: 'Hind Siliguri';
  src: url('HindSiliguri-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hind Siliguri';
  src: url('HindSiliguri-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hind Siliguri';
  src: url('HindSiliguri-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Hind Siliguri';
  src: url('HindSiliguri-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baloo 2';
  src: url('Baloo2-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* === Font Assignment (override, icon fonts excluded) === */

html,
body,
body *:not([class*="icon-"]):not([class*="fa-"]) {
  font-family: 'Inter', 'Hind Siliguri', 'Noto Sans Bengali', 'Nirmala UI', sans-serif !important;
}

body h1:not([class*="icon-"]):not([class*="fa-"]),
body h2:not([class*="icon-"]):not([class*="fa-"]) {
  font-family: 'Baloo 2', 'Hind Siliguri', 'Noto Sans Bengali', 'Nirmala UI', sans-serif !important;
  font-weight: 600;
}

body h3:not([class*="icon-"]):not([class*="fa-"]),
body h4:not([class*="icon-"]):not([class*="fa-"]) {
  font-family: 'Baloo 2', 'Hind Siliguri', 'Noto Sans Bengali', 'Nirmala UI', sans-serif !important;
  font-weight: 500;
}

/* === Cross-browser rendering === */

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}