/* _kit/base.css · what every recipe page shares. Each page sets its own tokens in :root. */
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--texto, system-ui, sans-serif);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, canvas, svg, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: inherit; }
p { margin: 0; }

/* The sticky stage: a tall section, a screen-high stage that stays put while the section scrolls past. */
.escena { position: relative; height: var(--largo, 500vh); overflow-x: clip; }
.escena__fija { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.escena__lienzo { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0;
  transition: opacity .9s cubic-bezier(.23, 1, .32, 1); }
.escena__lienzo.listo { opacity: 1; }

/* Text beats over the stage: one at a time, in place. */
.latido { opacity: 0; transform: translateY(18px); pointer-events: none;
  transition: opacity .5s cubic-bezier(.23, 1, .32, 1), transform .5s cubic-bezier(.23, 1, .32, 1); }
.latido.on { opacity: 1; transform: none; pointer-events: auto; }

/* The still version (reduced motion, no WebGL): the section is a normal block and every beat is visible. */
html.quieto .escena { height: auto; }
html.quieto .escena__fija { position: relative; height: auto; overflow: visible; }
html.quieto .latido { opacity: 1; transform: none; position: static; }

.volver { position: fixed; z-index: 20; top: 14px; left: 14px; padding: 8px 12px; font: 600 .8125rem/1 var(--texto, system-ui);
  text-decoration: none; color: var(--volver-tinta, #fff); background: var(--volver-fondo, rgba(10, 14, 20, .55));
  border-radius: 6px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* ?limpio: only the canvas, for the still poster frame (_kit/fotos.mjs --limpio). */
html.limpio .escena__textos, html.limpio .volver, html.limpio .marca { visibility: hidden; }
.nota-lab { font-size: .875rem; opacity: .75; max-width: 60ch; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
