/* ==========================================================================
   TRAIL TRAVEL — Base / reset
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--cream);
  color: var(--forest);
  font-family: var(--font-mono);
  font-size: var(--text-body);
  line-height: 1.6;
  letter-spacing: var(--tracking-tight);
  -webkit-font-smoothing: antialiased;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: 0.98;
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button { cursor: pointer; }

/* ---- Foco visible (accesibilidad) ---- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 1000;
  background: var(--accent);
  color: var(--accent-ink);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  text-transform: uppercase;
  text-decoration: none;
  transition: top var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--space-2);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--eyebrow-ink); /* legible sobre fondo crema */
}

/* Sobre fondo de foto (hero) u overlay oscuro, el eyebrow usa el color vivo */
.hero .eyebrow,
.menu-overlay .eyebrow {
  color: var(--accent);
}

/* Sobre fondo verde bosque sólido, el eyebrow usa crema (más legible que el acento pastel) */
.section--forest .eyebrow {
  color: var(--cream);
}

/* Sobre fondo de acento, el eyebrow usa la tinta oscura de ese acento */
.section--accent .eyebrow {
  color: var(--accent-ink);
}

.lead {
  font-size: var(--text-lead);
  max-width: 42ch;
}

@media (min-width: 1024px) {
  .lead { max-width: 52ch; }
}
