:root {
  color-scheme: light;
  --paper: #fffaf6;
  --white: #fffaf6;
  --chocolate: #754f44;
  --brown-deep: #69473d;
  --olive: #747a4f;
  --ebony: #515335;
  --blush: #f2c4cd;
  --rose: #cd8294;
  --sand: #a89c70;
  --ink-soft: #876f61;
  --line: #b5ab9d80;
  --body: 'Mali', Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--chocolate); font: 500 1rem/1.9 var(--body); }
a { color: inherit; text-underline-offset: 5px; }
button { font: inherit; cursor: pointer; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--olive); outline-offset: 5px; }
[hidden] { display: none !important; }
.symbols { position: absolute; width: 0; height: 0; }
.wrap { width: min(1060px, calc(100% - 80px)); margin-inline: auto; }
.section-pad { padding-block: clamp(62px, 8vw, 100px); }
h1, h2, p, figure { margin: 0; }
h1, h2 { line-height: 1.4; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.45rem); }
h2 i { font-style: normal; }
.eyebrow { font-size: .75rem; letter-spacing: .14em; color: var(--olive); }
.eyebrow > span { display: none; }
.site-header { border-bottom: 1px dotted var(--line); }
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.wordmark { font-family: 'Saifah Font TH', Tahoma, sans-serif; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-size: .85rem; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }
.wordmark i { font-style: normal; color: var(--rose); }
.wordmark svg { width: 24px; height: 24px; color: var(--rose); }
.site-header nav { display: flex; gap: 25px; font-size: .77rem; }
.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--rose); }
.music-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; font-size: .72rem; text-decoration: none; }
.music-link svg { width: 17px; height: 17px; }
.music-link.is-floating { position: fixed; z-index: 5; top: 10px; right: 16px; padding: 3px 12px; background: var(--paper); border: 1px dotted var(--chocolate); border-radius: 3px; }

.art-piece { position: relative; display: block; overflow: hidden; }
.art-piece > img { position: absolute; height: auto; max-width: none; }
.art-couple { width: 100%; aspect-ratio: 470 / 600; }
.art-couple > img { width: 371.915%; left: -38.298%; top: -35%; }
.art-stamp { width: 250px; aspect-ratio: 450 / 250; }
.art-stamp > img { width: 388.445%; left: -288.889%; top: -6%; }
.art-flowers { width: 100%; aspect-ratio: 560 / 260; }
.art-flowers > img { width: 312.143%; left: -187.5%; top: -315.385%; }

.hero { display: grid; }
.hero-entry, .hero-reveal { grid-area: 1 / 1; min-width: 0; }
.hero-entry { position: relative; z-index: 1; background: var(--paper); opacity: 1; transition: opacity .55s; }
.hero-entry.is-leaving { opacity: 0; pointer-events: none; }
.letter-cover { padding: 28px 0 47px; text-align: center; }
.collage { position: relative; height: clamp(490px, 53vw, 650px); max-width: 950px; margin-inline: auto; }
.collage-name { position: absolute; width: 46%; left: 5%; top: 0; z-index: 2; }
.collage-photo { position: absolute; right: 15%; top: 19%; width: 39%; height: 70%; }
.collage-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 76%; }
.collage-message > img { width: 100%; height: auto; }
.collage-message { position: absolute; width: 46%; left: 49%; bottom: 0; z-index: 2; }
.collage-flower { position: absolute; font-size: 3.2rem; color: var(--blush); left: 3%; top: 34%; line-height: 1; transform: rotate(-10deg); }
.cover-date { font-family: Georgia, serif; font-size: 1.2rem; letter-spacing: -.04em; margin: 12px 0 24px; }
.open-envelope { display: inline-grid; justify-items: center; text-decoration: none; }
.stationery { display: flex; align-items: center; justify-content: space-between; gap: 28px; width: 290px; border: 1px solid #ca8999; padding: 12px 16px; background: #f8dce2; font-size: .92rem; transform: rotate(-2deg); transition: transform .4s; }
.letter-heart { font-size: 1.65rem; color: #a65b70; line-height: 1; }
.stationery.is-open { transform: rotate(1deg) translateY(-8px); }
.envelope-label { font-size: .81rem; margin-top: 9px; }
.envelope-label > span { color: var(--rose); }
.envelope-music { color: var(--ink-soft); font-size: .64rem; }
.welcome-letter { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 9%; min-height: 620px; padding-block: 70px; }
.welcome-letter > .art-couple { max-width: 370px; margin-inline: auto; }
.welcome-letter > .art-stamp { position: absolute; top: 15px; right: 0; width: 190px; }
.welcome-copy { padding-top: 35px; text-align: center; }
.welcome-copy h1 { font-size: clamp(1.45rem, 2.6vw, 2rem); border-bottom: 2px dotted var(--line); padding-bottom: 10px; margin-bottom: 12px; outline: none; }
.welcome-copy p { margin: 10px 0; }
.welcome-copy .thai-date { font-weight: 700; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--olive); font-size: .86rem; }
.text-link svg { width: 18px; height: 18px; }

.date-section, .schedule-section, .venue-section, .photos-section, .palette-section, .site-footer { position: relative; border-top: 1px dotted var(--line); }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 13%; }
.graphic-heading { max-width: 340px; margin-bottom: 10px; }
.thai-date { margin-block: 10px; }
.countdown { text-align: center; }
.mini-calendar { padding-bottom: 18px; margin-bottom: 15px; border-bottom: 2px dotted var(--line); }
.calendar-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.calendar-nav button { width: 44px; height: 44px; color: var(--olive); font-size: 1.5rem; border: 0; background: transparent; }
.calendar-nav p { font-size: 1rem; font-weight: 600; }
.mini-calendar table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.mini-calendar :is(th,td) { padding: 4px 0; font-size: .85rem; font-weight: 500; }
.mini-calendar th { color: var(--ink-soft); }
.mini-calendar td span { display: inline-grid; place-items: center; width: 31px; height: 31px; }
.mini-calendar .wedding-day { background: var(--blush); border-radius: 43% 51% 46% 48%; color: var(--brown-deep); font-weight: 700; }
.countdown > p { font-size: .83rem; }
.countdown-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 13px; }
.countdown-grid div + div { border-left: 1px dotted var(--line); }
.countdown-grid strong, .countdown-grid span { display: block; }
.countdown-grid strong { font-size: clamp(1.6rem, 3.5vw, 2.6rem); line-height: 1.3; color: var(--olive); font-weight: 600; font-variant-numeric: tabular-nums; }
.countdown-grid span { font-size: .7rem; }

