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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Foco visible en todo lo interactivo */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-pill);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: .75rem; }

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

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--s-8); }
.section--stone { background: var(--stone); }
@media (min-width: 768px) { .section { padding-block: var(--s-12); } }

/* Jerarquía tipográfica */
.eyebrow {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.display, .h2, .h3 {
  font-weight: 700;
  text-wrap: balance;
}
.display {
  font-size: clamp(2.5rem, 8.5vw, 5.25rem);
  letter-spacing: -.045em;
  line-height: 1.02;
}
.h2 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  letter-spacing: -.035em;
  line-height: 1.06;
  font-weight: 650;
}
.h3 {
  font-size: 1.25rem;
  letter-spacing: -.02em;
  line-height: 1.15;
  font-weight: 600;
}

/* Titular en dos tonos */
.tone { color: var(--text-3); }

.lead {
  font-size: clamp(1.0625rem, 2.2vw, 1.3125rem);
  line-height: 1.45;
  color: var(--text-2);
  max-width: 36rem;
  text-wrap: pretty;
}
.muted { color: var(--text-2); }
.small { font-size: .875rem; }

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
  margin: 0;
}

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