:root{color-scheme:light;--ink:#8e2634;--gold:#a21f31;--muted:#a34b59;--line:#a525353b;--wine:#fff;--sans:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;--serif:'Songti SC','STSong','SimSun',serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#f7f7f7;color:var(--ink);font:16px/1.75 var(--sans);padding:16px 0;min-height:100svh;display:grid;place-items:center}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #aa2739;outline-offset:4px}[hidden]{display:none!important}p,h1,h2,h3{margin:0}
.invitation{position:relative;isolation:isolate;width:min(calc(100% - 30px),490px);padding:22px 25px 20px;border:2px solid #a52535;background:#fff;box-shadow:0 16px 60px #742a3512,inset 0 0 0 5px #fff;overflow:hidden}
.invitation:before{display:none}.invitation:after{content:'';position:absolute;pointer-events:none;z-index:-1;inset:7px;border:1px solid #a5253530}.invitation>*{position:relative}
.brand-head{text-align:center;position:relative;padding:0 0 12px}.tagline{font-size:12px;letter-spacing:.15em;color:#a23748;line-height:1.8;margin-bottom:8px}.brand-logo{display:block;width:59px;height:61px;object-fit:contain;margin:0 auto 5px}.brand-name{font-family:var(--serif);font-size:34px;font-weight:600;letter-spacing:.12em;line-height:1.35;color:#9a1f30;padding-left:.12em}.brand-en{font-family:Georgia,'Times New Roman',serif;font-size:14px;color:var(--gold);letter-spacing:.17em;line-height:1.6}
.title-row{text-align:center;padding:12px 0 9px;border-top:1px solid var(--line)}h1{font-family:var(--serif);font-size:27px;font-weight:500;letter-spacing:.17em;color:#a21f31;line-height:1.5;padding-left:.17em}.trial-label{display:block;color:#ab5260;font-size:11px;letter-spacing:.16em;line-height:1.8;margin-top:1px}.salutation{font-size:15px;margin:8px 0 6px;color:#942638}.body-copy{font-size:16px;line-height:1.85;color:#8d3040;margin:0 0 16px}.hand-name{font:20px KaiTi,STKaiti,var(--serif);margin:0 .2em;color:#a21f31}#handwriting{max-width:145px;height:36px;object-fit:contain;vertical-align:middle;margin:0 .2em}
.event-details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin-bottom:17px}.when{display:flex;justify-content:space-between;align-items:center;gap:10px}.detail-label{font-size:11px;color:var(--muted);letter-spacing:.05em;line-height:1.6}.event-dates{font-size:19px;line-height:1.7;letter-spacing:.015em;font-weight:500;white-space:nowrap;color:#a21f31}.event-dates span{font-size:16px;color:#b55e6c;margin:0 5px}.event-clock{font:29px/1.25 Georgia,'Times New Roman',serif;letter-spacing:.02em;color:#a21f31}.where{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:10px}.metro{font-size:16px;line-height:1.6;color:#982c3c}address{font-style:normal;font-size:13px;line-height:1.7;color:#a34857}.map-link{font-size:12px;text-decoration:none;white-space:nowrap;color:#aa2739;border-bottom:1px solid #aa273966;line-height:1.8}
.primary-button{display:block;width:100%;min-height:47px;border:1px solid #a21f31;background:#a21f31;border-radius:3px;color:#fff;font-size:16px;font-weight:600;letter-spacing:.04em;line-height:1.5;padding:11px 10px;cursor:pointer}.primary-button:disabled{opacity:.55;cursor:wait}.card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}.card-footer>p{font-family:var(--serif);font-size:16px;letter-spacing:.05em;color:#a21f31}.music-control{padding:2px 0 2px 6px;display:flex;gap:5px;align-items:center;min-height:30px;border:0;background:transparent;color:#a15361;cursor:pointer;font-size:11px;line-height:1.7;white-space:nowrap}.music-control>span:first-child{font-size:18px;color:#a21f31}.music-control.playing{color:#98192c}
body.modal-open{overflow:hidden}.rsvp-dialog{color:var(--ink);background:#fff;border:1px solid #bf6b78;border-radius:8px;width:min(calc(100% - 24px),470px);max-height:calc(100svh - 36px);padding:0;box-shadow:0 16px 90px #0008;margin:auto}.rsvp-dialog:not([open]){display:none}.rsvp-dialog::backdrop{background:#3a162b60;backdrop-filter:blur(3px)}.dialog-inner{padding:22px 24px 25px}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:20px}.dialog-head h2{font-family:var(--serif);font-size:24px;font-weight:500;line-height:1.6;color:#a21f31}.close-button{background:transparent;color:#aa2739;border:0;cursor:pointer;font-size:29px;line-height:1;width:36px;height:36px;padding:0;flex:none}.rsvp fieldset{margin:0;padding:0;border:0}.rsvp legend{font-size:14px;margin-bottom:10px;color:#9e3e4d}.dates{display:grid;grid-template-columns:1fr 1fr;gap:10px}.date-card{position:relative;cursor:pointer}.date-card input{position:absolute;opacity:0}.date-card span{display:block;padding:12px 4px;border:1px solid #d2a1aa;border-radius:4px;background:#fffafb;text-align:center}.date-card b{display:block;font-size:21px;color:#a21f31;font-weight:500;line-height:1.6}.date-card small{display:block;font-size:12px;color:#a65967}.date-card input:checked+span{border-color:#ac293d;background:#fff0f3;box-shadow:0 0 0 1px #ac293d}.date-card input:focus-visible+span{outline:2px solid #aa2739;outline-offset:3px}.field{display:block;margin-top:17px;color:#8e2634;font-size:14px;line-height:1.7}.field small{color:#ad6873;font-size:11px;font-weight:400}.field input,.field select{display:block;width:100%;min-width:0;min-height:46px;margin-top:6px;border:1px solid #ceabb2;border-radius:4px;padding:9px 11px;background:#fff;color:#8e2634;font-size:16px;line-height:1.6}.field input::placeholder{color:#a86c76;font-size:13px}.honey{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.consent{display:flex;align-items:flex-start;gap:9px;margin:19px 0 18px;font-size:12px;line-height:1.8;color:#a15663}.consent input{width:17px;height:17px;flex:none;margin:2px 0 0;accent-color:#a21f31}#form-message{color:#a21f31;font-size:13px;line-height:1.8;margin-top:10px}.success{text-align:center;padding:16px 0 10px}.check{color:var(--gold);font-size:40px}.success h3{font-family:var(--serif);font-size:25px;margin:6px 0 15px;color:#a21f31}.success p{font-size:15px}.success .muted{font-size:13px;color:var(--muted);margin-top:12px}.success small{display:block;font-size:11px;color:#ad6974;margin:15px 0 24px}
@media(max-width:359px){.invitation{width:calc(100% - 20px);padding-left:20px;padding-right:20px}.event-dates{font-size:17px}.event-clock{font-size:26px}.body-copy{font-size:15px}.brand-name{font-size:31px}.event-dates span{margin:0 3px}}
@media(max-height:720px){body{padding:10px 0}.invitation{padding-top:12px;padding-bottom:12px}.brand-logo{width:43px;height:45px;margin-bottom:3px}.tagline{margin-bottom:4px}.brand-head{padding-bottom:8px}.brand-name{font-size:31px}.title-row{padding:7px 0}.salutation{margin-top:4px}.body-copy{margin-bottom:12px;line-height:1.7}.event-details{padding:9px 0;margin-bottom:13px}.card-footer{margin-top:8px}.where{margin-top:7px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.invitation:before{animation:none}}

.rsvp-note{font-size:13px;line-height:1.7;color:#a34b59;margin:5px 0 0}.body-copy{line-height:1.8}.primary-button:hover{background:#8f1729}

/* Alternate red/white invitation. White/red remains the default. */
.theme-red{color-scheme:dark;--ink:#fff;--gold:#fff;--muted:#f3d8de;--line:#ffffff45}
.theme-red body{background:#7b1023;color:#fff}
.theme-red .invitation{background:#a11630;border-color:#fff7;box-shadow:0 16px 60px #4b061c33,inset 0 0 0 5px #a11630}
.theme-red .invitation:after{border-color:#ffffff48}
.theme-red .tagline,.theme-red .brand-name,.theme-red .brand-en,.theme-red h1,.theme-red .salutation,.theme-red .body-copy,.theme-red .event-dates,.theme-red .event-clock,.theme-red .metro,.theme-red .card-footer>p{color:#fff}
.theme-red .detail-label,.theme-red address,.theme-red .rsvp-note,.theme-red .music-control,.theme-red .date-card small{color:#f5dce2}
.theme-red .event-dates span{color:#e8b8c4}
.theme-red .map-link{color:#fff;border-bottom-color:#ffffff66}
.theme-red .primary-button{background:#fff;border-color:#fff;color:#a11630}
.theme-red .primary-button:hover{background:#fff1f4}
.theme-red .music-control>span:first-child,.theme-red .music-control.playing{color:#fff}
.theme-red .rsvp-dialog{background:#99152d;border-color:#eab7c3;color:#fff}
.theme-red .dialog-head h2,.theme-red .close-button,.theme-red .rsvp legend,.theme-red .field,.theme-red .date-card b,.theme-red .success h3{color:#fff}
.theme-red .field small,.theme-red .consent,.theme-red .success small{color:#f0cbd5}
.theme-red .date-card span{background:#8d1028;border-color:#ce8395}
.theme-red .date-card input:checked+span{background:#fff;border-color:#fff;box-shadow:0 0 0 1px #fff}
.theme-red .date-card input:checked+span b,.theme-red .date-card input:checked+span small{color:#a11630}
.theme-red .field input,.theme-red .field select{background:#fff;color:#7d1930;border-color:#fff}
.theme-red .field input::placeholder{color:#a36a77}
.theme-red .consent input{accent-color:#c44b65}
.theme-red #form-message{color:#ffe6eb}

/* A quiet gold-satin edge texture shared by both colorways. */
.invitation:before{display:block;content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('assets/champagne-silk-v7.webp') center/cover no-repeat;opacity:.34;mix-blend-mode:multiply;filter:saturate(1.4);mask-image:radial-gradient(ellipse 66% 53% at 50% 50%,transparent 42%,#000 100%);-webkit-mask-image:radial-gradient(ellipse 66% 53% at 50% 50%,transparent 42%,#000 100%)}
.theme-red .invitation:before{display:block;opacity:.27;mix-blend-mode:screen;filter:saturate(1.3)}

/* Additional plain-color versions; existing silk-texture versions remain. */
.theme-plain body{background:#fff}
.theme-plain .invitation{background:#fff;box-shadow:none}
.theme-plain .invitation:before{display:none!important;background:none;filter:none}
.theme-plain.theme-red body,.theme-plain.theme-red .invitation{background:#a11630}

/* Owner's final scope: slant only the four inside brand-title characters. */
html.theme-plain:not(.theme-red) .brand-name{transform:skewX(-12deg);transform-origin:center}
