/* Base del sitio */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  background-image: url("../img/backgrounds/dot-grid.svg");
  background-repeat: repeat;
  background-size: 24px 24px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  transition: opacity var(--t-fast);
}

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Utilidades tipográficas */
h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
}

.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.display-sm {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 700;
  line-height: 1.15;
}

.section-title {
  font-size: var(--fs-title);
}

.kicker {
  font-family: var(--font-pixel);
  font-size: var(--fs-kicker);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.kicker::before {
  content: "//";
  color: var(--accent);
  margin-right: 0.6em;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--text-dim);
  max-width: 46ch;
  line-height: 1.6;
}

.body-copy {
  max-width: 62ch;
}

.note {
  font-size: var(--fs-sm);
  color: var(--text-faint);
  max-width: 58ch;
}

.pending {
  color: var(--text-dim);
  font-weight: 700;
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 0.9rem 1.4rem;
  font-family: var(--font-pixel);
  font-size: var(--fs-kicker);
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-150%);
}

.skip-link:focus-visible {
  transform: none;
}

hr.meander {
  width: var(--container);
  margin-inline: auto;
  border: 0;
  height: 16px;
  background: url("../img/backgrounds/divider-meander.svg") repeat-x center / 48px 16px;
  opacity: 0.8;
}

.text-link {
  display: inline-block;
  padding: 0.45rem 0.1rem;
  color: var(--accent);
  font-weight: 500;
}

.text-link:hover {
  color: var(--accent-hover);
}

/* Enlaces de texto dentro de párrafos */
p a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

p a:hover {
  color: var(--accent-hover);
}
