/* ===========================================================
   SEDA — base del sistema
   =========================================================== */

:root {
  /* --- color --- */
  --tinta:        #002633;
  --tinta-honda:  #001A24;
  --crema:        #EEE5D1;
  --crema-tenue:  rgba(238, 229, 209, 0.66);
  --oro:          #D4B483;   /* acento: SOLO para lo interactivo */
  --oro-suave:    rgba(212, 180, 131, 0.5);
  --linea:        rgba(238, 229, 209, 0.14);

  /* --- tipografía --- */
  --fuente-titulo: 'Hubot Sans', system-ui, sans-serif;
  --fuente-dato:   'IBM Plex Mono', ui-monospace, monospace;

  /* --- escala: subida un escalón en cuerpo y datos --- */
  --t-gigante: clamp(2.6rem, 7vw, 6.5rem);
  --t-grande:  clamp(2.1rem, 4.4vw, 3.6rem);
  --t-medio:   clamp(1.45rem, 2.2vw, 1.95rem);
  --t-cuerpo:  clamp(1.08rem, 1.35vw, 1.3rem);
  --t-dato:    clamp(0.84rem, 1vw, 0.95rem);

  /* --- espacio --- */
  --e1: 0.5rem;
  --e2: 1rem;
  --e3: 2rem;
  --e4: 4rem;
  --e5: 8rem;
  --e6: 12rem;

  /* --- movimiento --- */
  --curva: cubic-bezier(0.16, 1, 0.3, 1);
  --rapido: 0.2s;
  --medio:  0.45s;
  --lento:  0.9s;

  /* --- medidas --- */
  --ancho-max:   1340px;
  --ancho-texto: 60ch;
  --margen:      clamp(1.5rem, 5vw, 5rem);
}

/* ===========================================================
   Reinicio
   =========================================================== */

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

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

body {
  background: var(--tinta);
  color: var(--crema);
  font-family: var(--fuente-titulo);
  font-size: var(--t-cuerpo);
  font-weight: 200;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ===========================================================
   Tipografía
   =========================================================== */

h1, h2, h3 {
  font-weight: 200;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: var(--t-gigante); }
h2 { font-size: var(--t-grande); }
h3 { font-size: var(--t-medio); letter-spacing: -0.02em; }

p { max-width: var(--ancho-texto); }

.dato {
  font-family: var(--fuente-dato);
  font-size: var(--t-dato);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--crema-tenue);
  font-weight: 400;
}

/* ===========================================================
   Estructura
   =========================================================== */

.limite {
  width: 100%;
  max-width: var(--ancho-max);
  margin-inline: auto;
  padding-inline: var(--margen);
}

section { padding-block: var(--e5); }

/* ===========================================================
   Accesibilidad
   =========================================================== */

:focus-visible { outline: 2px solid var(--oro); outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
