/**
 * Modern Typography System
 * Clean, balanced hierarchy with four text sizes
 */

/* === BASE TYPOGRAPHY === */

html {
  font-size: 16px; /* Base 16px for calculations */
}

body {
  font-family: 'Muli', 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem; /* Body text: comfortable, readable */
  font-weight: 400;
  line-height: 1.6; /* Consistent, comfortable line height */
  color: var(--color-primary);
  background-color: var(--color-white);
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a, a:visited, a:hover, a:active {
  text-decoration: none;
}

/* === MODERN HEADING HIERARCHY === */

/* H1: Large, bold, visually dominant */
h1, .h1 {
  font-family: 'ZillaSlab', 'Zilla Slab', serif;
  font-size: 2.25rem; /* 36px - Large but balanced */
  font-weight: 700; /* Bold */
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.01em;
}

/* H2-H6: All same size, slightly smaller than H1 */
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  font-family: 'ZillaSlab', 'Zilla Slab', serif;
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold); /* Medium */
  line-height: 1.3;
  color: var(--color-primary);
  margin: 0 0 1rem 0;
  letter-spacing: -0.005em;
}

/* === RESPONSIVE HEADINGS === */
@media (max-width: 767px) {
  h1, .h1 {
    font-size: 2rem; /* 32px on mobile */
  }

  h2, .h2,
  h3, .h3,
  h4, .h4,
  h5, .h5,
  h6, .h6 {
    font-size: 1.25rem; /* 20px on mobile */
  }
}

/* === TEXT ELEMENTS === */

/* Body text: Comfortable, readable - inherits font-family from body */
p, .body-text {
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-primary);
  margin: 0 0 1rem 0;
}

/* Small text: Minimal, subtle for captions/labels - inherits font-family from body */
.small, small, .caption {
  font-size: 0.875rem; /* 14px */
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-primary-lighter);
}

/* Lead text for introductions - inherits font-family from body */
.lead {
  font-size: 1.125rem; /* 18px - slightly larger than body */
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-primary-lighter);
  margin-bottom: 1.5rem;
}

/* === SPECIAL ACCENT FONT === */

/* ComforterBrush: For highlights, accents, unique stylistic text */
.accent, .special, .highlight {
  font-family: 'ComforterBrush', cursive, sans-serif;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.accent-large {
  font-family: 'ComforterBrush', cursive, sans-serif;
  font-size: 2rem; /* Large accent text */
  font-weight: 400;
  line-height: 1.3;
}

.accent-small {
  font-family: 'ComforterBrush', cursive, sans-serif;
  font-size: 1.25rem; /* Small accent text */
  font-weight: 400;
  line-height: 1.4;
}

/* === UTILITY CLASSES === */

/* Font weights */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

/* Font families */
.font-headings { font-family: 'ZillaSlab', 'Zilla Slab', serif; }
.font-body { font-family: 'Muli', 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif; }
.font-accent { font-family: 'ComforterBrush', cursive, sans-serif; }

/* === TEXT COLORS === */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-primary-lighter); }
.text-muted { color: var(--color-primary-lighter); }
.text-brand { color: var(--color-primary); }

/* === TEXT ALIGNMENT === */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* === LINKS === */
a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* === LISTS === */
ul, ol {
  margin: 0 0 1rem 0;
  padding-left: 1.5rem;
  line-height: 1.6;
}

li {
  margin-bottom: 0.25rem;
}

/* === EMPHASIS === */
strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* === BLOCKQUOTES === */
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-white);
  border-radius: var(--border-radius-md);
  font-style: italic;
  color: var(--color-primary-lighter);
}