:root {
  color-scheme: light;
  --paper: #fff;
  --paper-shadow: #fff;
  --accent: #8b1026;
  --ink: #332b2b;
  --muted: #766d6b;
  --line: #c8b8b7;
  --accent-soft: #f7edef;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --gutter: 24px;
  --section-space: 64px;
  font-family: "Gowun Dodum", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { min-width: 0; scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; }
button, input, select, textarea { font: inherit; font-synthesis: none; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button { color: inherit; }

.invitation { width: 100%; max-width: 480px; min-height: 100svh; margin: 0 auto; background: var(--paper); }
.hero { min-height: 100svh; padding: max(16px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: center; background: var(--paper); }
.hero-frame { position: relative; width: 100%; max-width: 480px; min-height: 0; margin: 0 auto; display: flex; align-items: stretch; isolation: isolate; flex: 0 0 auto; aspect-ratio: 1054 / 1492; container-type: inline-size; }
.hand-frame { position: absolute; z-index: 2; inset: 0; background: url("assets/ribbon-frame.png") center / contain no-repeat; animation: gentle-fade-in .85s ease-out both; pointer-events: none; }
@keyframes gentle-fade-in { from { opacity: 0; } to { opacity: 1; } }
.save-date, .couple-names, .hero-date, .hero-venue { animation: gentle-fade-in .8s ease-out both; }
.save-date { animation-delay: .1s; }
.couple-names { animation-delay: .18s; }
.hero-date { animation-delay: .24s; }
.hero-venue { animation-delay: .3s; }
.hero-tools { position: absolute; z-index: 4; top: 16px; right: 16px; max-width: calc(100% - 32px); text-align: right; }
.button { min-height: 48px; border-radius: 10px; padding: 0 var(--space-4); display: inline-flex; justify-content: center; align-items: center; gap: var(--space-2); text-align: center; font-size: 16px; line-height: 1.3; text-decoration: none; cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.button--outline { border: 1px solid var(--accent); color: var(--accent); background: var(--paper); }
.button--outline:hover { background: var(--accent-soft); }
.button--primary { border: 1px solid var(--accent); color: var(--paper); background: var(--accent); }
.button--primary:hover { background: #700c1d; }
.music-button { width: 44px; min-height: 44px; padding: 0; border-radius: 10px; background: var(--paper); }
.music-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.music-slash { display: inline; }
.music-button[aria-pressed="true"] .music-slash { display: none; }
.dialog-controls svg, .map-links svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.music-result { position: absolute; top: calc(100% + 4px); right: 0; width: max-content; max-width: 180px; margin: 0; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--accent); font-size: 12px; line-height: 1.5; text-align: center; opacity: 0; visibility: hidden; pointer-events: none; }
.music-result:not(:empty) { opacity: 1; visibility: visible; }

.hero-content { position: relative; z-index: 1; width: 100%; min-height: 0; padding: 28% 10% 8%; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.save-date { margin: 0 0 4px; color: var(--accent); font-family: "Libre Baskerville", serif; font-size: 3.5cqw; font-weight: 400; line-height: 1; letter-spacing: .25em; }
.couple-names { width: 100%; margin: 0 auto 5px; color: var(--accent); font-family: "Dancing Script", cursive; font-size: 10.5cqw; font-weight: 600; line-height: 1.15; white-space: nowrap; flex: 0 0 auto; }
.collage-stage {
  /* Shared stage: tune these variables to align the crop, photo, and original-photo SVG without stretching either face. */
  --art-x: -5%;
  --art-y: 5%;
  --art-scale: 1.1;
  --photo-x: 0%;
  --photo-y: 0%;
  --photo-scale: 1;
  position: relative;
  width: 47.6cqw;
  height: 70cqw;
  min-height: 0;
  max-height: none;
  max-width: 76vw;
  aspect-ratio: .68;
  transform: translateX(8%);
  flex: 0 1 auto;
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 0;
  text-align: left;
  cursor: pointer;
  appearance: none;
  isolation: isolate;
}
.illustration-layer, .couple-cutout { position: absolute; inset: 0; width: 100%; height: 100%; }
.illustration-layer { overflow: hidden; background: var(--paper); mix-blend-mode: multiply; opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); transition: opacity .9s ease, transform .9s ease; }
.illustration-layer img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transform: translate(var(--art-x), var(--art-y)) scale(var(--art-scale)); transform-origin: center bottom; user-select: none; }

.couple-cutout { display: block; object-fit: contain; opacity: 0; transform: translate3d(var(--photo-x), calc(var(--photo-y) + 8px), 0) scale(var(--photo-scale)); transform-origin: 50% 100%; filter: drop-shadow(0 0 1px var(--paper)) drop-shadow(0 2px 1px var(--paper)) drop-shadow(0 5px 5px rgba(51, 43, 43, .14)); transition: opacity .9s ease, transform .9s ease; pointer-events: none; }
.hero[data-state="photo"] .illustration-layer { opacity: 0; transform: translate3d(0, -5px, 0) rotate(-1deg); }
.hero[data-state="photo"] .couple-cutout { opacity: 1; transform: translate3d(var(--photo-x), var(--photo-y), 0) scale(var(--photo-scale)); }
.collage-stage.is-calibrating .illustration-layer,
.collage-stage.is-calibrating .couple-cutout { opacity: .5 !important; transition: none !important; }
/* Cancel the stage's 8% shift so the burst stays centered on the hero. */
.firework-burst { position: absolute; z-index: 2; inset: -8px calc(8% - 8px) -8px calc(-8% - 8px); overflow: visible; pointer-events: none; }
.burst-particle { position: absolute; display: block; opacity: 0; color: var(--accent); background: var(--accent); transform: translate(0, 0) scale(.65); }
.burst-line { width: 8px; height: 2px; border-radius: 2px; }
.burst-dot { width: 4px; height: 4px; border-radius: 50%; background: #c17b85; }
.burst-heart { width: auto; height: auto; background: transparent; color: #a94c5d; font-size: 11px; line-height: 1; }
.burst-heart::before { content: "♡"; }
.burst-particle:nth-child(1) { left: 4%; top: 14%; --dx: -8px; --dy: -5px; --turn: -32deg; }
.burst-particle:nth-child(2) { left: 96%; top: 14%; --dx: 8px; --dy: -5px; --turn: 14deg; }
.burst-particle:nth-child(3) { left: 2%; top: 30%; --dx: -9px; --dy: 0; --turn: -15deg; }
.burst-particle:nth-child(4) { left: 98%; top: 31%; --dx: 9px; --dy: 1px; --turn: 36deg; }
.burst-particle:nth-child(5) { left: 3%; top: 48%; --dx: -9px; --dy: 2px; --turn: 8deg; }
.burst-particle:nth-child(6) { left: 97%; top: 48%; --dx: 9px; --dy: 2px; --turn: -20deg; }
.burst-particle:nth-child(7) { left: 4%; top: 66%; --dx: -8px; --dy: 5px; --turn: 24deg; }
.burst-particle:nth-child(8) { left: 96%; top: 67%; --dx: 8px; --dy: 5px; --turn: 0deg; }
.burst-particle:nth-child(9) { left: 7%; top: 84%; --dx: -7px; --dy: 8px; --turn: -18deg; }
.burst-particle:nth-child(10) { left: 93%; top: 84%; --dx: 7px; --dy: 8px; --turn: 33deg; }
.burst-particle:nth-child(11) { left: 18%; top: 96%; --dx: -5px; --dy: 8px; --turn: -15deg; }
.burst-particle:nth-child(12) { left: 82%; top: 96%; --dx: 5px; --dy: 8px; --turn: 30deg; }
.burst-particle:nth-child(13) { left: 6%; top: 92%; --dx: -8px; --dy: 7px; --turn: 9deg; }
.burst-particle:nth-child(14) { left: 94%; top: 92%; --dx: 8px; --dy: 7px; --turn: -32deg; }
.burst-particle:nth-child(15) { left: 27%; top: 98%; --dx: -4px; --dy: 9px; --turn: 28deg; }
.burst-particle:nth-child(16) { left: 73%; top: 98%; --dx: 4px; --dy: 9px; --turn: -24deg; }
.firework-burst.is-celebrating .burst-particle { animation: firework-pop .95s ease-out both; }
@keyframes firework-pop {
  0% { opacity: 0; transform: translate(0, 0) rotate(var(--turn)) scale(.65); }
  18% { opacity: .9; }
  68% { opacity: .78; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(calc(var(--turn) * 1.8)) scale(1); }
}

.hero-date { margin: 0 auto; color: var(--accent); font-family: "Libre Baskerville", serif; }
.hero-date time { display: flex; flex-direction: row; align-items: baseline; gap: 8px; white-space: nowrap; }
.date-main, .date-sub { font-size: 5cqw; font-weight: 400; line-height: 1.2; letter-spacing: .01em; font-variant-numeric: lining-nums tabular-nums; }
.hero-venue { margin: 6px 0 0; color: var(--accent); font-family: "Libre Baskerville", serif; font-size: 3.6cqw; line-height: 1.5; white-space: nowrap; }
.scroll-cue { position: relative; z-index: 1; min-height: 40px; margin: 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.scroll-cue svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.page-content { overflow: visible; }
.section { padding: var(--section-space) var(--gutter); }
.section-title { margin: 0 0 var(--space-5); color: var(--ink); font-size: 26px; font-weight: 400; line-height: 1.5; letter-spacing: -.025em; }
.invitation-copy { min-height: 0; padding: 72px 24px 8px; display: flex; align-items: center; background: var(--paper); }
.scroll-reveal { opacity: 0; transform: translateY(18px); transition: opacity .85s ease-out, transform .85s ease-out; }
.scroll-reveal.is-visible { opacity: 1; transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.copy-body { max-width: 370px; margin: 0 auto; text-align: center; }
.copy-body h2, .event-summary h3, .guestbook-heading h2 { margin: 0 0 var(--space-4); font-size: 26px; font-weight: 400; line-height: 1.5; letter-spacing: -.025em; }
.copy-body > p:not(.english-note):not(.signature) { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; word-break: keep-all; }
.wedding-rings { display: block; width: 56px; height: 48px; margin: 12px auto 0; object-fit: contain; pointer-events: none; }
.signature { margin: 8px 0 0; color: var(--accent); font-size: 16px; }
.featured-photo { margin: 0; padding: 32px 24px 72px; }
.featured-photo img { display: block; width: 100%; height: auto; margin: 0 auto; }
.wedding-calendar { max-width: 432px; margin: 0 auto; padding: 0 24px; text-align: center; }
.wedding-calendar h2 { margin: 0; color: var(--accent); font: 400 26px/1.4 "Libre Baskerville", serif; letter-spacing: .04em; }
.wedding-calendar-time { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.wedding-calendar-table { width: 100%; margin: 16px auto 0; border-collapse: collapse; table-layout: fixed; }
.wedding-calendar-table th { height: 44px; padding: 0; color: var(--ink); font: 400 15px/1 "Gowun Dodum", sans-serif; }
.wedding-calendar-table th:first-child, .wedding-calendar-table tbody td:first-child time { color: var(--accent); }
.wedding-calendar-table td { height: 44px; padding: 0; color: var(--ink); text-align: center; font-size: 17px; }
.wedding-calendar-table td time { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; font-variant-numeric: lining-nums; }
.wedding-calendar-table tbody td .wedding-calendar-event { width: 36px; height: 36px; background: var(--accent); color: #fff; }
.wedding-calendar-dday { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.wedding-calendar-dday strong { margin-left: 4px; color: var(--accent); font: 400 16px/1.4 "Libre Baskerville", serif; }
.wedding-family { margin: 48px 24px 32px; padding: 40px 0 16px; border-top: 1px solid var(--line); text-align: center; }
.wedding-family-line { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0; white-space: nowrap; }
.wedding-family-line + .wedding-family-line { margin-top: 8px; }
.wedding-family-relation { color: var(--muted); font-size: 15px; line-height: 1.5; }
.wedding-family-name { margin: 0; color: var(--ink); font: 400 21px/1.4 "Gowun Dodum", sans-serif; white-space: nowrap; }
.photo-gallery { width: 100%; padding: 48px 16px 32px; background: var(--paper); }
.gallery-heading { margin: 0 0 8px; color: var(--ink); font-size: 24px; font-weight: 400; line-height: 1.4; text-align: center; }
.gallery-hint { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.gallery-scenes { display: grid; gap: 8px; }
.gallery-more { position: relative; display: flex; width: max-content; min-width: 112px; min-height: 48px; margin: 32px auto 8px; padding: 0 24px; overflow: visible; border: 0; border-radius: 0; background: var(--paper); color: var(--accent); box-shadow: inset 0 0 0 1px currentColor; }
.gallery-more-horizontal, .gallery-more-vertical { position: absolute; transition: transform .8s ease; pointer-events: none; }
.gallery-more-horizontal { top: 0; right: -6px; bottom: 0; left: -6px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.gallery-more-horizontal::before { position: absolute; top: -7px; right: 6px; bottom: -7px; left: 6px; border-top: inherit; border-bottom: inherit; content: ''; }
.gallery-more-vertical { top: -6px; right: 0; bottom: -6px; left: 0; border-right: 1px solid currentColor; border-left: 1px solid currentColor; }
.gallery-more-vertical::before { position: absolute; top: 6px; right: -7px; bottom: 6px; left: -7px; border-right: inherit; border-left: inherit; content: ''; }
@media (hover: hover) and (pointer: fine) {
  .gallery-more:hover .gallery-more-horizontal { transform: scaleX(0); }
  .gallery-more:hover .gallery-more-vertical { transform: scaleY(0); }
}
.gallery-more:focus-visible .gallery-more-horizontal { transform: scaleX(0); }
.gallery-more:focus-visible .gallery-more-vertical { transform: scaleY(0); }
.gallery-more[hidden] { display: none; }
.gallery-scene { width: 100%; margin: 0; }
.gallery-layout { width: 100%; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 8px; }
.gallery-photo-button { display: block; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: visible; background: transparent; cursor: zoom-in; line-height: 0; }
.gallery-photo-button img { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; object-position: center top; border: 0; border-radius: 0; }
.gallery-status { margin: 0; padding: var(--space-5) var(--gutter); color: var(--muted); font-size: 14px; }
.photo-dialog { display: none; width: min(calc(100vw - 24px), 900px); height: min(calc(100dvh - 24px), 900px); max-width: none; max-height: none; margin: auto; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); }
.photo-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; }
.photo-dialog::backdrop { background: rgba(21, 25, 56, .82); }
.dialog-topbar { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.dialog-count { color: var(--muted); font-size: 14px; }
.dialog-status { position: absolute; z-index: 1; top: 64px; left: 50%; max-width: calc(100% - 32px); margin: 0; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.94); color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; transform: translateX(-50%); pointer-events: none; }
.dialog-status:empty { display: none; }
.dialog-close { width: 44px; min-width: 44px; min-height: 44px; padding: 0; border-radius: 50%; font-family: "Gowun Dodum", sans-serif; font-size: 28px; line-height: 1; }
.dialog-swipe-area { position: relative; width: 100%; min-width: 0; min-height: 0; overflow: hidden; display: grid; place-items: center; touch-action: pan-y; }
.dialog-swipe-area img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.dialog-controls { min-height: 44px; display: flex; justify-content: space-between; gap: var(--space-3); }
.dialog-controls .button { min-width: 112px; min-height: 44px; }
html.dialog-open { scroll-snap-type: none !important; }
body.dialog-open { overflow: hidden; }
.details-section { background: var(--paper); }
.event-section { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; }
.event-section .section-title { margin-bottom: var(--space-5); }
.event-summary { width: 100%; }
.event-summary h3 { margin: 0 0 var(--space-3); color: var(--accent); font-size: 24px; line-height: 1.5; }
.details-time { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.directions-section { background: var(--paper); }
.transport-section > .section-title { width: min(100%, 440px); margin-right: auto; margin-left: auto; text-align: center; }
.directions-content { width: 100%; max-width: 440px; margin: 0 auto; }
.directions-content > .section-title { color: var(--accent); text-align: center; }
.location-heading { text-align: center; }
.location-eyebrow { margin: 0 0 var(--space-1); color: var(--accent); font-family: "Libre Baskerville", serif; font-size: 13px; line-height: 1.5; letter-spacing: .08em; }
.location-heading .section-title { margin-bottom: var(--space-3); color: var(--accent); }
.location-venue { margin: 0 0 var(--space-4); color: var(--ink); font-size: 21px; font-weight: 400; line-height: 1.55; }
.address-row { display: flex; align-items: center; justify-content: center; gap: var(--space-2); }
.location-address { min-width: 0; color: var(--ink); font-size: 15px; line-height: 1.65; font-style: normal; text-align: left; word-break: keep-all; overflow-wrap: anywhere; }
.address-copy { min-width: 88px; min-height: 44px; padding: 0 var(--space-2); flex: 0 0 auto; font-size: 14px; }
.copy-address-result { min-height: 1.6em; margin: var(--space-1) 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.copy-address-result:empty { display: none; }
.map-shuttle { width: 100%; max-width: 360px; margin: 0 auto var(--space-4); padding: var(--space-2) 0; border-block: 1px solid var(--line); }
.map-shuttle-heading { margin-bottom: var(--space-1); display: flex; justify-content: center; align-items: center; gap: var(--space-2); color: var(--accent); }
.map-shuttle-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.map-shuttle-heading h3 { margin: 0; font-size: 15px; font-weight: 400; line-height: 1.5; }
.map-shuttle-routes { display: grid; gap: 2px; }
.map-shuttle-route { margin: 0; display: flex; justify-content: space-between; gap: var(--space-2); color: var(--ink); font-size: 14px; line-height: 1.55; white-space: nowrap; }
.map-shuttle-route strong { color: var(--accent); font-weight: 400; flex: 0 0 auto; }
.map-shuttle-note { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; }
.venue-map-figure { width: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; }
.venue-map-link { width: 100%; max-width: 360px; display: block; }
.venue-map { display: block; width: 100%; max-width: 360px; height: auto; }
.map-roads rect { fill: var(--accent-soft); stroke: #e7dddb; stroke-width: 1; }
.map-road-labels { fill: var(--muted); font-family: "Gowun Dodum", sans-serif; font-size: 15px; text-anchor: middle; }
.map-road-label--vertical { font-size: 13px; }
.map-station, .map-neighbor, .map-venue { fill: var(--paper); stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.map-station circle, .map-stop circle { fill: var(--paper); }
.map-station .map-callout { fill: none; stroke-width: 1.1; }
.map-station .map-callout-dot { fill: var(--accent); stroke: none; }
.map-station text, .map-neighbor text, .map-venue text { fill: var(--ink); stroke: none; font-family: "Gowun Dodum", sans-serif; font-size: 15px; font-weight: 400; }
.map-station .map-distance, .map-stop .map-distance { fill: var(--muted); font-size: 14px; }
.map-venue circle { fill: var(--accent); }
.venue-map-figure figcaption { margin-top: var(--space-2); color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }
.map-links { width: 100%; display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.map-links .button { width: calc((100% - var(--space-3)) / 2); min-width: 0; min-height: 48px; padding: 0 var(--space-2); flex: 1 1 0; font-size: 16px; }
.transport-list { margin-top: var(--space-5); }
.transport-row { min-width: 0; padding: 0; border-top: 1px solid #e3d9d7; }
.transport-icon { width: 24px; height: 24px; margin-top: 1px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.transport-row h3 { margin: 0; color: var(--accent); font-size: 17px; font-weight: 400; line-height: 1.55; }
.transport-row p { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.75; word-break: keep-all; }
.transport-row--shuttle { margin-bottom: var(--space-2); padding: var(--space-3); border: 1px solid var(--accent); border-radius: 10px; }
.transport-row-heading { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: var(--space-3); }
.transport-row-heading .transport-icon { margin-top: 0; }
.transport-row-body { padding: var(--space-2) 0 0 40px; }
.transport-disclosure > summary { min-height: 52px; padding: var(--space-2) 0; display: grid; grid-template-columns: 28px minmax(0, 1fr) 20px; align-items: center; gap: var(--space-3); cursor: pointer; list-style: none; }
.transport-disclosure > summary::-webkit-details-marker { display: none; }
.transport-disclosure > summary .transport-icon { margin-top: 0; }
.transport-disclosure-chevron { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.transport-disclosure[open] .transport-disclosure-chevron { transform: rotate(180deg); }
.transport-disclosure .transport-row-body { padding: 0 0 var(--space-4) 40px; }
.transport-disclosure > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.transport-row .transport-route { display: flex; justify-content: space-between; gap: var(--space-2); color: var(--accent); }
.transport-route span:last-child { color: var(--ink); }
.transport-row .transport-route + .transport-route { margin-top: var(--space-2); }
.transport-row .transport-note { display: block; margin-top: var(--space-1); color: var(--muted); font-size: 13px; line-height: 1.6; }
.official-directions { margin: var(--space-4) 0 0; text-align: center; }
.official-directions a { min-height: 44px; display: inline-flex; align-items: center; gap: var(--space-1); color: var(--muted); font-size: 13px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.official-directions-note { margin: var(--space-4) 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; }

.guestbook-form { display: grid; gap: var(--space-4); }
.guestbook-form label { display: grid; gap: var(--space-2); color: var(--ink); font-size: 14px; line-height: 1.5; }
.guestbook-form input, .guestbook-form textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; padding: 0 var(--space-3); background: var(--paper); color: var(--ink); font-family: "Gowun Dodum", sans-serif; font-size: 16px; line-height: 1.5;
}
.guestbook-form input::placeholder, .guestbook-form textarea::placeholder { color: var(--muted); opacity: .78; }
.guestbook-form textarea { min-height: 112px; padding: var(--space-3); resize: vertical; }
.guestbook-form .button { width: 100%; min-height: 48px; margin-top: var(--space-2); }
.form-result { margin: 0; min-height: 0; padding: 0; color: var(--accent); font-size: 13px; line-height: 1.65; text-align: center; }
.form-result:not(:empty) { min-height: 48px; padding: var(--space-3); border-radius: 10px; background: var(--accent-soft); }
.guestbook-section { background: var(--paper); }
.guestbook-content { margin: 0 auto; max-width: 430px; }
.guestbook-heading { margin-bottom: var(--space-5); }
.guestbook-heading h2 { margin-bottom: var(--space-2); font-size: 26px; text-align: center; }
.guestbook-heading > p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.guestbook-examples { display: grid; gap: var(--space-3); }
.guest-note { padding: var(--space-4); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.example-label { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--space-2); border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; line-height: 1.3; }
.guest-note p { margin: var(--space-3) 0; color: var(--ink); font-size: 15px; line-height: 1.8; word-break: keep-all; }
.guest-signature { color: var(--muted); font-size: 13px; }
.guestbook-form { margin-top: var(--space-5); padding: var(--space-5); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.site-footer { min-height: 64px; padding: var(--space-3) var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); color: var(--muted); background: var(--paper); font-size: 12px; line-height: 1.4; }
.site-footer a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: flex-end; color: var(--accent); text-decoration: none; font-family: "Gowun Dodum", sans-serif; }
.preview-badge { color: var(--accent); letter-spacing: .05em; }

/* Review tools appear only at ?review=1. */
.design-review { width: min(calc(100% - 32px), 920px); margin: var(--space-6) auto; padding: var(--space-5); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.design-review[hidden], .calibration-controls[hidden] { display: none; }
.review-topline { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.review-label, .specimen-label { color: var(--muted); font-family: "Libre Baskerville", serif; font-size: 12px; line-height: 1.4; letter-spacing: .07em; }
.review-topline a { min-height: 44px; display: inline-flex; align-items: center; color: var(--accent); font-size: 13px; text-decoration: none; }
.design-review h1 { margin: var(--space-3) 0 var(--space-2); color: var(--accent); font-size: 26px; font-weight: 400; line-height: 1.5; }
.review-summary { max-width: 700px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; word-break: keep-all; }
.type-specimen { margin-top: var(--space-5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.type-specimen > div { min-height: 92px; padding: var(--space-4); border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.type-specimen p { margin: var(--space-2) 0 0; color: var(--ink); font-size: 20px; line-height: 1.5; }
.type-specimen div:first-child p { font-family: "Dancing Script", cursive; font-weight: 600; }
.review-bottom { margin-top: var(--space-4); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; }
.rule-summary { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; line-height: 1.7; }
.rule-summary li { position: relative; padding-left: var(--space-4); }
.rule-summary li + li { margin-top: var(--space-2); }
.rule-summary li::before { position: absolute; left: 0; content: "•"; color: var(--accent); }
.review-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.calibration-controls { padding: var(--space-3) var(--gutter); display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; }
.calibration-controls .button { min-height: 44px; font-size: 16px; }

@media (min-width: 768px) {
  :root { --gutter: 40px; --section-space: 64px; }
  .hero { padding: max(24px, env(safe-area-inset-top)) 16px max(8px, env(safe-area-inset-bottom)); }
  .photo-gallery { padding-inline: 24px; }
}
@media (max-width: 767px) {
  .invitation-copy, .details-section, .guestbook-section { min-height: 0; }
  .invitation-copy { justify-content: flex-start; padding: 72px 24px 8px; }
  .section { padding-top: var(--space-6); padding-bottom: var(--space-6); }
  .event-section { display: flex; flex-direction: column; justify-content: flex-start; }
  .directions-section { min-height: 0; padding: 24px 16px; display: block; }
  .directions-section > .directions-content { min-height: 0; display: block; }
  .directions-content > .section-title { margin-bottom: var(--space-3); }
  .map-shuttle { margin-bottom: var(--space-3); }
  .venue-map-figure figcaption { max-width: 100%; margin-top: var(--space-2); font-size: 13px; line-height: 1.5; }
  .map-links { margin-top: var(--space-3); }
  .transport-section { min-height: 100svh; padding-block: var(--space-5); }
  .transport-section > .section-title { margin-bottom: var(--space-2); font-size: 24px; line-height: 1.5; }
  .transport-section .location-heading { margin-bottom: var(--space-2); }
  .transport-section .location-eyebrow { display: none; }
  .transport-section .location-venue { margin-bottom: var(--space-2); font-size: 16px; line-height: 1.5; white-space: nowrap; }
  .transport-list { margin-top: 0; }
  .transport-row--shuttle .transport-row-body { padding-left: 0; }
  .transport-row .transport-route { font-size: 14px; line-height: 1.5; }
  .transport-row .transport-route + .transport-route { margin-top: var(--space-1); }
  .transport-row--shuttle .transport-note { margin-top: var(--space-1); }
  .official-directions-note { margin-top: var(--space-2); }
  .official-directions { margin-top: var(--space-1); }
  .transport-disclosure > summary { min-height: 44px; padding: var(--space-1) 0; }
  .guestbook-section { display: block; }
}
@media (max-width: 400px) {
  .event-summary h3 { font-size: 23px; }
  .location-venue { font-size: 20px; }
}
@media (max-width: 360px) {
  .invitation-copy { padding-top: 64px; }
  .featured-photo { padding-bottom: 64px; }
  .section { padding-right: 20px; padding-left: 20px; }
  .address-row { gap: var(--space-1); }
  .location-address { font-size: 14px; }
  .address-copy { min-width: 82px; font-size: 13px; }
  .type-specimen, .review-bottom { grid-template-columns: 1fr; }
  .design-review { padding: var(--space-4); }
  .site-footer { font-size: 12px; }
}
@media (max-width: 767px) and (max-height: 600px) {
  .transport-section { padding-block: 20px; }
  .transport-section .location-heading { margin-bottom: var(--space-1); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none !important; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hand-frame, .save-date, .couple-names, .hero-date, .hero-venue { animation: none; }
  .scroll-reveal, .scroll-reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .firework-burst { display: none; }
}

/* The film strip emerges from behind the canister at the same visible height. */
.film-section { padding: 32px 16px 64px; }
.film-camera-row { display: flex; align-items: center; isolation: isolate; }
.film-camera { position: relative; z-index: 1; width: 142px; height: auto; flex: 0 0 142px; margin-right: -26px; transform: translateY(-4.5%); pointer-events: none; }
.film-strip { display: flex; min-width: 0; flex: 1; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; background: #191a18; cursor: grab; }
.film-photo { position: relative; flex: 0 0 auto; margin: 0; padding: 20px 3px 23px; border: 0; border-radius: 0; background: #191a18; color: #d7c8a2; cursor: inherit; }
.film-photo::before, .film-photo::after { content: ''; position: absolute; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, transparent 0 6px, #fff 6px 15px, transparent 15px 21px); }
.film-photo::before { top: 6px; }
.film-photo::after { bottom: 6px; }
.film-photo img { display: block; width: auto; max-width: none; height: 100px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.film-photo span { position: absolute; bottom: 12px; left: 10px; font: 8px/1 monospace; letter-spacing: 2px; }
.film-photo:focus-visible { outline-offset: -3px; }
@media (min-width: 600px) { .film-section { padding-inline: 24px; } .film-camera { width: 157px; flex-basis: 157px; } .film-photo img { height: 115px; } }

.film-strip::-webkit-scrollbar { display: none; }
.film-strip.is-dragging { cursor: grabbing; user-select: none; }

.film-roll-label { margin: 0 0 10px; color: #a85b68; font: 10px/1.6 "Libre Baskerville", serif; letter-spacing: .14em; text-align: center; }
.film-roll-label span { margin: 0 5px; color: var(--muted); }
.closing-heart { display: flex; flex-direction: column; align-items: center; width: auto; height: auto; margin: 16px auto 12px; padding: 40px 24px; pointer-events: none; }
.closing-heart img { display: block; width: 72px; height: 82px; }
.closing-heart span { display: block; margin-top: 12px; color: var(--accent); font: 21px/1.4 "Dancing Script", cursive; text-align: center; }
