:root {
  --night: #161a26;
  --ink: #222633;
  --paper: #ece6d6;
  --muted: #b8b7bb;
  --accent: #d4b886;
  --display: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --fast: 140ms;
}
* { box-sizing: border-box; }
html { background: var(--night); }
body { margin: 0; background: var(--night); color: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body.is-wrapped { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.demo-label { position: fixed; z-index: 30; top: 0; left: 0; width: 100%; padding: 7px 12px; text-align: center; background: #252b3a; color: #d5d2c9; font-size: 11px; letter-spacing: .035em; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { object-fit: contain; }
.brand > span { font-family: var(--display); font-size: 25px; letter-spacing: .04em; line-height: 1; }
.brand small { display: block; font-family: var(--sans); font-size: 11px; text-align: center; letter-spacing: .24em; margin-top: 6px; }
.eyebrow { font-size: 11px; font-weight: 600; line-height: 1.8; letter-spacing: .19em; text-transform: uppercase; }
.invitation { position: fixed; z-index: 20; inset: 0; display: flex; flex-direction: column; align-items: center; padding: 62px 24px 25px; background: var(--night); overflow: auto; }
.invitation-brand { flex: 0 0 auto; }
.invitation-copy { text-align: center; margin-top: clamp(22px, 4vh, 48px); width: min(100%, 900px); }
.invitation-copy .eyebrow { color: var(--accent); margin: 0 0 10px; overflow-wrap: anywhere; }
.invitation-copy h1 { font: 400 clamp(38px, 4.5vw, 68px)/1.09 var(--display); margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.invitation-copy > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 18px 0 0; }
.envelope-scene { flex: 0 0 auto; width: min(530px, 78vw); aspect-ratio: 160 / 120; margin: clamp(45px, 7vh, 74px) 0 25px; position: relative; perspective: 1200px; }
.envelope { position: absolute; inset: 0; transform: none; transform-style: preserve-3d; }
.envelope-back { position: absolute; inset: 0; background: #242b3b; box-shadow: 0 32px 65px #0007; border: 1px solid #3a4150; border-radius: 3px; }
.envelope-folds { position: absolute; inset: 0; z-index: 4; background: #252d3d; clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%); border-radius: 2px; }
.envelope-folds::before { content: ""; position: absolute; inset: 0; background: #2a3243; clip-path: polygon(0 100%, 50% 43%, 100% 100%); }
.envelope-folds span { position: absolute; inset: 0; background: #71798c; opacity: .22; clip-path: polygon(0 100%, 49.9% 43%, 50.1% 43%, .4% 100%, 99.6% 100%, 50% 43%, 50.3% 43%, 100% 100%); }
.envelope-flap { position: absolute; inset: 0 0 auto; height: 60%; transform-origin: center top; transform-style: preserve-3d; z-index: 6; }
.envelope-flap > span { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden; }
.flap-outside { background: linear-gradient(160deg, #394256, #2a3143 80%); }
.flap-inside { background: linear-gradient(180deg, #171d2a, #30394b); transform: rotateX(180deg); }
.flap-outside::after { content: ""; position: absolute; inset: 0; background: #7f899e; opacity: .2; clip-path: polygon(0 0, 50% 99%, 100% 0, 100% 1%, 50% 100%, 0 1%); }
.envelope-seal { position: absolute; z-index: 7; top: 48%; left: 50%; width: 68px; height: 68px; border-radius: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; background: var(--paper); box-shadow: 0 4px 12px #0005, inset 0 0 0 4px #d3ccba, inset 0 0 0 5px #f7f1e2; }
.envelope-seal img, .letter img, .paper-top img { object-fit: contain; filter: none; }
.envelope-seal img { opacity: 1; }
.envelope-address { position: absolute; z-index: 5; top: 72%; left: 12%; right: 12%; text-align: center; }
.envelope-address small { display: block; font-size: 13px; letter-spacing: .28em; color: #b4b9c8; }
.letter { position: absolute; z-index: 3; top: 5%; left: 21%; width: 58%; height: 89%; color: var(--ink); background: var(--paper); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 15px; box-shadow: 2px 0 0 #d1c9b8, 4px 0 0 #ada798, 0 3px 14px #0003; transform-origin: center bottom; }
.letter::before { content: ""; position: absolute; inset: 12px; border: 1px solid #252b3923; }
.letter > span { font: 400 clamp(20px, 2.3vw, 29px)/1.15 var(--display); text-align: center; width: 80%; overflow-wrap: normal; text-wrap: balance; }
.letter small { font-size: 11px; letter-spacing: .22em; }
.envelope-trigger { position: absolute; z-index: 8; inset: -15px; border: none; background: transparent; border-radius: 6px; }
.envelope-scene:has(.envelope-trigger:hover) .envelope-seal { box-shadow: 0 4px 18px #0008, inset 0 0 0 4px #d3ccba, inset 0 0 0 5px #f7f1e2; }
.invitation-actions { text-align: center; margin-top: 7px; }
.open-button { display: flex; align-items: center; gap: 32px; border: 1px solid #d4b88670; background: transparent; color: var(--paper); padding: 17px 26px; font-size: 12px; letter-spacing: .025em; transition: background var(--fast) var(--ease), transform var(--fast) var(--ease); }
.open-button:hover { background: #d4b88612; }
.open-button:active { transform: scale(.98); }
.open-button span { color: var(--accent); font-size: 19px; line-height: 1; }
.invitation-actions p { color: #9295a0; font-size: 11px; margin: 14px 0; }
.skip-button { background: none; border: 0; color: #b8b7bb; font-size: 11px; padding: 16px; margin-top: auto; }
.skip-button span { display: inline-block; margin-left: 10px; }
.is-opening .envelope { animation: none; }
.is-opening .envelope-trigger { pointer-events: none; }
.recipient-view { width: min(1160px, calc(100% - 96px)); margin: 0 auto; padding: 61px 0 24px; }
.is-wrapped .recipient-view { visibility: hidden; }
.recipient-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 32px; gap: 20px; }
.text-button { color: #b8b7bb; background: none; border: none; font-size: 11px; padding: 12px 0 12px 12px; }
.text-button span { font-size: 16px; display: inline-block; margin-right: 8px; }
.gift-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: start; }
.gift-paper { position: relative; background: var(--paper); color: var(--ink); padding: 38px 46px 24px; min-height: 660px; transform-origin: top left; overflow-wrap: anywhere; box-shadow: 0 22px 60px #0003; }
.gift-paper::before { content: ""; position: absolute; inset: 15px; border: 1px solid #22263320; pointer-events: none; }
.paper-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 25px; }
.paper-top .eyebrow { color: #6b655c; }
.gift-paper h1 { font: 400 clamp(36px, 3.8vw, 55px)/1.12 var(--display); margin: 0 0 27px; text-wrap: balance; outline: none; }
.personal-message { margin-bottom: 32px; }
.message-text { font: 400 25px/1.5 var(--display); white-space: pre-wrap; margin: 0; text-wrap: pretty; }
.signature { font-size: 13px; color: #5a564c; margin: 16px 0 0; white-space: pre-wrap; }
.gift-dedication { font-size: 13px; line-height: 1.9; color: #5a564c; margin-bottom: 33px; }
.ritual-details { border-top: 1px solid #22263329; padding-top: 25px; }
.ritual-details .eyebrow { color: #726b5d; margin: 0 0 9px; }
.ritual-details h2 { font: 400 32px/1.14 var(--display); margin: 0 0 15px; text-wrap: balance; }
.ritual-description { font-size: 13px; line-height: 1.9; color: #55554e; margin: 0; white-space: pre-wrap; }
.voucher-meta { display: flex; flex-wrap: wrap; gap: 25px 50px; margin: 30px 0 33px; }
.voucher-meta dt { font-size: 11px; color: #5a564c; margin-bottom: 6px; }
.voucher-meta dd { font-size: 12px; font-weight: 600; margin: 0; }
.paper-foot { border-top: 1px solid #22263320; padding-top: 17px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 11px; letter-spacing: .12em; color: #726d63; }
.gift-next { min-width: 0; }
.ritual-image { height: 335px; position: relative; overflow: hidden; }
.ritual-image > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.ritual-image::after { content: ""; position: absolute; inset: 0; background: #0e111925; }
.ritual-image > span { position: absolute; z-index: 1; left: 30px; bottom: 26px; font: 400 34px/1.12 var(--display); text-shadow: 0 2px 14px #0009; }
.next-content { padding: 29px 0 0; }
.next-content h2 { font: 400 31px/1.14 var(--display); margin: 0 0 10px; text-wrap: balance; }
.next-content > p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: 0 0 24px; }
.booking-button { display: flex; align-items: center; justify-content: space-between; padding: 19px 22px; color: var(--night); background: var(--paper); font-size: 12px; font-weight: 600; transition: background var(--fast) var(--ease), transform var(--fast) var(--ease); }
.booking-button span { font-size: 21px; line-height: 1; }
.booking-button:hover { background: #fff5df; }
.booking-button:active { transform: scale(.985); }
.secondary-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 16px 0; }
.secondary-actions a, .secondary-actions button { padding: 8px 0; border: none; background: none; color: #d0ccc3; font-size: 11px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #d0ccc350; }
.secondary-actions button span { margin-left: 5px; }
.next-content p.redemption-note { font-size: 13px; line-height: 1.9; margin: 7px 0 0; color: #9295a0; max-width: 37ch; }
.recipient-footer { display: flex; justify-content: space-between; gap: 15px; padding-top: 30px; font-size: 11px; color: #9295a0; }
.noscript-note { font-size: 12px; text-align: center; }
.chapter-navigation { display: flex; gap: 34px; margin: 0 0 24px; }
.chapter-navigation button { min-height: 44px; border: 0; border-bottom: 1px solid transparent; background: none; color: #a4a6ae; padding: 11px 0; font-size: 11px; transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease); }
.chapter-navigation button span { color: #9a9fae; font-size: 11px; margin-right: 9px; }
.chapter-navigation button[aria-current="page"] { color: var(--paper); border-color: var(--accent); }
.chapter-navigation button[aria-current="page"] span { color: var(--accent); }
.gift-paper.gift-book { padding: 0; min-height: 0; background: var(--paper); perspective: 2000px; isolation: isolate; box-shadow: 0 4px 0 #ccc5b5, 0 7px 0 #8d8b81, 0 10px 0 #252d3d, 0 24px 60px #0005; border-radius: 2px; scroll-margin-top: 36px; }
.gift-book::before { display: none; }
.gift-book.is-unwrapping { background: transparent; box-shadow: none; transform-style: preserve-3d; overflow: visible; }
.opening-cover, .opening-leaf { position: absolute; inset: 0 0 0 50%; transform-origin: left center; transform-style: preserve-3d; pointer-events: none; }
.opening-cover { z-index: 12; }
.opening-leaf { z-index: 11; background: var(--paper); box-shadow: 2px 0 0 #bfb7a5; backface-visibility: visible; }
.opening-leaf + .opening-leaf { z-index: 10; }
.cover-front, .cover-back { position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden; }
.cover-front { color: var(--ink); background: var(--paper); box-shadow: 3px 0 0 #bfb7a5, 5px 0 0 #8e897d, 0 18px 35px #0005; }
.cover-front > .letter { inset: 0; width: 100%; height: 100%; box-shadow: none; }
.cover-front .letter img { width: 22%; height: auto; }
.cover-front .letter > span { font-size: clamp(30px, 4vw, 52px); }
.cover-back { transform: rotateY(180deg); background: var(--paper); }
.cover-back > .chapter-art { height: 100%; }
.opening-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0007, transparent 35%); backface-visibility: hidden; pointer-events: none; }
.book-spread { display: grid; grid-template-columns: 1fr 1fr; min-height: var(--book-page-height, 580px); }
.book-spread.closing-cover { display: flex; justify-content: center; align-items: center; position: relative; color: var(--paper); background: var(--night); box-shadow: inset 0 0 0 1px #ece6d625, inset 8px 0 12px -12px #000; }
.closing-cover::before { content: ""; position: absolute; inset: 22px; border: 1px solid #ece6d61b; pointer-events: none; }
.closing-cover-content { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 65px 30px; width: 100%; }
.closing-lotus { width: 140px; height: auto; object-fit: contain; margin-bottom: 20px; }
.closing-wordmark { font: 400 49px/1 var(--display); letter-spacing: .025em; }
.closing-wordmark span { display: block; font: 500 11px/1 var(--sans); letter-spacing: .24em; padding-left: .4em; margin-top: 13px; }
.closing-cover h2 { font: 400 clamp(36px, 4vw, 54px)/1.12 var(--display); margin: 58px 0 16px; outline: none; text-wrap: balance; }
.closing-cover p { color: #b8b7bb; font-size: 13px; line-height: 1.8; margin: 0; }
.closing-location { font-size: 11px; letter-spacing: .22em; margin-top: 64px; color: #b8b7bb; }
.cover-crop { height: 100%; position: relative; }
.cover-crop > .closing-cover { height: 100%; min-height: 0; }
.chapter-art { position: relative; min-width: 0; overflow: hidden; color: var(--paper); background: #242b3b; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 45px; }
.chapter-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset -13px 0 18px -17px #000c; pointer-events: none; }
.art-eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .18em; line-height: 1.8; }
.message-art .art-eyebrow { position: absolute; left: 35px; top: 35px; }
.book-lotus { object-fit: contain; margin: 0 0 45px; opacity: .85; }
.art-title { font: 400 48px/1.12 var(--display); text-align: center; text-wrap: balance; }
.art-signature { font-size: 11px; letter-spacing: .22em; position: absolute; bottom: 40px; }
.chapter-content { background: var(--paper); padding: 36px 45px 25px; display: flex; flex-direction: column; min-width: 0; box-shadow: inset 14px 0 20px -20px #242b39c0; }
.chapter-content .paper-top { margin-bottom: 28px; }
.chapter-content .paper-top .eyebrow { font-size: 11px; }
.chapter-content h1, .chapter-content h2 { font: 400 clamp(36px, 3.6vw, 50px)/1.1 var(--display); margin: 0 0 28px; text-wrap: balance; outline: none; }
.chapter-content .message-text { font-size: 25px; line-height: 1.45; }
.chapter-content .signature { font-size: 13px; margin-top: 22px; }
.chapter-content .personal-message { margin-bottom: 26px; }
.page-invitation { font-size: 13px; line-height: 1.8; color: #5a564c; margin: 0 0 28px; }
.chapter-content .paper-foot { margin-top: auto; padding-top: 19px; }
.photo-art { padding: 0; justify-content: flex-end; align-items: flex-start; }
.photo-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-art .art-eyebrow { position: absolute; z-index: 1; left: 35px; top: 35px; text-shadow: 0 1px 8px #000c; }
.photo-art .art-title { position: relative; z-index: 1; padding: 0 35px 40px; text-align: left; font-size: 46px; text-shadow: 0 2px 15px #000c; }
.studio-art > img { object-position: center; }
.chapter-content .ritual-description { font-size: 13px; line-height: 1.9; margin-bottom: 28px; }
.ritual-arrival { border-top: 1px solid #22263320; padding-top: 22px; }
.ritual-arrival .eyebrow { color: #5a564c; font-size: 11px; }
.ritual-arrival p { font-size: 13px; line-height: 1.8; color: #5e5b52; margin: 9px 0 0; }
.chapter-content .voucher-meta { margin: 26px 0 18px; }
.chapter-content .redemption-note { font-size: 13px; line-height: 1.8; color: #5a564c; margin: 0 0 25px; }
.essence-story p { font-size: 13px; line-height: 1.85; color: #5e5b52; margin: 0 0 17px; }
.essence-story .community-welcome { color: var(--ink); }
.welcome-signature { font-size: 13px; line-height: 1.8; margin: 10px 0 28px; color: #5e5b52; }
.welcome-signature span { font-family: var(--display); font-size: 19px; color: var(--ink); }
.book-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding: 27px 0 24px; border-bottom: 1px solid #ece6d625; }
.book-pagination button { min-height: 44px; border: 0; background: none; color: var(--paper); padding: 12px 0; font-size: 11px; text-align: left; }
.book-pagination button:last-child { text-align: right; }
.book-pagination button span { display: inline-block; margin: 0 12px; font-size: 17px; transition: transform var(--fast) var(--ease); }
.book-pagination button:first-child span { margin-left: 0; }
.book-pagination button:last-child span { margin-right: 0; }
.book-pagination button:last-child:hover span { transform: translateX(4px); }
.book-pagination button:disabled { opacity: .3; }
.page-counter { font-size: 11px; font-variant-numeric: tabular-nums; color: #b8b7bb; letter-spacing: .12em; }
.mobile-leaf-hint { display: block; font-size: 11px; color: #9295a0; text-align: center; margin: 13px 0 0; }
.book-actions { display: flex; justify-content: space-between; align-items: center; gap: 25px; padding-top: 26px; }
.book-actions .eyebrow { color: #9295a0; font-size: 11px; margin: 0 0 6px; }
.book-actions p { margin: 0; font-size: 13px; }
.book-actions .booking-button { width: 310px; }
.recipient-view > .secondary-actions { padding: 10px 0 0; }
.recipient-footer { padding-top: 24px; }
.turning-leaf { position: absolute; z-index: 8; top: 0; bottom: 0; left: 50%; width: 50%; transform-origin: left center; transform-style: preserve-3d; pointer-events: none; }
.turning-leaf.is-backward { left: 0; transform-origin: right center; }
.leaf-face { position: absolute; inset: 0; background: var(--paper); backface-visibility: hidden; overflow: hidden; box-shadow: 0 0 16px #0002; }
.leaf-face > .chapter-content, .leaf-face > .chapter-art { height: 100%; }
.leaf-back { transform: rotateY(180deg); }
.turning-still { position: absolute; z-index: 6; inset: 0 50% 0 0; overflow: hidden; pointer-events: none; }
.turning-still.is-backward { inset: 0 0 0 50%; }
.turning-still > .chapter-art, .turning-still > .chapter-content { height: 100%; }
.turning-still > .cover-crop { height: 100%; }
.gift-book.is-turning { overflow: clip; }
.book-enhanced .gift-book { cursor: grab; touch-action: pan-y; }
.book-enhanced .gift-book.is-dragging { cursor: grabbing; user-select: none; -webkit-user-select: none; }
.book-enhanced .gift-book a, .book-enhanced .gift-book button { cursor: pointer; }
.gift-book img { -webkit-user-drag: none; user-select: none; }
.curl-slice { position: absolute; top: 0; bottom: 0; left: 0; transform-origin: left center; transform-style: preserve-3d; }
.curl-slice.is-backward { transform-origin: right center; }
.curl-slice .leaf-face { box-shadow: none; }
.blank-leaf .leaf-texture { visibility: hidden; }
.leaf-texture { position: absolute; top: 0; }
.leaf-texture > .chapter-content, .leaf-texture > .chapter-art, .leaf-texture > .book-spread, .leaf-texture > .cover-crop { height: 100%; }
.leaf-shading { position: absolute; inset: 0; background: #24211b; pointer-events: none; opacity: 0; }
.curl-shadow { position: absolute; z-index: 7; top: 0; bottom: 0; left: 50%; width: 15%; background: linear-gradient(90deg, #24211b99, #24211b00); transform-origin: left center; pointer-events: none; opacity: 0; }
.curl-shadow.is-backward { left: 35%; transform-origin: right center; background: linear-gradient(270deg, #24211b99, #24211b00); }
.booking-steps { list-style: none; padding: 0; margin: 0 0 24px; }
.booking-steps li { display: flex; gap: 15px; margin-bottom: 17px; }
.booking-steps li > span { flex: 0 0 18px; white-space: nowrap; padding-top: 4px; font-size: 11px; color: #5a564c; }
.booking-steps h3 { font: 400 21px/1.2 var(--display); margin: 0 0 5px; }
.booking-steps p { color: #5e5b52; font-size: 13px; line-height: 1.8; margin: 0; }
.chapter-booking-button { background: var(--night); color: var(--paper); padding: 16px 18px; font-size: 11px; }
.chapter-booking-button:hover { background: #2b3244; }
.chapter-help { font-size: 13px; line-height: 1.7; margin: 17px 0 25px; text-decoration: underline; text-underline-offset: 4px; color: #5e5b52; }
html:not(.book-enhanced) .chapter-navigation, html:not(.book-enhanced) .book-pagination { display: none; }
html:not(.book-enhanced) .book-spread[hidden] { display: grid !important; }
html:not(.book-enhanced) .book-spread.closing-cover[hidden] { display: flex !important; }
@keyframes envelope-breathe { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-9px) rotate(-3deg); } }
@media (max-height: 760px) and (min-width: 701px) {
  .invitation { padding-top: 45px; }
  .invitation-copy { margin-top: 20px; }
  .invitation-copy h1 { font-size: 48px; }
  .envelope-scene { width: 420px; margin-top: 45px; margin-bottom: 14px; }
  .invitation-brand img { width: 50px; height: 40px; }
}
@media (max-width: 900px) {
  .recipient-view { width: calc(100% - 48px); }
  .gift-layout { gap: 24px; grid-template-columns: 1.2fr 1fr; }
  .gift-paper { padding: 32px 30px 24px; }
  .message-text { font-size: 23px; }
  .next-content h2 { font-size: 27px; }
  .chapter-content { padding: 30px 30px 25px; }
  .chapter-content .message-text { font-size: 23px; }
  .art-title, .photo-art .art-title { font-size: 38px; }
}
@media (max-width: 700px) {
  .opening-cover, .opening-leaf { left: 0; }
  .invitation { padding: 54px 22px 15px; min-height: 100svh; }
  .invitation-brand img { width: 59px; height: 45px; }
  .invitation-brand > span { font-size: 23px; }
  .invitation-copy { margin-top: clamp(30px, 7vh, 58px); }
  .invitation-copy h1 { font-size: clamp(36px, 10vw, 48px); }
  .invitation-copy > p:last-child { font-size: 13px; }
  .envelope-scene { width: min(340px, calc(100vw - 48px)); aspect-ratio: 160 / 120; margin-top: clamp(26px, 4vh, 40px); margin-bottom: 18px; }
  .envelope-seal { width: 54px; height: 54px; }
  .envelope-seal img { width: 34px; height: 27px; }
  .envelope-address > span { font-size: 22px; }
  .envelope-address small { font-size: 11px; }
  .letter { left: 6%; width: 88%; gap: 10px; }
  .letter img { width: 48px; height: 36px; }
  .letter small { font-size: 11px; }
  .invitation-actions { margin-top: 16px; }
  .open-button { padding: 17px 25px; }
  .skip-button { padding: 16px 10px; }
  .recipient-view { width: calc(100% - 36px); padding-top: 49px; }
  .recipient-header { padding-bottom: 26px; }
  .recipient-header .brand img { width: 44px; height: 34px; }
  .recipient-header .brand > span { font-size: 21px; }
  .replay-button { font-size: 11px; }
  .gift-layout { display: flex; flex-direction: column; gap: 28px; }
  .gift-paper { width: 100%; min-height: 0; padding: 30px 29px 26px; }
  .gift-paper::before { inset: 11px; }
  .paper-top { margin-bottom: 25px; }
  .paper-top img { width: 44px; height: 34px; }
  .gift-paper h1 { font-size: 40px; margin-bottom: 25px; }
  .message-text { font-size: 24px; }
  .ritual-details h2 { font-size: 30px; }
  .voucher-meta { gap: 22px 30px; }
  .gift-next { width: 100%; }
  .ritual-image { height: 290px; }
  .next-content { padding: 25px 8px 0; }
  .next-content h2 { font-size: 30px; }
  .recipient-footer { font-size: 11px; padding: 32px 8px 10px; }
  .chapter-navigation { gap: 6px; display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 19px; }
  .chapter-navigation button { font-size: 11px; text-align: center; white-space: nowrap; }
  .chapter-navigation button span { display: block; font-size: 11px; margin: 0 0 5px; }
  .book-spread { display: flex; flex-direction: column; min-height: var(--book-page-height, 0px); }
  .closing-cover-content { padding: 52px 26px; }
  .closing-lotus { width: 115px; }
  .closing-wordmark { font-size: 42px; }
  .closing-cover h2 { font-size: 40px; margin-top: 50px; }
  .closing-location { margin-top: 52px; }
  .message-art { display: none; }
  .chapter-content { flex: 1; min-height: 530px; padding: 29px 28px 24px; box-shadow: inset 9px 0 14px -15px #242b39d0; }
  .chapter-content h1, .chapter-content h2 { font-size: 38px; margin-bottom: 27px; }
  .chapter-content .message-text { font-size: clamp(18px, 4.9vw, 21px); line-height: 1.55; }
  .chapter-content .paper-top { margin-bottom: 30px; }
  .chapter-content .paper-top img { width: 36px; height: 28px; }
  .photo-art { height: 240px; flex-shrink: 0; }
  .photo-art .art-title { font-size: 33px; padding: 0 25px 25px; }
  .photo-art .art-eyebrow { top: 25px; left: 25px; font-size: 11px; }
  .chapter-content .ritual-description { font-size: 13px; }
  .book-pagination { gap: 10px; padding-top: 24px; padding-bottom: 20px; }
  .book-pagination button { font-size: 11px; }
  .book-pagination button span { margin: 0 6px; }
  .page-counter { font-size: 11px; }
  .gift-book { touch-action: pan-y; }
  .mobile-leaf-hint { display: block; font-size: 11px; color: #9295a0; text-align: center; margin: 12px 0 0; }
  .book-actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .book-actions .booking-button { width: 100%; }
  .turning-leaf, .turning-leaf.is-backward { left: 0; width: 100%; transform-origin: left center; }
  .turning-still { display: none; }
  .leaf-face > .book-spread { height: 100%; }
  .leaf-back > .chapter-art { display: flex; }
  .curl-shadow, .curl-shadow.is-backward { left: 0; width: 20%; }
}
@media (max-height: 680px) and (max-width: 700px) {
  .invitation { padding-top: 43px; }
  .invitation-brand img { width: 46px; height: 34px; }
  .invitation-copy { margin-top: 18px; }
  .invitation-copy h1 { font-size: 36px; }
  .invitation-copy > p:last-child { margin-top: 12px; }
  .envelope-scene { width: min(300px, calc(100vw - 64px)); margin-top: 22px; margin-bottom: 12px; }
  .invitation-actions { margin-top: 8px; }
  .invitation-actions p { margin: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .envelope { animation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
@media print {
  @page { size: A4; margin: 16mm; }
  html, body { background: white; color: #222633; overflow: visible !important; }
  .invitation, .recipient-header, .gift-next, .recipient-footer, .sr-only { display: none !important; }
  .recipient-view { visibility: visible !important; width: 100%; margin: 0; padding: 0; }
  .gift-layout { display: block; }
  .gift-paper { padding: 28px; min-height: 0; width: 100%; background: white; box-shadow: none; transform: none !important; opacity: 1 !important; }
  .gift-paper::before { inset: 0; }
  .gift-paper h1 { font-size: 40px; }
  .message-text { font-size: 22px; }
  .ritual-details, .voucher-meta, .paper-foot { break-inside: avoid; }
  .demo-label { position: static; background: white; color: #222633; padding: 0 0 15px; }
  .chapter-navigation, .book-pagination, .book-actions, .secondary-actions, .mobile-leaf-hint, .turning-leaf, .turning-still, .curl-shadow, .opening-cover, .opening-leaf, .chapter-booking-button, .chapter-help { display: none !important; }
  .gift-paper.gift-book { box-shadow: none; background: white; perspective: none; }
  .book-spread, .book-spread[hidden] { display: block !important; break-after: page; min-height: 0; }
  .book-spread[data-page="3"] { break-after: auto; }
  .book-spread.closing-cover, .book-spread.closing-cover[hidden] { display: none !important; }
  html:not(.book-enhanced) .book-spread.closing-cover[hidden] { display: none !important; }
  .chapter-art { display: none !important; }
  .chapter-content { padding: 25px; box-shadow: none; background: white; min-height: 0; border: 1px solid #22263330; }
  .chapter-content .paper-top, .chapter-content h1, .chapter-content h2 { break-after: avoid; }
}

/* One object, not a website: the gesture is explained above the book, not in a menu. */
.recipient-view { width: min(1040px, calc(100% - 80px)); padding: 62px 0 30px; }
.book-gesture-cue { text-align: center; font-size: 12px; line-height: 1.7; color: #d0ccc3; margin: 0 auto 22px; max-width: 55ch; scroll-margin-top: 42px; }
.letter strong { font: 500 13px/1.4 var(--sans); max-width: 80%; text-align: center; overflow-wrap: anywhere; }
.cover-front .letter strong { font-size: clamp(16px, 2vw, 24px); }
.book-pagination { display: flex; justify-content: center; gap: 22px; padding: 19px 0 8px; border: 0; }
.book-pagination button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; color: #d0ccc3; }
.book-pagination button:hover:not(:disabled) { background: #ece6d60a; }
.book-pagination button span, .book-pagination button:first-child span, .book-pagination button:last-child span { margin: 0; font-size: 20px; }
.book-pagination button:disabled { visibility: hidden; }
.page-counter { font-size: 11px; color: #9295a0; }
.gift-book.is-closed-book, .gift-book.is-cover-turn { background: transparent; box-shadow: none; overflow: visible; }
.gift-book.is-closed-book > .closing-cover { width: 50%; margin-left: 25%; transform: rotateZ(-1.5deg); box-shadow: -5px 0 0 #0f1420, 0 4px 0 #cec6b4, 0 7px 0 #676b73, 0 22px 45px #0006; }
.gift-book.is-cover-turn > .book-spread { visibility: hidden; }
.gift-book.is-cover-turn > .closing-cover { box-shadow: none; }
.closing-cover::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 9px; background: #111623; border-right: 1px solid #ece6d616; box-shadow: 3px 0 6px #0003; }
.closing-cover-content { padding: 55px 26px; }
.closing-lotus { width: 115px; }
.closing-wordmark { font-size: 43px; }
.closing-cover h2 { font-size: 44px; margin-top: 48px; }
.closing-location { margin-top: 48px; }
.closing-shell { position: absolute; z-index: 10; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.closing-bed, .closing-board { position: absolute; inset: 0 0 0 50%; width: 50%; height: 100%; }
.closing-bed { overflow: hidden; background: var(--paper); box-shadow: 0 4px 0 #cec6b4, 0 7px 0 #676b73, 0 22px 45px #0006; }
.closing-board { transform-origin: left center; transform-style: preserve-3d; }
.closing-face { position: absolute; inset: 0; backface-visibility: hidden; overflow: hidden; background: var(--night); }
.closing-back { transform: rotateY(180deg); }
.closing-face > .book-spread, .closing-face > .chapter-art, .closing-face > .chapter-content, .closing-bed > .chapter-art, .closing-bed > .chapter-content, .closing-bed > .closing-cover { height: 100%; min-height: 0; }
.closing-face > .closing-cover, .closing-bed > .closing-cover { width: 100%; margin: 0; transform: none; }
.closing-spine { position: absolute; z-index: 12; inset: 0 auto 0 50%; width: 8px; background: #111623; border-right: 1px solid #ece6d616; box-shadow: 3px 0 6px #0003; pointer-events: none; }
.book-ending-actions { text-align: center; padding: 10px 0 20px; }
.ending-booking { display: inline-flex; align-items: center; gap: 20px; padding: 12px 8px; font-size: 12px; color: var(--paper); text-decoration: underline; text-underline-offset: 7px; text-decoration-color: #ece6d660; }
.ending-utilities { display: flex; justify-content: center; gap: 24px; margin-top: 8px; }
.ending-utilities button { border: 0; background: none; color: #a5a7ae; font-size: 11px; padding: 12px 0; min-height: 44px; }
html:not(.book-enhanced) .book-gesture-cue { display: none; }
@media (max-width: 700px) {
  .recipient-view { width: calc(100% - 12px); padding-top: 54px; }
  .book-gesture-cue { font-size: 11px; margin-bottom: 20px; padding: 0 8px; }
  .gift-book.is-closed-book > .closing-cover { width: 100%; margin-left: 0; }
  .closing-bed, .closing-board { left: 0; width: 100%; }
  .closing-spine { left: 0; }
  .closing-cover h2 { font-size: 39px; }
}
@media print {
  .book-gesture-cue, .book-ending-actions, .closing-shell { display: none !important; }
  .gift-book.is-closed-book, .gift-book.is-cover-turn { background: white; }
  .gift-book.is-cover-turn > .book-spread { visibility: visible; }
}

/* Adereços do envelope: o papel pequeno dentro do envelope precisa de texto que caiba; a capa do livro (aberta) usa o tamanho cheio. */
.letter small { font-size: 11px; letter-spacing: .06em; white-space: nowrap; }
.letter > span { font-size: clamp(15px, 4.4vw, 19px); width: 86%; }
.envelope-address small { font-size: 11px; letter-spacing: .14em; white-space: nowrap; }
.cover-front .letter small { font-size: 11px; letter-spacing: .22em; }
.cover-front .letter > span { font-size: clamp(30px, 4vw, 52px); width: 80%; }

/* White lotus stays visible against the darker wax seal. Paper logos keep ink contrast. */
.envelope-seal { background: #202635; box-shadow: 0 4px 14px #0006, inset 0 0 0 3px #d4b88670, inset 0 0 0 4px #ece6d624; }
.envelope-scene:has(.envelope-trigger:hover) .envelope-seal { box-shadow: 0 4px 18px #0008, inset 0 0 0 3px #d4b886a0; }
@media (max-width: 700px) {
  .invitation { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .chapter-content { padding: 28px 22px 24px; }
  .chapter-content h1, .chapter-content h2 { font-size: clamp(31px, 8.5vw, 38px); }
  .paper-top .eyebrow { font-size: 11px; letter-spacing: .13em; }
  .booking-button { min-height: 52px; }
  .book-pagination { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
.booking-meta { margin: 4px 0 22px; padding-top: 16px; border-top: 1px solid rgba(22, 26, 38, .14); }
.booking-meta[hidden] { display: none; }

/* Computador: o livro fecha da direita para a esquerda; a contracapa fica à esquerda do eixo e a lombada passa para o seu lado direito. */
@media (min-width: 701px) {
  .closing-bed { inset: 0 50% 0 0; }
  .gift-book.is-closed-book > .closing-cover { box-shadow: 5px 0 0 #0f1420, 0 4px 0 #cec6b4, 0 7px 0 #676b73, 0 22px 45px #0006; }
  .closing-cover::after { inset: 0 0 0 auto; border-right: 0; border-left: 1px solid #ece6d616; box-shadow: -3px 0 6px #0003; }
  .closing-spine { inset: 0 auto 0 calc(50% - 8px); border-right: 0; border-left: 1px solid #ece6d616; box-shadow: -3px 0 6px #0003; }
}

.closing-face::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); pointer-events: none; }

/* O voucher está deitado dentro do envelope; só vira para ficar em pé depois de sair. */
.envelope > .letter { transform-origin: center center; transform: rotate(-90deg); }
