/*
 * base.css
 * Reset, root styles, global typography, layout primitives, and utility classes.
 */

/* ── Reset ───────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  color: var(--color-navy);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  font-family: var(--font-sans);
}

/* ── Layout Primitives ───────────────────────────────────────────────────── */
.wrap {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

section {
  padding-block: var(--space-24);
  scroll-margin-top: var(--header-height);
}

/* ── Typography Utilities ────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-gold);
}

/* center variant gets a trailing line too */
.center .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-gold);
}

.sec-title {
  font-size: clamp(2rem, 4vw, var(--text-4xl));
}

.sec-title em {
  font-style: italic;
  color: var(--color-gold);
}

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

.center {
  text-align: center;
}

.sub {
  color: var(--color-muted);
  max-width: 36em;
  margin: 14px auto 0;
  font-size: var(--text-md);
}

/* ── Reveal Animation ────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity  var(--duration-slow) ease,
    transform var(--duration-slow) ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

