/* Tokens, reset y tipografía. */
:root {
  --crema: #f5efe4;
  --crema-clara: #fbf8f2;
  --lino: #ebe2d3;
  --arena: #cbbca5;
  --oro: #b08a45;
  --oro-claro: #d8bb7e;
  --oro-brillo: linear-gradient(120deg, #9c7636 0%, #e3c98d 45%, #b08a45 70%, #f0dcaa 100%);
  --tinta: #1b1916;
  --tinta-suave: #2a2622;
  --texto: #3d3832;
  --apagado: #7a7064;

  --display: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
  --caligrafia: "Parisienne", cursive;

  --margen: clamp(20px, 5vw, 72px);
  --ancho: 1240px;
  --curva: cubic-bezier(.22, 1, .36, 1);
  --curva-suave: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--crema);
  color: var(--texto);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.cargando { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--oro-claro); color: var(--tinta); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--tinta); line-height: 1.02; letter-spacing: -.01em; }
h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 em, h1 em {
  font-style: italic;
  background: var(--oro-brillo);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .06em;
  animation: oro-fluye 8s var(--curva-suave) infinite alternate;
}
@keyframes oro-fluye { to { background-position: 100% 0; } }

.antetitulo {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--oro);
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.4rem;
}
.antetitulo::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.caligrafia { font-family: var(--caligrafia); color: var(--oro); font-weight: 400; }

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

.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