.schedule-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 12%; }
.schedule-heading { text-align: center; }
.schedule-heading .art-couple { max-width: 270px; margin: 0 auto 18px; }
.schedule-heading h2 { font-size: clamp(1.5rem, 2.7vw, 2rem); }
.schedule-heading p { font-size: .85rem; margin-top: 5px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 79px 1fr; align-items: baseline; gap: 15px; padding: 13px 0; border-bottom: 2px dotted var(--line); }
.timeline time { font-size: 1.14rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.timeline small { display: block; font-size: .72rem; color: var(--ink-soft); }
.timeline li:first-child { border-top: 2px dotted var(--line); }
.venue-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 10%; align-items: center; margin-top: 10px; }
.venue-name { font-weight: 600; font-size: 1.3rem; margin-top: 18px; }
.venue-address { margin: 3px 0 16px; }
.pill { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 48px; padding: 7px 19px; border: 1px solid var(--rose); border-radius: 3px; background: #f9e0e5; text-decoration: none; font-size: .85rem; }
.pill svg { width: 20px; height: 20px; }
.pill:hover { background: #f4cdd6; }
.venue-art { color: var(--olive); }
.venue-art svg { width: 100%; height: auto; }

.photos-heading { text-align: center; }
.photos-heading h2 { color: var(--olive); margin-top: 5px; }
.photos-heading p { font-size: .9rem; }
.photos-heading > svg { display: none; }
.instant-trio { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 4%; max-width: 790px; padding-inline: 2%; margin: 40px auto 0; }
.instant-print { position: relative; overflow: hidden; aspect-ratio: 468/570; box-shadow: 0 6px 12px #69523c24; transform: rotate(var(--tilt)); }
.instant-print img { position: absolute; max-width: none; width: 410.26%; top: -44.74%; left: var(--photo-left); }
.instant-left { --photo-left: -45.30%; --tilt: -5deg; }
.instant-center { --photo-left: -155.34%; --tilt: 2deg; margin-top: 7%; z-index: 1; }
.instant-right { --photo-left: -265.38%; --tilt: 6deg; }
.photo-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--olive); font-size: .9rem; margin-top: 23px; }
.photo-note svg { width: 22px; height: 22px; color: var(--rose); }
.moments-grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 18px; align-items: center; margin-top: 45px; }
.moments-grid img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.gallery-zoom { display: block; width: 100%; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-zoom img { width: 100%; height: auto; }
.moments-grid > :first-child { transform: translateY(-5%); }
.moments-grid > :last-child { transform: translateY(5%); }
.more-photos { margin-top: 45px; }
.more-photos summary { display: flex; justify-content: center; align-items: center; width: max-content; max-width: 100%; gap: 15px; padding: 8px 18px; min-height: 46px; margin-inline: auto; border: 1px dotted var(--chocolate); font-size: .84rem; cursor: pointer; }
.more-photos summary::-webkit-details-marker { display: none; }
.more-photos summary::after { content: '+'; color: var(--rose); font-size: 1.3rem; line-height: 1; }
.more-photos[open] summary::after { content: '−'; }
.more-photos-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-top: 25px; align-items: start; }
.more-photos-grid > img, .more-photos-grid .gallery-zoom img { width: 100%; aspect-ratio: 2/3; object-fit: cover; }
.instant-pair { grid-column: span 2; align-self: center; position: relative; overflow: hidden; aspect-ratio: 884/700; }
.instant-pair img { position: absolute; max-width: none; width: 217.19%; top: -27.14%; left: -58.48%; }
.photo-finale { margin-top: 45px; }
.photo-finale img { width: 100%; height: auto; aspect-ratio: 2/1; object-fit: cover; object-position: 50% 67%; }

.palette-inner { text-align: center; }
.palette-inner h2 { font-size: 1.6rem; letter-spacing: .08em; }
.garden-label { letter-spacing: .07em; font-size: 1rem; }
.palette-inner .art-flowers { max-width: 560px; margin: 25px auto 12px; }
.palette-inner > p:last-of-type { font-size: .9rem; }
.swatches { display: grid; grid-template-columns: repeat(6,1fr); list-style: none; max-width: 680px; padding: 0; margin: 24px auto 0; gap: 12px; }
.swatches li { font: 500 .71rem/1.4 var(--body); }
.swatches li > span { display: block; background: var(--swatch); height: 3px; margin-bottom: 7px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 11%; }
.farewell > svg { width: 33px; height: 33px; color: var(--rose); margin-bottom: 13px; }
.farewell h2 { color: var(--olive); }
.farewell p { margin-top: 10px; }
.line-card { border-block: 2px dotted var(--line); padding-block: 22px; }
.line-card p { margin-block: 10px; }
.line-status { font-size: .78rem; color: var(--ink-soft); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px dotted var(--line); padding-top: 18px; margin-top: 60px; font-size: .72rem; }
.site-footer { padding-bottom: 24px; }

