/**
 * Typography System
 * Depends on: variables.css
 */

/* ========================================
   🧠 BASE
======================================== */
body {
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: var(--font-weight-light);
  line-height: 1.2;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   🧱 HEADINGS (Fluid, mobile-first)
======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-light);
  line-height: 1.2;
  color: var(--text-primary);
}

/* Hero / page title */
h1,
.h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
}

/* Section titles */
h2,
.h2 {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
}

/* Card / subsection titles */
h3,
.h3 {
  font-size: clamp(1.375rem, 3vw, 2rem);
}

/* Minor headings */
h4,
.h4 {
  font-size: 1.25rem;
}

h5,
.h5 {
  font-size: 1.125rem;
}

h6,
.h6 {
  font-size: 1rem;
}

/* ========================================
   📖 BODY TEXT
======================================== */
p,
.p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 var(--space-4);
}

small {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ========================================
   🔠 TEXT EMPHASIS
======================================== */
strong,
b {
  font-weight: var(--font-weight-semibold);
  color: var(--text-primary);
}

em {
  font-style: italic;
}

/* ========================================
   🔗 LINKS
======================================== */
a {
  text-decoration: none;
  transition: color var(--transition-fast);
}
