@font-face {
  font-family: Fraunces;
  src: url("/assets/pacto-fraunces-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --page: #f8f4e9;
  --paper: #fffaf0;
  --ink: #193f3b;
  --muted: #405a52;
  --shade: #dbe5d3;
  --night: #173f3e;
  --accent: #95462e;
  --line: #cdd4c4;
  --serif: Fraunces, Georgia, serif;
  --gutter: clamp(20px, 4vw, 60px);
  --header-size: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body {
  --day-sky: #d5e4e9;
  --day-ink: #254653;
  --day-sheet: #eaf1ed;
  margin: 0;
  background: linear-gradient(180deg, transparent 120px, var(--page) clamp(630px, 72vw, 1010px)), var(--day-sky);
  transition: background-color 500ms;
  color: var(--ink);
  font: 1rem/1.6 system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body[data-day-view="cocina"] { --day-sky: #efe4d1; --day-ink: #584034; --day-sheet: #f5eddd; }
body[data-day-view="despensa"] { --day-sky: #e4e2de; --day-ink: #37434c; --day-sheet: #f2efea; }
body[data-day-view="rutina"] { --day-sky: #e0dfeb; --day-ink: #383f59; --day-sheet: #eeedf2; }
body[data-day-view="nosotros"] { --day-sky: #ecdcd4; --day-ink: #513c34; --day-sheet: #f5ebe4; }
:is(h1, h2, h3, p, figure, dl, dd, blockquote) { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
img { display: block; max-width: 100%; }
:is(a, button, input, summary):focus-visible { outline: 3px solid #b66041; outline-offset: 4px; }
:is(section, #ventana, #despensa, #fundadores, #inicio) { scroll-margin-top: clamp(10px, 2vh, 20px); }
:is(#inicio, main > .chapter, #invitar, #planes, #cocina, #despensa) { scroll-snap-align: start; }
.frame { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }
.skip-link { position: fixed; inset: 12px auto auto 12px; z-index: 4; padding: 10px 16px; background: var(--paper); clip-path: inset(50%); }
.skip-link:focus { clip-path: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.site-header {
  color: var(--day-ink);
  transition: color 400ms;
}
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.header-inner { min-height: var(--header-size); gap: 6px clamp(9px, 2vw, 22px); }
.header-entry { flex: none; white-space: nowrap; }
.brand { display: inline-flex; align-items: center; gap: clamp(9px, 1.6vw, 18px); min-width: 0; text-decoration: none; }
.brand-sign { display: grid; justify-items: center; gap: 1px; flex: none; }
.brand-sign img, .brand-mark { width: clamp(37px, 4vw, 45px); height: auto; }
.brand-mark { flex: none; }
.brand strong { font: 640 clamp(.99rem, 1.8vw, 1.22rem)/1 var(--serif); letter-spacing: -.045em; }
.brand-title { font: 560 clamp(.97rem, 1.8vw, 1.31rem)/1.1 var(--serif); letter-spacing: -.027em; white-space: nowrap; }
.text-link:hover { color: var(--accent); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: .91rem;
  font-weight: 690;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms, color 160ms, border-color 160ms;
}
.button-primary { color: var(--paper); background: var(--night); }
.button-primary:hover { background: #2b5953; }
.button-outline { background: transparent; border-color: #7f9687; color: var(--ink); }
.button-outline:hover { background: #e4ebdf; border-color: var(--night); }
.button-small { min-height: 44px; padding: 8px 15px; font-size: .85rem; }
.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding-block: 10px;
  color: var(--ink);
  font-size: .91rem;
  font-weight: 650;
  line-height: 1.5;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 490; line-height: 1.06; letter-spacing: -.051em; }
h1 { font-size: clamp(3rem, 6.2vw, 6rem); max-width: 11ch; }
h2 { font-size: clamp(2.55rem, 4.6vw, 4.65rem); }
h3 { font-size: clamp(1.56rem, 2.6vw, 2.05rem); line-height: 1.13; letter-spacing: -.038em; }
:is(h1,h2) em { color: var(--accent); font-weight: 440; }
.saludo { font-size: .91rem; line-height: 1.45; font-weight: 690; color: var(--accent); overflow-wrap: anywhere; }
.label { font-size: .68rem; line-height: 1.35; letter-spacing: .13em; font-weight: 740; }

.arrival {
  color: var(--day-ink);
  transition: color 400ms;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: 'copy experience' 'follow experience';
  align-items: start;
  align-content: center;
  min-height: calc(100svh - var(--header-size));
  gap: clamp(16px, 2.2vw, 30px) clamp(24px, 4.6vw, 66px);
  padding-block: clamp(26px, 4.5vh, 57px);
}
.hero-copy { grid-area: copy; align-self: end; display: grid; justify-items: start; gap: clamp(12px, 1.8vw, 22px); }
.hero-copy h1 { font-size: clamp(3rem, 5.95vw, 5.7rem); max-width: 11ch; }
.hero-follow { grid-area: follow; }
.hero-description { max-width: 46ch; color: var(--muted); font-size: clamp(1.02rem, 1.48vw, 1.17rem); line-height: 1.66; }
.hero-actions { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; margin-top: 19px; }
.day-preview {
  --day-media-height: clamp(190px, 26vw, 335px);
  --day-caption-height: clamp(68px, 7.1vw, 87px);
  grid-area: experience;
  align-self: center;
  justify-self: end;
  display: grid;
  gap: clamp(9px, 1.4vw, 17px);
  width: 100%;
  max-width: 590px;
  min-width: 0;
  padding: clamp(12px, 2.5vw, 28px);
  border: 1px solid color-mix(in srgb, var(--day-ink) 17%, transparent);
  border-radius: 25px 42px 25px 42px;
  background: linear-gradient(145deg, #fffaf099, transparent 76%), var(--day-sheet);
  box-shadow: 0 22px 54px -32px color-mix(in srgb, var(--day-ink) 55%, transparent);
  transition: background-color 500ms, border-color 400ms, color 400ms;
}
.day-preview-heading { display: flex; align-items: center; gap: 8px; }
.day-preview-heading strong { font: 565 clamp(1.16rem, 2.1vw, 1.62rem)/1.13 var(--serif); letter-spacing: -.027em; }
.day-switch {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  min-inline-size: 0;
  margin: 0;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--day-ink) 15%, transparent);
  border-radius: 13px;
  background: #fffaf05e;
}
.day-switch label { position: relative; min-width: 0; cursor: pointer; }
.day-switch input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: inherit; }
.day-switch label span { display: grid; place-items: center; min-height: 44px; border-radius: 9px; font-size: clamp(.67rem, 1.1vw, .88rem); font-weight: 640; text-align: center; }
.day-switch label:hover span { background: #fffaf0; }
.day-switch input:checked + span { color: #fffaf0; background: var(--day-ink); }
.day-switch input:focus-visible + span { outline: 2px solid var(--day-ink); outline-offset: 2px; }
.day-panel { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: clamp(8px, 1.2vw, 15px); animation: arrival-reply 270ms ease-out both; }
.day-panel[data-day-panel="hoy"] { animation: none; }
.day-cover {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #bccac0;
  border-radius: 13px 13px 13px 5px;
  background: var(--paper);
  text-decoration: none;
}
.day-cover img { width: 100%; height: var(--day-media-height); object-fit: cover; }
.day-pause img { object-position: 40% center; }
.day-cover > span { display: grid; align-content: center; gap: 3px; min-height: var(--day-caption-height); padding: 8px clamp(8px, 1.2vw, 13px) 10px; }
.day-cover strong { font: 560 clamp(.98rem, 1.9vw, 1.42rem)/1.08 var(--serif); letter-spacing: -.031em; }
.day-glance { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 6px; }
.day-item {
  display: grid;
  align-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 5px clamp(7px, 1.2vw, 13px);
  border-inline-start: 2px solid color-mix(in srgb, var(--day-ink) 28%, transparent);
  border-radius: 0 11px 11px 0;
  background: #fffaf0b5;
  text-decoration: none;
}
.day-item strong { font-size: clamp(.75rem, 1.32vw, .97rem); font-weight: 670; line-height: 1.24; }
.day-item small, .day-cover small { font-size: clamp(.65rem, 1vw, .74rem); font-weight: 580; line-height: 1.23; color: var(--muted); }
.day-cover:hover strong, a.day-item:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.day-gratitude { border-inline-start-color: #bb7558; background: #f3e5d0; }
.day-postcard-cover img {
  padding: clamp(5px, .95vw, 12px);
  object-fit: contain;
  background: linear-gradient(155deg, #f5e5d6, #dcc0ae);
}
.day-routine-agenda { border-color: #c8c5d5; }
.day-routine-media {
  display: grid;
  height: var(--day-media-height);
  padding: clamp(8px, 1.5vw, 22px);
  background: linear-gradient(158deg, #faf7f0 6%, #e8e5ef 84%);
}
.day-routine-timeline small {
  display: block;
  color: #534e67;
  font-size: clamp(.61rem, 1vw, .73rem);
  line-height: 1.3;
}
.day-routine-timeline { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.day-routine-timeline li { display: grid; grid-template-columns: clamp(30px, 4.9vw, 69px) minmax(0, 1fr); gap: clamp(6px, 1.2vw, 15px); }
.day-routine-timeline li > span {
  position: relative;
  display: grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  padding-inline-start: clamp(7px, 1.15vw, 15px);
  border-inline-start: 1px solid #b0a8c0;
}
.day-routine-timeline li > span::before {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6e5d96;
  transform: translateY(-50%);
}
.day-routine-timeline li:nth-child(2) > span::before { border-radius: 2px; background: #3d7368; }
.day-routine-timeline li:nth-child(3) > span::before { border-radius: 1px; background: #a85f40; transform: translateY(-50%) rotate(45deg); }
.day-routine-timeline time {
  align-self: center;
  font: 560 clamp(.83rem, 1.8vw, 1.42rem)/1.05 var(--serif);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.day-routine-timeline time small { margin-top: 2px; font-family: system-ui, sans-serif; white-space: nowrap; }
.day-routine-timeline strong { font: 660 clamp(.7rem, 1.2vw, .97rem)/1.22 system-ui, sans-serif; letter-spacing: normal; }
.day-routine-agenda:hover .day-routine-timeline strong { text-decoration: none; }
.day-routine-side { display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 2fr); gap: 6px; }
.day-routine-wallet {
  gap: clamp(3px, .7vw, 9px);
  border-inline-start-color: #a695b6;
  background: #f1eaf3;
}
.day-routine-wallet strong { font: 560 clamp(1.08rem, 2.45vw, 1.95rem)/1.1 var(--serif); white-space: nowrap; }
.day-routine-wallet strong small { display: inline; font-family: system-ui, sans-serif; font-weight: 650; }
.day-routine-allocation { display: grid; gap: 5px; margin-top: 2px; }
.day-routine-meter { display: grid; grid-template-columns: 152fr 82fr 52fr; gap: 2px; height: clamp(5px, .8vw, 8px); }
.day-routine-meter i { border-radius: 4px; background: #48766d; }
.day-routine-meter i:nth-child(2) { background: #bd765d; }
.day-routine-meter i:nth-child(3) { background: #a68857; }
.day-pantry-preview { border-color: #c9c2bb; }
.day-pantry-preview small, .day-pantry-glance small { color: #5b5f61; }
.day-inventory {
  display: grid;
  height: var(--day-media-height);
  padding: clamp(8px, 1.65vw, 21px);
  background: radial-gradient(ellipse at 84% 8%, #fcf7ef, transparent 65%), linear-gradient(145deg, #eeebe6, #dcd9d6);
}
.day-pantry-shelves {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
}
.day-pantry-zone {
  --pantry-icon-width: clamp(29px, 5.4vw, 72px);
  position: relative;
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding-inline-start: calc(var(--pantry-icon-width) + clamp(5px, 1vw, 14px));
}
.day-pantry-zone + .day-pantry-zone { border-top: 1px solid #a9a09a66; }
.day-pantry-zone dt { color: #5d6166; font-size: clamp(.61rem, 1.13vw, .82rem); font-weight: 570; line-height: 1.18; }
.day-pantry-zone dd { font-size: clamp(.67rem, 1.29vw, .98rem); font-weight: 680; line-height: 1.18; }
.day-pantry-furniture {
  position: absolute;
  inset: 50% auto auto 0;
  translate: 0 -50%;
  width: var(--pantry-icon-width);
  height: clamp(31px, 5.5vw, 67px);
  background: radial-gradient(ellipse at 50% 91%, #635f5c30, transparent 53%);
}
.day-pantry-furniture::before, .day-pantry-furniture::after { position: absolute; content: ''; }
.day-pantry-furniture::before { bottom: 7%; border: 1px solid #71828b; box-shadow: 2px 4px 0 #4e56601f; }
.day-pantry-nevera .day-pantry-furniture::before {
  inset: 0 18% 7%;
  border-radius: 22% 22% 15% 15% / 9% 9% 8% 8%;
  background: linear-gradient(180deg, #fbf8ef 35%, #81939e 35%, #81939e 39%, #e2e7ea 39%, #f5f3ed 93%, #b9c4ca 93%);
}
.day-pantry-nevera .day-pantry-furniture::after {
  top: 17%; left: 31%; width: 2px; height: 13%;
  border-radius: 2px;
  background: #607782;
  box-shadow: 0 clamp(10px, 1.8vw, 22px) #607782;
}
.day-pantry-congelador .day-pantry-furniture::before {
  inset: 29% 5% 7%;
  border-radius: 12% 12% 9% 9%;
  background: linear-gradient(180deg, #faf7ed 22%, #81939e 22%, #81939e 26%, #dce4ea 26%, #edf0f1 88%, #b9c4ca 88%);
}
.day-pantry-congelador .day-pantry-furniture::after { content: '✳'; inset: auto 0 14%; color: #5b717d; font-size: clamp(.53rem, 1.22vw, 1rem); line-height: 1; text-align: center; }
.day-pantry-gabinetes .day-pantry-furniture::before {
  inset: 8% 8% 7%;
  border-radius: 8%;
  border-color: #9b7b66;
  background: linear-gradient(90deg, transparent 48%, #9d806c 48%, #9d806c 51%, transparent 51%), linear-gradient(170deg, #faf0e4 10%, #ddc3ad 76%);
}
.day-pantry-gabinetes .day-pantry-furniture::after {
  top: 47%; left: 39%; width: 2px; height: 16%;
  border-radius: 2px;
  background: #8a6b58;
  box-shadow: clamp(6px, 1vw, 15px) 0 #8a6b58;
}

@media (prefers-reduced-motion: no-preference) {
  .flow-entered { animation: flow-entrance 660ms var(--entrance-delay, 0ms) cubic-bezier(.22, .74, .26, 1) backwards; }
  :is(.hero-follow, .reading-scene, .wall-examples, .today-board, .kitchen-demo, .place-scene, .day-end-examples, .roulette-preview, .invite-form) { --entrance-delay: 70ms; }
  .day-preview { --entrance-delay: 120ms; }
}
@keyframes flow-entrance {
  from { opacity: .35; translate: 0 18px; }
  to { opacity: 1; translate: 0 0; }
}
.arrival-scene {
  --arrival-cloud: #cfdfda;
  --arrival-ink: #254653;
  --arrival-pigment: #709292;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-areas: "figure intro" "figure words" "figure choice" "figure reply" "figure next";
  align-content: center;
  gap: clamp(10px, 1.3vw, 16px) clamp(25px, 7vw, 104px);
  min-width: 0;
  color: var(--arrival-ink);
  transition: color 400ms;
}
.arrival-scene[data-arrival-mood="energia"] { --arrival-cloud: #d8e5c9; --arrival-ink: #284c3e; --arrival-pigment: #759565; }
.arrival-scene[data-arrival-mood="descanso"] { --arrival-cloud: #ddd8e8; --arrival-ink: #383f59; --arrival-pigment: #8585a4; }
.arrival-scene .chapter-copy { grid-area: intro; }
.arrival-figure {
  grid-area: figure;
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-self: center;
  min-width: 0;
  padding-block: clamp(8px, 3vw, 42px);
}
.arrival-figure::before {
  content: '';
  position: absolute;
  inset: -9% 0;
  z-index: -2;
  background-color: var(--arrival-cloud);
  mask-image: radial-gradient(ellipse at 50% 48%, #000 20%, #0009 47%, transparent 72%);
  transition: background-color 550ms;
}
@media (prefers-reduced-motion: reduce) {
  .arrival-figure::before { transition: none; }
}
.arrival-leaves { position: absolute; inset: 0; z-index: -1; overflow: hidden; mask-image: radial-gradient(ellipse, #000 42%, transparent 77%); pointer-events: none; }
.arrival-leaves::before {
  content: '';
  position: absolute;
  bottom: -26%;
  left: -15%;
  width: 130%;
  height: 43%;
  rotate: -12deg;
  border-radius: 50% 58% 0 0;
  background: color-mix(in srgb, var(--arrival-pigment) 10%, transparent);
  box-shadow: 0 -17px 0 color-mix(in srgb, var(--arrival-pigment) 8%, transparent), 0 -34px 0 color-mix(in srgb, var(--arrival-pigment) 5%, transparent);
}
.arrival-leaves i {
  --drift: 12px;
  position: absolute;
  top: 19%;
  left: 14%;
  width: 12px;
  height: 6px;
  border-radius: 11px 1px 11px 1px;
  background: var(--arrival-pigment);
  opacity: .38;
  animation: arrival-leaf 7.6s ease-in-out infinite alternate;
}
.arrival-leaves i:nth-child(2) { left: 44%; top: 73%; width: 9px; animation-delay: -4s; }
.arrival-leaves i:nth-child(3) { left: 83%; top: 20%; --drift: -9px; animation-delay: -2s; }
.arrival-leaves i:nth-child(4) { left: 86%; top: 85%; width: 8px; animation-delay: -6s; }
@keyframes arrival-leaf {
  from { transform: translate(0, 0) rotate(-12deg); }
  to { transform: translate(var(--drift), -17px) rotate(22deg); }
}
.arrival-character { display: grid; justify-items: center; align-items: start; width: min(100%, 310px); min-width: 0; padding: 0; border: none; border-radius: 22px; background: transparent; color: inherit; cursor: pointer; }
.arrival-art {
  --arrival-image: url("/assets/personaje-calma.webp");
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: var(--arrival-image) center / contain no-repeat;
}
.arrival-art:has(canvas[data-rendered]) { background: none; }
.arrival-art canvas { display: block; width: 100%; height: 100%; visibility: hidden; }
.arrival-art canvas[data-rendered] { visibility: visible; }
.arrival-still { width: min(100%, 310px); height: auto; }
.arrival-touch { max-width: 18ch; font-size: clamp(.66rem, 1.25vw, .81rem); font-weight: 630; line-height: 1.25; text-align: center; text-wrap: balance; text-decoration: underline; text-underline-offset: 3px; }
.arrival-character:hover .arrival-touch { color: var(--accent); }
.arrival-words { grid-area: words; align-self: center; display: grid; gap: 5px; }
.arrival-words h3 { font-size: clamp(1.38rem, 2.34vw, 2.05rem); text-wrap: balance; }
.arrival-words p { max-width: 46ch; font-size: clamp(.84rem, 1.35vw, .99rem); line-height: 1.48; }
.arrival-options {
  grid-area: choice;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.arrival-options label { position: relative; min-width: 0; cursor: pointer; }
.arrival-options input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: inherit; }
.arrival-options span { display: grid; place-items: center; min-height: 44px; padding: 5px; border-radius: 999px; background: color-mix(in srgb, var(--arrival-pigment) 12%, transparent); font-size: clamp(.75rem, 1.25vw, .89rem); font-weight: 620; line-height: 1.23; text-align: center; }
.arrival-options label:hover span { background: #fffaf0b2; }
.arrival-options input:checked + span { background: var(--arrival-ink); color: #fffdfa; }
.arrival-options input:focus-visible + span { outline: 2px solid var(--arrival-ink); outline-offset: 2px; }
.arrival-gesture {
  grid-area: reply;
  justify-self: start;
  padding: 7px 13px;
  border-radius: 6px 15px 15px 15px;
  background: #fffaf0c7;
  font-size: .83rem;
  font-weight: 620;
  animation: arrival-reply 260ms ease-out both;
}
.arrival-next { grid-area: next; justify-self: start; }
@keyframes arrival-reply {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.chapter { padding-block: clamp(32px, 4.8vw, 65px); }
.contigo, .pausa { min-height: calc(100svh - 16px); }
.contigo { display: grid; }
.pausa { align-content: center; }
.cotidiano, .day-end, .invite {
  background: linear-gradient(180deg, var(--page), transparent 31%, transparent 69%, var(--page)), var(--chapter-tint);
}
.pausa, .sitios, .nosotros, .invite-inner, .today-grid, .day-end-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 7vw, 105px);
}
.chapter-copy { display: grid; justify-items: start; gap: 15px; }
.chapter-copy > p:not(.saludo) { color: var(--muted); max-width: 53ch; }
.chapter-copy h2 { margin-bottom: 3px; }


.reading-scene img { width: 100%; aspect-ratio: 1.42; object-fit: cover; height: auto; object-position: center; border-radius: 19px 34px 15px 27px; }
.reading-scene figcaption { display: grid; gap: 4px; padding-top: 12px; }
.reading-scene figcaption .label { color: var(--accent); }
.reading-scene figcaption span:last-child { font: 480 clamp(1.33rem, 2.3vw, 1.87rem)/1.22 var(--serif); letter-spacing: -.03em; }

.wall-intro h2 { max-width: 26ch; }
.wall-intro > p:not(.saludo) { max-width: 58ch; }
.wall-examples {
  display: grid;
  grid-template-columns: minmax(0, min(36%, 360px)) minmax(0, 1fr);
  align-items: start;
  gap: clamp(14px, 3vw, 36px);
  margin-block: 28px 17px;
}
.wall-post {
  overflow: hidden;
  border: 1px solid #d8d6c7;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 9px 24px #2a3e3110;
}
.wall-post-header { display: flex; align-items: center; gap: 10px; padding: 12px 15px; font-size: .84rem; line-height: 1.27; }
.wall-post-header small { display: block; margin-top: 2px; color: var(--muted); }
.wall-avatar { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%; background: #dce8d9; font-weight: 720; }
.wall-thanks .wall-avatar { background: #f1dfc8; }
.wall-memory figure { padding-inline: 9px; }
.wall-memory img { width: 100%; height: auto; }
.wall-memory figcaption { padding: 12px 8px; font: 500 1.55rem/1.17 var(--serif); }
.wall-post-footer { display: flex; flex-wrap: wrap; align-items: start; gap: 4px 12px; padding: 4px 13px; border-top: 1px solid #e1ddcf; }
.wall-post-footer > small { margin-inline-start: auto; padding-block: 12px; color: var(--muted); white-space: nowrap; }
.wall-gesture, .wall-comment summary { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; color: var(--ink); font-size: .79rem; cursor: pointer; }
.wall-gesture { background: transparent; border: 0; border-radius: 100px; }
.wall-gesture[aria-pressed="true"] { padding-inline: 9px; background: #dee9dc; }
.wall-gesture:hover, .wall-comment summary:hover { color: var(--accent); }
.wall-comment { padding-left: 2px; }
.wall-comment summary { list-style: none; }
.wall-comment summary::-webkit-details-marker, .wall-private summary::-webkit-details-marker { display: none; }
.wall-comment p { margin-bottom: 9px; padding: 7px 10px; border-radius: 4px 10px 10px; background: #e9eee2; font-size: .75rem; }
.wall-notes { display: grid; gap: 13px; }
.envelope-art {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: clamp(13px, 2.8vw, 26px);
  min-height: 15rem;
  padding: clamp(24px, 3.7vw, 50px) 13% clamp(104px, 11vw, 156px);
  text-align: center;
  background: linear-gradient(#e6bd92a8, #ead0ada8), url('/assets/postal-sobre.webp') 60% 50% / cover;
}
.envelope-art::before {
  content: '';
  position: absolute;
  inset: 12% 7% 16%;
  z-index: -3;
  background: #fff8ec;
  border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 83%, 73% 100%, 27% 100%, 0 83%);
}
.envelope-art::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -2;
  clip-path: polygon(0 12%, 50% 73%, 100% 12%, 100% 100%, 0 100%);
  background: linear-gradient(90deg, #e4bf97 50%, #dbaa83 50%);
}
.envelope-fold { position: absolute; inset: auto 0 0; z-index: -1; height: 29%; clip-path: polygon(0 91%, 50% 18%, 100% 91%, 100% 100%, 0 100%); background: #edcfaa; }
.envelope-art .label { padding: 4px 11px; border-radius: 6px 6px 0 0; color: var(--accent); background: #fff8ec; }
.envelope-art blockquote { font: 590 clamp(1.58rem, 3.1vw, 2.79rem)/1.12 var(--serif); letter-spacing: -.031em; text-wrap: balance; }
.envelope-seal { position: absolute; bottom: 11%; left: 50%; translate: -50%; width: clamp(33px, 4vw, 51px); aspect-ratio: 1; border: 1px solid #f6e0bd; border-radius: 50%; background: #cd795b; box-shadow: inset 0 0 0 5px #cd795b, inset 0 0 0 6px #a55f47, 0 3px 3px #79593d40; }
.wall-private { overflow: hidden; border: 1px solid #c9d5c3; border-radius: 13px; background: #eef1e6; }
.wall-private summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 14px 16px; cursor: pointer; }
.wall-private summary:hover { background: #e4ecdf; }
.wall-private summary:focus-visible { outline-offset: -4px; }
.wall-private summary small { display: block; color: var(--muted); }
.notice-chevron { font-size: 1.3rem; line-height: 1; }
.wall-private[open] .notice-chevron { rotate: 180deg; }
.apology-art { position: relative; display: grid; gap: 10px; padding: 60px clamp(18px, 4vw, 35px) 21px; border-top: 1px solid #c9d5c3; background: #e7ede0; }
.apology-art::before { content: ''; position: absolute; inset: 0 0 auto; height: 45px; background: url('/assets/postal-perdon.webp') center 48% / cover; }
.apology-art blockquote { font: 525 clamp(1.35rem, 2.7vw, 2.05rem)/1.14 var(--serif); }
.apology-art > p:last-child { font-size: .88rem; }

@media (min-width: 701px) {
  .wall-examples { align-items: stretch; }
  .wall-memory { align-self: start; }
  .wall-notes { grid-template-rows: minmax(min-content, 1fr) auto; }
  .wall-thanks { display: grid; grid-template-rows: auto 1fr auto; }
  .envelope-art { align-content: center; padding-block: clamp(26px, 3vw, 42px) clamp(82px, 9vw, 126px); }
  .envelope-art blockquote { max-width: 22ch; font-size: clamp(1.65rem, 3vw, 2.45rem); }
}

.cotidiano { --chapter-tint: #e5ecdf; }
.today-board {
  justify-self: end;
  width: min(100%, 450px);
  border-radius: 21px 21px 8px 21px;
  overflow: hidden;
  color: var(--ink);
  background: #f2e5d6;
}
.today-board-heading { display: grid; gap: 4px; padding: 17px 18px 6px; }
.today-board-heading span { color: var(--accent); }
.today-board-heading strong { font: 540 1.7rem/1.1 var(--serif); }
.kitchen { margin-top: clamp(48px, 7vw, 94px); }
.routine-intro { display: grid; grid-template-columns: 1.33fr 1fr; align-items: end; gap: clamp(15px, 7vw, 90px); margin-bottom: 37px; }
.routine-intro > p { max-width: 41ch; color: var(--muted); }
.kitchen-demo {
  display: grid;
  grid-template-columns: minmax(0, .97fr) minmax(0, 1fr);
  overflow: hidden;
  max-width: 1050px;
  border: 1px solid #a9b8a1;
  border-radius: 24px 24px 9px 24px;
  background: #f8f3e6;
  color: var(--ink);
}
.kitchen-recipe { display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #ece6d6; }
.kitchen-recipe img { width: 100%; height: 100%; min-height: 198px; aspect-ratio: 1.85; object-fit: cover; }
.kitchen-recipe figcaption { display: grid; gap: 4px; padding: 17px clamp(17px, 2.7vw, 30px) 13px; }
.kitchen-recipe .label, .kitchen-stage .label { color: var(--accent); }
.kitchen-recipe strong { font: 535 clamp(1.45rem, 3vw, 2.15rem)/1.09 var(--serif); letter-spacing: -.029em; }
.kitchen-recipe figcaption > p:not(.label), .recipe-details { color: var(--muted); font-size: .82rem; }
.recipe-details summary { width: fit-content; padding-block: 10px; min-height: 44px; color: var(--ink); cursor: pointer; }
.recipe-details p { max-width: 36ch; margin-bottom: 6px; }
.kitchen-demo-content { display: grid; min-width: 0; align-content: start; gap: clamp(18px, 2.9vw, 31px); padding: clamp(14px, 3vw, 33px); }
.kitchen-progress { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 4px; border-radius: 16px; background: #e4eadc; list-style: none; }
.kitchen-progress li { flex: 1; padding: 6px 5px; border-radius: 11px; color: var(--muted); font-size: clamp(.73rem, 1.3vw, .85rem); text-align: center; white-space: nowrap; }
.kitchen-progress [aria-current="step"] { background: var(--night); color: var(--paper); font-weight: 650; }
.kitchen-stage { display: grid; justify-items: start; gap: 8px; min-height: 16.5rem; }
.kitchen-stage > p:not(.label) { max-width: 42ch; color: var(--muted); font-size: .86rem; }
.kitchen-stage > .button { align-self: end; margin-top: 5px; }
.stock-lines { display: grid; align-content: start; width: 100%; margin-block: 3px; border-block: 1px solid #d5ddcc; }
.stock-lines > div { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding-block: 8px; font-size: .83rem; }
.stock-lines > div + div { border-top: 1px solid #e1e5d8; }
.stock-lines dt { font-weight: 650; }
.stock-lines dt small { display: block; color: var(--muted); font-weight: 500; }
.stock-lines dd { text-align: end; }
.stock-badge { display: inline-block; border-radius: 20px; padding: 3px 7px; background: #dce8d8; color: #2d5345; font-size: .74rem; }
.stock-low { background: #f2dfca; color: #763f2d; }
.day-visual { display: grid; align-content: center; gap: 9px; padding: 10px 18px 19px; }
.day-visual > div { display: flex; align-items: center; gap: 9px; font-size: .82rem; line-height: 1.42; }
.day-visual small { display: block; color: #4b5a50; font-size: .73rem; }
.day-icon { display: grid; place-items: center; flex: 0 0 27px; height: 27px; border: 1px solid #c8aa91; border-radius: 9px; color: #713d2c; font-weight: 680; }
.cotidiano .text-link { margin-top: 20px; }

.place-scene {
  position: relative;
  padding: clamp(21px, 5vw, 57px);
  overflow: hidden;
  border-radius: 45% 45% 24px 24px / 18% 18% 24px 24px;
  background: radial-gradient(ellipse at 37% 25%, #e5e9d4, #cdd9c3);
}
.place-ticket {
  padding: clamp(17px, 4vw, 31px);
  border: 1px solid #e2d7bd;
  border-radius: 17px 17px 6px 6px;
  background: var(--paper);
  box-shadow: 7px 12px 28px #24463f26;
  transform: rotate(3deg);
}
.place-ticket-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--accent); }
.place-title { margin-block: 13px 10px; font: 515 clamp(1.8rem, 4.3vw, 3.45rem)/.99 var(--serif); letter-spacing: -.049em; }
.place-orders > div { display: flex; justify-content: space-between; gap: 8px; padding-block: 6px; color: var(--muted); font-size: .85rem; }
.place-orders dd { flex: none; }
.place-ticket figcaption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 11px; margin-top: 10px; padding-top: 9px; border-top: 1px dashed #a4aa90; font-size: .79rem; color: var(--muted); }
.place-ticket figcaption strong { color: var(--ink); font-size: .94rem; }

.day-end { --chapter-tint: #edf0e5; }
.day-end-examples { display: grid; gap: 12px; }
.spend-sample { display: grid; gap: 13px; padding: clamp(17px, 3vw, 29px); border: 1px solid #bacdbb; border-radius: 19px 19px 8px 19px; background: #f8f8ed; }
.spend-sample figcaption { display: grid; gap: 3px; }
.spend-sample strong { font: 550 clamp(2rem, 4.5vw, 3.35rem)/1.14 var(--serif); letter-spacing: -.035em; }
.spend-sample strong small { font: 650 .74rem/1 system-ui, sans-serif; letter-spacing: .05em; }
.spend-chart { display: grid; grid-template-columns: 152fr 82fr 52fr; gap: 4px; height: 14px; }
.spend-chart span { border-radius: 5px; background: #315d52; }
.spend-chart span:nth-child(2), .spend-legend div:nth-child(2) dt::before { background: #ac6047; }
.spend-chart span:nth-child(3), .spend-legend div:nth-child(3) dt::before { background: #ad894a; }
.spend-legend > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-block: 4px; font-size: .85rem; }
.spend-legend dt::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-inline-end: 8px; border-radius: 3px; background: #315d52; }
.spend-legend dd { font-weight: 660; font-variant-numeric: tabular-nums; }
.plan-sample { display: flex; align-items: center; gap: 12px; padding: 14px 17px; border: 1px solid #c9d5c3; border-radius: 13px; background: var(--paper); }
.plan-sample div > span:last-child { color: var(--muted); font-size: .83rem; }
.plan-date { display: grid; place-items: center; flex: 0 0 52px; min-height: 49px; border-radius: 12px; background: #f2e0ca; color: #733c28; font-weight: 670; }
.plan-sample div { display: grid; gap: 2px; }
.plan-sample div > strong { font: 550 1.32rem/1.13 var(--serif); }

.nosotros { row-gap: clamp(26px, 4vw, 56px); }
.roulette-preview {
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  gap: 17px;
  overflow: hidden;
  padding: clamp(20px, 4vw, 39px) 14px 19px;
  border: 1px solid #6d8876;
  border-radius: 9px 36px 9px 36px;
  background: radial-gradient(ellipse at 57% 43%, #486b5f, #284b46 62%, #233d3c);
  color: #fff7e6;
  text-align: center;
}
.roulette-preview::before, .roulette-preview::after { content: ''; position: absolute; z-index: -1; inset: -36% 4%; border: 1px solid #d5dcb64d; border-radius: 48%; transform: rotate(-34deg); }
.roulette-preview::after { transform: rotate(38deg); }
.roulette-preview h3 { font-size: clamp(1.8rem, 3.7vw, 2.89rem); }
.roulette-frame { position: relative; display: grid; place-items: center; width: min(100% - 16px, 324px); aspect-ratio: 1; padding: 7px; border: 1px solid #f6db94; border-radius: 50%; background: #293e37; box-shadow: 0 12px 22px #10211d70; }
.roulette-frame::after { content: ''; position: absolute; z-index: 1; top: -5px; left: calc(50% - 12px); width: 24px; height: 30px; background: #f4ca7d; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.roulette-disc {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid #f8e1a7;
  border-radius: 50%;
  background: conic-gradient(from -18deg, #f6d98f 0deg 36deg, #acc3b1 36deg 72deg, #f3c2a0 72deg 108deg, #e7ac9a 108deg 144deg, #cbdbb7 144deg 180deg, #eac783 180deg 216deg, #b8d0c8 216deg 252deg, #f1ceb2 252deg 288deg, #dbb0a6 288deg 324deg, #d3d6b1 324deg);
  box-shadow: inset 0 0 0 5px #79593d40, inset 0 0 0 7px #fff2ceaa;
  transition: transform 1.6s cubic-bezier(.13, .68, .16, 1);
}
.roulette-disc::before { content: ''; position: absolute; inset: 11%; border: 1px solid #5c483b50; border-radius: 50%; }
.roulette-sector { position: absolute; inset: 0; display: grid; align-content: start; justify-items: center; gap: 2px; transform: rotate(var(--angle)); padding-top: 13%; color: #243c37; font-size: clamp(.58rem, 1.4vw, .81rem); font-weight: 730; line-height: 1.07; }
.roulette-sector b { font: 520 clamp(.87rem, 3.4vw, 1.37rem)/1 Georgia, serif; }
.roulette-center { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 26%; min-width: 48px; aspect-ratio: 1; padding: 0; border: 2px solid #a07753; border-radius: 50%; background: #f9edcf; box-shadow: 0 3px 7px #2c2a2460, inset 0 0 0 4px #faecc8, inset 0 0 0 5px #bd946a; cursor: pointer; touch-action: manipulation; }
.roulette-center:hover { background: #ffeac0; }
.roulette-center:focus-visible { outline-color: #fff7e6; }
.roulette-center[aria-disabled="true"] { cursor: wait; }
.roulette-center img { width: 64%; height: auto; }
.roulette-result { display: grid; align-content: center; min-height: 3.1em; max-width: 40ch; color: #f5e4bc; font-size: .87rem; line-height: 1.45; }

.invite { --chapter-tint: #e8ecdf; }
.invite .chapter-copy > .invite-scope { font-size: .87rem; max-width: 44ch; }
.invite-form {
  min-width: 0;
  padding: clamp(16px, 3vw, 34px);
  border: 1px solid #c1cebb;
  border-radius: 25px 25px 9px 25px;
  background: var(--paper);
  box-shadow: 0 10px 20px #254b3510;
}
.invite-form label { display: block; margin-bottom: 9px; font-weight: 680; }
.invite-input { display: flex; align-items: stretch; gap: 9px; flex-wrap: wrap; }
.invite-input input[type="text"] { flex: 1 1 148px; min-width: 0; padding: 10px 13px; border: 1px solid #819789; border-radius: 11px; color: var(--ink); background: #fffdf6; }
.invite-input button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.invite-status:not(:empty) { margin-top: 9px; font-size: .87rem; color: var(--accent); }
.invite-result { display: grid; justify-items: start; gap: 11px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.invite-message { width: 100%; min-width: 0; white-space: pre-line; overflow-wrap: anywhere; }
.invite-preview { max-width: 100%; overflow-wrap: anywhere; text-underline-offset: 3px; color: var(--ink); font-weight: 650; }
#invite-url { width: 100%; min-width: 0; padding: 8px 10px; color: var(--ink); border: 1px solid #819789; border-radius: 8px; background: var(--paper); }
.start { padding-block: clamp(46px, 6.25vw, 84px); display: flex; align-items: center; gap: 22px 45px; justify-content: space-between; }
.start h2 { font-size: clamp(2rem, 3.5vw, 3.4rem); }
.start p { margin-top: 10px; color: var(--muted); }
.start .button { flex: none; }

.price-dialog {
  width: min(100% - 28px, 570px);
  max-height: calc(100dvh - 32px);
  padding: clamp(21px, 4vw, 35px);
  border: 1px solid #bdcebe;
  border-radius: 27px 27px 9px 27px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 14px 54px #173f3e45;
}
.price-dialog::backdrop { background: #173f3e9e; }
.price-close { position: absolute; inset: 13px 13px auto auto; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #b6c6b5; border-radius: 50%; background: #e8eedf; color: var(--ink); font-size: 1.5rem; cursor: pointer; }
.price-dialog .saludo { margin: 0 33px 8px 0; }
.price-dialog h2 { margin-bottom: 17px; font-size: clamp(2.12rem, 5vw, 3.15rem); }
.price-lines { display: grid; gap: 10px; margin-bottom: 18px; }
.price-payment { margin-bottom: 14px; color: var(--muted); font-size: .9rem; }
.price-plan { display: grid; gap: 6px; padding: clamp(13px, 3vw, 19px); border: 1px solid #c4d3cc; border-radius: 16px 16px 6px 16px; background: #e7eee7; }
.price-plan-linked { background: #f6ecdc; border-color: #e2d5bf; }
.price-plan h3 { font-size: clamp(1.26rem, 4vw, 1.63rem); }
.price-plan > p:not(.price-amount) { color: var(--muted); font-size: .85rem; line-height: 1.48; }
.price-amount { margin-bottom: 2px; font-size: .78rem; font-weight: 650; }
.price-amount strong { font: 630 1.82rem/1.14 var(--serif); letter-spacing: -.045em; }
.price-amount span { color: var(--muted); font-weight: 570; }
.site-footer { background: linear-gradient(180deg, var(--page), #f0eddf); }
.footer-inner { min-height: 82px; color: var(--muted); }
.footer-inner .brand { color: var(--ink); }

.story-navigation { display: none; }
.story-close { display: contents; }

@media (min-width: 900px) and (min-height: 620px) {
  :root {
    --story-inset: clamp(24px, 4.3svh, 58px);
    --story-end: clamp(54px, 7.5svh, 78px);
    --footer-size: 82px;
  }
  html { scroll-snap-type: y mandatory; }
  :is(#inicio, #cocina, #cotidiano, #despensa, #invitar, #planes, main > .chapter) { scroll-margin-top: 0; }
  :is(#inicio, [data-story]:not(.arrival)) { scroll-snap-align: start; scroll-snap-stop: always; }
  :is(#cotidiano, #despensa, #invitar, #planes) { scroll-snap-align: none; }

  .hero { padding-block: var(--story-inset) var(--story-end); }
  .hero-copy h1 { font-size: clamp(2.8rem, min(5.95vw, 10svh), 5.7rem); }
  .day-preview { --day-media-height: clamp(190px, min(26vw, 39svh), 335px); }

  :is(main > .chapter:not(.cotidiano), .today-grid, .kitchen) {
    min-block-size: 100svh;
    padding-block: var(--story-inset) var(--story-end);
    align-content: center;
  }
  :is(.chapter, .kitchen) h2 { font-size: clamp(2.45rem, min(4.6vw, 8.2svh), 4.65rem); }
  .cotidiano { padding-block: 0; }
  .day-end { display: grid; }

  .wall {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.55fr);
    grid-template-areas: "intro examples" "next examples";
    gap: 10px clamp(21px, 3.4vw, 48px);
  }
  .wall-intro { grid-area: intro; align-self: end; }
  .wall-intro h2 { text-wrap: balance; }
  .wall > .text-link { grid-area: next; align-self: start; justify-self: start; }
  .wall-examples {
    grid-area: examples;
    align-self: center;
    grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
    gap: clamp(12px, 1.6vw, 22px);
    margin: 0;
  }
  .wall-memory img { max-height: min(42svh, 365px); object-fit: cover; object-position: center 57%; }
  .envelope-art {
    min-height: clamp(12rem, 30svh, 16.5rem);
    gap: 12px;
    padding-block: clamp(20px, 3svh, 34px) clamp(62px, 11svh, 110px);
  }
  .envelope-art blockquote { font-size: clamp(1.35rem, min(2.65vw, 4.25svh), 2.22rem); }

  .kitchen {
    display: grid;
    width: min(100%, 1050px);
    margin: 0 auto;
  }
  .routine-intro { margin-bottom: clamp(14px, 2.3svh, 25px); }
  .kitchen-recipe img { height: clamp(175px, 31svh, 279px); min-height: 0; aspect-ratio: auto; }
  .kitchen-demo-content { gap: clamp(14px, 2.75svh, 28px); padding: clamp(15px, 3.3svh, 32px); }
  .kitchen > .text-link { justify-self: start; margin-top: 12px; }

  .story-close {
    display: grid;
    align-content: center;
    gap: clamp(22px, 5.4svh, 55px);
    min-block-size: calc(100svh - var(--footer-size));
    padding-block: var(--story-inset);
    background: linear-gradient(180deg, var(--page), #e8ecdfb8 58%, var(--page));
  }
  .story-close .invite { padding-block: 0; background: none; }
  .start {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(26px, 7vw, 105px);
    padding-block: 0;
  }
  .start > .button { justify-self: start; }
  .footer-inner { padding-inline-end: 140px; }

  .story-navigation {
    position: fixed;
    z-index: 2;
    inset: auto max(14px, calc((100% - 1214px) / 2)) 12px auto;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid #193f3b2e;
    border-radius: 100px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 5px 17px #193f3b12;
  }
  .story-navigation button {
    display: grid;
    place-items: center;
    width: 38px;
    min-height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 1.05rem;
    cursor: pointer;
  }
  .story-navigation button[aria-disabled="true"] { opacity: .35; cursor: default; }
  .story-navigation button:not([aria-disabled="true"]):hover { background: #e4ebdf; }
  #story-position { min-width: 44px; text-align: center; font-size: .77rem; font-variant-numeric: tabular-nums; }
}

@media (min-width: 900px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .start.flow-entered { animation: none; }
  .start.flow-entered > * { animation: flow-entrance 660ms cubic-bezier(.22, .74, .26, 1) backwards; }

  @supports (animation-timeline: view()) {
    :is(.chapter-copy:not(.arrival-scene .chapter-copy), .arrival-scene, .reading-scene, .wall-examples,
        .today-board, .routine-intro, .kitchen-demo, .place-scene, .day-end-examples, .roulette-preview,
        .invite-form, .start.flow-entered > *) {
      animation: story-entrance linear both;
      animation-timeline: view(block);
      animation-range: entry 0% entry var(--story-reveal-end, 88%);
    }
    :is(.reading-scene, .wall-examples, .today-board, .kitchen-demo, .place-scene, .day-end-examples,
        .roulette-preview, .invite-form) {
      --story-rise: 36px;
      --story-reveal-end: 100%;
    }
  }
}

@keyframes story-entrance {
  from { opacity: .28; translate: 0 var(--story-rise, 21px); }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 880px) {
  .routine-intro { gap: 25px; }
}

@media (max-width: 700px) {
  :root { --header-size: 62px; }
  .hero, .pausa, .sitios, .nosotros, .invite-inner, .routine-intro, .today-grid, .wall-examples, .day-end-inner, .kitchen-demo { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-areas: 'copy' 'experience' 'follow'; gap: 19px; padding-top: 25px; }
  .hero-copy h1 { max-width: 20ch; font-size: clamp(2.22rem, 8.4vw, 3.65rem); }
  .hero-copy h1 em { display: block; }
  .day-preview { --day-media-height: clamp(190px, 51vw, 330px); max-width: none; border-radius: 20px 28px 20px 28px; }
  .arrival-scene {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "figure" "words" "choice" "reply" "next";
    grid-template-rows: auto minmax(min-content, 1fr) auto auto auto auto;
    align-content: stretch;
    gap: 10px;
  }
  .arrival-scene .chapter-copy { gap: 8px; }
  .arrival-figure { align-self: stretch; align-content: center; padding-block: 6px; }
  .arrival-character, .arrival-still { width: min(66%, 35svh, 286px); }
  .arrival-words { justify-items: center; text-align: center; }
  .arrival-words h3 { font-size: clamp(1.45rem, 5vw, 2.16rem); }
  .hero-actions { margin-top: 12px; }
  .routine-intro { gap: 12px; margin-bottom: 22px; }
  .kitchen-recipe img { height: auto; min-height: 0; }
  .today-board { justify-self: start; }
  .nosotros .chapter-copy { grid-row: 1; }
  .start { display: grid; justify-items: start; }
  .footer-inner { padding-block: 12px; flex-wrap: wrap; gap: 10px 16px; }
}

@media (max-width: 440px) {
  .site-header .brand { gap: 7px; }
  .site-header .brand-title { font-size: .89rem; }
  .site-header .brand-mark { width: 32px; }
  .header-entry { padding-inline: 9px; font-size: .74rem; gap: 6px; }
  .day-preview { --day-caption-height: 69px; }
}

@media (max-width: 365px) {
  :root { --header-size: 104px; }
  .button { padding-inline: 13px; }
  .header-inner { flex-wrap: wrap; padding-block: 9px; }
  .header-entry { margin-inline-start: auto; }
  .arrival-options span { padding-inline: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  body, .button, .site-header, .arrival, .day-preview, .arrival-scene, .roulette-disc { transition: none; }
  .day-panel, .arrival-leaves i, .arrival-gesture { animation: none; }
}
