/**
 * Typography Scale — Terminal Operator-Grade
 * Phase 1: Max 12 sizes, min 16px on mobile
 * AI Worker: Typography Cop
 * Health: font_sizes_used_count (should be ≤ 12)
 * DoD: No custom font-size outside this scale
 */

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base); /* 16px minimum */
  line-height: var(--lh-normal);
  color: var(--text-0);
  font-weight: var(--fw-normal);
}

/* Headings */
h1, .h1 {
  font-size: var(--fs-3xl);
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
}

h2, .h2 {
  font-size: var(--fs-2xl);
  line-height: var(--lh-tight);
  font-weight: var(--fw-semibold);
}

h3, .h3 {
  font-size: var(--fs-xl);
  line-height: var(--lh-normal);
  font-weight: var(--fw-semibold);
}

h4, .h4 {
  font-size: var(--fs-lg);
  line-height: var(--lh-normal);
  font-weight: var(--fw-medium);
}

/* Body text */
p {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
}

/* Utility classes */
.text-xs { font-size: var(--fs-xs); }
.text-sm { font-size: var(--fs-sm); }
.text-base { font-size: var(--fs-base); }
.text-md { font-size: var(--fs-md); }
.text-lg { font-size: var(--fs-lg); }
.text-xl { font-size: var(--fs-xl); }
.text-2xl { font-size: var(--fs-2xl); }
.text-3xl { font-size: var(--fs-3xl); }

.font-mono { font-family: var(--font-mono); }
.font-sans { font-family: var(--font-sans); }

.text-muted { color: var(--text-muted); }
.text-1 { color: var(--text-1); }
.text-2 { color: var(--text-2); }

/* Mobile: enforce 16px minimum */
@media (max-width: 768px) {
  body {
    font-size: var(--fs-base); /* Always 16px minimum */
  }
}
