/* ============================================
   BASE TYPOGRAPHY & GLOBALS
   ============================================ */

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: var(--line-height-normal);
  overflow-x: hidden;
}

/* ---- Headings ---- */
h1 {
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text-primary);
}

h2 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--text-primary);
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-snug);
  color: var(--text-primary);
}

h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
  color: var(--text-primary);
}

/* ---- Body text ---- */
p {
  color: var(--text-secondary);
  line-height: var(--line-height-relaxed);
}

p.lead {
  font-size: var(--font-size-md);
  color: var(--text-secondary);
}

p.large {
  font-size: var(--font-size-lg);
}

/* ---- Links ---- */
a {
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-green);
}

/* ---- Labels ---- */
.label {
  display: inline-block;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: var(--space-6);
}

/* ---- Section heading group ---- */
.section-header {
  max-width: var(--container-narrow);
  margin-bottom: var(--space-16);
}

.section-header.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: var(--space-6);
}

.section-header p {
  font-size: var(--font-size-md);
  max-width: 640px;
}

.section-header.centered p {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Selection ---- */
::selection {
  background: rgba(74, 124, 80, 0.18);
  color: var(--text-primary);
}

/* ---- Responsive typography ---- */
@media (max-width: 1199px) {
  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: var(--font-size-2xl);
  }

  h2 {
    font-size: var(--font-size-xl);
  }

  h3 {
    font-size: var(--font-size-lg);
  }

  .section-header {
    margin-bottom: var(--space-10);
  }
}
