/* ===========================================================
   base.css — Tipografía y elementos básicos
   =========================================================== */

html {
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.005em;
  transition: background-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out);
}

/* ---- Headings ---- */
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1,
.h1 {
  font-size: var(--fs-hero);
  letter-spacing: -0.035em;
  line-height: 0.98;
}

h2,
.h2 {
  font-size: var(--fs-2xl);
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h3,
.h3 {
  font-size: var(--fs-xl);
  line-height: 1.15;
}

h4,
.h4 {
  font-size: var(--fs-lg);
  line-height: 1.25;
}

/* Cuerpo */
p {
  font-size: var(--fs-base);
  color: var(--ink-soft);
  line-height: 1.7;
}

p.lead {
  font-size: var(--fs-md);
  color: var(--ink);
  line-height: 1.55;
  max-width: 60ch;
}

/* Mono */
.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0;
}

/* Énfasis cítrico */
em.citrus,
.citrus-em {
  color: var(--citrus);
  font-style: italic;
  font-family: var(--font-display);
}

/* Links inline */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a.text-link {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--dur-base) var(--ease-out);
}

a.text-link:hover {
  background-size: 0% 1px;
}

/* Helpers */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}

.eyebrow::before {
  content: "—";
  margin-right: 0.6em;
  color: var(--citrus);
}

.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;
}

/* Selección de texto ya en reset */

/* Imágenes */
img {
  font-style: italic; /* texto alt si la imagen falla */
  background-repeat: no-repeat;
  background-size: cover;
  shape-margin: 1rem;
}

/* Reduce motion: clases utilitarias para animaciones explícitas */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}
