/* ==========================================================================
   Typography — Google Fonts + heading / body styles
   ========================================================================== */

/* Fonts are loaded via <link> in HTML for best perf.
   This file defines typographic rules. */

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--color-text);
  background-color: var(--color-body-bg);
}

/* ── Headings ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--color-primary);
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl);  }
h5 { font-size: var(--fs-lg);  }
h6 { font-size: var(--fs-md);  }

/* ── Body text ── */
p {
  margin-bottom: var(--space-4);
  line-height: var(--lh-normal);
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

strong, b { font-weight: var(--fw-semibold); }

small { font-size: var(--fs-sm); }

/* ── Section titles ── */
.section-title {
  text-align: center;
  margin-bottom: var(--space-4);
  font-size: var(--fs-3xl);
  position: relative;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--fs-md);
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

/* Decorative underline for section titles */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-gold), var(--color-accent-green));
  border-radius: var(--radius-full);
  margin: var(--space-4) auto 0;
}

/* ── Lists ── */
.content-list {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.content-list li {
  list-style: disc;
  margin-bottom: var(--space-2);
  line-height: var(--lh-normal);
}

/* ── Responsive typography ── */
@media (max-width: 768px) {
  h1 { font-size: var(--fs-3xl); }
  h2 { font-size: var(--fs-2xl); }
  h3 { font-size: var(--fs-xl);  }
  .section-title { font-size: var(--fs-2xl); }
  .section-subtitle {
    font-size: var(--fs-base);
    margin: 0 auto var(--space-8);
  }
}

@media (max-width: 480px) {
  h1 { font-size: var(--fs-2xl); }
  h2 { font-size: var(--fs-xl);  }
  h3 { font-size: var(--fs-lg);  }
  .section-title { font-size: var(--fs-xl); }
  .section-subtitle {
    font-size: var(--fs-sm);
  }
}
