/* ==========================================================================
   Base — tipografía y elementos de texto
   ========================================================================== */

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  background: var(--paper);
  color: var(--text-on-paper);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
}

h2 {
  font-size: var(--step-3);
}

h3 {
  font-size: var(--step-1);
  font-weight: 600;
}

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

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

strong {
  font-weight: 600;
}

.lede {
  font-size: var(--step-1);
  color: var(--text-on-paper-muted);
}

.on-dark .lede,
.on-dark p {
  color: var(--text-on-dark-muted);
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

::selection {
  background: var(--copper);
  color: var(--paper);
}

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

a {
  transition: color var(--dur-fast) var(--ease-engineer);
}

.on-dark {
  color: var(--text-on-dark);
}

.visually-hidden {
  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-3);
  top: -3rem;
  background: var(--copper);
  color: var(--paper);
  padding: var(--space-2) var(--space-3);
  z-index: 200;
  transition: top var(--dur-fast) var(--ease-engineer);
}

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