:root {
  --bg: #F4F1E9;
  --surface: #FBF9F3;
  --surface-hi: #FEFDF9;
  --surface-var: #ECE6D9;
  --ink: #241F1A;
  /* Secondary text holds WCAG AA (4.5:1) on bg, surfaces and over the warm blobs; seniors read this app. */
  --ink-2: #5F5548;
  --ink-3: #6E6252;
  --line: #DED6C7;
  --orange: #E2714E;
  --orange-press: #C65C40;
  --on-orange: #2C1808;
  /* Orange as text or as a ring: the fill orange is only 3:1 on bone, this one is 5:1. */
  --orange-ink: #A9481C;
  --focus: #A9481C;
  --ruby: #9C1B33;
  --success: #3C6B54;
  --warning: #90621C;
  --error: #A2483A;
  --blob-a: #EBC3AE;
  --blob-b: #F1D9C6;
  --blob-c: #E7CDBE;
  --glass: rgba(251, 249, 243, .72);
  /* Liquid glass: a translucent body and a bright thin edge. No cast shadows: the shadow tokens stay for the rules that name them. */
  --lg-fill: linear-gradient(180deg, rgba(255, 253, 248, .66) 0%, rgba(251, 248, 240, .38) 100%);
  --lg-fill-hi: linear-gradient(180deg, rgba(255, 254, 250, .86) 0%, rgba(252, 249, 242, .6) 100%);
  --lg-edge: rgba(255, 255, 255, .72);
  --lg-rim: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(120, 90, 60, .06), inset 0 0 0 .5px rgba(120, 95, 70, .10);
  --lg-shadow: 0 0 #0000;
  --lg-blur: blur(22px) saturate(1.6);
  --shadow: 0 0 #0000;
  --shadow-hi: 0 0 #0000;
  --serif: "Noto Serif", Georgia, serif;
  --sans: "Nunito", system-ui, sans-serif;
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.3, 0, .8, .15);
  --gutter: 22px;
  --t-body: 17px;
  --cara-ink: #3B2A1F;
  --cara-0: #EBD8C5; --cara-1: #E8CDBE; --cara-2: #E4D6C0; --cara-3: #EFD2B9; --cara-4: #E2D0BE; --cara-5: #E6CFC6;
  color-scheme: light;
}

:root[data-tema="oscuro"] {
  --bg: #14110D;
  --surface: #1B1712;
  --surface-hi: #221D17;
  --surface-var: #2A241C;
  --ink: #EFE8DA;
  --ink-2: #ADA08C;
  --ink-3: #9D917E;
  --line: #3A3128;
  --orange: #E87E5D;
  --orange-press: #C8664A;
  --on-orange: #2A1508;
  --orange-ink: #E87E5D;
  --focus: #F08A58;
  --ruby: #CE3A50;
  --success: #6FB08C;
  --warning: #D0A05C;
  --error: #CE8272;
  --blob-a: #3A2418;
  --blob-b: #2B2016;
  --blob-c: #33241C;
  --glass: rgba(34, 29, 23, .72);
  --lg-fill: linear-gradient(180deg, rgba(255, 244, 228, .11) 0%, rgba(255, 244, 228, .04) 100%);
  --lg-fill-hi: linear-gradient(180deg, rgba(255, 244, 228, .18) 0%, rgba(255, 244, 228, .08) 100%);
  --lg-edge: rgba(255, 240, 220, .14);
  --lg-rim: inset 0 1px 0 rgba(255, 244, 228, .16), inset 0 -1px 0 rgba(0, 0, 0, .25), inset 0 0 0 .5px rgba(255, 240, 220, .06);
  --lg-shadow: 0 0 #0000;
  --shadow: 0 0 #0000;
  --shadow-hi: 0 0 #0000;
  --cara-ink: #EFE2CE;
  --cara-0: #4A3B2E; --cara-1: #523A30; --cara-2: #463D33; --cara-3: #553D28; --cara-4: #403830; --cara-5: #4C3630;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Forced colors (Windows high contrast): keep a ring the system can recolor. */
@media (forced-colors: active) { :focus-visible { outline-color: Highlight; } }
::selection { background: color-mix(in srgb, var(--orange) 28%, transparent); }

h1, h2, h3 { margin: 0; font-weight: 400; }
.titulo { font: 400 clamp(30px, 4vw, 38px)/1.15 var(--serif); letter-spacing: -.3px; }
.voz { font: 400 22px/1.45 var(--serif); }
.seccion { font: 600 18px/1.4 var(--sans); }
.meta { font-size: 15px; line-height: 22px; color: var(--ink-2); }
.pequeno { font-size: 14px; line-height: 18px; letter-spacing: .15px; color: var(--ink-2); }
.num { font-variant-numeric: tabular-nums; }

/* The world: three slow warm blobs behind everything. */
.fondo { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.fondo i {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .75;
  animation: deriva 46s var(--ease) infinite alternate;
}
.fondo i:nth-child(1) { width: 62vmax; height: 62vmax; background: var(--blob-a); top: -24vmax; right: -22vmax; }
.fondo i:nth-child(2) { width: 48vmax; height: 48vmax; background: var(--blob-b); bottom: -20vmax; left: -16vmax; animation-duration: 58s; animation-delay: -12s; }
.fondo i:nth-child(3) { width: 34vmax; height: 34vmax; background: var(--blob-c); top: 38%; left: 42%; opacity: .45; animation-duration: 64s; animation-delay: -30s; }
@keyframes deriva {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6vmax, 5vmax) scale(1.08); }
  100% { transform: translate(5vmax, -4vmax) scale(.95); }
}

@media (prefers-reduced-motion: reduce) {
  /* One iteration too: an infinite animation squeezed to .01ms flickers instead of stopping. */
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .fondo i { animation: none; }
}

#app { position: relative; z-index: 1; height: 100%; }
