/* ═══════════════════════════════════════════════
   TYPOGRAPHY SYSTEM
   ═══════════════════════════════════════════════ */

body {
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  letter-spacing: var(--tracking-normal);
}

/* ─── Headings ─── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
  color: var(--color-fg-primary);
}

h1 {
  font-size: var(--text-5xl);
  font-weight: var(--weight-bold);
  line-height: var(--leading-none);
  letter-spacing: var(--tracking-tighter);
}

h2 {
  font-size: var(--text-4xl);
  line-height: var(--leading-tight);
}

h3 {
  font-size: var(--text-2xl);
  line-height: var(--leading-snug);
}

h4 {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
}

h5 {
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
}

h6 {
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
}

/* ─── Body Text ─── */
p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-fg-secondary);
}

.lead {
  font-size: var(--text-lg);
  line-height: var(--leading-relaxed);
  color: var(--color-fg-secondary);
}

.small {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
}

.tiny {
  font-size: var(--text-xs);
  line-height: var(--leading-normal);
}

/* ─── Inline Elements ─── */
a {
  transition: color var(--duration-fast) var(--ease-default);
}

a:hover {
  color: var(--color-accent-light);
}

strong, b {
  font-weight: var(--weight-semibold);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background-color: var(--color-bg-tertiary);
  border-radius: var(--radius-sm);
  color: var(--color-accent-light);
}

/* ─── Gradient Text Utility ─── */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── Muted Text ─── */
.text-muted {
  color: var(--color-fg-tertiary);
}

.text-accent {
  color: var(--color-accent-light);
}

/* ─── Responsive Typography ─── */
@media (max-width: 768px) {
  h1 {
    font-size: var(--text-4xl);
  }
  h2 {
    font-size: var(--text-3xl);
  }
  h3 {
    font-size: var(--text-2xl);
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: var(--text-3xl);
  }
  h2 {
    font-size: var(--text-2xl);
  }
}
