@layer reset, tokens, base, components, page;
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  img, svg, canvas, video { display: block; max-inline-size: 100%; }
  button, input, textarea, select { font: inherit; color: inherit; }
  a { color: inherit; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
}
@layer base {
  :root {
    --fs-hero: clamp(2.5rem, 1.3rem + 4.6vw, 5.25rem);
    --fs-4: clamp(2.44rem, 1.6rem + 4vw, 4.5rem);
    --fs-3: clamp(1.95rem, 1.5rem + 2.2vw, 3rem);
    --fs-2: clamp(1.563rem, 1.35rem + 1vw, 2.1rem);
    --fs-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --fs-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
    --fs--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
    --section-y: clamp(var(--space-9), 12vw, var(--space-11));
    --gutter: clamp(16px, 4vw, 64px);
  }
  html { scroll-padding-top: 88px; }
  body {
    background: var(--bg-0); color: var(--text-1); font-family: var(--font-body); font-size: var(--fs-0);
    line-height: 1.6; min-block-size: 100vh; text-wrap: pretty; overflow-x: hidden;
  }
  html[lang="bn"] body { line-height: 1.75; letter-spacing: 0; }
  h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text-0); text-wrap: balance; }
  h1 { font-size: var(--fs-hero); line-height: 0.98; font-weight: 800; letter-spacing: -0.035em; }
  h2 { font-size: var(--fs-4); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; }
  h3 { font-size: var(--fs-3); line-height: 1.1; font-weight: 700; letter-spacing: -0.02em; }
  h4 { font-size: var(--fs-1); line-height: 1.3; font-weight: 600; }
  html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { line-height: 1.25; letter-spacing: 0; }
  p { max-inline-size: 68ch; }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-sm);
  }
  ::selection { background: var(--accent); color: var(--accent-ink); }
  .container { inline-size: min(100% - 2 * var(--gutter), 1200px); margin-inline: auto; }
  .wide { inline-size: min(100% - 2 * var(--gutter), 1440px); margin-inline: auto; }
  .section { padding-block: var(--section-y); }
  .sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .skip { position: fixed; inset-block-start: 8px; inset-inline-start: 8px; z-index: var(--z-toast); padding: var(--space-3) var(--space-4);
    background: var(--accent); color: var(--accent-ink); border-radius: var(--r-sm); text-decoration: none; transform: translateY(-200%); }
  .skip:focus { transform: none; }
  .muted { color: var(--text-2); }
  .lead { font-size: var(--fs-1); line-height: 1.4; color: var(--text-1); }
  [hidden] { display: none !important; }
  html[data-theme-anim] body, html[data-theme-anim] .card, html[data-theme-anim] .site-header { transition: background-color var(--dur-2) linear, color var(--dur-2) linear; }
  html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  html[data-motion="off"] html, html[data-motion="off"] { scroll-behavior: auto; }
}

@layer base { html.no-scroll { overflow: hidden; } }

@layer base { html.lenis, html.lenis body { height: auto; } .lenis.lenis-smooth { scroll-behavior: auto !important; } .lenis.lenis-stopped { overflow: hidden; } }
