:root {
  --font-editorial: 'Lora', Georgia, serif;
  --font-reading: 'Be Vietnam Pro', Arial, sans-serif;
  --text-secondary: #625b51;
  --text-muted: #71685c;
  --radius-control:6px;
}
/* A personal printed invitation immediately beneath the wedding cover. */
.personal-invitation{padding:clamp(24px,5vw,72px) 20px;background:#eee9df;color:#4b3023;text-align:center;}
.invitation-paper{position:relative;isolation:isolate;overflow:hidden;max-width:980px;margin:auto;padding:clamp(52px,7vw,88px) clamp(24px,6vw,88px) 42px;background:radial-gradient(ellipse at 5% 5%,#e9e0d38c,transparent 48%),linear-gradient(135deg,#fffdf9 0%,#f7f2eb 48%,#fffdf9 100%);border:1px solid #e2d7c8;box-shadow:0 18px 70px #6148300b;}
.invitation-paper::before,.invitation-paper::after{content:'';position:absolute;z-index:-1;width:clamp(130px,23vw,275px);aspect-ratio:310/350;background:url('/images/invitation-botanical.svg') top left/contain no-repeat;pointer-events:none;opacity:.8;}
.invitation-paper::before{left:-20px;top:-25px;}.invitation-paper::after{right:-28px;bottom:-24px;transform:rotate(180deg);}
.invitation-content{position:relative;z-index:1;}
.invitation-eyebrow{display:flex;align-items:center;justify-content:center;gap:24px;margin:0 0 35px;font-family:var(--font-editorial);font-size:.95rem;letter-spacing:.38em;text-transform:uppercase;}
.invitation-eyebrow::before,.invitation-eyebrow::after{content:'';width:52px;height:1px;background:#b99c7d;}
.invitation-title{margin:0 0 29px;font-family:var(--font-editorial);font-weight:400;font-style:italic;font-size:clamp(1.7rem,4.5vw,3.4rem);line-height:1.4;font-synthesis:none;letter-spacing:-.025em;}
.invitation-guest-frame{position:relative;margin:0 auto 29px;padding:18px 24px;border:1px solid #bca083;border-radius:26px 4px 26px 4px;background:linear-gradient(115deg,#e8ddcecc,#f1e9decc);box-shadow:inset 0 0 0 4px #faf5ee,0 6px 20px #63452b08;}
.invitation-guest{margin:0;font-family:var(--font-editorial);font-size:clamp(1.75rem,4.8vw,3.1rem);font-weight:500;line-height:1.4;overflow-wrap:anywhere;color:#4a2d1c;text-wrap:balance;}
.invitation-message{font-family:var(--font-editorial);font-size:clamp(.95rem,2.2vw,1.4rem);line-height:1.8;margin:0 auto 30px;text-wrap:balance;}
.invitation-couple{display:flex;align-items:baseline;justify-content:center;gap:clamp(10px,2vw,22px);font-family:var(--font-editorial);font-weight:400;font-style:italic;font-synthesis:none;font-size:clamp(1.65rem,5.4vw,4rem);line-height:1.4;margin:0 0 42px;letter-spacing:-.045em;white-space:nowrap;}
.invitation-ampersand{color:#bba28a;font-weight:400;}
.invitation-schedule{display:grid;grid-template-columns:1fr 2fr 1fr;align-items:center;border-block:1px solid #cdb9a3;padding:23px 0;margin-bottom:25px;}
.invitation-schedule svg{width:27px;height:27px;color:#9f7e56;flex-shrink:0;}
.invitation-hour,.invitation-meal{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-family:var(--font-editorial);}
.invitation-hour time{font-size:clamp(1.35rem,3.4vw,2.15rem);line-height:1.2;font-weight:500;}.invitation-hour>span{font-size:clamp(.75rem,1.6vw,1rem);}
.invitation-date{border-inline:1px solid #d6c3af;padding:5px 12px;display:flex;flex-direction:column;gap:10px;}
.invitation-schedule-label{font-family:var(--font-reading);font-size:clamp(.6rem,1.4vw,.75rem);letter-spacing:.08em;text-transform:uppercase;color:#806549;}
.invitation-date time{font-family:var(--font-editorial);font-size:clamp(1.35rem,4.2vw,2.8rem);line-height:1.3;letter-spacing:-.03em;white-space:nowrap;}
.invitation-meal span{font-size:clamp(.75rem,1.8vw,1.15rem);line-height:1.5;}
.invitation-location h3{display:flex;align-items:center;justify-content:center;gap:10px;font-family:var(--font-editorial);font-size:clamp(1.2rem,2.5vw,1.85rem);font-weight:500;margin:0 0 10px;text-transform:capitalize;line-height:1.5;}
.invitation-location svg{width:23px;height:28px;color:#a08260;flex-shrink:0;}
.invitation-location p{font-family:var(--font-editorial);font-size:clamp(.9rem,2vw,1.15rem);line-height:1.8;margin:0 auto 23px;text-wrap:balance;max-width:640px;}
.invitation-directions{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:15px 23px;min-height:54px;border:1px solid #735036;border-radius:999px;background:#735036;color:#fff9ef;text-decoration:none;font-family:var(--font-reading);font-size:clamp(.75rem,1.7vw,.875rem);line-height:1.5;transition:background .2s,transform .2s;box-shadow:0 5px 14px #7350361a;}
.invitation-directions svg{width:22px;height:22px;flex-shrink:0;}.invitation-directions-arrow{font-size:18px;}
.invitation-directions:hover{background:#593d29;transform:translateY(-2px);}.invitation-directions:focus-visible{outline:3px solid #b58c57;outline-offset:5px;}
.invitation-map-hint,.event-map-hint{margin:12px 0 0;font-size:.6875rem;line-height:1.8;color:#877564;text-align:center;}
.invitation-closing{max-width:650px;border-top:1px solid #d2beaa;padding-top:28px;margin:31px auto 0;font-family:var(--font-editorial);font-size:clamp(.95rem,2.2vw,1.35rem);font-style:italic;font-synthesis:none;line-height:1.8;text-wrap:balance;}
.invitation-flourish{width:145px;height:34px;color:#b69b7e;margin:24px auto 0;display:block;}
@media(max-width:640px){.personal-invitation{padding:20px 12px;}.invitation-paper{padding:44px 19px 30px;}.invitation-paper::before,.invitation-paper::after{opacity:.6;}.invitation-eyebrow{font-size:.72rem;gap:18px;margin-bottom:26px;}.invitation-eyebrow::before,.invitation-eyebrow::after{width:32px;}.invitation-title{margin-bottom:22px;}.invitation-guest-frame{padding:17px 13px;margin-bottom:24px;}.invitation-message{font-size:.9rem;line-height:1.9;margin-bottom:23px;}.invitation-couple{margin-bottom:28px;}.invitation-schedule{padding:20px 0;grid-template-columns:.85fr 1.75fr .85fr;}.invitation-schedule svg{width:23px;height:23px;}.invitation-date{padding-inline:8px;gap:8px;}.invitation-schedule-label{font-size:.56rem;letter-spacing:.04em;}.invitation-date time{font-size:clamp(1.1rem,5.1vw,1.8rem);}.invitation-directions{gap:9px;padding:14px 17px;}.invitation-map-hint{font-size:.625rem;}.invitation-closing{font-size:.9rem;padding-top:23px;margin-top:25px;}}
@media(max-width:360px){.invitation-paper{padding-inline:14px;}.invitation-title{font-size:1.55rem;}.invitation-couple{font-size:1.45rem;gap:7px;}.invitation-guest{font-size:1.6rem;}.invitation-message{font-size:.82rem;}.invitation-hour time{font-size:1.25rem;}.invitation-hour>span,.invitation-meal span{font-size:.65rem;}.invitation-directions{font-size:.7rem;gap:7px;}}
/* A shared guestbook, using the same quiet ivory and gold language. */
.wishes-section {padding:clamp(56px,8vw,96px) 20px;background:var(--marble-white);}
.wishes-inner {max-width:860px;margin:auto;}
.wishes-heading {text-align:center;margin-bottom:32px;}
.wishes-heading .section-label {margin-bottom:16px;}
.wishes-heading .section-title {margin:0;}
.wishes-heading .gold-divider {margin:24px auto;}
.wishes-intro {max-width:520px;margin:auto;color:var(--text-secondary);font-size:.875rem;line-height:1.9;text-wrap:balance;}
.wishes-form {padding:clamp(22px,4vw,36px);border:1px solid #d8cdbb;border-radius:12px;background:#faf7f1;}
.wishes-field+.wishes-field {margin-top:22px;}
.wishes-label {display:block;margin-bottom:10px;font-size:.8125rem;font-weight:500;color:#51483c;}
.wishes-input,.wishes-textarea {box-sizing:border-box;width:100%;max-width:100%;border:1px solid #cfc3b0;border-radius:var(--radius-control);background:#fffdf9;color:#352c22;padding:12px 14px;transition:border-color .2s;}
.wishes-input {min-height:48px;}.wishes-textarea {min-height:132px;resize:vertical;display:block;}
.wishes-input::placeholder,.wishes-textarea::placeholder {color:#7c7367;opacity:1;}
.wishes-input:disabled,.wishes-textarea:disabled {opacity:.7;}
.wishes-count {text-align:right;font-size:.75rem;line-height:1.5;color:var(--text-muted);margin-top:7px;font-variant-numeric:tabular-nums;}
.wishes-submit-row {display:flex;justify-content:center;margin-top:24px;}
.wishes-submit {min-height:48px;min-width:210px;justify-content:center;border-radius:var(--radius-control);font-size:.8125rem;}
.wishes-submit:disabled {opacity:.55;cursor:default;}
.wishes-status {min-height:1.8em;margin:16px 0 0;text-align:center;font-size:.8125rem;line-height:1.8;}
.wishes-status[data-kind="success"] {color:#415736;}.wishes-status[data-kind="error"] {color:#963d2d;}
.wishes-empty,.wishes-load-state {margin:28px 0 0;text-align:center;font-size:.875rem;line-height:1.9;color:var(--text-secondary);}
.wishes-retry,.wishes-more {display:block;margin:16px auto 0;padding:10px 18px;min-height:44px;border:1px solid #b29a74;border-radius:var(--radius-control);background:transparent;color:#66512e;font-size:.75rem;cursor:pointer;}
.wishes-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:28px;}
.wishes-list:empty {display:none;}
.wishes-card {padding:24px;border:1px solid #ddd3c3;border-radius:10px;background:#fbf8f2;overflow-wrap:anywhere;}
.wishes-card.is-new {border-color:#b69a63;}
.wishes-message {white-space:pre-wrap;margin:0;font-family:var(--font-editorial);font-size:1rem;line-height:1.85;color:#51483c;}
.wishes-card-footer {display:flex;align-items:baseline;justify-content:space-between;gap:14px;flex-wrap:wrap;border-top:1px solid #e4dacb;padding-top:16px;margin-top:20px;}
.wishes-author {font-size:.8125rem;font-weight:500;color:#66512e;}.wishes-date {font-size:.6875rem;color:var(--text-muted);white-space:nowrap;}
@media(max-width:640px){.wishes-list{grid-template-columns:1fr}.wishes-submit{width:100%}.wishes-card{padding:22px}}
body {font-family:var(--font-reading);font-weight:400;}
/* Keep headings distinct from the readable, Vietnamese body type. */
[style*="Cormorant"], [style*="Montserrat"] {font-family:var(--font-reading)!important;font-style:normal!important;}
body h1[style], body h2[style], .section-title, .section-title-serif {font-family:var(--font-editorial)!important;font-style:normal!important;font-weight:400!important;letter-spacing:-.025em!important;text-wrap:balance;}
h1 {font-size:clamp(2.8rem,8vw,5.2rem)!important;line-height:1.2!important;}
.section-title {font-size:clamp(1.8rem,4.3vw,2.8rem)!important;line-height:1.25!important;}
.section-label {font-family:var(--font-reading)!important;font-size:.75rem!important;letter-spacing:.16em!important;font-weight:500!important;}
[style*="Montserrat"][style*="letter-spacing"] {font-size:.6875rem!important;font-weight:500!important;letter-spacing:.15em!important;}
[style*="line-height: 1.7"], [style*="line-height: 1.75"], [style*="line-height: 1.9"] {font-size:.9375rem!important;line-height:1.85!important;font-weight:400!important;font-style:normal!important;}
button, .btn-marble, .btn-marble-solid {font-family:var(--font-reading)!important;font-weight:500!important;letter-spacing:.12em!important;}
input,textarea {font-family:var(--font-reading)!important;font-size:1rem!important;line-height:1.65!important;}
button:focus-visible, a:focus-visible, [role="button"]:focus-visible {outline:2px solid var(--gold);outline-offset:5px;}
input:focus-visible,textarea:focus-visible {outline:2px solid #b79850!important;outline-offset:2px;}
[data-section="hero"] [style*="Montserrat"] {color:#c4ac76!important;}
[data-section="hero"]>div:first-child {opacity:.42!important;}
[data-section="hero"] h1 {text-shadow:0 2px 24px rgba(0,0,0,.25);}
[data-section="hero"] h1[tabindex="-1"]:focus {outline:none;}
[data-section="hero"] [style*="font-size: clamp(2rem"] {font-family:var(--font-editorial)!important;font-weight:400!important;}
[data-section="letters"] [style*="1.3rem"] {font-family:var(--font-editorial)!important;font-weight:500!important;}
[data-section="letters"] [style*="white-space"] {font-size:.9375rem!important;line-height:1.9!important;}
[data-section="details"] [style*="font-weight: 600"] {font-family:var(--font-editorial)!important;font-weight:500!important;line-height:1.45!important;}
[data-section="countdown"] [style*="3.5rem"] {font-family:var(--font-editorial)!important;font-weight:400!important;}
[data-dialog="invitation"] [style*="1.1rem"], [data-dialog="invitation"] [style*="1.2rem"], [data-dialog="invitation"] [style*="1.4rem"] {font-family:var(--font-editorial)!important;font-weight:400!important;letter-spacing:-.015em!important;}
[data-dialog="invitation"] [style*="Montserrat"] {color:#8d7038!important;}
[data-dialog="invitation"] .btn-marble-solid {justify-content:center;min-height:48px;}
[data-section="footer"] [style*="1.4rem"] {font-family:var(--font-editorial)!important;font-size:clamp(1.4rem,4vw,1.85rem)!important;font-weight:400!important;color:#c4ad78!important;}
[data-section="footer"] [style*="Montserrat"] {color:#aaa193!important;font-size:.625rem!important;line-height:2!important;}
[data-gallery-dialog] {overscroll-behavior:contain;}
[data-gallery-dialog] button {min-width:40px;min-height:40px;}
[data-gallery-dialog] button[aria-label="Ảnh trước"] {left:8px!important;}
[data-gallery-dialog] button[aria-label="Ảnh sau"] {right:8px!important;}
[data-music-controls] {gap:0!important;padding-top:10px;}
[data-music-controls]>div {margin-bottom:8px;}
[data-music-controls] input[type="range"] {min-height:24px;}
@media(max-width:640px){[data-music-controls]{bottom:max(12px,env(safe-area-inset-bottom))!important;right:12px!important;}[data-music-controls]>button{width:44px!important;height:44px!important;}}
[data-section="letters"] img[src$="photo-2a5a1348.webp"] {object-position:70% 50%!important;}
@media (max-aspect-ratio:1/1) {
  /* Full-height opening cover, including browser toolbar size changes. */
  [data-section="hero"] {min-height:100vh!important;min-height:100svh!important;min-height:100dvh!important;aspect-ratio:auto;align-items:center!important;}
  [data-section="hero"]>div:first-child {opacity:.46!important;}
  [data-section="hero"]>div:first-child img {object-fit:cover!important;object-position:center!important;}
  [data-section="hero"]>div:first-child::after {content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.12),transparent 40%,rgba(0,0,0,.24));}
  [data-section="hero"]>div[style*="max-width"] {padding:72px 24px 112px!important;}
  [data-section="hero"] h1 {font-size:clamp(2.65rem,11vw,4.2rem)!important;}
  [data-section="hero"]>div[style*="max-width"]>div:last-child {line-height:1.9!important;letter-spacing:.08em!important;}
  [data-section="hero"] [style*="3.2rem"] {font-family:var(--font-editorial)!important;}
  [data-section="hero"]>div:last-child {bottom:max(30px,env(safe-area-inset-bottom))!important;}
}
@media (max-width:640px) {
  [data-section="countdown"] [style*="flex-wrap"] {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px!important;align-items:start!important;}
  [data-section="countdown"] [style*="flex-wrap"]>div:nth-child(even) {display:none!important;}
  [data-section="countdown"] [style*="flex-wrap"]>div:nth-child(odd) {min-width:0;}
  [data-section="countdown"] [style*="flex-wrap"]>div:nth-child(odd)>div:first-child {min-width:0!important;width:100%;padding:18px 4px!important;}
  [data-section="letters"] [style*="white-space"] {font-size:.9375rem!important;}
  [data-dialog="invitation"] [role="button"]:focus-visible {outline-offset:8px;}
}
@media(max-aspect-ratio:1/1) and (max-height:620px){
  [data-section="hero"]>div[style*="max-width"]{padding:32px 20px 76px!important;}
  [data-section="hero"]>div:last-child{bottom:20px!important;}
}
@media (prefers-reduced-motion:reduce) {
  html {scroll-behavior:auto;}
  *,*::before,*::after {animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}
}

/* Direct-swipe album: native touch scrolling, mouse dragging and visible controls. */
.wedding-gallery {padding:clamp(40px,5vw,72px) clamp(16px,4vw,60px);background:var(--marble-warm);}
.album-inner {max-width:860px;margin:auto;text-align:center;}
.album-heading {margin-bottom:28px;}
.album-heading .section-label {margin-bottom:16px;}
.album-heading .gold-divider {margin:24px auto 18px;}
.album-swipe-hint {font-size:.75rem;line-height:1.7;color:var(--text-secondary);margin:0;}
[data-album-track] {position:relative;display:flex;gap:12px;overflow-x:auto;overflow-y:hidden;scroll-behavior:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;cursor:grab;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom;user-select:none;}
[data-album-track]::-webkit-scrollbar {display:none;}
[data-album-track]:focus-visible {outline:2px solid var(--gold);outline-offset:4px;}
[data-album-track][data-dragging] {scroll-snap-type:none;cursor:grabbing;}
.album-page {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:10px;flex:0 0 100%;min-width:0;height:min(70svh,660px);scroll-snap-align:start;scroll-snap-stop:always;}
.album-tile {position:relative;min-width:0;min-height:0;margin:0;overflow:hidden;border-radius:3px;background:#e5dfd5;}
.album-tile img {display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;}
.album-controls {display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:center;gap:12px;margin-top:12px;}
.album-arrow {display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid #ad9569;border-radius:var(--radius-control);background:transparent;color:#806332;cursor:pointer;transition:background .2s,border-color .2s;}
.album-arrow:not(:disabled):hover{background:#eee5d7;border-color:#806332;}
.album-arrow:disabled {opacity:.25;cursor:default;}
.album-position {display:flex;flex-direction:column;align-items:center;gap:0;min-width:0;}
.album-number {font-size:.8rem;font-variant-numeric:tabular-nums;color:#806332;letter-spacing:.15em;}
.album-caption {font-size:.75rem;line-height:1.5;color:var(--text-secondary);}
.album-expand {margin:0;padding:10px 14px;min-height:44px;border:0;background:transparent;color:var(--text-secondary);font-size:.6875rem;cursor:pointer;text-decoration:underline;text-underline-offset:4px;}
.album-modal {position:fixed;inset:0;z-index:1000;background:rgba(28,25,23,.97);display:flex;align-items:center;justify-content:center;padding:20px;outline:none;}
.album-modal-content {position:relative;width:min(100%,900px);text-align:center;color:#c4ac76;touch-action:pan-y pinch-zoom;}
.album-modal-content>img {display:block;width:100%;height:72vh;height:72dvh;object-fit:contain;}
.album-modal-content>p {font-size:.8rem;margin:14px 45px 8px;}
.album-modal-content>span {font-size:.7rem;}
.album-modal button {position:absolute;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid #9c855d;background:#28241f;color:#c4ac76;cursor:pointer;}
.modal-previous {left:0;top:45%;}.modal-next {right:0;top:45%;}.modal-close {right:0;top:0;font-size:28px;}
@media(max-width:640px){
  .wedding-gallery{padding:24px 16px;}
  .album-heading{margin-bottom:16px;}
  .album-heading .section-label{margin-bottom:8px;}
  .album-heading .section-title{font-size:1.8rem!important;}
  .album-heading .gold-divider{margin:12px auto;}
  .album-swipe-hint{font-size:.75rem;}
  .album-page{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:8px;height:clamp(320px,calc(100svh - 250px),620px);}
  .album-number{font-size:.75rem;}
}

/* A quiet left/right entrance, once per block. Translate is separate from layout. */
main {overflow-x:clip;}
.scroll-reveal {opacity:1!important;transform:none!important;translate:0 0;transition:translate .75s cubic-bezier(.22,1,.36,1),opacity .7s ease;transition-delay:var(--reveal-delay,0ms);}
.scroll-reveal[data-reveal-state="waiting"] {opacity:0!important;translate:-36px 10px;}
.scroll-reveal[data-reveal-state="waiting"][data-reveal-side="right"] {translate:36px 10px;}
.album-tile.scroll-reveal[data-reveal-state="waiting"] {translate:-22px 0;}
.album-tile.scroll-reveal[data-reveal-state="waiting"][data-reveal-side="right"] {translate:22px 0;}
@media(prefers-reduced-motion:reduce){.scroll-reveal,.scroll-reveal[data-reveal-state="waiting"]{opacity:1!important;translate:none!important;transition:none!important;}}

/* Full-width family rows, with the bride's family highlighted as hosts. */
.family-section {padding:clamp(48px,7vw,88px) 20px;background:var(--marble-white);color:#443b31;}
.family-card {max-width:960px;margin:0 auto;padding:clamp(32px,5vw,52px) clamp(14px,3vw,32px);border-radius:18px;background:#f4f0e9;text-align:center;}
.family-card .section-label {color:#8a7357;margin-bottom:16px;font-size:.65rem!important;letter-spacing:.13em!important;line-height:1.8;}
.family-card .section-title {font-size:clamp(1.7rem,5vw,2.5rem)!important;margin:0;}
.family-divider {width:50px;height:1px;margin:22px auto 28px;background:#b69a63;}
.family-rows {display:grid;grid-template-columns:minmax(0,1fr);gap:12px;}
.family-house {min-width:0;width:100%;padding:26px 20px;}
.family-house--host {background:#e8e1d5;border:1px solid #e1d8c9;border-radius:12px;}
.family-house h3 {font-family:var(--font-reading);font-size:.6875rem;font-weight:500;color:#806b4f;letter-spacing:.1em;text-transform:uppercase;margin:0 0 14px;line-height:1.8;}
.family-parent {font-size:clamp(.9375rem,3.5vw,1.125rem);line-height:1.85;margin:5px 0;}
.family-address {max-width:540px;margin:12px auto 0;color:#746958;font-size:.8125rem;line-height:1.8;text-wrap:balance;}
.family-invitation {max-width:760px;margin:10px auto 13px;font-size:.875rem;line-height:1.9;text-wrap:balance;}
.family-invitation::before {content:'';display:block;width:44px;height:1px;background:#b9aa8e;margin:0 auto 22px;}
.family-couple {font-family:var(--font-editorial);font-size:clamp(1.25rem,4vw,1.7rem);font-style:italic;margin:0;}
[data-section="details"]>[data-section="countdown"] {max-width:1100px;margin:36px auto 0;padding:36px 20px!important;border:1px solid var(--border-marble);}
[data-section="details"]>[data-section="countdown"] .section-title {font-size:1.6rem!important;}
@media(max-width:380px){.family-card{padding-inline:14px;}.family-house{padding:24px 12px;}.family-house h3{font-size:.625rem;letter-spacing:.07em;}.family-address{font-size:.75rem;}}

/* Ceremony and reception cards based on the supplied invitation. */
.ceremony-section {padding:clamp(60px,8vw,110px) 20px;background:var(--marble-white);color:#31251b;}
.ceremony-inner {max-width:860px;margin:0 auto;}
.ceremony-heading {text-align:center;margin-bottom:clamp(36px,6vw,72px);}
.ceremony-heading .section-label {color:#806332;margin-bottom:24px;}
.ceremony-heading .section-title {font-size:clamp(2.2rem,7vw,4.4rem)!important;margin:0;}
.ceremony-heading .gold-divider {margin:28px auto 0;}
.event-card {position:relative;border:1px solid #d3c1a6;padding:clamp(24px,5vw,48px);background:linear-gradient(130deg,#fbf8f3,#f6f1e9);}
.ceremony-card::before,.ceremony-card::after {content:'';position:absolute;width:20px;height:20px;border-color:#b58e45;border-style:solid;pointer-events:none;}
.ceremony-card::before {top:20px;right:20px;border-width:1px 1px 0 0;}
.ceremony-card::after {bottom:20px;left:20px;border-width:0 0 1px 1px;}
.event-icon {display:block;color:#b18b44;width:clamp(28px,5vw,42px);height:clamp(28px,5vw,42px);}
.event-label {font-family:var(--font-reading);font-weight:500;font-size:clamp(.75rem,2.7vw,1.15rem);text-transform:uppercase;letter-spacing:.12em;color:#806332;margin:20px 0 28px;line-height:1.7;}
.ceremony-date-row {display:grid;grid-template-columns:1fr 1.25fr 1fr;align-items:center;text-align:center;margin:0 -10px 28px;}
.ceremony-time,.event-year {font-family:var(--font-editorial);font-weight:500;font-size:clamp(1.1rem,4.2vw,2.1rem);white-space:nowrap;}
.ceremony-time {padding-right:8px;}.event-year {padding-left:8px;}
.ceremony-date {display:flex;flex-direction:column;gap:8px;position:relative;padding:0 12px;}
.ceremony-date::before,.ceremony-date::after {content:'';position:absolute;top:22%;bottom:18%;width:1px;background:#b89c68;}
.ceremony-date::before {left:0;}.ceremony-date::after {right:0;}
.event-weekday,.event-month {font-size:clamp(.8125rem,3vw,1.4rem);line-height:1.4;white-space:nowrap;}
.event-day {font-family:var(--font-editorial);font-size:clamp(3.2rem,12vw,5rem);font-weight:500;line-height:1.08;}
.event-lunar {font-family:var(--font-editorial);font-size:clamp(.875rem,3vw,1.3rem);font-style:italic;line-height:1.8;text-align:center;color:#6d6255;margin:20px 0 0;text-wrap:balance;}
.event-place {font-family:var(--font-editorial);font-weight:500;text-align:center;font-size:clamp(1.25rem,4.5vw,2rem);line-height:1.5;margin:24px 0 2px;text-wrap:balance;}
.reception-card {margin-top:26px;border-radius:24px;border-color:#c3a579;text-align:center;}
.reception-heading {display:flex;align-items:center;justify-content:center;gap:16px;margin-bottom:30px;}
.reception-heading .event-icon {flex-shrink:0;}.reception-heading .event-label {margin:0;}
.reception-time {font-size:clamp(1rem,3.8vw,1.65rem);line-height:1.7;margin:0 0 14px;}
.reception-date {display:block;font-family:var(--font-editorial);font-weight:500;font-size:clamp(1.6rem,6vw,2.6rem);letter-spacing:.12em;white-space:nowrap;}
.event-address {font-size:.875rem;line-height:1.9;text-align:center;max-width:620px;margin:30px auto 20px;color:#6d6255;text-wrap:balance;}
.event-map {display:flex;justify-content:center;align-items:center;width:min(100%,520px);min-height:54px;margin:0 auto;border:1px solid #b18b44;border-radius:var(--radius-control);color:#806332;font-size:.8125rem;overflow:hidden;}
@media(max-width:380px){.event-card{padding:22px 18px;}.event-year{font-size:1rem;}.reception-heading{gap:12px;}.event-label{letter-spacing:.08em;}.reception-date{letter-spacing:.08em;}}

/* The final gift opens in place; the supplied QR remains an untouched PNG. */
.gift-section {padding:clamp(56px,7vw,90px) 0 30px;background:#f4ece0;color:#303b28;overflow:hidden;}
.gift-inner {max-width:580px;margin:0 auto;text-align:center;}
.gift-title {font-family:var(--font-editorial);font-size:clamp(2rem,8.3vw,3.3rem)!important;font-weight:400;font-style:italic;line-height:1.4;margin:0 12px;}
.gift-flourish {width:108px;height:10px;border-top:1px solid #ae853b;border-radius:50%;transform:rotate(-5deg);margin:12px auto 0;}
.gift-frame {position:relative;width:100%;max-width:540px;aspect-ratio:3/4;margin:-8px auto -12px;isolation:isolate;}
.gift-art {position:absolute;inset:0;background-image:url('/images/gift-box-states.webp');background-size:200% 100%;background-repeat:no-repeat;mask-image:linear-gradient(transparent,#000 7%,#000 93%,transparent);pointer-events:none;}
.gift-closed {background-position:left center;opacity:1;}
.gift-body {clip-path:inset(57% 0 0);transition:opacity .5s .25s ease;}
.gift-lid {clip-path:inset(0 0 41%);transform-origin:50% 58%;z-index:1;transition:transform .9s cubic-bezier(.22,1,.36,1),opacity .5s .3s ease;}
.gift-open {background-position:right center;opacity:0;transition:opacity .7s .3s ease;}
.gift-frame.is-open .gift-body,.gift-frame.is-open .gift-lid {opacity:0;}
.gift-frame.is-open .gift-lid {transform:perspective(900px) translateY(-12%) rotateX(12deg) scale(.98);}
.gift-frame.is-open .gift-open {opacity:1;}
.gift-light {position:absolute;z-index:2;pointer-events:none;left:18%;top:29%;width:64%;height:16%;background:radial-gradient(ellipse,rgba(255,245,204,.95),rgba(247,195,99,.55) 42%,transparent 72%);filter:blur(12px);opacity:0;}
.gift-frame.is-open .gift-light {animation:gift-light-bloom 1.2s .15s both;}
@keyframes gift-light-bloom {0%{opacity:0;transform:scale(.55,.3)}40%{opacity:.85;transform:scale(1.1,1.2)}100%{opacity:0;transform:scale(1.2,1.8)}}
.gift-trigger {position:absolute;inset:0;z-index:3;width:100%;height:100%;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:20px;}
.gift-trigger:focus-visible,.gift-open-button:focus-visible {outline:2px solid #66704d;outline-offset:4px;}
.gift-action {height:58px;position:relative;margin:12px 24px 0;}
.gift-open-button {display:flex;align-items:center;justify-content:center;gap:36px;width:min(100%,330px);min-height:54px;margin:auto;border:1px solid #566043;border-radius:var(--radius-control);color:#303b28;background:transparent;font-family:var(--font-reading);font-size:.875rem;letter-spacing:.18em;text-transform:uppercase;cursor:pointer;transition:background .2s;}
.gift-open-button:hover {background:#e9e2d3;}.gift-open-button span {font-size:1.6rem;line-height:1;}
.gift-qr {position:absolute;z-index:3;width:54%;aspect-ratio:1;left:23%;top:35.5%;overflow:hidden;background:#fff;border-radius:5%;outline:none;animation:gift-qr-reveal .5s .8s both;}
/* Crop only in the browser: preserve the original QR pixels and white quiet zone. */
.gift-qr img {position:absolute;display:block;max-width:none;width:134.210526%;height:auto;left:-16.666667%;top:-16.666667%;}
.gift-section [hidden] {display:none!important;}
@keyframes gift-qr-reveal {from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.gift-art{transition:none}.gift-qr{animation:none}.gift-frame.is-open .gift-light{animation:none}.gift-frame.is-open .gift-lid{transform:none}}

/* A personal thank-you card, with editable text over an olive silk backdrop. */
.thankyou-footer {position:relative;display:flex;align-items:center;justify-content:center;min-height:800px;min-height:100svh;padding:72px 24px 190px;text-align:center;color:#faf1dd;background:#363925 url('/images/thank-you-olive.webp') center bottom/cover no-repeat;overflow:hidden;}
.thanks-inner {position:relative;width:100%;max-width:680px;margin:0 auto;}
.thanks-monogram {position:relative;display:flex;align-items:center;justify-content:center;gap:7px;width:108px;height:108px;margin:0 auto 30px;font-family:var(--font-editorial);font-style:italic;font-size:48px;font-weight:400;line-height:1;color:#ead9af;}
.thanks-ring {position:absolute;inset:-4px;width:calc(100% + 8px);height:calc(100% + 8px);overflow:visible;}
.thanks-ring path {stroke:#d2bb86;stroke-width:1;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:0;}
.thanks-monogram>span:nth-child(2) {align-self:center;margin-top:-20px;}.thanks-monogram>span:last-child {margin-top:24px;}
.thanks-monogram .thanks-ampersand {font-size:26px;color:#c5a66c;}
.thanks-title {font-family:var(--font-editorial);font-size:clamp(2.8rem,9.4vw,5.3rem);line-height:1.3;font-weight:400;text-transform:uppercase;letter-spacing:.035em;margin:0 0 20px;color:#faf1dd;}
.thanks-flourish {width:150px;height:16px;border-top:1px solid #d2b777;border-radius:50%;margin:0 auto 26px;transform:rotate(-7deg);}
.thanks-message {max-width:620px;margin:0 auto;font-family:var(--font-editorial);font-size:clamp(1rem,3.6vw,1.4rem);font-style:italic;line-height:1.95;text-wrap:pretty;color:#f6efdf;}
.thanks-divider {display:flex;align-items:center;justify-content:center;gap:14px;max-width:220px;margin:26px auto 24px;color:#d5ba80;}
.thanks-divider::before,.thanks-divider::after {content:'';height:1px;flex:1;background:linear-gradient(90deg,transparent,#ccb17e);}.thanks-divider::after{transform:rotate(180deg);}
.thanks-divider span {font-family:Georgia,serif;font-size:30px;line-height:1;}
.thanks-couple {font-family:var(--font-editorial);font-size:clamp(1.15rem,5vw,1.8rem);font-weight:400;line-height:1.7;margin:0;color:#f8edda;}
.thanks-couple>span{white-space:nowrap;}.thanks-and{padding:0 .22em;color:#ddc496;}
@media(min-width:900px){.thankyou-footer{background-size:100% auto;background-position:center 65%;min-height:950px;padding-bottom:210px;}}
@media(max-width:380px){.thankyou-footer{padding:60px 22px 160px}.thanks-monogram{margin-bottom:24px}.thanks-message{line-height:1.85}.thanks-divider{margin:22px auto}.thanks-couple{font-size:1.1rem}}
.family-couple,.event-lunar,.gift-title,.thanks-monogram,.thanks-message {font-synthesis:none;}
:is(.wedding-gallery,.wishes-section) .section-label {color:#806332;}
.thanks-inner.scroll-reveal {opacity:1!important;translate:none!important;}
.thanks-inner.scroll-reveal>* {opacity:1;transform:none;transition:opacity .7s ease,transform .8s cubic-bezier(.22,1,.36,1);}
.thanks-inner.scroll-reveal[data-reveal-state="waiting"]>* {opacity:0;transform:translateX(-16px);}
.thanks-inner.scroll-reveal[data-reveal-state="waiting"]>:nth-child(even) {transform:translateX(16px);}
.thanks-inner.scroll-reveal[data-reveal-state="waiting"] .thanks-ring path {stroke-dashoffset:1;}
.thanks-inner.scroll-reveal[data-reveal-state="shown"] .thanks-ring path {animation:thanks-draw 1.2s .1s ease both;}
.thanks-inner.scroll-reveal[data-reveal-state="shown"] .thanks-title {transition-delay:.8s;}
.thanks-inner.scroll-reveal[data-reveal-state="shown"] .thanks-flourish {transition-delay:.95s;}
.thanks-inner.scroll-reveal[data-reveal-state="shown"] .thanks-message {transition-delay:1.1s;}
.thanks-inner.scroll-reveal[data-reveal-state="shown"] .thanks-divider {transition-delay:1.25s;}
.thanks-inner.scroll-reveal[data-reveal-state="shown"] .thanks-couple {transition-delay:1.4s;}
@keyframes thanks-draw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@media(prefers-reduced-motion:reduce){.thanks-inner.scroll-reveal>*{opacity:1!important;transform:none!important;transition:none!important}.thanks-ring path{stroke-dashoffset:0!important;animation:none!important}}

/* Letter semantics are identical before and after hydration. */
[data-section="letters"] .letters-spread {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
[data-section="letters"] .letters-photo,[data-section="letters"] .letters-paper {min-width:0;}
[data-section="letters"] .letters-heading .section-label {color:#c4ac76!important;}
[data-section="letters"] .letter-body {font-family:var(--font-reading)!important;font-size:.9375rem!important;font-style:normal!important;font-weight:400!important;line-height:1.85!important;overflow-wrap:break-word;}
[data-section="letters"] .letter-signature {font-family:var(--font-editorial)!important;font-size:clamp(1.3rem,3.5vw,1.8rem)!important;font-style:italic!important;font-weight:500!important;font-synthesis:none;line-height:1.5!important;}
[data-section="letters"] .letter-author-label {color:#806332!important;font-size:.75rem!important;}
[data-section="letters"] .letter-tab {min-height:48px;padding:14px 12px!important;font-size:.75rem!important;letter-spacing:.1em!important;color:#625b51!important;}
[data-section="letters"] .letter-tab[aria-pressed="true"] {color:#806332!important;}
[data-section="letters"] .letters-navigation button {min-height:44px;}
[data-section="letters"] .letters-navigation span {font-size:.75rem!important;letter-spacing:.12em!important;}
@media(max-width:640px){
  [data-section="letters"] .letters-spread {grid-template-columns:minmax(0,1fr)!important;}
  [data-section="letters"] .letters-photo {height:clamp(220px,68vw,320px)!important;min-height:0!important;}
  [data-section="letters"] .letters-paper {min-height:0!important;padding:28px 24px 40px!important;}
  [data-section="letters"] .letters-spine,[data-section="letters"] .letters-photo-edge {display:none!important;}
  [data-section="letters"] .letters-photo-fade {background:linear-gradient(to bottom,transparent 65%,rgba(245,241,234,.75))!important;}
}

/* Scrollable envelope on short screens. */

[data-dialog="invitation"] {
  align-items:flex-start!important;overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:max(16px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));
}
[data-dialog="invitation"]>div:last-child {
  flex-shrink:0;max-width:100%;margin-block:auto;padding:20px 0!important;
}

/* Personal invitation and attendance confirmation. */
.family-guest-inline{font-weight:600;color:#655039;overflow-wrap:anywhere}
.rsvp-section{padding:clamp(40px,8vw,80px) 20px;background:#edf0e5;scroll-margin-top:24px}
.rsvp-card{max-width:760px;margin:auto;text-align:center;background:#fffdf8;border:1px solid #d9d8c7;border-radius:16px;padding:clamp(30px,5vw,52px) clamp(20px,5vw,56px);box-shadow:0 12px 40px #3c482008}
.rsvp-heading .section-label{color:#788060;margin:0 0 16px}.rsvp-heading .section-title{font-size:clamp(1.65rem,5vw,2.35rem)!important;line-height:1.35;margin:0}.rsvp-heading .gold-divider{margin:22px auto}
.rsvp-salutation{font-size:.8rem;color:#7d7f70;margin:0 0 8px}.rsvp-guest{font-family:var(--font-editorial);font-size:clamp(1.55rem,5vw,2.1rem);font-style:italic;color:#4b5e41;line-height:1.45;overflow-wrap:anywhere;margin:0 0 15px}
.rsvp-intro,.rsvp-help{font-size:.84rem;line-height:1.95;max-width:490px;color:#757767;margin:0 auto 24px;text-wrap:balance}
.rsvp-choices{border:0;padding:0;margin:28px 0 22px;display:grid;grid-template-columns:1fr 1fr;gap:14px;text-align:left;min-width:0}
.rsvp-legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.rsvp-choices:after{content:none}.rsvp-choices legend+label{clear:both}.rsvp-option{display:flex;align-items:center;gap:9px;position:relative;border:1px solid #dbdecf;border-radius:9px;padding:20px 14px;background:#fafbf6;cursor:pointer;transition:border-color .2s,background .2s;min-width:0}.rsvp-option.is-selected{border-color:#6f805c;background:#edf1e5;box-shadow:0 0 0 1px #6f805c inset}.rsvp-option input{accent-color:#526543;width:16px;height:16px;flex-shrink:0;margin:0}.rsvp-option-icon{font-family:var(--font-editorial);font-size:24px;color:#798867;display:none}.rsvp-option-copy{display:flex;flex-direction:column;gap:6px}.rsvp-option-copy strong{font-size:.82rem;font-weight:500;color:#4e5f43}.rsvp-option-copy>span{font-size:.65rem;color:#838772;line-height:1.7}.rsvp-option:focus-within{outline:3px solid #acbb91;outline-offset:3px}
.rsvp-submit{width:100%;min-height:48px;border-radius:8px;background:#4c6042!important;border:1px solid #4c6042;color:#fff;font-family:var(--font-ui);font-size:.82rem;letter-spacing:.04em;justify-content:center}.rsvp-submit:disabled{opacity:.55;cursor:default}.rsvp-retry{margin:auto}.rsvp-status{font-size:.8rem;line-height:1.85}.rsvp-status:empty{display:none}.rsvp-success{padding:13px 15px;border:1px solid #d9e0cc;background:#f1f5eb;border-radius:7px;color:#526844;margin:18px 0 0}.rsvp-error{color:#9f4a3d;font-size:.82rem;line-height:1.8}.rsvp-footnote{font-size:.7rem;color:#91947f;margin:17px 0 0;line-height:1.8}
@media(max-width:520px){.rsvp-choices{grid-template-columns:1fr;gap:10px}.rsvp-option{padding:16px}.rsvp-option-copy{flex:1}.rsvp-option-icon{display:block}.rsvp-option-copy strong{font-size:.84rem}.rsvp-option-copy>span{font-size:.72rem}.rsvp-card{border-radius:12px}.rsvp-section{padding-inline:16px}}
@media(prefers-reduced-motion:reduce){.rsvp-option{transition:none}}
