/* ============================================
   TYPOGRAPHY
   Serif display (Fraunces) for headings, humanist sans for text.
   Headings are sentence-case — no shouting uppercase.
   ============================================ */

body {
  font-family: var(--font-family);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  color: var(--color-text);
  background-color: var(--color-sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-variation-settings: 'opsz' 96;
  letter-spacing: -0.015em;
  color: var(--color-text);
}

h3, h4 {
  font-variation-settings: 'opsz' 36;
}

.eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-sea);
}

.section-title {
  font-size: var(--fs-h1);
  line-height: 1.05;
}

.section-title--light {
  color: var(--color-text-light);
}

.section-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  line-height: 1.65;
}

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

.section-heading {
  margin-bottom: var(--space-lg);
  max-width: 720px;
}

.section-heading .section-title {
  position: relative;
  display: block;
  margin-bottom: var(--space-sm);
}

/* Small wave flourish above section titles (width animates in — see animations.css) */
.section-heading .section-title::before {
  content: '';
  display: block;
  width: 46px;
  height: 10px;
  margin-bottom: var(--space-sm);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 10'%3E%3Cpath d='M1 5c3.75-4 7.5-4 11.25 0s7.5 4 11.25 0 7.5-4 11.25 0 7.5 4 11.25 0' fill='none' stroke='%230f7c8c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left center / contain;
}

.section-title--light::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 10'%3E%3Cpath d='M1 5c3.75-4 7.5-4 11.25 0s7.5 4 11.25 0 7.5-4 11.25 0 7.5 4 11.25 0' fill='none' stroke='%23efc56e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

/* Centered headings (e.g. About → Mission uses inline text-align:center) */
.section-heading[style*="center"] .section-title::before {
  margin-inline: auto;
  background-position: center;
}

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

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

@media (max-width: 767px) {
  .section-heading {
    margin-bottom: var(--space-md);
  }
}
