/* Base styles, typography, utilities */
body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  background-color: var(--bg-base);
  background-image: var(--gradient-radial);
  background-attachment: fixed;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg-base);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

h1 {
  font-size: clamp(2.5rem, 6vw, var(--fs-5xl));
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 4.5vw, var(--fs-4xl));
  font-weight: 400;
}

h3 {
  font-size: clamp(1.5rem, 3vw, var(--fs-2xl));
}

h4 {
  font-size: var(--fs-xl);
}

h5, h6 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text-primary);
  line-height: var(--lh-snug);
}

h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-base); }

p {
  color: var(--text-body);
  line-height: var(--lh-relaxed);
}

a {
  color: var(--accent-light);
  transition: color var(--duration-fast) var(--ease-out);
}

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

strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Eyebrow label — small caps gold accent */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--accent);
  position: relative;
  padding-left: 32px;
}

.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.eyebrow.is-centered {
  padding-left: 0;
  padding: 0 40px;
}

.eyebrow.is-centered::before,
.eyebrow.is-centered::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.eyebrow.is-centered::before { left: 0; }
.eyebrow.is-centered::after { right: 0; }

/* Section title block */
.section-head {
  text-align: center;
  margin-bottom: var(--space-8);
}

.section-head .eyebrow {
  margin-bottom: var(--space-4);
}

.section-head h2 {
  margin-bottom: var(--space-4);
}

.section-head .lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: var(--fs-md);
  color: var(--text-body);
}

.section-head.is-left {
  text-align: left;
}

.section-head.is-left .lead {
  margin: 0;
}

/* Lead paragraph */
.lead {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-block: clamp(4rem, 10vw, var(--space-10));
}

.section--sm {
  padding-block: clamp(3rem, 6vw, var(--space-8));
}

.section--lg {
  padding-block: clamp(5rem, 12vw, var(--space-11));
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

.gold-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gradient-gold);
  margin: var(--space-5) auto;
  border: 0;
}

.divider.is-left {
  margin-left: 0;
}

/* Reveal animation base state */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
