:root {
  --red: #8c201d;
  --deep-red: #661512;
  --ink: #29231f;
  --cream: #f4ede0;
  --paper: #ede1cf;
  --gold: #a88a56;
  --line: rgba(71, 50, 37, .25);
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Times New Roman", serif;
  --script: "Snell Roundhand", "Segoe Script", "Bradley Hand", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #25120f; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--serif); overflow-x: hidden; }
body.intro-active { overflow: hidden; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.hero { position: relative; width: 100%; min-height: 100svh; overflow: hidden; color: #fff8eb; background: #851e1a; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.015); animation: hero-in 2.2s cubic-bezier(.2,.8,.2,1) both; }
.hero-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(63,11,8,.34) 0%, transparent 25%, transparent 47%, rgba(71,10,7,.32) 58%, rgba(54,8,6,.77) 100%); }
.hero-top, .hero-bottom { position: absolute; z-index: 2; left: 0; width: 100%; padding: env(safe-area-inset-top) 24px env(safe-area-inset-bottom); text-align: center; }
.hero-top { top: 5.5svh; }
.hero-kicker { margin: 0; font-family: var(--script); font-size: clamp(40px, 12vw, 68px); letter-spacing: .015em; font-weight: 400; transform: rotate(-3deg); text-shadow: 0 2px 18px rgba(32,0,0,.28); }
.hero-rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px auto 8px; width: min(250px, 65vw); }
.hero-rule::before, .hero-rule::after { content: ""; height: 1px; flex: 1; background: rgba(255,242,218,.65); }
.hero-rule span { color: #f2d7b0; font-size: 17px; }
.hero h1 { margin: 0; font-size: clamp(22px, 6vw, 34px); letter-spacing: .28em; font-weight: 400; text-indent: .28em; }
.hero-bottom { bottom: max(5.5svh, 38px); }
.couple-names { margin: 0; font-size: clamp(23px, 6.5vw, 35px); letter-spacing: .16em; }
.couple-names i { margin: 0 .25em; color: #e6cba2; font-style: normal; font-size: .75em; }
.hero-date { margin: 8px 0 16px; letter-spacing: .34em; font-size: 15px; font-family: Georgia, serif; }
.hero-copy { margin: 0 0 21px; font-size: 13px; letter-spacing: .15em; }
.open-button { min-width: 176px; padding: 13px 22px; border: 1px solid rgba(255,245,225,.75); border-radius: 999px; color: #fff8eb; background: rgba(84,14,11,.35); backdrop-filter: blur(10px); letter-spacing: .28em; box-shadow: 0 10px 35px rgba(50,0,0,.22); cursor: pointer; }
.open-button b { display: inline-block; margin-left: 10px; font-weight: 400; animation: nudge 1.5s ease-in-out infinite; }

.music-control { position: fixed; z-index: 20; top: calc(env(safe-area-inset-top) + 16px); right: 16px; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: white; background: rgba(75,16,13,.64); backdrop-filter: blur(12px); box-shadow: 0 6px 24px rgba(49,9,7,.25); cursor: pointer; }
.music-control:not(.paused) .music-disc { display: grid; place-items: center; width: 100%; height: 100%; animation: spin 5s linear infinite; }
.music-control.paused { opacity: .7; }

.invitation { position: relative; max-width: 720px; margin: 0 auto; background: var(--cream); box-shadow: 0 0 70px rgba(31,12,8,.22); }
.paper-section { position: relative; min-height: 100svh; padding: 105px clamp(24px, 8vw, 64px); overflow: hidden; background-color: var(--cream); background-image: radial-gradient(rgba(78,54,36,.09) .6px, transparent .6px), linear-gradient(115deg, rgba(255,255,255,.23), transparent 45%, rgba(123,83,55,.04)); background-size: 7px 7px, 100% 100%; }
.paper-section::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(100,69,46,.14); pointer-events: none; }
.section-eyebrow { margin: 0 0 10px; color: var(--red); font: 11px/1.2 Georgia, serif; letter-spacing: .28em; text-align: center; }
.paper-section h2, .red-section h2 { margin: 0; text-align: center; font-weight: 400; font-size: clamp(29px, 8vw, 44px); letter-spacing: .18em; text-indent: .18em; }
.script-title { margin: 0 0 -8px; color: var(--red); font: 31px/1 var(--script); text-align: center; transform: rotate(-3deg); }
.ornament { color: var(--gold); text-align: center; font-size: 22px; margin-bottom: 24px; }

.childhood { min-height: 104svh; }
.kid-pair { display: grid; grid-template-columns: 1fr 55px 1fr; align-items: center; gap: 6px; margin: 68px auto 28px; max-width: 500px; }
.portrait-card { margin: 0; text-align: center; }
.portrait-ring { position: relative; width: min(34vw, 180px); aspect-ratio: 1; margin: auto; border-radius: 50%; background: #dbc6a8; border: 1px solid #7e251f; box-shadow: 0 8px 0 rgba(132,29,25,.09), 0 16px 30px rgba(68,41,24,.12); overflow: hidden; }
.portrait-ring::after { content: ""; position: absolute; inset: 7px; border: 1px dashed rgba(255,255,255,.76); border-radius: inherit; }
.portrait-ring img { width: 100%; height: 100%; object-fit: contain; padding-top: 6%; filter: saturate(.9) contrast(.96); }
.portrait-card figcaption { margin-top: 15px; color: #604a3e; font: 11px Georgia, serif; letter-spacing: .25em; }
.double-happiness { display: grid; place-items: center; color: var(--red); font-size: 46px; }
.kids-line { margin: 43px 0 0; text-align: center; font: italic 17px/1.5 Georgia, serif; letter-spacing: .025em; }
.postmark { position: absolute; right: 6%; bottom: 7%; width: 88px; aspect-ratio: 1; border: 1px solid rgba(137,32,28,.4); border-radius: 50%; color: rgba(137,32,28,.58); transform: rotate(-13deg); display: grid; place-items: center; font-family: Georgia, serif; }
.postmark::before, .postmark::after { content: ""; position: absolute; width: 110px; height: 1px; right: 60px; background: currentColor; box-shadow: 0 7px currentColor, 0 -7px currentColor; }
.postmark span { font-size: 12px; align-self: end; }.postmark b { font-size: 28px; line-height: .7; }.postmark em { font-size: 10px; font-style: normal; align-self: start; }

.words { min-height: 96svh; display: flex; flex-direction: column; justify-content: center; }
.poem { margin: 74px auto 0; text-align: center; font-size: clamp(15px, 4.2vw, 20px); line-height: 2.2; letter-spacing: .07em; }
.poem p { margin: 0; }.poem .poem-space { margin-top: 22px; }
.mini-sign { margin: 64px 0 0; color: var(--red); font: 10px Georgia, serif; letter-spacing: .34em; text-align: center; }

.memory-section { position: relative; min-height: 110svh; overflow: hidden; color: white; background: #7e5e52; }
.memory-photo { position: absolute; inset: 0; background: url("assets/kiss-bg.jpg") center/cover no-repeat; filter: saturate(.7) contrast(.9); transform: scale(1.05); }
.memory-wash { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32,23,19,.26), rgba(89,30,26,.12) 45%, rgba(46,16,13,.78)); }
.memory-label { position: absolute; z-index: 2; top: 45px; left: 26px; margin: 0; font: 10px Georgia, serif; letter-spacing: .25em; writing-mode: vertical-rl; }
.couple-cutout { position: absolute; z-index: 3; width: min(87%, 570px); max-height: 78svh; object-fit: contain; left: 50%; bottom: 0; transform: translateX(-50%); filter: drop-shadow(0 0 2px white) drop-shadow(0 0 2px white) drop-shadow(0 16px 22px rgba(22,5,3,.35)); }
.couple-cutout.is-visible { transform: translateX(-50%) translateY(0); }
.memory-caption { position: absolute; z-index: 4; left: 7%; bottom: 6%; padding-left: 15px; border-left: 1px solid rgba(255,255,255,.7); text-shadow: 0 2px 12px rgba(26,5,3,.45); }
.memory-caption span { font: 10px Georgia, serif; letter-spacing: .2em; }.memory-caption p { margin: 8px 0 0; line-height: 1.7; letter-spacing: .12em; }

.date-section { min-height: 125svh; }
.date-lockup { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 10px; margin: 60px auto 5px; max-width: 480px; text-align: center; }
.date-lockup span { font-size: 14px; letter-spacing: .08em; }.date-lockup strong { color: var(--red); font: italic 42px/1 Georgia, serif; }
.lunar { margin: 13px 0 48px; text-align: center; letter-spacing: .15em; }
.calendar { max-width: 470px; margin: auto; padding: 25px 20px 27px; background: rgba(255,252,246,.48); border: 1px solid rgba(89,55,37,.2); box-shadow: 10px 12px 0 rgba(118,73,42,.06); }
.calendar-head { display: flex; align-items: end; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--line); font-family: Georgia, serif; letter-spacing: .18em; }
.calendar-head b { color: var(--red); font-size: 36px; line-height: .8; }.calendar-head span { font-size: 12px; }
.weekdays, .days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.weekdays { margin-top: 15px; color: #917768; font-size: 11px; }.weekdays span, .days span { display: grid; place-items: center; min-height: 39px; }
.days { margin-top: 3px; font: 13px Georgia, serif; }.wedding-day { position: relative; color: white; z-index: 1; }.wedding-day i { position: absolute; z-index: -1; color: var(--red); font-size: 41px; font-style: normal; transform: rotate(-7deg); }
.calendar-note { margin: 14px 0 0; color: var(--red); font: 10px Georgia, serif; letter-spacing: .18em; text-align: center; }

.red-section { position: relative; min-height: 100svh; padding: 104px clamp(24px, 8vw, 64px); color: #f7ecdc; overflow: hidden; background: var(--red); }
.red-section::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(250,232,201,.23); }
.red-section::after { content: "11 / 25"; position: absolute; right: -21px; top: 42%; color: rgba(255,255,255,.06); font: 96px Georgia, serif; transform: rotate(90deg); }
.section-eyebrow.light { color: #d9bc8d; }.timeline { position: relative; max-width: 480px; margin: 75px auto 0; }
.timeline::before { content: ""; position: absolute; left: 41%; top: 6px; bottom: 18px; width: 1px; background: rgba(243,226,200,.35); }
.timeline article { position: relative; display: grid; grid-template-columns: 34% 14% 1fr; align-items: center; min-height: 120px; }
.timeline time { font: italic 25px Georgia, serif; text-align: right; }.timeline time small { display: block; margin-top: 4px; font-size: 9px; letter-spacing: .2em; }
.timeline article > span { position: relative; z-index: 1; width: 11px; height: 11px; margin: auto; border: 2px solid var(--red); border-radius: 50%; background: #e4c18c; box-shadow: 0 0 0 1px rgba(229,203,164,.7); }
.timeline b { display: block; font-size: 18px; font-weight: 400; letter-spacing: .12em; }.timeline p { margin: 8px 0 0; color: #d9bc8d; font: 9px Georgia, serif; letter-spacing: .18em; }
.schedule-foot { position: relative; margin: 54px 0 0; text-align: center; letter-spacing: .35em; font-size: 12px; }

.venue { min-height: 112svh; }
.venue-card { position: relative; max-width: 490px; margin: 64px auto 0; background: #e2d1b9; border: 1px solid rgba(71,47,33,.2); box-shadow: 13px 15px 0 rgba(111,70,41,.07); overflow: hidden; }
.map-grid { position: relative; height: 290px; overflow: hidden; background: #d8c4a8; }
.map-grid i { position: absolute; width: 140%; height: 1px; left: -20%; top: calc(15% * var(--n, 1)); background: rgba(111,75,51,.32); transform: rotate(var(--r, -8deg)); }
.map-grid i:nth-child(1){--n:1;--r:-7deg}.map-grid i:nth-child(2){--n:2;--r:11deg}.map-grid i:nth-child(3){--n:3;--r:-18deg}.map-grid i:nth-child(4){--n:4;--r:5deg}.map-grid i:nth-child(5){--n:5;--r:-3deg}.map-grid i:nth-child(6){--n:6;--r:14deg}
.map-river { position: absolute; width: 140%; height: 55px; left: -20%; top: 42%; border: 12px solid rgba(127,158,155,.58); border-left: 0; border-right: 0; border-radius: 50%; transform: rotate(-10deg); }
.map-road { position: absolute; width: 8px; height: 160%; left: 62%; top: -30%; background: rgba(255,246,221,.8); transform: rotate(17deg); box-shadow: 0 0 0 1px rgba(97,67,48,.23); }
.map-pin { position: absolute; left: 50%; top: 46%; width: 44px; height: 44px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 8px 16px rgba(70,22,18,.25); }.map-pin::first-letter { transform: rotate(45deg); }
.venue-copy { padding: 28px 26px 30px; text-align: center; }.venue-number { margin: 0 0 20px; color: #80664f; font: 9px Georgia, serif; letter-spacing: .18em; }.venue-copy h3 { margin: 0; font-size: 25px; font-weight: 400; letter-spacing: .12em; }.venue-copy > p:not(.venue-number) { margin: 10px 0 14px; color: var(--red); letter-spacing: .18em; }.venue-copy address { font-style: normal; font-size: 13px; color: #614c3e; }.nav-button { display: inline-flex; align-items: center; gap: 25px; margin-top: 25px; padding: 12px 21px; color: white; background: var(--red); text-decoration: none; letter-spacing: .15em; box-shadow: 0 7px 18px rgba(92,26,21,.16); }

.rsvp { min-height: 118svh; }.rsvp-intro { margin: 18px 0 50px; text-align: center; color: #826958; font-size: 13px; letter-spacing: .2em; }
#rsvpForm { max-width: 490px; margin: auto; }.field { display: block; margin: 0 0 34px; padding: 0; border: 0; }.field > span, .field legend { display: block; margin-bottom: 13px; font-size: 14px; line-height: 1.7; letter-spacing: .04em; }.field b { color: var(--red); margin-right: 9px; font: 12px Georgia, serif; }
.field input[type="text"], .field input[type="number"] { width: 100%; border: 0; border-bottom: 1px solid #8d7768; border-radius: 0; padding: 12px 4px; color: var(--ink); background: transparent; outline: none; appearance: none; }.field input:focus { border-color: var(--red); }
.radio-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.radio-row label { cursor: pointer; }.radio-row input { position: absolute; opacity: 0; }.radio-row span { display: block; padding: 13px 8px; text-align: center; border: 1px solid rgba(84,58,42,.35); }.radio-row input:checked + span { color: white; border-color: var(--red); background: var(--red); }
.submit-button { width: 100%; margin-top: 12px; padding: 15px 20px; border: 0; color: white; background: var(--red); letter-spacing: .22em; cursor: pointer; box-shadow: 0 9px 20px rgba(91,27,22,.18); }.submit-button span { float: right; }

.closing { min-height: 110svh; padding: 95px 28px max(90px, env(safe-area-inset-bottom)); color: #f8efe4; background: radial-gradient(circle at 30% 20%, #a83b34, transparent 36%), linear-gradient(155deg, #8d211d, #5f100e); display: grid; place-items: center; text-align: center; }
.closing-inner { width: 100%; max-width: 520px; padding: 60px 20px; border: 1px solid rgba(255,238,211,.27); }
.thanks-script { margin: 0; color: #e8c99c; font: 58px/1 var(--script); transform: rotate(-5deg); }.closing h2 { margin: 25px 0 45px; font-size: 19px; font-weight: 400; letter-spacing: .35em; text-indent: .35em; }.thanks-copy { line-height: 2.25; letter-spacing: .12em; font-size: 14px; }.thanks-copy p { margin: 0; }.waiting { margin: 36px 0 18px; color: #e4c698; font: 29px/1 var(--script); }.closing-mark { margin: 25px 0; color: #e2bd84; font-size: 14px; }.signature { margin: 0; font: 46px/1.2 var(--script); }.signature i { color: #e0bb82; font-size: .6em; }.closing-date { margin: 28px 0 0; font: 9px Georgia, serif; letter-spacing: .26em; opacity: .7; }

.toast { position: fixed; z-index: 40; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(43,16,12,.45); backdrop-filter: blur(6px); }.toast[hidden] { display: none; }.toast div { width: min(310px, 86vw); padding: 36px 25px; color: #fff7e9; background: var(--red); border: 1px solid rgba(255,255,255,.4); box-shadow: 0 20px 70px rgba(35,7,5,.32); text-align: center; }.toast b, .toast span { display: block; }.toast b { font-size: 22px; letter-spacing: .15em; }.toast span { margin-top: 14px; color: #e9d0a9; letter-spacing: .12em; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.05s cubic-bezier(.2,.75,.25,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.couple-cutout[data-reveal] { transform: translateX(-50%) translateY(35px); }
.couple-cutout[data-reveal].is-visible { transform: translateX(-50%) translateY(0); }

@keyframes hero-in { from { opacity: .2; transform: scale(1.08); } to { opacity: 1; transform: scale(1.015); } }
@keyframes nudge { 50% { transform: translateY(4px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 721px) {
  body { background: #2d1511; }
  .hero { max-width: 720px; margin: auto; box-shadow: 0 0 80px rgba(0,0,0,.35); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
