/* Reset + fundamentos tipográficos. */

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

html {
  scroll-behavior: auto; /* el smooth-scroll lo maneja JS, no CSS, para poder controlar el timing */
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  color-scheme: light;
  font-family: var(--font-sans);
  font-size: var(--type-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--duration-mode-shift) var(--ease-editorial),
    color var(--duration-mode-shift) var(--ease-editorial);
  overflow-x: hidden;
}


img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

a {
  color: inherit;
}

/* Enlace de salto — accesibilidad, invisible hasta recibir foco. */
.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-2);
  z-index: 200;
  background: var(--color-onyx);
  color: var(--color-pergamena);
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--type-meta);
  text-decoration: none;
  transition: top 200ms var(--ease-editorial);
}

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

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

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