/* =====================================================
   base.css – Reset, tokens, typography, global layout
   ===================================================== */

/* ---------- CSS custom properties (design tokens) ---------- */
:root {
  --c-black:   #000000;
  --c-white:   #ffffff;
  --c-grey-1:  #0a0a0a;   /* near-black bg */
  --c-grey-2:  #111111;   /* card bg */
  --c-grey-3:  #1e1e1e;   /* border / divider */
  --c-grey-4:  #444444;   /* muted text */
  --c-grey-5:  #888888;   /* secondary text */
  --c-grey-6:  #cccccc;   /* light text */

  --font-display: 'Cormorant Garamond', 'Noto Serif Bengali', Georgia, serif;
  --font-body:    'Inter', sans-serif;
  --font-bengali: 'Noto Serif Bengali', serif;

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --section-gap: clamp(4rem, 10vw, 8rem);
  --content-width: 860px;
  --content-pad: clamp(1.25rem, 5vw, 3rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--c-grey-1);
  color: var(--c-grey-6);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
audio { display: none; }

/* ---------- Utility ---------- */
.hidden { display: none !important; }
.invisible { visibility: hidden; opacity: 0; }

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-smooth), transform 0.9s var(--ease-smooth);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section wrapper ---------- */
.section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-pad);
}

/* ---------- Section headings ---------- */
section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-white);
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ---------- Bengali font override ---------- */
body.lang-bn {
  font-family: var(--font-bengali);
}
body.lang-bn h1, body.lang-bn h2, body.lang-bn p,
body.lang-bn button, body.lang-bn span, body.lang-bn li {
  font-family: var(--font-bengali);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--c-black); }
::-webkit-scrollbar-thumb { background: var(--c-grey-3); border-radius: 99px; }

/* ---------- Focus ring ---------- */
:focus-visible {
  outline: 2px solid var(--c-white);
  outline-offset: 3px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
