/* =====================================================================
   raiknd — Reset / Normalize minimalista moderno
   Base limpia sobre la que construir la estética "Arcade Espacial Atari".
   ===================================================================== */

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

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  line-height: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Tipografía heredada del contexto (tokens la define en body) */
h1, h2, h3, h4, h5, h6,
p, blockquote, figure,
dl, dd, dt {
  margin: 0;
}

/* Listas sin viñetas por defecto (se restauran donde haga falta) */
ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

/* Imágenes y media responsive */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Formularios heredan tipografía */
input, button, textarea, select {
  font: inherit;
  color: inherit;
}

/* Tablas compactas */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Enlaces base — sin subrayado por defecto, se gestiona en style.css */
a {
  color: inherit;
  text-decoration: none;
}

/* Focus visible base accesible (anillo con variable de tokens) */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px currentColor);
  border-radius: var(--radius-sm, 2px);
}

/* Eliminar animaciones para quien prefiere movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Ocultar contenido accesible visualmente pero disponible a screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
