/* THAHABI base */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink-1000);
  color: var(--ink-100);
  font-family: var(--ff-sans-en);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
[dir="rtl"] body {
  font-family: var(--ff-sans-ar);
  line-height: 1.7;
}
[lang="hi"] body { font-family: var(--ff-sans-hi); line-height: 1.7; }
[lang="ur"] body { font-family: var(--ff-sans-ur); line-height: 1.9; }
[lang="bn"] body { font-family: var(--ff-sans-bn); line-height: 1.75; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-500); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--gold-300); }
button { font: inherit; border: 0; background: transparent; cursor: pointer; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-serif-en);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-100);
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5 {
  font-family: var(--ff-display-ar);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}
[lang="hi"] h1, [lang="hi"] h2, [lang="hi"] h3, [lang="hi"] h4, [lang="hi"] h5 {
  font-family: var(--ff-display-hi);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}
[lang="ur"] h1, [lang="ur"] h2, [lang="ur"] h3, [lang="ur"] h4, [lang="ur"] h5 {
  font-family: var(--ff-display-ur);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.7;
}
[lang="bn"] h1, [lang="bn"] h2, [lang="bn"] h3, [lang="bn"] h4, [lang="bn"] h5 {
  font-family: var(--ff-display-bn);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}
h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
h5 { font-size: var(--fs-md); }

p { color: var(--ink-300); max-width: 68ch; }
.lede { font-size: var(--fs-md); color: var(--ink-100); max-width: 60ch; }
.eyebrow {
  display: inline-block;
  font-family: var(--ff-sans-en);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--s-4);
}
[dir="rtl"] .eyebrow { font-family: var(--ff-ui-ar); letter-spacing: 0; text-transform: none; }

.num, .bdi-num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }

/* layout */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--s-16); }
@media (min-width: 768px) { .section { padding-block: var(--s-24); } }
.section--paper { background: var(--paper); color: var(--ink-900); }
.section--paper h1, .section--paper h2, .section--paper h3, .section--paper h4 { color: var(--ink-900); }
.section--paper p { color: var(--ink-500); }
.section--ink-900 { background: var(--ink-900); }

/* grid helpers */
.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.flex { display: flex; gap: var(--s-4); }
.flex-center { display: flex; align-items: center; gap: var(--s-3); }
.stack > * + * { margin-block-start: var(--s-4); }
.stack-lg > * + * { margin-block-start: var(--s-8); }

/* utilities */
.text-gold { color: var(--gold-500); }
.text-muted { color: var(--ink-300); }
.text-center { text-align: center; }
.muted-ink { color: var(--ink-500); }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } .hide-desktop { display: none; } }

::selection { background: var(--gold-500); color: var(--ink-1000); }

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