/* =========================================================
   Base — tokens, reset, tipografía
   ========================================================= */

:root {
  /* Superficies */
  --paper: #f4f2ee;
  --white: #ffffff;
  --ink: #141414;
  --ink-soft: #5c5c5c;
  --black: #000000;
  --room: #121212;          /* superficie "sala oscura" de audiovisuales */

  /* Color: tomados del Mapa interactivo MNBA y del logotipo */
  --blue: #2b3bff;
  --sky: #6ec6f2;
  --orange: #f47b20;
  --magenta: #e5007e;
  --mnba-gray: #5f5f5f;

  /* Tipografía */
  --f-serif: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Espaciado y retícula */
  --gutter: clamp(16px, 4vw, 56px);
  --gap: clamp(16px, 2.4vw, 32px);
  --header-h: 72px;

  /* Movimiento */
  --ease-out: cubic-bezier(.2, .7, .1, 1);
  --t-slow: 1.1s;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: clamp(16px, 1.05vw + 10px, 19px);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }

.mono {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.serif-i {
  font-family: var(--f-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

/* Accesibilidad */
.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;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 12px 16px; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