.music-panel { position: fixed; z-index: 8; right: 16px; bottom: max(12px, env(safe-area-inset-bottom)); width: min(310px, calc(100% - 20px)); padding: 8px 9px 10px; background: var(--paper); border: 1px solid #bfa898; box-shadow: 0 4px 18px #30201835; }
.player-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.player-top h2 { font-size: .85rem; }
.player-top button { min-width: 36px; min-height: 36px; border: 1px solid var(--line); background: transparent; color: var(--chocolate); font-size: 1.2rem; line-height: 1; }
#player iframe { display: block; width: 100%; height: 200px; min-height: 200px; border: 0; }
.music-panel p, .music-panel > a { font-size: .68rem; color: var(--ink-soft); }
.music-panel p { margin-top: 5px; }

#photo-dialog { width: min(980px, calc(100% - 22px)); max-height: calc(100% - 16px); padding: 13px clamp(45px,8vw,90px); overflow: auto; border: 1px solid var(--line); background: var(--paper); color: var(--chocolate); }
#photo-dialog::backdrop { background: #30251cec; }
#photo-dialog figure { display: grid; justify-items: center; }
#photo-dialog img { width: auto; max-width: 100%; height: auto; max-height: min(75dvh,760px); object-fit: contain; touch-action: pan-y; }
#photo-dialog figcaption { margin-top: 8px; min-height: 28px; font-size: .84rem; }
#photo-dialog button { position: absolute; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); color: var(--chocolate); background: var(--paper); font-size: 1.45rem; line-height: 1; }
.photo-close { top: 8px; right: 8px; }
.photo-prev, .photo-next { top: 50%; transform: translateY(-50%); }
.photo-prev { left: 5px; }
.photo-next { right: 5px; }
.scroll-reveal.is-seen { animation: reveal .85s cubic-bezier(.22,1,.36,1) both; }
.timeline li:nth-child(2n).is-seen { animation-delay: .06s; }
.timeline li:nth-child(3n).is-seen { animation-delay: .12s; }
@keyframes reveal {
  from { opacity: .08; translate: 0 var(--reveal-y,30px); }
  to { opacity: 1; translate: 0 0; }
}

@media(max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 56px; gap: 10px; }
  .site-header nav { display: none; }
  .music-link { font-size: .68rem; }
  .wordmark { font-size: .75rem; }
  .letter-cover { padding-top: 20px; }
  .collage { height: clamp(355px, 106vw, 540px); }
  .collage-name { width: 58%; left: 0; top: 0; }
  .collage-photo { width: 54%; right: 9%; top: 22%; height: 65%; }
  .collage-message { width: 62%; left: 36%; bottom: 0; }
  .collage-flower { left: 1%; top: 37%; font-size: 2.1rem; }
  .cover-date { margin: 12px 0 22px; font-size: 1rem; }
  .stationery { width: 262px; padding: 10px 14px; }
  .welcome-letter { grid-template-columns: 1fr; gap: 8px; padding: 80px 0 45px; min-height: 0; }
  .welcome-letter > .art-couple { max-width: 235px; }
  .welcome-letter > .art-stamp { width: 132px; top: 10px; }
  .welcome-copy { padding-top: 9px; }
  .date-grid, .schedule-grid, .venue-grid, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .date-grid > div:first-child { text-align: center; }
  .graphic-heading { max-width: 265px; margin-inline: auto; }
  .countdown { max-width: 400px; margin-inline: auto; width: 100%; }
  .schedule-heading .art-couple { max-width: 190px; }
  .timeline li { grid-template-columns: 67px 1fr; gap: 10px; padding: 11px 0; font-size: .9rem; }
  .timeline time { font-size: 1.02rem; }
  .venue-art { max-width: 270px; margin-inline: auto; }
  .venue-name { font-size: 1.12rem; }
  .venue-address { font-size: .9rem; }
  .instant-trio { margin-top: 25px; }
  .photo-note { font-size: .73rem; }
  .moments-grid { gap: 8px; margin-top: 32px; }
  .more-photos-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .photo-finale img { aspect-ratio: 3/2; }
  .garden-label { font-size: .79rem; }
  .swatches { grid-template-columns: repeat(3,1fr); row-gap: 15px; }
  .footer-bottom { font-size: .65rem; }
  .music-link.is-floating span { display: none; }
  .music-panel { width: min(260px,calc(100% - 20px)); right: 10px; }
  #photo-dialog { padding: 48px 10px 8px; }
  #photo-dialog :is(.photo-prev,.photo-next) { top: 55%; }
}
@media(prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@font-face {
  font-family: 'Saifah Font TH';
  src: url('assets/fonts/saifah.woff') format('woff'), url('assets/fonts/saifah.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root { --body: 'Saifah Font TH', 'Mali', Tahoma, sans-serif; }
.invitation-closed .site-header nav { visibility: hidden; }
.envelope-stage { display: grid; justify-items: center; align-content: center; min-height: max(570px, calc(100svh - 67px)); padding-block: 55px 65px; }
.mail-kicker { color: var(--olive); font-size: .76rem; letter-spacing: .22em; margin-bottom: 30px; }
.envelope-stage .open-envelope { display: grid; justify-items: center; width: min(100%, 580px); }
.envelope-stage .stationery {
  position: relative; display: block; width: 100%; aspect-ratio: 600/390;
  padding: 0; margin: 0; border: 0; background: transparent; perspective: 1000px;
  transform: rotate(-3deg); filter: drop-shadow(0 9px 11px #79544420);
}
.mail-back, .mail-flap { position: absolute; inset: 0; width: 100%; height: 100%; }
.mail-back { z-index: 2; }
.mail-flap { z-index: 4; transform-origin: 50% 1.6%; transition: transform .5s ease; backface-visibility: hidden; }
.mail-card { display: grid; place-items: center; position: absolute; z-index: 1; width: 72%; height: 80%; top: 8%; left: 14%; background: var(--paper); border: 1px solid #d5bfb2; transition: transform .65s ease; }
.mail-card img { width: 57%; height: auto; }
.mail-seal { position: absolute; z-index: 5; display: grid; place-items: center; width: 12%; aspect-ratio: 1; top: 53%; left: 44%; border-radius: 48% 51% 46% 49%; background: var(--olive); color: var(--paper); font: 400 clamp(1.4rem,5vw,2.5rem)/1 Georgia,serif; transition: opacity .2s; }
.mail-recipient { position: absolute; bottom: 10%; left: 0; width: 100%; text-align: center; font-size: clamp(.9rem,2.3vw,1.35rem); color: var(--chocolate); z-index: 3; }
.envelope-stage .envelope-label { margin-top: 28px; font-size: .88rem; color: var(--chocolate); }
.mail-date { margin-top: 15px; color: var(--olive); font-size: .68rem; letter-spacing: .1em; }
.envelope-stage .stationery.is-open { transform: rotate(-1deg); }
.stationery.is-open .mail-flap { transform: rotateX(175deg); }
.stationery.is-open .mail-card { transform: translateY(-60%) rotate(2deg); }
.stationery.is-open .mail-seal { opacity: 0; }
.hero-reveal .letter-cover { padding-bottom: 5px; }
@media(max-width:700px) {
  .envelope-stage { min-height: max(520px,calc(100svh - 57px)); padding-block: 50px; }
  .envelope-stage .open-envelope { width: min(100%,430px); }
  .mail-kicker { font-size: .65rem; }
  .envelope-stage .envelope-label { font-size: .79rem; margin-top: 23px; }
}

/* Playback stays mounted; the wedding card has no visible music tab. */
.music-link[hidden] { display: none !important; }
.music-panel.background-music {
  position: fixed; width: 1px; height: 1px; right: auto; bottom: auto;
  left: -10000px; top: 0; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); pointer-events: none;
}

/* Keep pen lines in their own layout column, clear of all photos. */
.welcome-letter { grid-template-columns: minmax(0,.9fr) 42px minmax(0,1.1fr); gap: 4%; }
.welcome-letter > .art-couple { grid-column: 1; width: 100%; }
.welcome-copy { grid-column: 3; }
.handdrawn-divider {
  display: block; align-self: stretch; min-height: 340px; width: 100%;
  background: url('assets/letter/squiggle-divider.svg') center / 100% 100% no-repeat;
  pointer-events: none;
}
.welcome-letter > .handdrawn-divider { grid-column: 2; grid-row: 1; margin-block: 55px 15px; }
.schedule-intro { text-align: center; margin-bottom: 42px; }
.schedule-kicker { color: var(--olive); font-size: .75rem; letter-spacing: .16em; margin-bottom: 8px; }
.schedule-intro h2 { font-size: clamp(2rem,4vw,2.7rem); line-height: 1.35; margin-bottom: 7px; }
.schedule-intro > p:last-child { font-size: 1rem; color: var(--ink-soft); }
.schedule-grid { grid-template-columns: minmax(0,.8fr) 38px minmax(0,1.25fr); gap: 4%; }
.schedule-heading .art-couple { max-width: 310px; width: 100%; margin-bottom: 0; }
.schedule-grid > .handdrawn-divider { margin-block: 16px; }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 28px; bottom: 30px; border-left: 1px dashed #c9beae; }
.timeline li { position: relative; grid-template-columns: 83px minmax(0,1fr); gap: 18px; padding: 17px 0; border-bottom: 1px dotted #d8cec2; align-items: center; }
.timeline li:first-child { border-top: 0; }
.timeline li:last-child { border-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: -27px; top: 29px; width: 11px; height: 11px; border: 3px solid var(--paper); border-radius: 50%; background: var(--rose); box-sizing: content-box; }
.timeline li:nth-child(even)::before { background: var(--olive); }
.timeline time { font-size: 1.5rem; line-height: 1.2; color: var(--olive); font-weight: 400; }
.timeline li > span { font-size: 1.08rem; line-height: 1.5; }
.timeline small { font-size: .82rem; margin-top: 2px; }
.date-section::before, .venue-section::before, .photos-section::before,
.palette-section::before, .site-footer::before {
  content: ''; position: absolute; left: 50%; top: -12px; transform: translateX(-50%);
  width: min(250px,60%); height: 24px; pointer-events: none;
  background: var(--paper) url('assets/letter/squiggle-line.svg') center / 100% 100% no-repeat;
}
@media (max-width: 700px) {
  .welcome-letter, .schedule-grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .welcome-letter > .art-couple, .welcome-copy { grid-column: 1; }
  .welcome-letter > .handdrawn-divider { display: none; }
  .schedule-intro { margin-bottom: 26px; }
  .schedule-heading .art-couple { max-width: 205px; }
  .schedule-grid > .handdrawn-divider {
    min-height: 24px; height: 24px; width: min(210px,70%); justify-self: center; margin: 0;
    background-image: url('assets/letter/squiggle-line.svg');
  }
  .timeline { padding-left: 27px; }
  .timeline li { grid-template-columns: 66px minmax(0,1fr); gap: 10px; padding: 18px 0; }
  .timeline time { font-size: 1.45rem; }
  .timeline li > span { font-size: 1.02rem; }
}

/* Cream stationery and an olive wax seal, matching the supplied invitation. */
.envelope-stage .stationery { aspect-ratio: 600 / 430; transform: rotate(0); filter: drop-shadow(-4px 7px 5px #302f2838); }
.mail-back, .mail-flap { height: 100%; }
.flap-paper { position: absolute; inset: 0; width: 100%; height: 100%; }
.flap-names { position: absolute; width: 31%; height: auto; left: 34.5%; top: 8%; }
.mail-seal { width: 25%; top: 43%; left: 37.5%; border-radius: 0; background: transparent; font: inherit; }
.mail-seal img { width: 100%; height: 100%; filter: drop-shadow(1px 4px 3px #252b1740); }
.envelope-stage .stationery.is-open { transform: translateY(-5px); }


body, .hero-entry, .mail-card, #photo-dialog { background: #fffaf6; }

/* Hand-inked wedding doodles, inspired by the couple's Canva reference. */
.doodle { display: block; width: 62px; height: 62px; color: var(--rose); flex: none; }
.envelope-bow { width: 50px; height: 50px; margin-bottom: 10px; transform: rotate(-9deg); }
.date-rings { width: 76px; height: 76px; margin: 0 0 16px; color: var(--olive); transform: rotate(-8deg); }
.timeline li { grid-template-columns: 43px 75px minmax(0,1fr); gap: 16px; }
.timeline-icon { width: 43px; height: 43px; }
.timeline li:nth-child(even) .doodle { color: var(--olive); transform: rotate(5deg); }
.timeline li:nth-child(odd) .doodle { transform: rotate(-5deg); }
.photo-camera { width: 75px; height: 75px; margin: 0 auto 14px; color: var(--olive); transform: rotate(-8deg); }
.photos-heading > svg.photo-camera { display: block; width: 75px; height: 75px; position: static; }
.couple-postcard { position: relative; max-width: 900px; margin: 36px auto 65px; padding: 56px 45px 58px; }
.postcard-frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: var(--rose); stroke-width: 3; }
.postcard-caption { text-align: center; font-size: 1.3rem; margin-bottom: 24px; }
.postcard-content { display: grid; grid-template-columns: 1fr 3.2fr 1fr; align-items: center; gap: 16px; }
.postcard-name { position: relative; text-align: center; font-size: clamp(1.7rem,4vw,2.9rem); }
.postcard-arrow { position: absolute; width: 65px; height: 65px; left: 35%; top: -63px; transform: rotate(75deg); }
.postcard-name:last-child .postcard-arrow { left: -10%; top: 52px; transform: rotate(-30deg); }
.postcard-photo { position: relative; aspect-ratio: 884/700; overflow: hidden; transform: rotate(-2deg); }
.postcard-photo img { position: absolute; max-width: none; width: 217.19%; top: -27.14%; left: -58.48%; }
.postcard-bow { margin: 20px auto -12px; width: 46px; height: 46px; }
.footer-cheers { margin: 14px 0; color: var(--olive); width: 68px; height: 68px; }
@media(max-width:700px) {
 .date-rings { margin-inline: auto; width: 60px; height: 60px; }
 .timeline li { grid-template-columns: 32px 59px minmax(0,1fr); gap: 8px; }
 .timeline-icon { width: 32px; height: 36px; }
 .timeline time { font-size: 1.25rem; }
 .timeline li > span { font-size: .98rem; }
 .couple-postcard { padding: 35px 24px 34px; margin-block: 25px 45px; }
 .postcard-caption { font-size: 1.1rem; margin-bottom: 12px; }
 .postcard-content { grid-template-columns: 1fr 1fr; gap: 8px; }
 .postcard-photo { grid-column: 1 / -1; grid-row: 1; width: 100%; }
 .postcard-name { font-size: 1.6rem; padding-top: 6px; }
 .postcard-arrow { display: none; }
 .postcard-bow { margin-top: 8px; width: 35px; height: 35px; }
 .footer-cheers { margin-inline: auto; }
}

/* Direct entry: the supplied couple card is the first page, without a gate. */
.first-page-cover { display: grid; justify-items: center; align-content: center; gap: 16px; min-height: calc(100svh - 67px); padding-block: 28px; }
.first-page-art { width: min(100%,1040px); height: auto; }
.first-page-scroll { font-size: .9rem; color: var(--olive); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media(max-width:700px) {
 .first-page-cover { width: 100%; padding: 24px 8px; min-height: calc(100svh - 56px); gap: 20px; }
}

.picture-invitation { display: grid; width: 100%; justify-items: center; gap: 16px; text-decoration: none; cursor: pointer; }
.picture-invitation:focus-visible { outline: 2px solid var(--rose); outline-offset: 6px; }
.picture-invitation:hover .first-page-scroll { color: var(--rose); }

/* Bride's final paper, supplied doodles, and complete dress-code artwork. */
body { background: #faf9f2 url('assets/letter/bride-paper.webp') repeat; background-size: 874px 620px; }
.hero-entry { background: transparent; }
.mail-card, #photo-dialog { background: #faf9f2 url('assets/letter/bride-paper.webp') repeat; background-size: 874px 620px; }
.date-section::before, .venue-section::before, .photos-section::before,
.palette-section::before, .site-footer::before { background-color: transparent; }
.art-piece > img { filter: brightness(1.045); }
.welcome-letter, .schedule-heading { mix-blend-mode: multiply; }
.original-icon { object-fit: contain; }
.welcome-hands { width: 100px; height: 85px; margin: 0 auto 10px; transform: rotate(-6deg); }
.photos-heading > img.photo-camera { display: block; width: 90px; height: 72px; margin: 0 auto 14px; }
.palette-section { padding-block: 30px; }
.palette-inner { width: min(100%,1200px); }
.dress-code-full { width: 100%; height: auto; max-width: 1200px; margin: auto; object-fit: contain; }
.graphic-ribbon { height: 48px; background-size: 650px auto; margin-block: 20px; }
.ribbon-pink { background-image: url('assets/letter/pink-stripes.webp'); }
.ribbon-sand { background-image: url('assets/letter/sand-stripes.webp'); }
.site-footer > .wrap { padding: 65px 70px 55px; background: url('assets/letter/pink-sand-frame.webp') center / 100% 100% no-repeat; }
.site-footer .line-card { border: 0; }
.site-footer .footer-bottom { margin-top: 30px; }
.site-footer { color: #3b2a20; }
.site-footer h2, .site-footer p { color: #3b2a20; }
@media(max-width:700px) {
 .graphic-ribbon { height: 30px; background-size: 420px auto; }
 .site-footer > .wrap { padding: 60px 40px 50px; }
 .site-footer .footer-grid { gap: 26px; }
 .site-footer .footer-bottom { flex-direction: column; text-align: center; }
 .palette-section { padding-block: 20px; }
 .palette-inner { width: 100%; }
 .welcome-hands { width: 76px; height: 65px; }
}
/* One continuous paper surface, with the source image edges outside the viewport. */
body { background: #faf9f2; position: relative; isolation: isolate; }
body::before { content: ''; position: fixed; inset: -70px; z-index: -1; pointer-events: none; background: url('assets/letter/bride-paper.webp') center / cover no-repeat; }
.date-grid { padding: 70px 85px; background: url('assets/letter/sand-paper-frame.webp') center / 100% 100% no-repeat; }
.venue-grid { padding: 65px 80px; background: url('assets/letter/pink-paper-frame.webp') center / 100% 100% no-repeat; }
.site-footer > .wrap { padding: 65px 110px 65px; }
.site-footer .eyebrow, .site-footer .line-status, .site-footer .footer-bottom, .site-footer .footer-bottom a { color: #3b2a20; }
@media(max-width:700px) {
 .date-grid { padding: 60px 40px; }
 .venue-grid { padding: 55px 38px; }
 .site-footer > .wrap { padding: 60px 43px 55px; }
}

/* Trim only the empty paper margins; every flower and stem stays visible. */
.dress-code-art { position: relative; width: 100%; aspect-ratio: 1120 / 680; overflow: hidden; }
.dress-code-art .dress-code-full { position: absolute; max-width: none; width: 156.07143%; height: auto; left: -28.57143%; top: -51.47059%; }
.site-footer .footer-cheers { color: #3b2a20; }
/* Keep frame edges shallow when a card grows vertically on a phone. */
.date-grid, .venue-grid { background: none; border: 36px solid transparent; border-image-slice: 230 fill; border-image-repeat: stretch; padding: 36px 42px; }
.date-grid { border-image-source: url('assets/letter/sand-paper-frame.webp'); }
.venue-grid { border-image-source: url('assets/letter/pink-paper-frame.webp'); }
@media(max-width:700px) {
 .date-grid, .venue-grid { border-width: 28px; padding: 24px 10px; }
}

/* Supplied artwork: white is transparent, without tinting the ink or photographs. */
.art-piece > img.supplied-cutout { position: static; width: 100%; height: auto; max-width: 100%; filter: none; }
.art-couple { aspect-ratio: 470 / 630; }
.art-stamp { aspect-ratio: 900 / 520; }
.welcome-letter, .schedule-heading { mix-blend-mode: normal; }
.palette-section { padding-block: 75px; }
.palette-inner { width: min(100% - 40px,1060px); }
.palette-inner h2 { font-size: clamp(1.7rem,3vw,2.3rem); margin-bottom: 3px; }
.dress-code-label { font-size: clamp(1rem,2vw,1.4rem); letter-spacing: .04em; padding-bottom: 14px; border-bottom: 1px dotted var(--line); }
.flowers-cutout { display: block; width: min(100%,905px); height: auto; margin: 32px auto 0; }
@media(max-width:700px) {
 .palette-section { padding-block: 45px; }
 .palette-inner { width: calc(100% - 30px); }
 .flowers-cutout { margin-top: 22px; }
}

/* Cover lettering stays crisp and selectable at every viewport size. */
.live-cover { position: relative; width: min(100%,1040px); container-type: inline-size; color: #785247; font-family: 'Saifah Font TH', Tahoma, sans-serif; }
.live-cover .first-page-art { display: block; width: 100%; }
.cover-live-title, .cover-live-groom, .cover-live-bride { position: absolute; display: block; text-align: center; font-weight: 400; line-height: 1.2; }
.cover-live-title { left: 34%; top: 20.4%; width: 32%; font-size: 4.4cqw; }
.cover-live-groom { left: 10.3%; top: 48.3%; width: 15%; }
.cover-live-bride { left: 73%; top: 48%; width: 19%; }
.cover-live-name, .cover-live-surname { display: block; }
.cover-live-name { font-size: 10.7cqw; line-height: 1.08; }
.cover-live-surname { font-size: 3.5cqw; margin-top: .6cqw; white-space: nowrap; }

.cover-live-groom { top: 46.5%; }
.cover-live-bride { top: 45.5%; }

/* Official LINE contact, with the supplied QR kept intact for scanning. */
.line-qr-link { display: block; width: min(200px,100%); margin: 18px 0 14px; background: white; border-radius: 8px; overflow: hidden; }
.line-qr { display: block; width: 100%; height: auto; }
.line-add-friend { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; background: var(--olive); color: #fffaf6; border-radius: 4px; text-decoration: none; font-size: .95rem; }
.line-add-friend:hover { background: #535b36; }
.line-qr-link:focus-visible, .line-add-friend:focus-visible { outline: 2px solid var(--rose); outline-offset: 5px; }
.line-card .line-status { display: block; margin-top: 10px; }
@media(max-width:700px) { .line-qr-link { margin-inline: auto; } .line-card { text-align: center; } }

/* A long, centered invitation timeline inspired by the bride's stationery reference. */
.schedule-stationery { width: min(calc(100% - 32px),620px); margin-inline: auto; overflow: hidden; position: relative; background: transparent; padding: 60px 0 30px; color: #626b43; }
.schedule-stationery .schedule-intro { width: auto; padding: 0 40px; margin: 0 0 25px; }
.schedule-stationery .schedule-intro h2 { color: #626b43; font-size: clamp(1.8rem,4vw,2.3rem); font-weight: 400; }
.schedule-stationery .schedule-intro p { font-size: .95rem; color: #7c795d; margin-top: 12px; }
.stationery-timeline { margin: 0; padding: 0; list-style: none; }
.stationery-timeline li { position: relative; min-height: 205px; display: grid; place-items: center; padding: 30px 0; }
.stationery-event { width: 290px; max-width: calc(100% - 190px); margin-inline: auto; text-align: center; position: relative; z-index: 1; }
.stationery-event > span { display: block; font-size: 1.25rem; line-height: 1.65; color: #626b43; }
.stationery-event time { display: block; font-size: 3.7rem; font-weight: 400; line-height: 1.3; letter-spacing: .025em; color: #626b43; margin-top: 7px; }
.stationery-sketch { position: absolute; width: 155px; height: 170px; object-fit: contain; left: -18px; top: 28px; transform: rotate(-8deg); pointer-events: none; }
.stationery-timeline li:nth-child(even) .stationery-sketch { left: auto; right: -14px; transform: rotate(8deg); }
.stationery-timeline .sketch-coupe { width: 130px; height: 165px; }
.stationery-timeline .sketch-heart { width: 145px; height: 145px; }
.stationery-timeline .sketch-flute { width: 120px; height: 205px; top: 6px; }
.stationery-timeline .sketch-music { width: 140px; height: 145px; }
@media(max-width:700px) {
 .schedule-stationery { width: calc(100% - 24px); padding: 42px 0 24px; }
 .schedule-stationery .schedule-intro { padding-inline: 25px; margin-bottom: 10px; }
 .schedule-stationery .schedule-intro h2 { font-size: 1.85rem; }
 .stationery-timeline li { min-height: 190px; padding-block: 28px; }
 .stationery-event { width: 192px; max-width: calc(100% - 142px); }
 .stationery-event > span { font-size: 1.05rem; line-height: 1.65; }
 .stationery-event time { font-size: 3.15rem; margin-top: 5px; }
 .stationery-sketch { width: 100px; height: 125px; left: -18px; top: 38px; }
 .stationery-timeline li:nth-child(even) .stationery-sketch { right: -16px; }
 .stationery-timeline .sketch-coupe { width: 88px; height: 125px; }
 .stationery-timeline .sketch-heart { width: 95px; height: 100px; top: 52px; }
 .stationery-timeline .sketch-flute { width: 80px; height: 165px; top: 18px; }
 .stationery-timeline .sketch-music { width: 92px; height: 112px; top: 48px; }
}

/* Render cover type and decoration directly; give the photo its own full-resolution layer. */
.live-cover { aspect-ratio: 1748 / 1240; }
.cover-frame, .cover-arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; fill: none; stroke: #cd8294; }
.cover-frame path { stroke-width: 11; }
.cover-arrows { stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.cover-frame-tall { display: none; }
.cover-photo { position: absolute; left: 25.6865%; top: 29.0323%; width: 47.54%; height: auto; }
@media(max-width:700px) {
 .live-cover { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 12px; aspect-ratio: auto; padding: 54px 30px 62px; }
 .cover-frame-wide, .cover-arrows-wide { display: none; }
 .cover-frame-tall { display: block; }
 .cover-frame-tall path { vector-effect: non-scaling-stroke; stroke-width: 3; }
 .cover-photo { position: static; order: 2; grid-column: 1 / -1; width: 100%; margin-top: 4px; }
 .live-cover .cover-live-title { position: static; order: 1; grid-column: 1 / -1; width: auto; font-size: clamp(23px,6vw,28px); line-height: 1.35; }
 .live-cover .cover-live-groom, .live-cover .cover-live-bride { position: static; width: auto; margin: 0; }
 .live-cover .cover-live-groom { order: 3; }
 .live-cover .cover-live-bride { order: 4; }
 .live-cover .cover-live-name { font-size: clamp(40px,11vw,52px); line-height: 1.15; }
 .live-cover .cover-live-surname { font-size: 18px; line-height: 1.6; margin-top: 2px; }
 .first-page-scroll { font-size: 17px; color: #626b43; }
 .first-page-cover { padding-block: 16px; }
}

/* Exact ink outlines from the supplied sheet; no bitmap filtering on small icons. */
.original-icon { filter: none; }
.date-grid { border-image-source: url('assets/letter/vector-frame-olive.svg'); border-image-slice: 100 fill; }
.venue-grid { border-image-source: url('assets/letter/vector-frame-pink.svg'); border-image-slice: 100 fill; }
.photos-heading > img.photo-camera { width: 100px; height: 78px; }
@media(max-width:700px) {
 .welcome-hands { width: 96px; height: 82px; }
 .date-rings { width: 80px; height: 65px; }
}

/* Return to the wax-sealed envelope; the couple's card is revealed inside. */
.hero-entry.is-leaving { transition: opacity .4s .65s; }
.envelope-stage { width: min(calc(100% - 40px),820px); min-height: calc(100svh - 67px); align-content: center; padding: 70px 20px; }
.envelope-stage .open-envelope { text-decoration: none; width: min(100%,580px); }
.envelope-stage .stationery { aspect-ratio: 600 / 430; }
.envelope-stage .mail-card { position: absolute; inset: 6% 8% 10%; width: auto; height: auto; padding: 12px; background: #fffaf6; transition: transform .7s .15s; }
.envelope-stage .mail-card img { width: 100%; height: 100%; object-fit: contain; }
.envelope-stage .envelope-label { font-size: 1rem; }
.inside-invitation { display: grid; justify-items: center; padding-block: 36px 24px; }
.inside-scroll { margin-top: 14px; font-size: 1rem; }
/* Closing stationery: a personal sign-off and one clear contact destination. */
.site-footer > .closing-letter { max-width: 960px; padding: 48px 50px 24px; background: none; border: 30px solid transparent; border-image: url('assets/letter/vector-frame-pink.svg') 100 fill / 30px / 0 stretch; }
.closing-letter .footer-grid { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 42px; align-items: center; }
.closing-letter .farewell { text-align: center; }
.closing-bouquet { width: 102px; height: 118px; object-fit: contain; margin: 0 auto 24px; transform: rotate(-8deg); }
.closing-letter .farewell h2 { font-size: clamp(2rem,4vw,2.65rem); line-height: 1.5; color: #754f44; font-weight: 400; }
.closing-letter .farewell p { font-size: 1rem; line-height: 1.9; }
.closing-letter .farewell .closing-date { color: var(--olive); font-size: .9rem; margin-top: 22px; }
.closing-letter .line-card { text-align: center; border: 0; border-left: 1px dotted #b5ab9d; padding: 8px 0 8px 30px; }
.closing-letter .closing-eyebrow { font-size: .75rem; letter-spacing: .12em; color: var(--olive); margin: 0 0 5px; }
.closing-letter .line-card h3 { font-size: 1.5rem; font-weight: 400; line-height: 1.4; color: var(--chocolate); }
.closing-letter .line-card > p:not(.closing-eyebrow) { font-size: .9rem; margin: 5px 0 14px; }
.closing-letter .line-qr-link { width: 164px; border-radius: 0; margin: 0 auto 16px; }
.closing-letter .line-add-friend { width: 100%; max-width: 240px; font-size: 1rem; }
.closing-letter .line-status { font-size: .8rem; }
.closing-letter .footer-bottom { margin-top: 32px; padding-top: 18px; border-color: #b5ab9d80; }
.closing-signature { display: flex; align-items: center; gap: 12px; }
.closing-signature img { width: 25px; height: 48px; object-fit: contain; transform: rotate(-10deg); }
@media(max-width:700px) {
 .envelope-stage { min-height: calc(100svh - 56px); width: calc(100% - 24px); padding: 55px 4px; }
 .envelope-stage .envelope-label { font-size: 1rem; }
 .inside-invitation { width: calc(100% - 16px); padding-top: 18px; }
 .site-footer > .closing-letter { width: calc(100% - 24px); padding: 30px 15px 18px; border-width: 20px; border-image-width: 20px; }
 .closing-letter .footer-grid { grid-template-columns: 1fr; gap: 26px; }
 .closing-bouquet { width: 78px; height: 90px; margin-bottom: 15px; }
 .closing-letter .farewell h2 { font-size: 2rem; }
 .closing-letter .farewell p { font-size: .95rem; }
 .closing-letter .farewell .closing-date { margin-top: 12px; }
 .closing-letter .line-card { border-left: 0; border-top: 1px dotted #b5ab9d; padding: 25px 0 0; }
 .closing-letter .line-qr-link { width: 154px; }
 .closing-letter .line-card h3 { font-size: 1.5rem; }
 .closing-letter .footer-bottom { gap: 10px; margin-top: 25px; }
}
@media(prefers-reduced-motion:reduce) { .hero-entry.is-leaving { transition: none; } }

/* The bride's opening composition: handwritten names, a night portrait, and the wedding date. */
.announcement-cover { position: relative; width: min(100%,1040px); aspect-ratio: 1748 / 1240; }
.announcement-names { position: absolute; width: 28.6%; height: auto; left: 15.5%; top: 7.3%; z-index: 2; }
.announcement-photo { position: absolute; width: 31.6%; height: 51.3%; left: 34.2%; top: 23.1%; object-fit: cover; object-position: 50% 100%; }
.announcement-married { position: absolute; width: 31.5%; height: auto; left: 48.1%; top: 73.5%; }
.announcement-flower { position: absolute; width: 45px; height: 45px; color: #efb8c7; }
.flower-one { left: 12%; top: 27%; }
.flower-two { right: 18%; top: 82%; }
.announcement-date { position: absolute; bottom: 2.5%; left: 0; width: 100%; text-align: center; font: 400 1.3rem/1.4 Georgia,serif; color: var(--chocolate); }
.reference-schedule { display: grid; grid-template-columns: minmax(0,.8fr) 38px minmax(0,1.25fr); align-items: stretch; gap: 4%; }
.schedule-photo { margin: 0; }
.schedule-photo img { width: 100%; height: 100%; max-height: 535px; object-fit: cover; object-position: 50% 70%; }
.reference-timeline { align-self: center; }
.reference-timeline li { grid-template-columns: 75px minmax(0,1fr); min-height: 90px; }
.reference-timeline li time { font-size: 1.5rem; }
.reference-timeline li > span { font-size: 1.1rem; }
/* The last page becomes a photo keepsake, distinct from the calendar's framed stationery. */
.site-footer > .closing-letter { border: 0; border-image: none; border-top: 1px solid #cd829480; padding: 48px 35px 20px; position: relative; }
.closing-letter .footer-grid { grid-template-columns: minmax(0,1fr) 290px; gap: 55px; }
.closing-memories { position: relative; width: min(100%,350px); height: 245px; margin: 0 auto 28px; }
.closing-memories img { position: absolute; object-fit: cover; background: #fffaf6; padding: 6px 6px 18px; box-shadow: 0 3px 10px #493c2c20; }
.memory-shoes { left: 4%; top: 12px; width: 43%; height: 218px; transform: rotate(-8deg); object-position: 50% 90%; }
.memory-hands { right: 2%; top: 0; width: 45%; height: 220px; transform: rotate(8deg); }
.closing-memories .memory-rings { left: 30%; top: 78px; width: 38%; height: 157px; padding: 0; object-fit: contain; transform: rotate(-3deg); }
@media(max-width:700px) {
 .announcement-cover { aspect-ratio: auto; height: 530px; width: min(100%,430px); }
 .announcement-names { width: 62%; left: 3%; top: 0; }
 .announcement-photo { width: 70%; height: 54%; left: 17%; top: 22%; }
 .announcement-married { width: 62%; left: 32%; top: 75%; }
 .announcement-flower { width: 30px; height: 30px; }
 .flower-one { left: 2%; top: 28%; }
 .flower-two { right: 0; top: 88%; }
 .announcement-date { font-size: 1rem; bottom: 0; }
 .reference-schedule { grid-template-columns: minmax(0,1fr); gap: 25px; }
 .schedule-photo { width: min(100%,340px); margin-inline: auto; }
 .schedule-photo img { height: auto; max-height: none; aspect-ratio: 3/4; object-position: 50% 75%; }
 .reference-timeline { width: 100%; }
 .reference-timeline li { grid-template-columns: 64px minmax(0,1fr); min-height: 80px; gap: 12px; }
 .reference-timeline li > span { font-size: 1.05rem; }
 .site-footer > .closing-letter { width: calc(100% - 36px); padding: 35px 5px 18px; }
 .closing-letter .footer-grid { grid-template-columns: 1fr; gap: 28px; }
 .closing-memories { max-width: 330px; margin-bottom: 25px; }
}

/* Couple introduction before Save the date */
.couple-introduction{padding:30px 0 60px;}
.couple-introduction .wrap{max-width:1100px;}
.couple-introduction img{display:block;width:100%;height:auto;}
@media(max-width:700px){.couple-introduction{padding:16px 0 35px;}.couple-introduction .wrap{width:calc(100% - 20px);}}

/* Full screen photo on the closed envelope page. */
body.invitation-closed::before{inset:0;background:linear-gradient(#09231f15,#09231f28),url('assets/letter/envelope-background.jpg') center 80% / cover no-repeat;}
.invitation-closed .site-header{border-color:#fffaf630;}
.invitation-closed .site-header .brand{color:#fffaf6;}
.invitation-closed .envelope-stage .envelope-label,.invitation-closed .mail-date{color:#fffaf6;text-shadow:0 2px 8px #0c211f;}
.invitation-closed .envelope-stage .envelope-label{font-size:1.15rem;}
@media(max-width:700px){body.invitation-closed::before{background-position:center,center bottom;}}

/* Native typography and one portrait share the continuous paper surface. */
.couple-introduction-card{text-align:center;max-width:920px!important;padding:55px 70px 48px;border:28px solid transparent;border-image:url('assets/letter/vector-frame-pink.svg') 100 / 28px / 0 stretch;}
.couple-introduction-card h2{font-family:var(--body);font-weight:400;font-size:clamp(1.6rem,3.2vw,2.4rem);line-height:1.5;color:var(--chocolate);margin:0 0 28px;}
.couple-introduction .couple-portrait{width:min(100%,580px);height:auto;margin:0 auto;}
.couple-introduction-names{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:28px;max-width:580px;margin:26px auto 0;color:var(--chocolate);}
.couple-introduction-names p{margin:0;display:flex;flex-direction:column;gap:3px;}
.couple-first-name{font-size:clamp(2.6rem,5vw,4rem);line-height:1.25;}
.couple-full-name{font-size:clamp(1.1rem,2vw,1.4rem);line-height:1.6;}
.couple-ampersand{color:var(--rose);font:italic 1.8rem Georgia,serif;}
@media(max-width:700px){.couple-introduction .couple-introduction-card{padding:32px 12px 30px;border-width:18px;border-image-width:18px;}.couple-introduction-card h2{margin-bottom:20px;}.couple-introduction-names{gap:14px;margin-top:20px;}.couple-first-name{font-size:2.8rem;}.couple-full-name{font-size:1.15rem;}.couple-ampersand{font-size:1.3rem;}}

.couple-introduction{padding:45px 0 100px;}
.couple-introduction .couple-introduction-card{border:0;border-image:none;padding:30px 55px 0;}
.couple-introduction .introduction-bouquet{width:100px;height:115px;object-fit:contain;margin:0 auto 22px;transform:rotate(-9deg);}
.couple-introduction-card h2{margin-bottom:30px;}
.couple-introduction + .date-section{border-top:0;padding-top:80px;}
.couple-introduction + .date-section::before{display:none;}
@media(max-width:700px){.couple-introduction{padding:35px 0 85px;}.couple-introduction .couple-introduction-card{padding:15px 12px 0;border:0;}.couple-introduction .introduction-bouquet{width:82px;height:95px;margin-bottom:20px;}.couple-introduction + .date-section{padding-top:45px;}.couple-introduction-names{margin-top:28px;}}

/* Hand-drawn pointers and a closer introduction. */
.couple-introduction{padding-top:0;}
.welcome-letter{padding-bottom:20px;min-height:520px;}
.couple-introduction .couple-introduction-card{padding-top:0;}
.couple-introduction .introduction-bouquet{height:80px;width:72px;margin-bottom:12px;}
.couple-introduction-names{position:relative;margin-top:38px;}
.name-arrow{position:absolute;width:78px;height:50px;fill:none;stroke:var(--rose);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;top:-35px;pointer-events:none;}
.arrow-groom{left:0;transform:rotate(12deg);}
.arrow-bride{right:0;transform:scaleX(-1) rotate(12deg);}
@media(max-width:700px){.welcome-letter{padding-bottom:8px;min-height:0;}.couple-introduction{padding-top:0;}.couple-introduction .couple-introduction-card{padding-top:0;}.couple-introduction .introduction-bouquet{height:65px;width:58px;margin-bottom:10px;}.name-arrow{width:60px;height:40px;top:-28px;}.couple-introduction-names{margin-top:32px;}}

/* Consistent section rhythm and the two supplied venue photographs. */
.section-pad{padding-block:58px;}
.inside-invitation{padding-bottom:12px;}
.welcome-letter{padding-top:40px;padding-bottom:22px;min-height:450px;}
.couple-introduction{padding-bottom:42px;}
.couple-introduction + .date-section{padding-top:32px;}
.palette-section{padding-block:48px;}
.venue-grid{grid-template-columns:1fr;gap:30px;padding:30px 24px;text-align:center;}
.venue-photos{display:grid;grid-template-columns:1fr 1fr;gap:18px;width:100%;}
.venue-photos img{display:block;width:100%;height:auto;box-shadow:0 4px 14px #4b403418;}
.site-footer.section-pad{padding-top:42px;padding-bottom:20px;}
@media(max-width:700px){.section-pad{padding-block:38px;}.welcome-letter{padding-top:32px;padding-bottom:18px;min-height:0;gap:18px;}.couple-introduction{padding-bottom:32px;}.couple-introduction + .date-section{padding-top:20px;}.palette-section{padding-block:32px;}.venue-grid{padding:22px 6px;gap:24px;}.venue-photos{grid-template-columns:1fr;gap:16px;}.site-footer.section-pad{padding-top:30px;}.reference-schedule{gap:20px;}}

/* Casually placed venue prints. */
.venue-photos{gap:12px;padding:15px 12px 28px;align-items:start;}
.venue-photos img:first-child{transform:rotate(-3deg);position:relative;z-index:1;}
.venue-photos img:last-child{transform:rotate(3.5deg);margin-top:28px;}
@media(max-width:700px){.venue-photos{width:94%;margin-inline:auto;gap:8px;padding:10px 8px 22px;}.venue-photos img:first-child{transform:rotate(-2.5deg);}.venue-photos img:last-child{transform:rotate(3deg);margin-top:10px;}}

/* Lift the envelope above the couple in the opening photograph. */
.invitation-closed .envelope-stage{align-content:start;padding-top:clamp(38px,7svh,80px);padding-bottom:30px;}
.invitation-closed .envelope-stage .open-envelope{width:min(100%,450px);}
.invitation-closed .envelope-stage .stationery{transform:rotate(-7deg);}
.invitation-closed .envelope-stage .stationery.is-open{transform:rotate(-3deg);}
@media(max-width:700px){.invitation-closed .envelope-stage{padding-top:clamp(26px,6svh,55px);}.invitation-closed .envelope-stage .open-envelope{width:min(82%,340px);}.invitation-closed .envelope-stage .envelope-label{margin-top:22px;}}

.couple-portrait-stage{position:relative;width:min(100%,580px);margin:0 auto;}
.portrait-name-arrows{position:absolute;inset:0;width:100%;height:122%;overflow:visible;pointer-events:none;fill:none;stroke:var(--rose);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;}
.couple-introduction-names{margin-top:54px;}
@media(max-width:700px){.couple-introduction-names{margin-top:42px;}.portrait-name-arrows{stroke-width:3;}}

.portrait-name-arrows{stroke-width:1.8;opacity:.72;}
@media(max-width:700px){.portrait-name-arrows{stroke-width:2;}}
