@font-face { font-family: Garamond; src: url('assets/garamond.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }
@font-face { font-family: Garamond; src: url('assets/garamond-italic.woff2') format('woff2'); font-weight: 400 800; font-style: italic; font-display: swap; }
:root { --ink: #2b496f; --paper: #f7f5f0; --line: #9ba7b5; --ease: cubic-bezier(.16,1,.3,1); }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--paper); color: var(--ink); }
body { font-family: 'Songti SC', 'Noto Serif CJK SC', 'SimSun', serif; -webkit-text-size-adjust: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { border-radius: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
button { touch-action: manipulation; }
button:disabled { cursor: default; opacity: .35; }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; }
.title-art { width: auto; max-width: 100%; height: auto; }
.running-head .title-art { margin: auto; }
h1,h2,h3,p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.book { position: relative; width: 100%; max-width: 520px; height: 100vh; height: 100dvh; margin: auto; overflow: hidden; perspective: 1600px; touch-action: pinch-zoom; }
.swipe-hints { position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; }
.swipe-hints.visible { opacity: .68; visibility: visible; }
/* Approved cover guide: smaller hand, lower on the poster, no touch interception. */
.swipe-guide { position: absolute; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; opacity: 0; transition: opacity .5s ease, visibility .5s; }
.swipe-guide.visible { opacity: 1; visibility: visible; }
.guide-art { position: absolute; width: 280px; max-width: 88%; left: 50%; top: 74%; transform: translate(-50%, -50%); text-align: center; color: #f7f5f0; filter: drop-shadow(0 2px 4px #17263899); }
.guide-art::before { content: ''; position: absolute; z-index: -1; inset: -14px -12px -16px; background: radial-gradient(ellipse, #14233866 0%, #14233833 45%, transparent 73%); }
.guide-kicker { display: flex; align-items: center; gap: 11px; font: italic 12px/1 Georgia, serif; letter-spacing: 2.1px; opacity: .85; }
.guide-kicker::before, .guide-kicker::after { content: ''; flex: 1; border-top: 3px double currentColor; }
.gesture { width: 224px; max-width: 100%; height: 96px; margin: 5px auto -2px; overflow: visible; }
.gesture .track { stroke: currentColor; stroke-width: 1; opacity: .38; stroke-dasharray: 2 5; }
.gesture .arrow { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.gesture .hand { fill: #f7f5f016; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gesture .touch { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0; }
.gesture .tail { fill: none; stroke: currentColor; stroke-width: 1; opacity: 0; }
.gesture .moving-hand { transform-origin: 140px 75px; }
.guide-title { font-size: 20px; font-weight: 500; letter-spacing: 3px; margin-right: -3px; }
.guide-subtitle { margin-top: 8px; font-size: 11px; letter-spacing: 2px; opacity: .8; }
.swipe-guide.visible .gesture .moving-hand { animation: hand-swipe 3.7s cubic-bezier(.4,0,.2,1) 2; }
.swipe-guide.visible .gesture .touch { animation: touch-ring 3.7s ease-out 2; transform-origin: 140px 34px; }
.swipe-guide.visible .gesture .tail { animation: swipe-tail 3.7s ease 2; }
.swipe-guide.visible .gesture .arrow-left { animation: arrow-left 3.7s ease 2; }
.swipe-guide.visible .gesture .arrow-right { animation: arrow-right 3.7s ease 2; }
@keyframes hand-swipe {
  0%, 12% { transform: translateX(44px) rotate(5deg); opacity: 0; }
  19% { transform: translateX(44px) rotate(5deg); opacity: 1; }
  45%, 51% { transform: translateX(-44px) rotate(-8deg); opacity: 1; }
  78%, 84% { transform: translateX(44px) rotate(5deg); opacity: 1; }
  95%, 100% { transform: translateX(44px) rotate(5deg); opacity: 0; }
}
@keyframes touch-ring { 0%, 13%, 30%, 100% { opacity: 0; transform: translateX(44px) scale(.75); } 18% { opacity: .65; transform: translateX(44px) scale(.75); } 29% { opacity: 0; transform: translateX(44px) scale(2.5); } }
@keyframes swipe-tail { 0%, 23%, 85%, 100% { opacity: 0; } 32%, 66% { opacity: .45; } }
@keyframes arrow-left { 0%, 18%, 66%, 100% { opacity: .4; transform: translateX(0); } 45%, 51% { opacity: 1; transform: translateX(-6px); } }
@keyframes arrow-right { 0%, 51%, 100% { opacity: .4; transform: translateX(0); } 78%, 84% { opacity: 1; transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) {
  .swipe-guide { transition: none; }
  .swipe-guide.visible .gesture * { animation: none !important; }
  .gesture .moving-hand { transform: translateX(0); }
}
.swipe-hint { position: absolute; top: calc(50% - 24px); display: grid; place-items: center; width: 36px; height: 48px; color: var(--ink); background: #f7f5f0e6; border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); font: 500 30px/1 Garamond, Georgia, serif; }
.swipe-hint-left { left: max(8px, env(safe-area-inset-left)); --nudge: -4px; }
.swipe-hint-right { right: max(8px, env(safe-area-inset-right)); --nudge: 4px; }
.swipe-hints.visible .swipe-hint { animation: swipe-nudge 2.6s ease-in-out infinite; }
@keyframes swipe-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(var(--nudge)); } }
.page { position: absolute; inset: 0; overflow: hidden; background: var(--paper); visibility: hidden; z-index: 0; backface-visibility: hidden; }
.page.active { visibility: visible; z-index: 2; }
.page.drag-neighbor { visibility: visible; z-index: 1; }
.page::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 40px #1b2c4510; opacity: 0; transition: opacity .4s; }
.dragging .page::after { opacity: 1; }
.page-scroll { height: 100%; padding: max(10px, env(safe-area-inset-top)) 10px max(5px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; overflow: hidden; }
.page-content { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px; overflow: clip; touch-action: pinch-zoom; }
.page-content > * { flex-shrink: 0; }
.running-head { border-top: 3px double var(--ink); border-bottom: 1px solid var(--line); padding: 6px 30px 7px; text-align: center; font: italic 600 13px/1 Garamond, Georgia, serif; letter-spacing: .35px; }
.folio { display: flex; flex-shrink: 0; justify-content: space-between; align-items: center; min-height: 30px; border-top: 3px double var(--ink); font: 600 10px Garamond, Georgia, serif; letter-spacing: .8px; }
.folio button { border: 0; background: transparent; height: 32px; min-width: 44px; font: 22px/1 Garamond, serif; }
.folio span { padding: 0 3px; }
.cover .page-content { gap: 0; padding-bottom: 0; }
.masthead { border-top: 3px double var(--ink); border-bottom: 3px double var(--ink); padding: 9px 0; }
.masthead img { width: 100%; }
.issue { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); margin-bottom: 9px; font: 600 11px/1.1 Garamond, Georgia, serif; letter-spacing: .65px; }
.photo { position: relative; display: block; padding: 0; border: 0; background: transparent; overflow: hidden; text-align: left; touch-action: pinch-zoom; }
.photo img { height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.photo:active img { transform: scale(1.025); }
.hero { flex: 1 1 450px; min-height: 0; width: 100%; margin-bottom: 10px; }
.hero .hero-photo { position: absolute; inset: 0; object-position: 50% 53%; }
.hero .hero-names { position: absolute; top: 14px; left: 0; width: 100%; height: auto; object-fit: contain; pointer-events: none; }
.cover-line { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 3px 13px; color: var(--paper); text-align: center; font: 600 clamp(12px,3.65vw,19px)/1.2 Garamond, Georgia, serif; letter-spacing: .65px; background: linear-gradient(transparent,#0008); }
.lead-photo { position: relative; width: 100%; height: clamp(290px,43dvh,420px); overflow: hidden; }
.photo-fill { width: 100%; height: 100%; }
.photo-heading { position: absolute; top: 17px; left: 15px; right: 12px; color: var(--paper); pointer-events: none; z-index: 2; text-shadow: 0 1px 15px #0009; }
.photo-heading h2 { font: 600 clamp(28px,7.7vw,40px)/1.1 Garamond, Georgia, serif; letter-spacing: 2px; }
.photo-heading p { font-size: 15px; margin-top: 5px; letter-spacing: 2px; }
.lead-photo::after { content: ''; position: absolute; inset: 0 0 55%; pointer-events: none; background: linear-gradient(#0008,transparent); }
.story .lead-photo { height: clamp(300px,44dvh,440px); }
.story .photo-fill img { object-position: 52% 75%; }
.carousel-slide, .venue-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease), transform 6s ease-out !important; transform: scale(1.045); }
.carousel-slide.active, .venue-slide.active { opacity: 1; transform: scale(1); }
.story-columns { display: grid; grid-template-columns: 1fr 1.12fr; gap: 12px; padding-top: 2px; }
.story-clippings { display: flex; flex-direction: column; gap: 9px; }
.shirt { height: 146px; }
.shirt img { object-position: 50% 38%; }
.cycling { height: 130px; }
.story-copy h3 { font-size: 15px; line-height: 1.45; letter-spacing: .3px; }
.story-copy p { font-size: 13px; line-height: 1.8; margin-top: 10px; }
.voice-tabs { display: flex; gap: 4px; border-top: 1px solid var(--line); margin-top: 13px; padding-top: 7px; }
.voice-tabs button { background: transparent; border: 1px solid var(--line); padding: 6px 8px; font-size: 12px; min-height: 34px; }
.voice-tabs button[aria-pressed='true'] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.plus { position: absolute; right: 5px; top: 5px; border: 1px solid var(--ink); border-radius: 50%; width: 25px; height: 25px; text-align: center; background: var(--paper); font: 22px/24px sans-serif; }
.cart { height: clamp(195px,26dvh,265px); }
.cart img { object-position: center 52%; }
.invitation-columns { display: grid; grid-template-columns: .88fr 1.12fr; gap: 13px; }
.cabin { min-height: 212px; height: 100%; }
.cabin img { position: absolute; inset: 0; height: 125%; object-position: 35% top; }
.hotel-side { min-height: 212px; height: 100%; }
.hotel-side img { position: absolute; inset: 0; object-position: 50% 55%; }
.invitation h2 { font-size: 16px; line-height: 1.45; letter-spacing: .4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.invitation-columns p { font-size: 13px; line-height: 1.85; padding: 11px 0; }
.address { display: block; background: none; border: 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--line); padding: 5px 18px 5px 0; position: relative; text-align: left; width: 100%; }
.address strong { display: block; font-size: 14px; }
.address span { display: block; font-size: 11px; line-height: 1.5; margin-top: 4px; }
.address b { position: absolute; right: 0; top: 7px; font: 18px sans-serif; }
.location-map { flex: 1 0 200px; }
.location-map img { object-position: center; }
.map-caption { position: absolute; bottom: 8px; left: 8px; padding: 6px 9px; background: var(--paper); color: var(--ink); font-size: 12px; }
.navigation-dialog { padding: 43px 22px 20px; }
.navigation-dialog h2 { font-size: 23px; }
.navigation-address { margin: 12px 0 18px; font-size: 14px; line-height: 1.7; }
.map-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.map-options a { display: flex; justify-content: space-between; padding: 16px 12px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 16px; }
.map-options a:active { background: var(--ink); color: var(--paper); }
.navigation-note { font-size: 12px; line-height: 1.8; margin: 17px 0; }
.navigation-tools { display: flex; gap: 12px; flex-wrap: wrap; }
.navigation-tools button { border: 0; border-bottom: 1px solid var(--line); background: none; padding: 5px 0; font-size: 13px; }
#address-status { min-height: 20px; margin-top: 10px; font-size: 13px; }
.venue-lead img { object-position: center 42%; }
.venue-columns { display: grid; grid-template-columns: 1.25fr 1fr; gap: 15px; }
.venue-copy p { font-size: 13px; line-height: 1.85; margin-bottom: 13px; }
.venue-thumbnails { display: flex; flex-direction: column; gap: 7px; }
.venue-thumbnails button { padding: 0; border: 1px solid transparent; background: none; flex: 1; min-height: 92px; overflow: hidden; }
.venue-thumbnails img { height: 100%; max-height: 112px; object-fit: cover; }
.venue-thumbnails button[aria-pressed='true'] { border: 3px solid var(--ink); }
.place-name { position: absolute; bottom: 8px; right: 8px; z-index: 2; background: var(--paper); padding: 4px 8px; font-size: 13px; }
.place-name:empty { display: none; }
.timeline-lead { height: clamp(340px,51dvh,510px); }
.timeline-lead img { object-position: center 47%; }
.timeline { padding: 0; margin: 0; list-style: none; }
.timeline li { border-bottom: 1px solid var(--line); }
.timeline button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 46px; background: none; border: 0; padding: 6px 9px; text-align: left; transition: color .25s, background .25s; }
.timeline time { font: 600 28px/1 Garamond, Georgia, serif; }
.timeline time small { font-size: 11px; }
.timeline button > span { font-size: 13px; }
.timeline button[aria-pressed='true'] { color: var(--paper); background: var(--ink); }
.schedule-note { font-size: 12px; line-height: 1.85; padding: 16px 7px 8px; }
.balcony { height: clamp(170px,26dvh,270px); }
.kiss { height: clamp(170px,25dvh,255px); }
.friends-columns { display: grid; grid-template-columns: .85fr 1.15fr; gap: 13px; }
.cheers { height: 100%; min-height: 218px; }
.friends h2 { font-size: 18px; border-bottom: 1px solid var(--line); padding: 0 0 8px; }
.friends p { font-size: 13px; line-height: 1.85; margin-top: 10px; }
.cheers-ring { position: absolute; left: 38%; top: 30%; width: 45px; height: 45px; border: 2px solid var(--paper); border-radius: 50%; opacity: 0; pointer-events: none; }
/* Each newspaper sheet has one viewport: copy sizes its row, photos share the remainder. */
.story .page-content, .invitation .page-content, .venue .page-content,
.schedule .page-content, .friends .page-content { display: grid; }
.story .page-content { grid-template-rows: auto minmax(0,1fr) auto; }
.invitation .page-content { grid-template-rows: auto minmax(0,.9fr) auto minmax(0,1fr); }
.venue .page-content { grid-template-rows: auto minmax(0,1fr) auto; }
.schedule .page-content { grid-template-rows: auto minmax(0,1fr) auto auto; }
.friends .page-content { grid-template-rows: auto minmax(0,1fr) minmax(0,1fr) auto; }
.page-content .lead-photo, .page-content .cart, .page-content .location-map,
.page-content .balcony, .page-content .kiss { height: auto; min-height: 0; }
.story-clippings { display: grid; grid-template-rows: repeat(2,minmax(0,1fr)); }
.story-clippings .photo, .hotel-side, .cheers { height: 100%; min-height: 0; }
.story-clippings .photo img { position: absolute; inset: 0; }
.story-copy p, .invitation-columns p, .friends p { font-size: 13px; line-height: 1.65; }
.story-copy p, .friends p { margin-top: 8px; }
.voice-tabs { margin-top: 9px; }
.invitation-columns { gap: 11px; }
.invitation h2 { padding-bottom: 7px; }
.invitation-columns p { padding: 8px 0; }
.venue-columns { display: grid; grid-template-columns: 1fr; gap: 9px; }
.venue-copy { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 9px; padding: 10px 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--line); }
.venue-copy p { font-size: 12px; line-height: 1.6; margin: 0; }
.venue-copy p + p { border-left: 1px solid var(--line); padding-left: 9px; }
.venue-thumbnails { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); height: clamp(76px,16dvh,145px); gap: 7px; }
.venue-thumbnails button { min-width: 0; min-height: 0; }
.venue-thumbnails img { max-height: none; }
.schedule-note { padding: 8px 7px; }
@media (max-height: 640px) {
  .page-content { gap: 7px; padding-bottom: 6px; }
  .running-head { padding: 4px 30px 5px; }
  .story-columns, .friends-columns { gap: 9px; }
  .story-copy p, .invitation-columns p, .friends p { font-size: 12px; line-height: 1.55; }
  .friends h2 { font-size: 16px; }
  .friends p { margin-top: 6px; }
  .venue-thumbnails { height: 76px; }
  .photo-heading { top: 10px; left: 12px; }
  .photo-heading h2 .title-art { max-height: 34px; }
  .photo-heading p .title-art { max-height: 18px; }
}
#cheers-status.visible { position: absolute; bottom: 50px; left: 50%; z-index: 4; transform: translateX(-50%); width: auto; height: auto; clip-path: none; padding: 10px 17px; white-space: nowrap; background: var(--ink); color: var(--paper); font-size: 15px; box-shadow: 0 5px 22px #0002; animation: toast-in .5s var(--ease) both; }
/* Reserve room for the receipt fields on shorter WeChat viewports, not a taller page. */
.rsvp .page-content { gap: 8px; padding-bottom: 3px; }
.rsvp-lead { height: clamp(64px,calc(100dvh - 572px),194px); }
.rsvp-lead .photo-fill img { position: absolute; left: 50%; top: 50%; width: auto; height: min(calc(100vw - 20px),500px); max-width: none; object-position: center; transform: translate(-50%,-50%) rotate(90deg); }
.rsvp-lead .photo-fill:active img { transform: translate(-50%,-50%) rotate(90deg) scale(1.025); }
.rsvp-form { position: relative; border-top: 1px solid var(--line); padding: 4px 4px 0; }
.rsvp-form label { display: block; font-size: 15px; line-height: 1.5; }
.guest-fields { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; }
.guest-fields label { position: relative; }
.guest-fields small { position: absolute; top: 23px; left: 0; width: 100%; font-size: 9px; line-height: 1.2; white-space: nowrap; color: #6b7a8d; }
.rsvp-form input[type='text'], .rsvp-form input[type='number'], .rsvp-form textarea { appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 0; padding: 9px 10px; font-size: 18px; line-height: 1.5; margin-top: 15px; }
.rsvp-form input[type='text'], .rsvp-form input[type='number'] { height: 47px; }
.rsvp-form textarea { height: clamp(54px,11dvh,95px); resize: none; margin-top: 8px; }
.rsvp-form fieldset { border: 0; padding: 0; margin: 10px 0; min-width: 0; }
.rsvp-form legend { font-size: 15px; margin-bottom: 6px; }
.choice-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.choice-options label { cursor: pointer; position: relative; }
.choice-options input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice-options span { display: flex; align-items: center; justify-content: center; min-height: 45px; border: 1px solid var(--line); background: #fff; font-size: 14px; transition: background .25s, color .25s, transform .45s var(--ease); }
.choice-options input:checked + span { color: var(--paper); background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.choice-options input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.honeypot { position: absolute; left: -10000px; }
.rsvp-form .honeypot { top: 0; }
.form-status { min-height: 15px; font-size: 12px; line-height: 1.7; }
.form-status:empty { display: none; }
.form-status.error { color: #8e342c; margin: 6px 0; }
.submit { width: 100%; min-height: 45px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-size: 16px; padding: 9px; margin: 8px 0 3px; }
.receipt { text-align: center; padding: 45px 15px; }
.received-stamp { margin: 0 auto 35px; padding: 15px; width: 175px; border: 4px double var(--ink); transform: rotate(-7deg); font-size: 36px; animation: stamp .65s var(--ease) both; }
.received-stamp small { display: block; font-size: 9px; }
.receipt p { font: 600 23px/1.5 Garamond, 'Songti SC', serif; margin: 20px 0; }
.receipt #receipt-summary { font-size: 18px; white-space: pre-line; }
@media (max-height: 740px) {
  .rsvp-form fieldset { margin: 6px 0; }
  .rsvp-lead .photo-heading { top: clamp(2px,calc(100dvh - 636px),8px); }
  .rsvp-lead h2 .title-art { max-height: 36px; }
}
@media (max-height: 620px) {
  .rsvp-form fieldset { margin: 4px 0; }
  .rsvp-form textarea { height: 54px; }
  .rsvp-lead .photo-heading { top: 2px; }
}
dialog { border: 1px solid var(--ink); background: var(--paper); color: var(--ink); padding: 25px; max-height: 90dvh; max-width: 440px; width: calc(100% - 28px); }
dialog::backdrop { background: #142133c9; backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 5px; right: 5px; width: 40px; height: 40px; border: 0; background: transparent; font: 26px sans-serif; }
.story-dialog { overflow: auto; }
.story-dialog > img { width: 46%; margin: 5px auto 20px; }
.story-dialog h2 { font-size: 23px; line-height: 1.5; }
.story-dialog p { margin: 20px 0; font-size: 16px; line-height: 1.9; }
.photo-viewer { inset: 0; margin: auto; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; padding: 0; border: 0; background: #142133; }
.viewer-tools { position: absolute; z-index: 2; top: max(10px,env(safe-area-inset-top)); right: 10px; display: flex; gap: 8px; }
.viewer-tools button { position: static; width: 44px; height: 44px; border: 1px solid #f7f5f077; color: var(--paper); background: #142133cc; font: 25px sans-serif; }
.viewer-image { position: relative; width: 100%; height: 100%; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.viewer-image img { position: absolute; left: 50%; top: 50%; max-width: none; max-height: none; object-fit: contain; transform-origin: center; will-change: transform; -webkit-user-drag: none; }
.viewer-hint { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); margin: 0; padding: 7px 12px; border-radius: 20px; color: #f7f5f0cc; background: #142133aa; font: 12px/1.4 sans-serif; white-space: nowrap; pointer-events: none; }
.viewer-image.cabin-view img { clip-path: inset(0 0 16% 0); }
.page.active .photo-heading { animation: heading-in .9s .12s var(--ease) both; }
.page.active .lead-photo, .page.active .cart, .page.active .balcony { animation: photo-in 1.1s var(--ease) both; }
.page.active .story-columns, .page.active .invitation-columns, .page.active .venue-columns, .page.active .timeline, .page.active .friends-columns, .page.active .rsvp-form { animation: content-in .85s .2s var(--ease) both; }
.cover.active .masthead { animation: content-in .85s var(--ease) both; }
.cover.active .hero-photo { animation: cover-photo 1.4s var(--ease) both; }
.cover.active .hero-names { animation: names-in 1.3s .25s var(--ease) both; }
@keyframes heading-in { from { opacity: 0; transform: translate3d(0,20px,0); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { clip-path: inset(0 0 13% 0); transform: scale(1.025); opacity: .6; } to { clip-path: inset(0); transform: scale(1); opacity: 1; } }
@keyframes content-in { from { opacity: 0; transform: translate3d(0,24px,0); } to { opacity: 1; transform: none; } }
@keyframes cover-photo { from { transform: scale(1.06); opacity: .3; } to { transform: scale(1); opacity: 1; } }
@keyframes names-in { from { opacity: 0; transform: translate3d(0,20px,0); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0); } }
@keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.6); } 65% { opacity: 1; transform: rotate(-7deg) scale(.94); } to { transform: rotate(-7deg) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%,10px); } to { opacity: 1; transform: translate(-50%,0); } }
@media (min-width: 600px) { body { background: #e6e2da; } .book { box-shadow: 0 0 60px #29344118; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
