/* ============================================
   Base · Reset + Tipografía global
   ============================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* ----- Tipografía display (Cormorant) ----- */
h1, h2, h3, h4, h5, h6,
.display {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  line-height: var(--leading-tight);
  letter-spacing: var(--track-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-light);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-3xl);
  font-weight: var(--weight-light);
}

h3 {
  font-size: var(--text-xl);
  font-weight: var(--weight-regular);
  letter-spacing: var(--track-normal);
}

h4 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-normal);
}

/* ----- Cuerpo de texto ----- */
p {
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

p + p {
  margin-top: var(--space-4);
}

/* ----- Enlaces ----- */
a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease-out),
              color var(--duration-fast) var(--ease-out);
}

a:hover {
  opacity: 0.65;
}

/* ----- Imágenes ----- */
img,
picture,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----- Listas ----- */
ul, ol {
  list-style: none;
}

/* ----- Botones ----- */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ----- Selección de texto ----- */
::selection {
  background-color: var(--jch-charcoal);
  color: var(--jch-bone);
}

/* ----- Focus visible (accesibilidad) ----- */
:focus-visible {
  outline: 2px solid var(--jch-charcoal);
  outline-offset: 4px;
}

button:focus,
a:focus {
  outline: none;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--jch-charcoal);
  outline-offset: 4px;
}

/* ----- Reduce 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;
  }
}

/* ----- Utilidades ----- */
.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;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-content {
  width: 100%;
  max-width: var(--container-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Italic helper para Cormorant */
.italic {
  font-style: italic;
}

/* Tipografía de etiqueta (eyebrow / kicker) */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--track-widest);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
