/* ============================================================================
   JIGNASA CLUB — Base
   ============================================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* min-height, not height: `height:100%` pins body to exactly the viewport
   height, which becomes the sticky-positioning containing block for
   .site-header — on any page taller than one viewport (i.e. all of them),
   the header runs out of room to stick to and permanently detaches past
   that point. min-height still guarantees full-viewport coverage on short
   pages without capping body at the viewport height. */
html, body { min-height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}

/* Gujarati text: swap the leading font in any element carrying lang="gu" */
[lang="gu"], .gu {
  font-family: var(--font-gu);
  line-height: 1.75;
}

/* Gujarati mode: no italics anywhere in the main content — the italic
   "voice" (buttons, badges, kickers, nav) is a Latin-script typographic
   device that doesn't translate to Gujarati script. Header/footer stay
   English regardless of language, so they're excluded here — `*` alone
   would still match them, since they're descendants of <html lang="gu">.
   Content explicitly marked lang="en" (untranslated strings kept in
   English on purpose, e.g. the "Legal" eyebrow on the privacy page) is
   excluded too, so it keeps the same italic treatment as the English page. */
html[lang="gu"] *:not(.site-header):not(.site-header *):not(.site-footer):not(.site-footer *):not([lang="en"]) {
  font-style: normal !important;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 700; }

p { margin: 0 0 1em; color: var(--text-muted); }
p:last-child { margin-bottom: 0; }

.lead { font-size: var(--fs-lead); color: var(--text-muted); line-height: 1.55; }

ul, ol { padding-left: 1.25em; color: var(--text-muted); }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* ---- Focus states — always visible, never colour-only ---- */
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

/* ---- Layout helpers ---- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  position: relative;
}
.container-narrow { max-width: 760px; margin-inline: auto; padding-inline: var(--container-pad); }

/* position:relative so absolutely-positioned decorative doodles (.doodle)
   anchor to the section they're placed in, not the document root */
.section { padding-block: var(--space-section); position: relative; }
.section-sm { padding-block: var(--space-section-sm); position: relative; }
.section-tight-top { padding-top: var(--space-section-sm); }

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-xs { gap: 0.5rem; } .gap-sm { gap: 0.85rem; } .gap-md { gap: 1.5rem; } .gap-lg { gap: 2.5rem; }
.wrap { flex-wrap: wrap; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-strong);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1.5px;
  background: currentColor;
  opacity: 0.6;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--accent); color: var(--on-accent);
  padding: 0.6rem 1rem; border-radius: var(--radius-sm);
  z-index: 999; transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---- Scroll reveal (subtle, respects reduced motion) ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Responsive type helpers ---- */
.text-hero { font-size: var(--fs-hero); font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }
html[lang="gu"] .text-hero { font-size: clamp(2.4rem, 4.6vw + 1rem, 4.2rem); line-height: 1.15; }
/* Secondary-page hero heading (Programs, About, etc.) — one step down from
   the homepage's .text-hero */
.about-hero-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: clamp(2.2rem, 3.6vw + 1rem, 3.4rem); line-height: 1.15; margin-bottom: 0; }
html[lang="gu"] .about-hero-title { font-size: clamp(1.9rem, 3vw + 0.9rem, 2.9rem); line-height: 1.28; }
.text-lead { font-size: var(--fs-lead); }
.text-muted { color: var(--text-muted); }
.text-faint { color: var(--text-faint); }
.text-accent { color: var(--accent-strong); }

::selection { background: var(--accent-teal-300); color: var(--ink); }
