/* ==========================================================
   Shared base — font, reset, Bangla typography, tokens.
   Section designs live in each section's own style.css.
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+Bengali:wght@400;500;600;700;800&display=swap');

:root {
  --bn-font: 'Noto Serif Bengali', serif;

  /* type scale (min 18px body for Bangla) */
  --fs-sm: 1rem;
  --fs-base: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
  --fs-lg: clamp(1.3rem, 1.15rem + 0.6vw, 1.55rem);
  --fs-xl: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem);
  --fs-2xl: clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --fs-3xl: clamp(2.6rem, 1.8rem + 4vw, 5rem);
  --lh: 1.8;

  /* spacing */
  --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem; --sp-9: 7rem;

  /* radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-full: 999px;

  --focus-ring: 0 0 0 3px #fff, 0 0 0 6px #1d7bff;
  --content-w: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--bn-font);
  font-size: var(--fs-base);
  line-height: var(--lh);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 var(--sp-4); font-weight: 700; }
p { margin: 0 0 var(--sp-4); }
img, svg, canvas, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }
/* sprite icons (shared/icons/icons.svg) — used instead of emoji */
.ic { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.25em; flex: none; overflow: visible; }
.ic-lg { width: 2.6rem; height: 2.6rem; }
.ic-xl { width: 4.5rem; height: 4.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--content-w)); margin-inline: auto; }

/* reading progress bar (lesson-kit.js) */
.lk-progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 1000; transform-origin: 0 50%; transform: scaleX(0); background: currentColor; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
