.book-site.reading {
  background: linear-gradient(#17291ed4, #18271ed9), #1b2d22 url("./assets/jardin-nocturno.webp") center top / cover;
  color: var(--ink);
  min-height: 100svh;
  overflow-x: clip;
}

.reading .reading-room {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: .7rem;
  width: min(calc(100% - clamp(1rem, 5vw, 4.2rem)), 89rem);
  height: 100vh;
  height: 100dvh;
  margin: auto;
  padding-block: .7rem max(.55rem, env(safe-area-inset-bottom));
}
.book-pages {
  height: 100%;
  overflow: hidden auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #81916b #f3e6c7;
}
.book-pages:focus-visible { outline-offset: -.25rem; }
.reading .music { padding: .2rem; border: 0; color: #eee4c3; }
.book-spread {
  --paper-light: #faf2dc;
  --paper-edge: #e5d6b6;
  --binding: #8c7856;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  isolation: isolate;
  overflow: hidden;
  border: .48rem solid #3b503a;
  border-radius: 1.1rem 1.1rem .85rem .85rem;
  background:
    repeating-linear-gradient(0deg, #856c3108 0 1px, transparent 1px 5px),
    linear-gradient(90deg, #ad956b24, transparent 3%, transparent 48%, #a089602b 49.7%, #77634347 50%, #bba07728 50.35%, transparent 53%, transparent 97%, #b59d742c),
    radial-gradient(ellipse at 53% 4%, #fff9e6, #f2e5c9 85%);
  box-shadow:
    0 .4rem 0 -.1rem #c8ad80,
    0 .63rem 0 -.13rem #776b4c,
    0 .91rem 0 -.13rem #354332,
    0 1.3rem 2.4rem #0b130ccb,
    inset 0 1px #fff8dc;
}
.book-spread::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: .55rem;
  pointer-events: none;
  box-shadow: inset .22rem 0 0 #fdf5db8c, inset -.2rem 0 0 #eee4c8b3, inset 0 -.19rem 0 #ac96673b;
}
.book-spread::after {
  content: "";
  position: absolute;
  z-index: 4;
  pointer-events: none;
  inset: 0 auto 0 calc(50% - 1.65rem);
  width: 3.3rem;
  background: linear-gradient(90deg, transparent, #88725320 33%, #5948333a 48%, #513f244c 49.9%, #fffae4a8 50.2%, #a68e6235 54%, transparent);
}

.reading .reader-page {
  min-height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}
.reader-page::before { content: none; }
.reading .page-turning {
  background-color: #f8edd1;
  box-shadow: 0 .22rem 1.4rem #453e2b59;
  backface-visibility: hidden;
}
.reader-page .leaf {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(2rem, 5.1vw, 4.7rem);
  overflow-wrap: anywhere;
}
.reader-page h2 {
  color: #283e31;
  font-size: clamp(2.45rem, 5.55vw, 5.65rem);
  letter-spacing: -.058em;
  line-height: 1.04;
}
.reader-page .chapter-rule {
  color: #7c714c;
  margin: 0 0 1.1rem;
}
.reader-page .chapter-rule::before, .reader-page .chapter-rule::after { background: #a99e74; }
.leaf-copy, .handwritten { margin-top: 1.2rem; max-width: 41ch; }
.leaf-copy { color: #3f513d; font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.65; }
.handwritten {
  color: #526348;
  font: italic clamp(1.24rem, 2.25vw, 2.05rem)/1.38 var(--serif);
}
.reader-page .signature {
  margin-top: 1.6rem;
  font: italic clamp(1.38rem, 2.35vw, 2.2rem) var(--serif);
  color: #466049;
}
.leaf.dedication { background: radial-gradient(ellipse at 12% 10%, #d7dbbd62, transparent 68%); }
.dedication-recipient {
  margin-bottom: .65rem;
  color: #526344;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}
.dedication h2 { max-width: 11ch; }
.illustration-leaf { background: radial-gradient(ellipse at 61% 42%, #dec8d833, transparent 67%); }
.storybook-plate {
  width: min(100%, 23rem);
  margin-inline: auto;
  padding: clamp(.9rem, 2.2vw, 1.5rem);
  border: 1px solid #ae9869;
  border-radius: 46% 46% .4rem .4rem / 26% 26% .4rem .4rem;
  outline: 1px solid #ae986975;
  outline-offset: .3rem;
  background: linear-gradient(150deg, #faf4df, #fbf7eb 54%, #efe5d4);
  box-shadow: 0 .5rem 1.6rem #68502e20, inset 0 0 1.2rem #ab936323;
  text-align: center;
  transform: rotate(2deg);
}
.storybook-illustration {
  position: relative;
  display: grid;
  place-items: center;
  margin-inline: auto;
  width: min(100%, 17rem);
  aspect-ratio: 1.04;
  border-radius: 50%;
  background: radial-gradient(ellipse at 52% 55%, #dbe5d5 6%, #e7d7eb80 42%, transparent 68%);
}
.storybook-illustration img {
  width: 65%;
  height: auto;
  max-height: 92%;
  object-fit: contain;
  filter: drop-shadow(.15rem .3rem .35rem #6651663d);
}
.storybook-illustration::before, .storybook-illustration::after, .storybook-sparkle {
  position: absolute;
  color: #927544;
  line-height: 1;
}
.storybook-illustration::before { content: "✦"; left: 11%; top: 31%; font-size: clamp(.7rem, 1.6vw, 1.25rem); }
.storybook-illustration::after { content: "✧"; right: 9%; top: 22%; font-size: 1.1rem; }
.storybook-sparkle { right: 15%; bottom: 24%; font-size: .9rem; }
.storybook-plate figcaption {
  color: #685535;
  font: italic clamp(1.12rem, 2vw, 1.48rem)/1.25 var(--serif);
  margin: .15rem 0 .15rem;
}
.paper-photo {
  position: relative;
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
  border: .6rem solid #fff9e9;
  background: #eee2c5;
  box-shadow: .15rem .4rem .75rem #302c2042, inset 0 0 0 1px #a99a7560;
}
.paper-photo::before, .paper-photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: -.36rem;
  width: 23%;
  height: 1.5rem;
  background: #d4bd837f;
  pointer-events: none;
  clip-path: polygon(0 10%, 7% 0, 100% 11%, 98% 100%, 3% 89%);
}
.paper-photo::before { left: -.75rem; transform: rotate(-30deg); }
.paper-photo::after { right: -.75rem; transform: rotate(29deg); }
.paper-photo img { width: 100%; height: auto; object-fit: cover; }
.album-print { transform: rotate(-2deg); }
.album-print img { aspect-ratio: 1.18; }
.birthday-print { max-width: min(22rem, 45dvh); transform: rotate(1.5deg); }
.birthday-print img { aspect-ratio: 4/5; }
.birthday-spread h2 em { display: block; color: #50684b; }
.birthday-kicker { color: #6f6948; margin-bottom: .4rem; }
.birthday-spread .birthday-note { margin-top: .8rem; }
.birthday-closing {
  width: min(100%, 24rem);
  margin: 1.55rem auto 0;
  padding: .95rem .85rem 0;
  border-top: 1px solid #c4b486;
  color: #3f513d;
  font: italic clamp(1.05rem, 1.6vw, 1.28rem)/1.52 var(--serif);
  text-align: center;
}
.birthday-closing .signature { margin-top: .55rem; }
.wish-button { margin-top: 1rem; }

.favorites .leaf-left { justify-content: start; }
.favorites .leaf { padding-block: clamp(1.6rem, 3.8vw, 3.45rem); }
.favorites h2 { font-size: clamp(2.4rem, 4.65vw, 4.65rem); }
.favorites .leaf-copy { margin-block: .9rem 1.25rem; }
#gusto-principal, .favorite-grid { width: 100%; }
.cat-memories { width: 100%; margin-top: 1.45rem; }
.cat-memories h3 { color: #3e583e; font: italic 1.4rem/1.2 var(--serif); }
.cat-memories .photo-grid {
  margin: .8rem 0 .55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.55rem, 2vw, .95rem);
}
.cat-memories .photo-frame { aspect-ratio: 1.12; }
.cat-memories .photo-button { cursor: zoom-in; }
.cat-memories .photo-caption { text-align: center; font-style: italic; }
.cat-memories .polaroid:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(64%, 15rem);
}
.favorite-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.favorite-card {
  min-width: 0;
  overflow: hidden;
  background: #fff7e5;
  border: 1px solid #c9bfa0;
  box-shadow: .12rem .21rem .31rem #6f60492c;
}
.favorite-card img { width: 100%; height: auto; aspect-ratio: 1.52; object-fit: cover; }
.favorite-illustration { background: #fbf1f0; border-color: #c1a0b2; }
.favorite-illustration img {
  object-fit: contain;
  padding: .5rem;
  background: radial-gradient(ellipse, #e6cbdc, #f4e8ec 70%);
}
.favorite-note {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .7rem;
  background: linear-gradient(120deg, #e5e9d6, #f6edda);
}
.favorite-note-mark {
  display: grid;
  place-items: center;
  flex: 0 0 2.2rem;
  aspect-ratio: 1;
  color: #44573a;
  border: 1px solid #78845f77;
  border-radius: 50%;
  font-size: 1.25rem;
}
.favorite-copy { padding: .65rem .7rem .75rem; }
.favorite-copy h3 {
  font: 400 clamp(1.24rem, 2.03vw, 1.75rem)/1.12 var(--serif);
  letter-spacing: -.04em;
  color: var(--forest);
  margin: 0 0 .35rem;
}
.favorite-copy p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
#gusto-principal .favorite-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 16.2rem;
  isolation: isolate;
  background: #223a2b;
  border: .37rem solid #fff6df;
  transform: rotate(-1deg);
}
#gusto-principal .favorite-card img { position: absolute; z-index: -1; inset: 0; height: 100%; object-position: center 46%; }
#gusto-principal .favorite-copy { padding: 2.3rem 1rem .85rem; background: linear-gradient(transparent, #172b20f2 2.3rem); }
#gusto-principal h3 { color: #fff2d3; }
#gusto-principal p { color: #f4efd9; }

.plans-intro {
  border-radius: .56rem 0 0 0;
  background:
    repeating-linear-gradient(127deg, #f1edc608 0 1px, transparent 1px 6px),
    radial-gradient(ellipse at 30% 2%, #47604b, #243a30 76%);
}
.plans-intro h2 { color: #fff1cb; }
.plans-intro .chapter-rule { color: #dfc38b; }
.plans-intro .leaf-copy { color: #f0ead6; }
.tickets-art {
  position: relative;
  width: min(89%, 19rem);
  aspect-ratio: 2.15;
  margin: 2rem 0 .35rem 4%;
}
.tickets-art span {
  position: absolute;
  inset: 10% 7%;
  border: 1px solid #c6ae73;
  border-radius: .35rem;
  outline: 1px solid #807447;
  outline-offset: -.38rem;
  box-shadow: 0 .32rem .75rem #091a12a1;
}
.tickets-art-back {
  background: #a9b68b;
  transform: translate(3%, -7%) rotate(10deg);
}
.tickets-art-front {
  background: url("./assets/helecho-dorado.webp") 26% center / auto 72% no-repeat, #f2e1b8;
  transform: translate(-5%, 7%) rotate(-12deg);
}
.tickets-art-front::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 30%;
  border-left: 1px dashed #9f8b60;
  background: repeating-linear-gradient(90deg, #776342 0 1px, transparent 1px 4px)
    center / 42% 27% no-repeat;
}
.plans-spread .plans-menu { padding-block: clamp(1.7rem, 4vw, 3.9rem); }
.coupon-form { width: 100%; max-width: 35rem; }
.coupon-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.coupon-form legend {
  margin-bottom: .3rem;
  padding: 0;
  color: #354c3d;
  font: italic clamp(1.35rem, 2vw, 1.85rem)/1.2 var(--serif);
}
.coupon-scroll-guide {
  margin-bottom: .65rem;
  color: #4e5a46;
  font-size: .88rem;
  line-height: 1.35;
}
.coupon-list {
  display: grid;
  gap: .55rem;
  max-block-size: clamp(14rem, 49svh, 31rem);
  overflow-y: auto;
  padding: .3rem .45rem .3rem .3rem;
  scroll-padding-block: .45rem;
  scrollbar-width: thin;
  scrollbar-color: #6d8062 #e9dfc3;
  border-radius: .36rem;
}
.coupon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.1rem;
  min-height: 4.2rem;
  color: #294434;
  background: #fff8e5;
  border: 1px solid #aa9e7b;
  border-radius: .36rem;
  box-shadow: .1rem .18rem 0 #a28b5b22;
  cursor: pointer;
}
.coupon:hover { background: #faf0d7; }
.coupon:has(input:checked) {
  background: #e5ebd5;
  border-color: #557154;
  box-shadow: inset 0 0 0 1px #557154;
}
.coupon:has(input:focus-visible) { outline: 2px solid #7c5e35; outline-offset: 2px; }
.coupon-copy {
  display: grid;
  align-content: center;
  gap: .15rem;
  padding: .58rem .8rem;
}
.coupon-title { font: 500 clamp(1.22rem, 1.85vw, 1.53rem)/1.08 var(--serif); }
.coupon-note { color: #445749; font-size: .88rem; line-height: 1.3; }
.coupon-stub {
  display: grid;
  place-items: center;
  border-left: 1px dashed #a39774;
}
.coupon-stub input {
  width: 1.16rem;
  height: 1.16rem;
  margin: 0;
  accent-color: #365a44;
  cursor: pointer;
}
.coupon-claim { margin-top: 1rem; }
.coupon-claim:disabled { color: #4f5c4e; background: #e3e5d7; cursor: default; }
.coupon-dialog { width: min(29rem, calc(100% - 1.5rem)); }
.coupon-dialog .dialog-inner { padding-block: clamp(1.75rem, 4vw, 2.45rem); }
.coupon-plan {
  display: inline-block;
  border: 1px dashed #809372;
  border-radius: .25rem;
  padding: .25rem .65rem;
  margin-bottom: .9rem;
  color: #34513d;
  background: #e9edda;
  font-size: .86rem;
}
.coupon-dialog h2 { font-size: clamp(1.85rem, 4.4vw, 2.45rem); }
#nota-cupon { margin: .85rem 0 1.1rem; color: #405747; }

.margin-note {
  margin-top: 1.55rem;
  padding: .7rem 0 .2rem .95rem;
  border-left: 1px solid #a68b57;
  max-width: 31ch;
  color: #43543a;
  font: italic clamp(1.13rem, 1.65vw, 1.48rem)/1.42 var(--serif);
}
.detail-notes { width: 100%; }
.detail-invitation { margin-bottom: .95rem; color: #405341; }
.detail-notes .detail {
  background: #fbf6e6;
  border: 1px solid #bfc6ae;
  box-shadow: .11rem .16rem 0 #7a8c6a26;
}
.detail-notes .detail + .detail { margin-top: .5rem; }
.detail-notes .detail summary { padding-inline: .85rem; }
.detail-notes .detail p { padding-left: 3.15rem; }
.album-leaf .photo-grid { width: 100%; margin: 1rem 0 0; }
.album-leaf .photo-grid:not([hidden]) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .8rem; }
.album-leaf .album-note { aspect-ratio: auto; align-self: center; }
.memories .album-leaf .photo-grid:not([hidden]) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.7rem, 2vw, 1.45rem);
  align-items: start;
  max-width: 33rem;
  margin: 0 auto .55rem;
  padding: clamp(.48rem, 1.65vw, 1.25rem) clamp(.22rem, 1vw, .75rem) 1.2rem;
  background: radial-gradient(ellipse at 50% 48%, #b8c69b60, transparent 74%);
}
.memories .album-leaf .photo-grid:has(> :only-child):not([hidden]) {
  grid-template-columns: minmax(0, 1fr);
  max-width: 17rem;
}
.memories .polaroid { position: relative; background: #fff9e9; }
.memories .polaroid:not(:only-child):not(.album-note):nth-child(odd) { transform: rotate(-2.5deg); }
.memories .polaroid:not(.album-note):nth-child(even) { transform: translateY(.55rem) rotate(2.5deg); }
.memories .polaroid::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -.3rem;
  left: 33%;
  width: 34%;
  height: .9rem;
  background: #c7b582a8;
  clip-path: polygon(0 14%, 100% 0, 97% 91%, 3% 100%);
  transform: rotate(-5deg);
  pointer-events: none;
}
.memories .photo-frame { aspect-ratio: 8/9; }
.memories .photo-button { cursor: zoom-in; }
.memories .photo-caption { color: #465942; font-style: italic; }
.book-spread:has(.family:not([hidden])) {
  background:
    radial-gradient(ellipse at 50% 52%, #bfcfa84d, transparent 65%),
    repeating-linear-gradient(0deg, #856c3108 0 1px, transparent 1px 5px),
    radial-gradient(ellipse at 50% 8%, #fff9e7, #f4e6c9 85%);
}
.book-spread:has(.family:not([hidden]))::after { content: none; }
.reading .reader-page.family {
  grid-template-columns: minmax(0, 1fr);
}
.family .family-album {
  align-items: center;
  padding: clamp(1.4rem, 3.2vw, 2.45rem) clamp(.55rem, 3vw, 3rem) 1.5rem;
  text-align: center;
}
.family-album h2 { font-size: clamp(2.75rem, 6.4vw, 5rem); }
.family-album .chapter-rule { margin-bottom: .6rem; }
.family-album .leaf-copy {
  max-width: 45ch;
  margin: .55rem 0 .35rem;
  padding-inline: .45rem;
}
.family-album .paper-photo { max-width: 38rem; margin-top: 1rem; }
.family-album .family-grid { width: min(100%, 45rem); }
.family .family-messages { width: 100%; margin-top: 1rem; }
.family-album .family-grid.en-corazon {
  position: relative;
  display: block;
  width: min(100%, 35rem, max(21rem, calc((100svh - 17rem) * 1.14)));
  aspect-ratio: 1.15;
  margin: 0 auto;
  isolation: isolate;
}
@media (min-width: 64rem) {
  .family .family-album::before,
  .family .family-album::after {
    content: "";
    position: absolute;
    bottom: 9%;
    width: clamp(6rem, 13vw, 11rem);
    aspect-ratio: 1;
    pointer-events: none;
    background: url("./assets/helecho-dorado.webp") center / contain no-repeat;
    opacity: .33;
  }
  .family .family-album::before { left: 5%; transform: rotate(-22deg); }
  .family .family-album::after { right: 5%; transform: scaleX(-1) rotate(-22deg); }
}
.en-corazon .polaroid {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--ancho);
  padding: clamp(1px, .28vw, 4px);
  border: 1px solid #beb096;
  border-radius: .14rem;
  background: #fff9e9;
  box-shadow: 0 .14rem .32rem #46372761;
  transform: translate(-50%, -50%) rotate(var(--giro));
}
.en-corazon .photo-frame {
  aspect-ratio: var(--proporcion);
  border: none;
  border-radius: 0;
}
.en-corazon .photo-button { cursor: zoom-in; }
.en-corazon .photo-button img {
  scale: var(--acercamiento, 1);
  transform-origin: 50% 80%;
}
.en-corazon .photo-caption { display: none; }
.en-corazon .polaroid:focus-within { z-index: 1; }
@media (hover: hover) {
  .en-corazon .polaroid:hover { z-index: 1; }
}
.collage-guide {
  margin: .4rem auto 0;
  min-height: 2.75rem;
  padding: .45rem 1rem;
  color: #274b37;
  background: #e4ebd6;
  border: 1px solid #809877;
  border-radius: 2rem;
  font: 600 .91rem/1.3 var(--sans);
}
.collage-guide:hover { background: #d9e5c9; }
.photo-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .9rem;
  padding: 0 .55rem .55rem;
  color: var(--forest);
  font-size: .88rem;
}
.photo-navigation button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  background: #e8ecdc;
  color: var(--forest);
  border: 1px solid #9fae97;
  border-radius: 50%;
}
.photo-navigation span { min-width: 4rem; text-align: center; }
.photo-dialog:has(.photo-navigation:not([hidden])) img { max-height: 65dvh; }

.letter .envelope { width: 100%; max-width: 100%; }
.letter-slot {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  margin-top: 1.15rem;
  padding: .8rem .95rem;
  border: 1px dashed #8f997b;
  border-radius: .36rem;
  background: #dce4c73d;
  color: #415843;
  font: italic 1.05rem/1.35 var(--serif);
}
.letter .envelope summary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(13rem, 25vw, 20rem);
  background:
    repeating-linear-gradient(86deg, #e9e8cc0c 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 56% 16%, #5c6c4d, #334b3b 73%);
  border-color: #899c73;
  box-shadow: .1rem .55rem .95rem #293a2b60;
}
.letter .envelope summary::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: -1% -1% 12%;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 50% 81%);
  background: linear-gradient(#c9d0a22e, #c8d1a86b);
  transform-origin: top;
  transition: transform .33s, opacity .33s;
}
.letter .envelope[open] summary { min-height: 7rem; }
.letter .envelope[open] summary::before { transform: scaleY(.1); opacity: .3; }
.envelope-initial {
  position: absolute;
  top: 7%;
  left: 7%;
  color: #eed9a0;
  font: italic 1.25rem var(--serif);
}
.letter .seal { color: #f4efcf; background: #785b3b; border-color: #cfb680; outline-color: #cfb680; }
.letter-sheet { width: 100%; padding: clamp(1.15rem, 3.55vw, 2.35rem); }
.letter:has(.envelope > div.letter-sheet:not([hidden])) .leaf-left { justify-content: flex-start; }
.letter .envelope > div.letter-sheet {
  background: linear-gradient(110deg, #f8edd1, #fffbef 13%, #fffbef 90%, #f6ead0);
  color: #384837;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.72;
}
.letter .letter-greeting {
  padding-bottom: .6rem;
  border-bottom: 1px solid #ccb889;
  color: #466049;
}
.letter .envelope .signature { margin-top: 1.35rem; }
.letter .envelope + .envelope { margin-top: 1rem; }
.letter-access .letter-clue {
  display: flex;
  gap: .55rem;
  padding: .5rem .7rem;
  border-left: 2px solid #a48957;
  background: #e9dfbf;
  color: #4c4d34;
  font: italic 1.06rem/1.38 var(--serif);
}
.letter-access .pin-hint { font-size: .9rem; line-height: 1.45; }
.pin-example { display: block; margin-top: .2rem; color: #354c38; font-weight: 600; }
.letter-access .code-status[data-sorpresa] {
  margin-block: .65rem;
  padding: .55rem .7rem;
  border: 1px dashed #a98b54;
  border-radius: .36rem;
  background: #f7e5b7;
  color: #53412b;
  font: italic 1.04rem/1.42 var(--serif);
}

.lock-print {
  width: 100%;
  min-height: 16rem;
  display: grid;
  align-content: center;
  justify-items: center;
  position: relative;
  gap: .85rem;
  padding: clamp(1.35rem, 4vw, 2.6rem);
  border-radius: .35rem;
  background: linear-gradient(155deg, #344936d9, #152c21eb), url("./assets/jardin-nocturno.webp") center / cover;
  box-shadow: .12rem .5rem 1.15rem #38443559;
  color: #f9ebc2;
}
.lock-print::after { content: ""; position: absolute; inset: .65rem; border: 1px solid #dbc68d65; pointer-events: none; }
.lock-print .lock-emblem {
  width: 2.35rem;
  height: 2.35rem;
  margin: 0;
  color: #e5cc8f;
}
.chapter-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: .75rem;
  width: min(95%, 19rem);
  margin: .45rem auto .2rem;
}
.chapter-photos:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 10rem; }
.chapter-photo {
  padding: .27rem .27rem .6rem;
  background: #faf1dd;
  box-shadow: 0 .3rem .65rem #122018a8;
  transform: rotate(-7deg);
}
.chapter-photo:nth-child(2) { transform: rotate(7deg) translateY(.25rem); }
.chapter-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.reading .page-controls {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .45rem;
  padding-inline: clamp(.75rem, 3.7vw, 3.2rem);
  border-top: 1px solid #b29c694d;
  background: #f1e3c677;
}
.page-prev, .page-next {
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  color: #34523e;
  border-radius: .25rem;
  text-decoration: none;
}
.page-prev { grid-column: 1; justify-self: start; }
.page-next { grid-column: 3; justify-self: end; }
.page-prev:hover, .page-next:hover, .cover-return:hover .monogram { background: #d5dfbf; }
.page-controls :focus-visible { outline: 2px solid #637a52; outline-offset: -2px; }
.turn-arrow { font: 2.05rem/1 var(--serif); }
.cover-return {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  text-decoration: none;
}
.cover-return .monogram {
  width: 1.95rem;
  height: 1.95rem;
  border-color: #839268;
  outline: 1px solid #8c9b71;
  outline-offset: -.23rem;
  background: #e4e7cd;
  color: #385642;
  font-size: 1.04rem;
}

@media (max-width: 68rem) {
  .reader-page .leaf { padding-inline: clamp(1.55rem, 4vw, 3.3rem); }
  .favorite-grid { grid-template-columns: minmax(0, 1fr); }
  .favorite-grid .favorite-card { display: grid; grid-template-columns: minmax(5rem, 32%) minmax(0, 1fr); }
  .favorite-grid .favorite-card img { height: 100%; min-height: 5.8rem; aspect-ratio: auto; }
  .favorite-grid .favorite-note { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .favorite-grid .favorite-illustration img { height: 100%; max-height: 9rem; padding: .3rem; }
}
@media (max-width: 45rem) {
  .reading .reading-room { width: calc(100% - .75rem); padding-top: .4rem; gap: .5rem; }
  .book-spread {
    border: .34rem solid #3b503a;
    border-radius: .63rem;
    background: linear-gradient(90deg, #c0a57745, #f9efda 1.05rem, #f8ecd0 100%);
  }
  .book-spread::after {
    inset: 0 auto 0 0;
    width: 1rem;
    background: linear-gradient(90deg, #8f79584f, #b5a37d22 41%, transparent);
  }
  .reading .reader-page {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    align-items: start;
  }
  .reader-page .leaf { padding: 1.65rem 1.3rem 1.25rem 1.5rem; }
  .reader-page .leaf-right { padding-top: .6rem; padding-bottom: 1.65rem; }
  .family .family-album { padding-inline: .45rem; }
  .reader-page h2 { font-size: clamp(2.6rem, 11.1vw, 4.3rem); }
  .reader-page .leaf-copy { margin-top: .8rem; }
  .reader-page .chapter-rule { margin-bottom: .8rem; }
  .reader-page .handwritten { margin-top: .8rem; }
  .reader-page .signature { margin-top: .8rem; }
  .paper-photo { border-width: .44rem; }
  .storybook-plate { width: min(93%, 15.25rem); padding: .65rem .85rem .8rem; transform: rotate(1deg); }
  .storybook-illustration { width: min(100%, 10rem); }
  .dedication h2 { max-width: none; }
  .birthday-print { max-width: 17.5rem; }
  .favorites .leaf { padding-block: 1.4rem; }
  .favorites .leaf-right { padding-top: 0; }
  .favorites h2 { font-size: clamp(2.45rem, 10.9vw, 4.15rem); }
  .favorite-copy p { font-size: .97rem; }
  .plans-intro { border-radius: .28rem .28rem 0 0; }
  .plans-intro .leaf-copy { margin-top: .55rem; }
  .tickets-art { display: none; }
  .plans-spread .plans-menu { padding-block: 1.15rem 1.35rem; }
  .coupon-list { max-block-size: clamp(12rem, 42svh, 23rem); }
  .coupon-claim { width: 100%; }
}
