/* ==========================================================================
   base.css — reset y tipografía base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 300;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.018em;
  text-wrap: balance;
  margin: 0;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.14; letter-spacing: -0.01em; }
h4 { font-size: var(--step-1); letter-spacing: -0.005em; }

p { margin: 0; max-width: var(--measure); }

a {
  color: var(--taupe-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  transition: color 0.25s var(--ease);
}
a:hover { color: var(--ink); }

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--taupe-deep);
  outline-offset: 3px;
}

::selection {
  background: var(--taupe-soft);
  color: var(--ink);
}

/* --- Utilidades tipográficas --- */

/* Versalitas espaciadas: la etiqueta que estructura cada sección. */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--taupe-deep);
  line-height: 1.4;
  margin: 0;
}

.lead {
  font-size: var(--step-1);
  line-height: 1.65;
  color: var(--ink-soft);
  font-weight: 300;
}

/* Los remates con humor del texto original, en cursiva serif. */
.wink {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08em;
  line-height: 1.45;
  color: var(--ink-soft);
  letter-spacing: 0;
}

/* Palabra destacada dentro de un titular. */
.accent {
  font-style: italic;
  color: var(--taupe-deep);
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--bone);
  padding: 0.8rem 1.2rem;
}
.skip-link:focus { left: 0; }

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