:root {
  --paper: #fcfaf6;
  --white: #fffefa;
  --ink: #35453a;
  --muted: #6e756b;
  --rose: #a47569;
  --rose-pale: #f6ebe5;
  --line: #dcded3;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.8 var(--sans); }
body.intro-active { overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--rose); outline-offset: 6px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
h2 { font-size: clamp(42px, 5.1vw, 72px); letter-spacing: -.045em; }
h2 em { color: var(--rose); font-weight: 400; }
h3 { font-size: 44px; letter-spacing: -.025em; }
[hidden] { display: none !important; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.eyebrow { font-size: 10px; line-height: 1.8; font-weight: 500; letter-spacing: .24em; }
.small-note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.amp { color: var(--rose); font-family: var(--serif); font-style: italic; }
.text-link { display: inline-flex; align-items: center; gap: 24px; border: 0; border-bottom: 1px solid #98a28c; background: none; padding: 10px 0; font-size: 12px; letter-spacing: .04em; }
.text-link:hover { color: var(--rose); border-color: var(--rose); }
.topbar { max-width: 1320px; margin: auto; padding: 24px 56px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.monogram { font: 25px var(--serif); letter-spacing: .05em; }
.monogram span { font-style: italic; color: var(--rose); font-size: 21px; }
.topbar-link { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.topbar-link span { margin-left: 22px; color: var(--ink); }

/* A large rectangular photograph and an offset typographic composition. */
.hero { max-width: 1320px; margin: auto; padding: 64px 72px 48px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 26px 80px; align-items: center; }
.hero-copy { position: relative; z-index: 2; width: calc(100% + 64px); padding-bottom: 0; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 16px; }
.fine-line { width: 44px; height: 1px; background: var(--rose); }
.couple-names { margin-top: 34px; font-size: clamp(66px, 7.2vw, 104px); line-height: 1.04; letter-spacing: -.055em; }
.couple-names > span { display: block; }
.couple-names .amp { margin: 10px 0 8px 47%; font-size: 48px; line-height: 1; }
.hero-subtitle { margin-top: 30px; color: var(--muted); font-size: 12px; letter-spacing: .04em; }
.hero-subtitle em { display: inline-block; margin-top: 4px; color: var(--ink); font: italic 29px var(--serif); letter-spacing: -.01em; }
.hero-art { position: relative; grid-column: 2; grid-row: 1 / span 2; margin: 14px 0 0; padding-bottom: 32px; }
.portrait-wrap { position: relative; }
.portrait-wrap::before { content: ''; position: absolute; inset: -14px -14px -14px 14px; border: 1px solid #c8cdbd; pointer-events: none; }
.portrait-frame { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 660px; overflow: hidden; border-radius: 0; background: #eee7de; }
.portrait-frame > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg, #efede3, #f7e9df 60%, #e2e7da); }
.photo-placeholder::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 3px, #faf8f429 4px); pointer-events: none; }
.portrait-botanical { position: absolute; width: 105%; height: 102%; right: -25%; bottom: -22%; color: #849276; opacity: .76; transform: rotate(13deg); }
.photo-initials { position: relative; z-index: 1; margin-bottom: 130px; font: 90px var(--serif); color: #7d8c72; letter-spacing: -.035em; }
.photo-initials em { color: #ad887b; font-size: 54px; }
.placeholder-caption { position: absolute; z-index: 1; bottom: 40px; left: 16px; right: 16px; text-align: center; }
.placeholder-caption > span { font-size: 9px; letter-spacing: .2em; }
.placeholder-caption p { font-size: 11px; color: #626e5c; margin-top: 8px; }
.portrait-caption { display: block; margin-top: 32px; font: italic 16px var(--serif); color: var(--muted); text-align: right; }
.portrait-number { position: absolute; right: -41px; top: 26%; writing-mode: vertical-rl; font-size: 9px; letter-spacing: .25em; color: var(--muted); }
.hero-footer { grid-column: 1; align-self: start; display: block; padding: 26px 0 20px; border-top: 1px solid var(--line); }
.date-stamp .eyebrow { margin-bottom: 12px; }
.date-numbers { display: flex; align-items: baseline; gap: 14px; font: 68px/.95 var(--serif); letter-spacing: -.06em; }
.date-numbers i { font-size: 34px; color: #a1aa96; font-weight: 400; }
.date-numbers [data-year] { font-size: 44px; }
.hero-footer-note { margin-top: 20px; }
.hero-footer-note > p { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.hero-footer-note [data-time] { color: var(--ink); font-size: 13px; }
.hero-footer-note > p > span:nth-child(2) { padding: 0 10px; }

/* The invitation and time form the second visual focal point. */
.section-pad { padding: 110px 72px; }
.letter { max-width: 1320px; position: relative; margin: auto; display: grid; grid-template-columns: 1.4fr .8fr; column-gap: 80px; background: var(--white); }
.letter-copy h2 { margin: 26px 0 28px; font-size: clamp(44px, 4.8vw, 68px); }
.letter-copy h2 em { font-size: .85em; letter-spacing: -.035em; }
.letter-message { max-width: 550px; font-size: 13px; color: var(--muted); }
.ceremony-time { align-self: center; padding-left: 40px; border-left: 1px solid var(--line); }
.ceremony-time > [data-time] { display: block; margin: 12px 0 16px; font: 92px/.95 var(--serif); letter-spacing: -.055em; }
.ceremony-time time { display: block; font-size: 12px; }
.time-rule { display: block; width: 48px; height: 1px; margin: 28px 0 24px; background: var(--rose); }
.ceremony-time > p:last-child { color: var(--muted); font: italic 21px/1.5 var(--serif); }
.section-heading { margin-bottom: 56px; }
.section-heading h2 { margin: 22px 0; }
.section-heading > p:last-child { font-size: 13px; color: var(--muted); }
.places { max-width: 1320px; margin: auto; border-top: 1px solid var(--line); }
.places > .section-heading { display: grid; grid-template-columns: 1fr 1fr; column-gap: 60px; align-items: end; }
.places > .section-heading .eyebrow { grid-column: 1 / -1; }
.places > .section-heading h2 { margin-bottom: 0; }
.places > .section-heading > p:last-child { padding-bottom: 5px; text-align: right; }
.places-grid { display: grid; gap: 0; }
.place { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; padding: 38px 0; border-top: 1px solid var(--line); }
.place:last-child { padding-bottom: 0; }
.place-title { display: flex; gap: 24px; align-items: start; }
.place-title .eyebrow { margin-top: 4px; }
.place-title h3 { margin-top: 12px; }
.address { margin: 24px 0 12px 62px; font-size: 12px; color: var(--muted); }
.direction { margin: 4px 0 0 62px; }
.map-frame { height: 250px; background: #f0f1e9; border: 1px solid #dce0d4; border-radius: 0; overflow: hidden; }
.map-placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: repeating-linear-gradient(35deg, transparent, transparent 53px, #d5dcce55 54px, #d5dcce55 55px); }
.map-placeholder .icon { width: 32px; height: 32px; color: #889a78; margin-bottom: 8px; }
.map-placeholder span { font-size: 12px; }
.map-placeholder small { font-size: 10px; color: var(--muted); }
.map-frame iframe { display: block; border: 0; width: 100%; height: 100%; }

.gifts { background: var(--rose-pale); border-top: 1px solid #e8d8cf; border-bottom: 1px solid #e8d8cf; }
.gifts > .section-heading { max-width: 1176px; margin: 0 auto 60px; text-align: center; }
.gift-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 800px; margin: auto; }
.gift { padding: 12px 42px; text-align: center; }
.gift + .gift { border-left: 1px solid #dbc6bb; }
.gift h3 { margin: 12px 0 28px; font-size: 38px; }
.qr-frame { display: grid; place-items: center; width: min(200px, 100%); aspect-ratio: 1; margin: auto; padding: 12px; overflow: hidden; background: var(--white); border: 1px solid #dbc9be; border-radius: 0; }
.qr-image { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.qr-placeholder { width: 100%; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 1px dashed #d2c8bc; color: var(--muted); font-size: 11px; }
.qr-placeholder .icon { width: 30px; height: 30px; color: var(--rose); }
.bank-details { margin: 22px auto 6px; max-width: 300px; white-space: pre-line; overflow-wrap: anywhere; }
.copy { font-size: 11px; }
.thanks { position: relative; overflow: hidden; text-align: center; padding: 120px 32px 100px; }
.thanks > :not(.thanks-phoenix) { position: relative; z-index: 1; }
.thanks h2 { font-size: clamp(68px, 9vw, 120px); font-style: italic; margin: 28px 0; }
.thanks-message { color: var(--muted); font-size: 13px; }
.signature { margin: 42px 0 24px; font: 36px var(--serif); letter-spacing: -.035em; }
.signature em { color: var(--rose); padding: 0 10px; }
.footer-date { display: block; font-size: 10px; color: var(--muted); letter-spacing: .25em; }

/* One intro, one button. Organic clouds stay decorative. */
.intro { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: var(--paper); overflow: hidden; min-height: 100svh; transition: opacity 400ms ease, visibility 400ms; }
.intro.leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-content { position: relative; z-index: 2; text-align: center; padding: 40px 24px 76px; max-width: 760px; }
.intro-greeting { margin: 22px 0; font: italic clamp(22px, 2.3vw, 30px)/1.5 var(--serif); color: var(--muted); }
.intro h1 { font-size: clamp(48px, 5.6vw, 80px); letter-spacing: -.04em; line-height: 1.05; }
.intro h1 > span { display: block; }
.intro h1 .amp { font-size: 36px; line-height: 1.4; }
.intro-message { margin: 26px 0; color: var(--muted); font-size: 12px; }
.glass-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-width: 190px; min-height: 50px; padding: 13px 24px; background: #ffffff90; border: 1px solid #cdd1c3; border-radius: 0; backdrop-filter: blur(12px); box-shadow: 0 8px 28px #65705c0d; font-size: 12px; letter-spacing: .05em; }
.glass-button:hover { background: var(--white); border-color: #9aaa8c; }
.glass-button .icon { width: 19px; height: 19px; }
.intro .small-note { margin-top: 18px; font-size: 10px; }
.intro-date { position: absolute; bottom: 28px; z-index: 2; font-size: 10px; color: var(--muted); letter-spacing: .3em; }
.mist { position: absolute; pointer-events: none; width: 160vw; height: 70vh; filter: blur(45px); background: radial-gradient(ellipse, #fffffff0, transparent 65%); }
.mist-one { top: -20%; left: -40%; animation: mist 15s ease-in-out infinite alternate; }
.mist-two { bottom: -20%; right: -40%; animation: mist 19s ease-in-out infinite alternate-reverse; }
.butterflies { position: absolute; inset: 0; pointer-events: none; }
.butterfly { position: absolute; top: 65%; left: 18%; width: 5px; height: 16px; background: #a69d8e; border-radius: 50%; opacity: 0; }
.butterfly::before, .butterfly::after { content: ''; position: absolute; width: 18px; height: 22px; background: #dac5bacc; top: -7px; left: -16px; border-radius: 70% 35% 65% 25%; transform-origin: right center; animation: wings 650ms ease-in-out infinite alternate; }
.butterfly::after { left: 4px; border-radius: 35% 70% 25% 65%; transform-origin: left center; }
.intro.running .butterfly { animation: flight 5s ease-in-out both; }
.butterfly.second { top: 73%; left: 70%; transform: scale(.65); animation-delay: .45s !important; }
.sound-button { position: fixed; z-index: 40; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 16px; border: 1px solid #cdd1c3; border-radius: 0; background: #fcfaf6f0; backdrop-filter: blur(10px); box-shadow: 0 4px 20px #3645330a; font-size: 11px; }
.sound-button[aria-pressed=true] { border-color: #899e78; }
.sound-button[aria-pressed=false] .icon { opacity: .55; }
.status { position: fixed; z-index: 45; bottom: 82px; right: 24px; max-width: min(360px, calc(100vw - 48px)); background: #fcfaf6f5; font-size: 12px; color: var(--muted); padding: 0; box-shadow: 0 5px 20px #35443a12; }
.status:not(:empty) { padding: 12px 18px; border: 1px solid var(--line); }
.scroll-cue { position: fixed; z-index: 35; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 16px; background: #fcfaf6e8; backdrop-filter: blur(8px); color: var(--ink); font-size: 10px; letter-spacing: .08em; }
.scroll-cue .icon { width: 19px; height: 19px; animation: scroll-nudge 1.8s ease-in-out infinite; }
.scroll-cue:hover { color: var(--rose); }
@keyframes scroll-nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* Each item fades independently; the observer starts after the intro exits. */
.enhanced .reveal { opacity: 0; transform: translateY(24px); transition: opacity 950ms cubic-bezier(.22, 1, .36, 1), transform 950ms cubic-bezier(.22, 1, .36, 1); }
.enhanced .reveal.visible { opacity: 1; transform: translateY(0); transition-delay: var(--reveal-delay, 0ms); }
.noscript-note { text-align: center; padding: 20px; font-size: 12px; background: #f1f0e9; }
@keyframes mist { to { transform: translate(20%, 15%) scale(1.1); } }
@keyframes wings { to { transform: scaleX(.25); } }
@keyframes flight { 0% { opacity: 0; translate: 0 0; } 20% { opacity: .7; } 70% { opacity: .6; } 100% { opacity: 0; translate: 80px -160px; } }

@media (max-width: 1000px) {
  .topbar { padding: 22px 40px; }
  .hero { padding: 56px 48px 42px; gap: 26px 48px; }
  .couple-names { font-size: clamp(60px, 7.6vw, 78px); }
  .couple-names .amp { font-size: 38px; }
  .hero-copy { padding-bottom: 20px; }
  .date-numbers { font-size: 54px; gap: 10px; }
  .date-numbers i { font-size: 25px; }
  .date-numbers [data-year] { font-size: 35px; }
  .photo-initials { font-size: 68px; margin-bottom: 85px; }
  .photo-initials em { font-size: 44px; }
  .portrait-number { right: -30px; }
  .section-pad { padding: 88px 48px; }
  .letter { column-gap: 40px; }
  .letter-copy h2 { font-size: 47px; }
  .ceremony-time { padding-left: 28px; }
  .ceremony-time > [data-time] { font-size: 68px; }
  .place { gap: 40px; }
  .place-title h3 { font-size: 36px; }
  .thanks { padding: 100px 32px; }
}
@media (max-width: 700px) {
  body { font-size: 14px; }
  .topbar { padding: 18px 24px; }
  .topbar-link { font-size: 9px; letter-spacing: .04em; }
  .topbar-link span { margin-left: 8px; }
  .hero { padding: 36px 24px 0; grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { width: 100%; padding: 0; }
  .hero-copy .eyebrow { font-size: 9px; gap: 12px; }
  .fine-line { width: 28px; }
  .couple-names { position: relative; font-size: clamp(44px, 12.9vw, 78px); margin-top: 22px; padding-right: 0; line-height: 1.12; }
  .couple-names .amp { position: absolute; font-size: clamp(34px, 8vw, 44px); right: 12%; top: 6px; margin: 0; }
  .couple-names > span:last-child { padding-left: 18px; }
  .hero-subtitle { margin-top: 18px; font-size: 11px; }
  .hero-subtitle br { display: none; }
  .hero-subtitle em { font-size: 21px; margin-left: 5px; }
  .hero-art { grid-column: auto; grid-row: auto; margin: 4px 6px 0 0; padding-bottom: 25px; }
  .portrait-wrap::before { inset: -9px -9px -9px 9px; }
  .portrait-frame { aspect-ratio: 4 / 4.7; }
  .portrait-caption { margin-top: 26px; font-size: 14px; }
  .portrait-number { right: -18px; font-size: 7px; letter-spacing: .16em; }
  .portrait-botanical { right: -22%; bottom: -19%; }
  .photo-initials { font-size: 68px; margin-bottom: 100px; }
  .photo-initials em { font-size: 43px; }
  .placeholder-caption { bottom: 28px; }
  .placeholder-caption > span { font-size: 8px; }
  .placeholder-caption p { font-size: 10px; }
  .hero-footer { grid-column: auto; display: block; border-top: 0; padding: 10px 0 38px; border-bottom: 1px solid var(--line); }
  .date-stamp .eyebrow { font-size: 9px; margin-bottom: 14px; }
  .date-numbers { font-size: 64px; gap: 12px; }
  .date-numbers i { font-size: 28px; }
  .date-numbers [data-year] { font-size: 43px; }
  .hero-footer-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; }
  .hero-footer-note > p { margin: 0; font-size: 10px; }
  .hero-footer-note > p > span:nth-child(2) { padding: 0 5px; }
  .hero-footer-note .text-link { font-size: 10px; gap: 10px; }
  .section-pad { padding: 66px 24px; }
  .letter { display: block; }
  .letter-copy h2 { font-size: clamp(37px, 10.1vw, 55px); margin: 22px 0; }
  .letter-copy .eyebrow { font-size: 9px; }
  .letter-message { font-size: 12px; }
  .desktop-break { display: none; }
  .ceremony-time { margin-top: 32px; padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .ceremony-time > [data-time] { font-size: 86px; margin: 12px 0 16px; }
  .ceremony-time time { font-size: 12px; }
  .time-rule { margin: 22px 0 18px; }
  .ceremony-time > p:last-child { font-size: 20px; }
  .ceremony-time > p:last-child br { display: none; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2 { font-size: 44px; margin: 20px 0; }
  .section-heading > p:last-child { font-size: 12px; }
  .places > .section-heading { display: block; }
  .places > .section-heading h2 { margin-bottom: 20px; }
  .places > .section-heading > p:last-child { text-align: left; padding: 0; }
  .place { grid-template-columns: 1fr; gap: 22px; padding: 30px 0; }
  .place-title { gap: 20px; }
  .place-title h3 { font-size: 37px; margin-top: 9px; }
  .index { font-size: 28px; }
  .place-title .eyebrow { font-size: 9px; }
  .address { margin: 18px 0 0 53px; font-size: 11px; }
  .direction { margin-left: 53px; font-size: 11px; }
  .map-frame { height: 220px; }
  .gifts > .section-heading { text-align: left; margin-bottom: 38px; }
  .gift-grid { grid-template-columns: 1fr; gap: 0; }
  .gift { padding: 0 0 34px; }
  .gift + .gift { border-left: 0; border-top: 1px solid #dbc6bb; padding: 34px 0 0; }
  .gift h3 { font-size: 36px; }
  .thanks { padding: 88px 24px 108px; }
  .thanks h2 { font-size: clamp(58px, 17vw, 100px); margin: 26px 0; }
  .thanks-message { font-size: 12px; }
  .signature { font-size: 29px; margin-top: 34px; }
  .signature em { padding: 0 5px; }
  .sound-button { bottom: 16px; right: 16px; padding: 10px 13px; }
  .scroll-cue { left: 24px; bottom: 14px; transform: none; padding: 6px 10px; font-size: 9px; }
  .status { bottom: 74px; right: 16px; }
  .intro-content { padding: 32px 22px 60px; }
  .intro .eyebrow { font-size: 9px; letter-spacing: .16em; }
  .intro-greeting { font-size: 24px; margin: 22px 0; }
  .intro h1 { font-size: clamp(42px, 12.8vw, 64px); }
  .intro h1 .amp { font-size: 32px; }
  .intro-message { font-size: 12px; margin: 24px 0; }
  .intro .small-note { font-size: 9px; max-width: 250px; margin: 16px auto 0; }
}
@media (max-width: 360px) {
  .hero-footer-note { align-items: start; flex-direction: column; gap: 4px; }
  .date-numbers { font-size: 55px; gap: 10px; }
  .date-numbers [data-year] { font-size: 37px; }
  .signature { font-size: 25px; }
}
@media (max-height: 670px) {
  .intro-content { padding: 28px 20px 48px; }
  .intro-greeting { font-size: 20px; margin: 12px 0; }
  .intro h1 { font-size: 38px; }
  .intro h1 .amp { font-size: 25px; }
  .intro-message { margin: 16px 0; font-size: 11px; }
  .intro .small-note { margin-top: 10px; }
  .intro-date { bottom: 14px; }
}
@media (max-height: 480px) {
  .intro-content { padding: 12px 20px 30px; }
  .intro-greeting { font-size: 16px; margin: 6px 0; }
  .intro h1 { font-size: 29px; }
  .intro h1 .amp { font-size: 19px; line-height: 1.2; }
  .intro-message { margin: 8px 0; font-size: 10px; }
  .intro .eyebrow, .intro .small-note { font-size: 8px; }
  .glass-button { min-height: 42px; padding: 8px 18px; }
  .intro-date { bottom: 8px; font-size: 8px; }
}
/* Paper invitation trial: restrained texture, generous type and staged reveals. */
.eyebrow { font-size: 12px; letter-spacing: .18em; }
.small-note, .text-link { font-size: 14px; }
.topbar-link { font-size: 12px; }
.hero-subtitle { font-size: 14px; }
.hero-footer-note > p { font-size: 13px; }
.hero-footer-note [data-time] { font-size: 15px; }
.letter { margin: 36px auto; background-color: #fffdf9; background-image: repeating-linear-gradient(0deg, transparent 0 3px, #a99b8305 3px 4px), repeating-linear-gradient(90deg, transparent 0 5px, #a99b8304 5px 6px); box-shadow: 0 14px 50px #65513b08; }
.letter::before { content: ''; position: absolute; inset: 22px; border: 1px solid #d9c9b7; pointer-events: none; }
.letter::after { content: ''; position: absolute; left: 50%; top: 21px; width: 72px; height: 3px; transform: translateX(-50%); background: var(--rose); pointer-events: none; }
.letter-message, .section-heading > p:last-child, .thanks-message { font-size: 15px; line-height: 1.9; }
.ceremony-time time { font-size: 14px; }
.ceremony-poem > span { display: block; }
.address { font-size: 14px; }
.map-placeholder span { font-size: 14px; }
.map-placeholder small { font-size: 12px; }
.gifts { background: linear-gradient(180deg, #fcf8f3, #f6ebe5); }
.gifts .section-heading > p:last-child { max-width: 610px; margin: auto; }
.copy { font-size: 13px; }
.footer-date, .intro-date { font-size: 12px; }
.intro-message { font-size: 14px; }
.intro .small-note { font-size: 12px; }
.glass-button { font-size: 14px; }
.sound-button { font-size: 13px; }
.scroll-cue { font-size: 12px; }
.enhanced .reveal-photo { clip-path: inset(12% 0 0 0); transform: translateY(36px); transition: opacity 1300ms ease, transform 1300ms cubic-bezier(.22,1,.36,1), clip-path 1300ms cubic-bezier(.22,1,.36,1); }
.enhanced .reveal-photo.visible { clip-path: inset(0); transform: none; }
.letter .reveal { transition-duration: 1150ms; }
@media (max-width: 700px) {
  .eyebrow, .hero-copy .eyebrow, .date-stamp .eyebrow, .letter-copy .eyebrow, .place-title .eyebrow, .intro .eyebrow { font-size: 11px; }
  .topbar-link { font-size: 11px; }
  .hero-subtitle { font-size: 14px; }
  .hero-footer-note { flex-wrap: wrap; }
  .hero-footer-note > p, .hero-footer-note .text-link { font-size: 13px; }
  .letter { margin: 24px 12px; padding: 58px 24px; }
  .letter::before { inset: 10px; }
  .letter::after { top: 9px; }
  .letter-message, .section-heading > p:last-child, .thanks-message { font-size: 15px; }
  .ceremony-time time { font-size: 14px; }
  .address, .direction { font-size: 14px; }
  .qr-frame { width: min(160px, 100%); padding: 10px; }
  .gift h3 { margin-bottom: 20px; }
  .gift { padding-bottom: 28px; }
  .gift + .gift { padding-top: 28px; }
  .intro-message { font-size: 14px; }
  .intro .small-note { font-size: 11px; }
  .scroll-cue { font-size: 11px; }
  .portrait-number { font-size: 9px; }
}
@media (max-height: 480px) {
  .intro-message, .intro .small-note { font-size: 10px; }
  .intro .eyebrow { font-size: 9px; }
}
/* A tiny shuttle journey and a pair of real gold bands. */
.place-title { gap: 0; }
.address { margin-left: 0; }
.direction { margin-left: 0; }
.travel-note { margin-top: 58px; text-align: center; }
.travel-note > p:not(.eyebrow) { max-width: 630px; margin: 14px auto 0; font-size: 15px; color: var(--muted); line-height: 1.9; }
.shuttle-scene { max-width: 780px; margin: 20px auto 0; }
#shuttle-road { display: block; width: 100%; height: auto; overflow: visible; }
#shuttle-toggle { min-height: 44px; padding: 6px 0; font-size: 12px; color: var(--muted); }
.wedding-rings { position: relative; width: 210px; height: 136px; margin: -8px 0 24px; perspective: 650px; pointer-events: none; }
@media (max-width:700px) {
  .wedding-rings { width: 185px; height: 120px; margin-bottom: 24px; }
  .travel-note { margin-top: 42px; text-align: left; }
  .shuttle-scene { margin-left: -10px; margin-right: -10px; text-align: center; }
}
/* Optional arcade fits inside the invitation rather than taking over the page. */
.wedding-arcade { text-align: center; }
.arcade-launch { margin: 20px auto 0; }
.arcade-launch > span { font-size: 22px; }
.game-panel { max-width: 470px; margin: 24px auto 0; padding: 22px; border: 1px solid var(--line); background: var(--white); }
.game-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; text-align: left; align-items: center; }
.game-heading .eyebrow { font-size: 9px; }
.game-heading h3 { margin: 8px 0; font-size: 30px; }
.game-heading .text-link { font-size: 12px; min-height: 44px; }
.game-instructions { font-size: 13px; text-align: left; line-height: 1.7; color: var(--muted); margin: 16px 0; }
.game-wave { font-size: 12px; color: var(--rose); text-align: left; }
.game-hud { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; padding: 10px 0; }
.game-hud strong { color: var(--rose); font-weight: 600; }
.game-stage { position: relative; overflow: hidden; }
.game-stage canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; outline-offset: -3px; }
.game-stage canvas:focus-visible { outline: 2px solid var(--rose); }
.game-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: #fcfaf6ed; backdrop-filter: blur(4px); }
.game-overlay h3 { font-size: 30px; }
.game-overlay p { font-size: 14px; margin: 18px 0 24px; line-height: 1.8; }
.game-overlay .glass-button { min-width: 0; }
.game-controls { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 10px; margin-top: 14px; }
.game-controls button { border: 1px solid #cdd1c3; background: #f6f5ec; border-radius: 0; min-height: 50px; font-size: 20px; touch-action: manipulation; }
.game-controls #game-rocket { background: #f6ebe5; font-size: 15px; }
.game-controls button:active { background: #e5e9dc; }
.game-controls button:disabled { opacity: .5; cursor: default; }
#game-pause { min-height: 44px; margin-top: 8px; font-size: 13px; }
.game-confetti { display: none; position: absolute; inset: 0; pointer-events: none; }
.celebrating .game-confetti { display: block; }
.game-confetti i { position: absolute; left: 10%; top: -10px; width: 5px; height: 10px; background: #b48f7d; animation: celebration 3s ease-out both; }
.game-confetti i:nth-child(2) { left: 27%; background: #a8b99a; animation-delay: .1s; }
.game-confetti i:nth-child(3) { left: 43%; animation-delay: .3s; }
.game-confetti i:nth-child(4) { left: 62%; background: #a8b99a; animation-delay: .2s; }
.game-confetti i:nth-child(5) { left: 78%; animation-delay: .4s; }
.game-confetti i:nth-child(6) { left: 92%; background: #c6b787; }
@keyframes celebration { to { top: 100%; transform: rotate(360deg) translateX(-20px); opacity: 0; } }
@media (max-width:700px) {
  .game-panel { padding: 14px; }
  .game-controls { gap: 6px; }
  .game-heading h3 { font-size: 28px; }
}
.gift-action { text-align: center; }
.gift-open { margin-top: 40px; animation: gift-arrive 650ms ease both; }
@keyframes gift-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* A static photograph remains the fallback for the 3D rings. */
.linked-rings { width: 100%; height: 100%; object-fit: contain; display: block; }
.game-stage canvas { touch-action: none; }
.game-form { text-align: left; font-size: 12px; color: var(--muted); padding: 0 0 9px; }
/* A full portrait with feathered edges, beside the invitation on desktop. */
.intro { overflow-x: hidden; overflow-y: auto; align-items: flex-start; }
.intro-content { width: 100%; max-width: 1120px; margin: auto; padding: 44px 32px 76px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 36px; }
.intro-portrait { width: 100%; margin: 0; position: relative; }
.intro-portrait img { width: auto; height: auto; max-width: 100%; max-height: min(76svh, 760px); margin: auto; object-fit: contain; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 8%, #000 78%, transparent);
  mask-composite: intersect; }
.intro-copy { min-width: 0; }
.intro-content:has(.intro-portrait[hidden]) { grid-template-columns: 1fr; max-width: 780px; }
.intro h1 { font-size: clamp(36px, 4vw, 52px); letter-spacing: -.025em; line-height: 1.2; }
.intro h1 > span { display: inline-block; }
.intro h1 .amp { margin: 0 12px; font-size: 32px; }
.intro-greeting { font-size: 21px; line-height: 1.45; margin: 12px 0; }
.intro-message { margin: 16px 0; line-height: 1.65; font-size: 14px; }
.intro .small-note { margin-top: 12px; font-size: 12px; }
.intro-date { right: 28px; top: 24px; bottom: auto; letter-spacing: .18em; }
.intro-dragon, .intro-phoenix { position: absolute; pointer-events: none; z-index: 1; width: clamp(180px, 28vw, 360px); height: auto; opacity: .65; object-fit: contain; }
.intro-dragon { left: -32px; top: -28px; }
.intro-phoenix { right: -30px; bottom: -60px; }
.thanks-phoenix { position: absolute; width: 300px; right: -35px; bottom: -100px; opacity: .5; pointer-events: none; }
.wedding-rings { width: 250px; height: 170px; perspective: none; }
.rings-canvas { width: 100%; height: 100%; display: block; }
@media (max-width: 700px) {
  .intro-content { display: block; padding: 62px 20px 76px; }
  body.intro-active #sound { top: 10px; left: 12px; bottom: auto; right: auto; }
  .intro .intro-date { top: 25px; }
  .intro-portrait { width: 100%; margin: 0 auto 8px; }
  .intro-portrait img { max-height: 43svh; max-width: 100%; }
  .intro h1 { font-size: 36px; }
  .intro h1 > span { display: block; }
  .intro h1 .amp { font-size: 25px; line-height: 1.05; margin: 4px 0; }
  .intro-greeting { font-size: 18px; margin: 10px 0; }
  .intro-message { margin: 12px 0; }
  .intro-date { top: 15px; right: 16px; font-size: 10px; }
  .intro-dragon, .intro-phoenix { width: 165px; opacity: .45; }
  .intro-dragon { left: -42px; top: -24px; }
  .intro-phoenix { right: -40px; bottom: -40px; }
  .thanks-phoenix { width: 220px; right: -65px; bottom: -75px; opacity: .4; }
  .wedding-rings { width: 215px; height: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .enhanced .reveal, .enhanced .reveal-photo.visible { opacity: 1; transform: none; clip-path: none; }
  .butterflies, .mist { display: none; }
  .intro.leaving { visibility: hidden; }
}

/* Intro content is visible immediately; the progress tracks its 10-second duration. */
.intro-progress { width: 130px; height: 1px; background: #cbbca02e; margin: 19px auto 0; overflow: hidden; }
.intro-progress span { display: block; height: 100%; width: 100%; background: #aa9166; transform: scaleX(0); transform-origin: left; }
.intro.running .intro-progress span { animation: intro-progress var(--intro-duration,15s) linear both; }
@keyframes intro-progress { to { transform: scaleX(1); } }
.thanks-doves { display: block; width: 180px; height: auto; margin: 0 auto 24px; opacity: .9; object-fit: contain; }
.thanks > :not(.thanks-doves) { position: relative; z-index: 1; }
/* One glass surface for every button and action link, preserving square corners. */
button, a.text-link {
  position: relative; border: 1px solid #c3b59b80; border-radius: 0;
  background: linear-gradient(135deg,#ffffffc9,#fffdf780 48%,#e8ddc74d);
  -webkit-backdrop-filter: blur(16px) saturate(125%); backdrop-filter: blur(16px) saturate(125%);
  box-shadow: inset 0 1px 0 #ffffffee,inset 0 -1px 0 #ffffff55,0 6px 20px #6651380d;
  transition: background 180ms ease,box-shadow 180ms ease,border-color 180ms ease;
  min-height: 44px;
}
button:hover, a.text-link:hover { border-color: #af9b748f; background: linear-gradient(135deg,#fffffff0,#fff9eab3); box-shadow: inset 0 1px 0 white,0 8px 22px #66513816; }
button:active, a.text-link:active { background: linear-gradient(135deg,#eee7d4c9,#ffffffc9); box-shadow: inset 0 2px 6px #66513813; }
button.text-link, a.text-link { padding: 10px 16px; }
.glass-button, .sound-button, .game-controls button, .game-controls #game-rocket { background: linear-gradient(135deg,#ffffffc9,#fffdf780 48%,#e8ddc74d); border-color: #c3b59b80; }
#gift-toggle { padding: 15px 27px; gap: 13px; }
#gift-toggle .icon { width: 26px; height: 26px; color: #a18156; }
#gift-toggle:hover .icon { animation: gift-icon 700ms ease both; }
@keyframes gift-icon { 35% { transform: translateY(-3px) rotate(-7deg); } 65% { transform: rotate(5deg); } }
#sound { position: fixed; }
@media (max-width:700px) {
  .thanks-doves { width: 155px; }
  button.text-link,a.text-link { padding: 10px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-progress { display: none; }
}

.game-controls button:active { background: linear-gradient(135deg,#eee7d4c9,#ffffffc9); }
/* Offscreen reset is immediate; every re-entry gets a complete soft reveal. */
.enhanced .reveal:not(.visible) { transition: none; }
.enhanced .reveal.visible { transition: opacity var(--reveal-duration,950ms) cubic-bezier(.22,1,.36,1),transform var(--reveal-duration,950ms) cubic-bezier(.22,1,.36,1),clip-path var(--reveal-duration,950ms) cubic-bezier(.22,1,.36,1); transition-delay: var(--reveal-delay,0ms); }
.letter .reveal { --reveal-duration: 1150ms; }
.reveal-photo { --reveal-duration: 1300ms; }
button.text-link { background: linear-gradient(135deg,#ffffffc9,#fffdf780 48%,#e8ddc74d); }
.glass-button:hover,.sound-button:hover,.game-controls button:hover,button.text-link:hover,a.text-link:hover { background: linear-gradient(135deg,#fffffff0,#fff9eab3); }

/* Three-minute table logic puzzle; native buttons support touch and keyboard. */
.puzzle-panel { max-width: 780px; text-align: left; scroll-margin-top: 20px; }
.puzzle-panel h4 { font: 24px/1.3 var(--serif); margin: 12px 0; }
.puzzle-screen { padding: 24px 0 8px; }
.puzzle-screen p, .puzzle-rules { font-size: 14px; line-height: 1.8; color: var(--muted); }
.puzzle-rules { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; }
.puzzle-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
.puzzle-level { color: var(--rose); font-size: 14px; margin: 14px 0; }
.puzzle-seats { display: grid; grid-template-columns: repeat(var(--seat-columns), minmax(0,1fr)); gap: 34px 8px; position: relative; }
.puzzle-seats::before { content: 'BÀN TIỆC'; position: absolute; top: 50%; left: 0; right: 0; transform: translateY(-50%); font-size: 9px; letter-spacing: .24em; text-align: center; color: #8b816e; background: #f0e9dc; padding: 6px; pointer-events: none; }
.puzzle-guest,.puzzle-seat { min-height: 64px; min-width: 0; border: 1px solid #c3b59b80; border-radius: 0; background: linear-gradient(135deg,#ffffffc9,#fffdf780 48%,#e8ddc74d); backdrop-filter: blur(8px); padding: 7px 3px; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: 13px/1.3 var(--sans); cursor: pointer; touch-action: manipulation; }
.guest-icon { font: 26px/1.1 sans-serif; }
.puzzle-seat[aria-pressed=true],.puzzle-guest[aria-pressed=true] { outline: 2px solid #9a6f57; outline-offset: 1px; background: #f6e9d5; }
.puzzle-seat.locked { border-color: #91a481; background: #edf1e6; }
.puzzle-seat.locked::after { content: 'Đã khóa'; font-size: 10px; color: #526947; }
.puzzle-guest.seated { border-style: dashed; }
.puzzle-guest:disabled { opacity: .5; cursor: default; }
.puzzle-direction { font-size: 9px; letter-spacing: .18em; text-align: center; margin: 8px 0; color: var(--muted); }
.puzzle-seat-help { font-size: 11px; text-align: center; color: var(--muted); margin: 12px 0; }
.puzzle-guests { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-top: 14px; }
.puzzle-clue-area h4 { font-size: 22px; margin-top: 5px; }
#puzzle-clues { padding-left: 20px; font-size: 14px; line-height: 1.65; margin: 12px 0; }
#puzzle-clues li { margin: 8px 0; padding-left: 3px; }
#puzzle-clues .clue-failed { color: #9f4737; font-weight: 600; }
#puzzle-clues .clue-failed::marker { content: '! '; }
.puzzle-notice { font-size: 14px; line-height: 1.6; min-height: 44px; margin: 20px 0 12px; color: var(--muted); }
.puzzle-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.puzzle-actions .glass-button { min-width: 0; padding: 12px 16px; font-size: 14px; }
.puzzle-actions button:disabled { opacity: .45; cursor: default; }
.puzzle-success .puzzle-table-area { animation: table-success 600ms ease; }
.puzzle-success .puzzle-notice { color: #526947; }
@keyframes table-success { 50% { background: #e7eedc; box-shadow: 0 0 26px #bbcfa15c; } }
@media(max-width:600px) { .puzzle-layout { grid-template-columns: 1fr; gap: 16px; } .puzzle-panel { padding: 14px; } .puzzle-panel .game-heading h3 { font-size: 27px; } .puzzle-clue-area h4 { font-size: 21px; } }
@media(prefers-reduced-motion:reduce) { .puzzle-success .puzzle-table-area { animation: none; } }

/* Glossy match-three sweets; the board itself stays square and quiet. */
.match-panel { max-width: 510px; padding: 24px; text-align: left; scroll-margin-top: 18px; background: linear-gradient(155deg,#fffefa,#fbf6ef); }
.match-panel .game-heading h3 { font-size: 29px; line-height: 1.13; margin: 10px 0; }
.match-panel .game-heading .text-link { padding: 6px 0; }
.match-hud { margin: 8px 0 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.match-hud span { display: flex; flex-direction: column; font-size: 11px; letter-spacing: .03em; }
.match-hud strong { font-size: 23px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.match-screen h4 { font: 25px/1.3 var(--serif); margin: 24px 0 12px; }
.match-screen p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.match-how { display: grid; gap: 9px; margin: 24px 0; font-size: 14px; }
.match-how b { display: inline-block; width: 30px; color: var(--rose); font: italic 24px/1 var(--serif); }
.match-rules { border-top: 1px solid var(--line); padding-top: 14px; }
.match-actions { margin: 24px 0 8px; }
.match-actions .glass-button { min-width: 0; padding: 13px 18px; }
.match-goal { font-size: 12px; margin: 6px 0 15px; color: var(--muted); }
.match-goal progress { display: block; width: 100%; height: 4px; margin-top: 8px; appearance: none; border: 0; background: #eee5da; }
.match-goal progress::-webkit-progress-bar { background: #eee5da; }
.match-goal progress::-webkit-progress-value { background: linear-gradient(90deg,#d6ad83,#bc8b91); transition: width 250ms; }
.match-goal progress::-moz-progress-bar { background: #bc8b91; }
.match-stage { position: relative; }
.match-board { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 3px; padding: 7px; border: 1px solid #dfd4c5; background: #ede4d9; touch-action: none; user-select: none; overflow: hidden; }
.match-cell { position: relative; aspect-ratio: 1; min-width: 0; padding: 2px; border: 1px solid #ffffff70; border-radius: 0; background: #fffdf888; display: flex; align-items: center; justify-content: center; }
.match-cell:focus-visible { outline: 2px solid #7a6554; outline-offset: -2px; z-index: 1; }
.match-cell[aria-pressed=true] { background: #fff6d5; border-color: #ab8654; box-shadow: inset 0 0 0 1px #ab8654; }
.candy { width: 95%; aspect-ratio: 1; position: relative; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 3px 2px #75575438); pointer-events: none; }
.candy svg { width: 100%; height: 100%; display: block; }
.candy-special-mark { position: absolute; bottom: -1px; right: 0; font-size: 12px; color: #fff; text-shadow: 0 1px 3px #62442d; }
.candy-rainbow { width: 83%; background: conic-gradient(#f396b3,#fbd976,#8ad9c4,#91caf2,#b49ce2,#f396b3); clip-path: polygon(25% 0,75% 0,100% 25%,100% 75%,75% 100%,25% 100%,0 75%,0 25%); box-shadow: inset 0 0 9px #fff; }
.candy-rainbow span { color: white; font-size: 28px; text-shadow: 0 1px 4px #927986; }
.match-cell.is-moving .candy { animation: candy-swap 170ms ease-out both; }
.match-cell.is-clearing .candy { animation: candy-pop 250ms ease-in both; }
.match-cell.is-flashing { background: #fff7d1; box-shadow: inset 0 0 14px #ffc95d; }
.match-cell.is-falling .candy { animation: candy-fall 280ms cubic-bezier(.25,.8,.4,1) both; }
.match-board[data-effect=shuffle] .candy { animation: candy-shuffle 400ms ease-out both; }
.match-cell.is-hint { animation: candy-hint 1.2s ease-in-out infinite; }
.match-cell.is-hint .candy { transform: scale(1.08); }
.match-combo { position: absolute; inset: 38% 0 auto; text-align: center; pointer-events: none; font: italic bold 23px/1.2 var(--serif); color: #8d514b; text-shadow: 0 2px 8px #fff,0 0 14px #fff; background: #fffaf2d9; padding: 12px 0; box-shadow: 0 8px 28px #a9856633; }
.match-combo.big-combo { color: #8c6395; font-size: 30px; }
.match-notice { font-size: 13px; line-height: 1.6; min-height: 42px; margin: 15px 0 5px; color: var(--muted); }
.match-legend { font-size: 11px; color: var(--muted); margin: 0; }
.match-panel #game-pause { margin-top: 12px; }
@keyframes candy-swap { from { transform: translate(var(--swap-x),var(--swap-y)); } to { transform: translate(0,0); } }
@keyframes candy-pop { 35% { transform: scale(1.18); filter: drop-shadow(0 0 7px #fff6c3); } to { opacity: 0; transform: scale(.2) rotate(20deg); } }
@keyframes candy-fall { from { transform: translateY(var(--drop)); } to { transform: translateY(0); } }
@keyframes candy-shuffle { from { opacity: .2; transform: scale(.5) rotate(-12deg); } to { opacity: 1; transform: scale(1); } }
@keyframes candy-hint { 50% { background: #fff3c0; box-shadow: inset 0 0 0 1px #b49557; } }
@media(max-width:600px) { .match-panel { padding: 14px; } .match-panel .game-heading h3 { font-size: 26px; } .match-board { gap: 2px; padding: 4px; } .match-hud strong { font-size: 21px; } .match-panel .game-heading .eyebrow { letter-spacing: .1em; } }
@media(prefers-reduced-motion:reduce) { .match-cell.is-hint { outline: 2px solid #b49557; outline-offset: -2px; } }
