/* ============================================
   Base: tipografía, helpers y utilidades
   ============================================ */

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
}

/* Tipografía */
.display,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
}

.display {
  font-style: italic;
  font-weight: 400;
}

h1 { font-size: clamp(2.8rem, 6.8vw, 5.6rem); line-height: 1.02; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

p {
  color: var(--ink-medium);
  font-size: 1rem;
  line-height: 1.65;
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

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

.em-serif {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--brown);
}

/* Eyebrow / small label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brown);
  background: rgba(107, 66, 38, 0.07);
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(107, 66, 38, 0.18);
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brown);
  box-shadow: 0 0 0 4px rgba(107, 66, 38, 0.14);
}
.eyebrow.dark {
  color: var(--gold);
  background: rgba(201, 165, 92, 0.10);
  border-color: rgba(201, 165, 92, 0.25);
}
.eyebrow.dark::before {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 165, 92, 0.15);
}

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

section {
  padding: var(--space-2xl) 0;
  position: relative;
}
@media (max-width: 768px) {
  section { padding: var(--space-xl) 0; }
}

/* Helpers */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.max-w-prose { max-width: 65ch; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
