/* ==========================================================================
   BASE — typography and default element styling
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--color-ink);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  color: var(--color-ink);
}

h1 { font-size: var(--fs-display); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }

p {
  color: var(--color-ink-soft);
}

/* Hindi text always uses the Devanagari-friendly stack */
.hindi-text,
[lang="hi"] {
  font-family: var(--font-hindi);
}

a {
  transition: color var(--transition-fast);
}

::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ---------- Reusable typography utilities ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-size: var(--fs-2xl);
  margin-bottom: var(--space-3);
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--color-ink-soft);
  max-width: 640px;
}

.text-center { text-align: center; }

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

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  z-index: 999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}