/**
 * Kalyx - Typography System & Text Hierarchy
 */

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  text-wrap: balance;
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}

h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--text-xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-sm);
}

h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* Typography Utility Classes */
.text-lead {
  font-size: var(--text-lg);
  line-height: var(--line-height-relaxed);
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

.text-bold {
  font-weight: var(--font-weight-bold);
}

.text-semibold {
  font-weight: var(--font-weight-semibold);
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  background-color: var(--brand-primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  border: 1px solid var(--brand-primary-subtle);
}

.section-title {
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

.inline-link {
  color: var(--brand-accent);
  font-weight: var(--font-weight-semibold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.inline-link:hover {
  color: var(--brand-primary);
}
