:root {
  color-scheme: dark;
  --night: #07132f;
  --deep: #040b1d;
  --blue: #123a7a;
  --gold: #e4c574;
  --gold-light: #f8e9b6;
  --ivory: #fffaf0;
  --muted: #c5d0e7;
  --wine: #6f263d;
  --line: rgba(228, 197, 116, .36);
  --serif: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; min-width: 320px; background: var(--night); color: var(--ivory); font-family: var(--sans); line-height: 1.6; overflow-x: clip; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 4px; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 20; padding: .7rem 1rem; color: var(--night); background: var(--gold-light); border-radius: .5rem; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .26; background-image: radial-gradient(circle at 12% 22%,#fff 0 1px,transparent 1.6px),radial-gradient(circle at 72% 18%,#f6d77a 0 1.4px,transparent 2px),radial-gradient(circle at 36% 74%,#fff 0 1px,transparent 1.6px),radial-gradient(circle at 88% 62%,#f6d77a 0 1px,transparent 2px); background-size: 170px 170px,240px 240px,210px 210px,290px 290px; animation: drift 48s linear infinite; }
.hero { isolation: isolate; position: relative; z-index: 1; min-height: 100svh; padding: clamp(2rem,5vh,4rem) 1.25rem 4.3rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(ellipse at 50% 18%,rgba(23,55,107,.72) 0,transparent 55%),linear-gradient(180deg,rgba(7,19,47,.76),rgba(9,26,58,.70) 65%,rgba(7,19,47,.82)),url('assets/vangogh-background.webp') center 48%/cover no-repeat; }
.hero__sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.moon { position: absolute; top: 9%; right: max(9%,calc((100vw - 1100px)/2)); width: 2.5rem; aspect-ratio: 1; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 30px 8px rgba(248,233,182,.22); }
.moon::after { content: ""; position: absolute; width: 2.35rem; aspect-ratio: 1; top: -.35rem; left: .7rem; border-radius: 50%; background: #102750; }
.spark { position: absolute; color: var(--gold); text-shadow: 0 0 18px rgba(228,197,116,.65); }
.spark--one { top: 17%; left: 8%; font-size: 1.5rem; }.spark--two { top: 32%; right: 7%; font-size: 1.1rem; }
.hero__portrait { position: relative; width: min(42vw,230px); aspect-ratio: 941 / 1672; height: auto; margin: .2rem auto 1.2rem; overflow: hidden; border: 1px solid rgba(248,233,182,.72); border-radius: 48% 48% 8px 8px; box-shadow: 0 0 0 7px rgba(228,197,116,.06),0 16px 55px rgba(0,0,0,.45); background: #351726; }
.hero__portrait::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.22); border-radius: inherit; pointer-events: none; }
.hero__portrait img, .hero__portrait video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero__content { position: relative; max-width: 690px; z-index: 1; text-shadow: 0 3px 22px rgba(0,0,0,.56); }
.eyebrow { margin: 0 0 .75rem; color: var(--gold-light); font-size: .68rem; font-weight: 600; letter-spacing: .22em; line-height: 1.5; text-transform: uppercase; }
.hero h1 { margin: 0; color: #fff9e9; font: 500 clamp(4.1rem,13vw,7.2rem)/.82 var(--serif); letter-spacing: -.045em; }
.hero__surname { margin: .6rem 0 0; color: #e1d9c6; font-size: .78rem; letter-spacing: .31em; text-transform: uppercase; }
.gold-line { width: 74px; height: 1px; margin: 1rem auto .6rem; background: linear-gradient(90deg,transparent,var(--gold),transparent); }
.hero__title { margin: 0; color: var(--gold-light); font-size: 1.04rem; font-weight: 500; letter-spacing: .38em; text-transform: uppercase; }
.hero__date { margin: .45rem 0 .8rem; color: #fff4d7; font-size: .9rem; letter-spacing: .2em; }
.hero__date span { color: var(--gold); padding: 0 .2rem; }
.guest { max-width: 37rem; margin: .6rem auto 1.25rem; color: #e0e6f2; font: 400 clamp(1.2rem,4vw,1.65rem)/1.35 var(--serif); }
.button { min-height: 48px; padding: .78rem 1.2rem; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; border: 1px solid transparent; border-radius: 999px; text-decoration: none; text-align: center; font-size: .76rem; font-weight: 700; letter-spacing: .075em; transition: transform .2s ease,background-color .2s ease,box-shadow .2s ease; cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .48; transform: none; cursor: not-allowed; }
.button--gold { color: #19182a; background: linear-gradient(135deg,#f4dfa0,#c09342); box-shadow: 0 9px 27px rgba(217,182,95,.2); }
.button--outline { border-color: var(--line); color: var(--gold-light); background: rgba(255,255,255,.025); }
.button--outline:hover { background: rgba(228,197,116,.1); }
.button--small { min-height: 42px; padding: .55rem 1rem; font-size: .7rem; }
.scroll-mark { position: absolute; bottom: 1rem; left: calc(50% - 11px); width: 22px; height: 36px; border: 1px solid rgba(255,255,255,.56); border-radius: 14px; z-index: 2; }
.scroll-mark span { display: block; width: 3px; height: 7px; margin: 7px auto; border-radius: 4px; background: var(--gold); animation: scroll 1.8s infinite; }
.section { position: relative; z-index: 1; padding: clamp(4.5rem,10vw,7.5rem) 1.1rem; }
.intro { max-width: 790px; margin: auto; text-align: center; background: linear-gradient(rgba(5,13,32,.78),rgba(5,13,32,.78)),url('assets/vangogh-background.webp') center 43%/cover no-repeat; }
.intro h2,.section-heading h2,.rsvp h2 { margin: 0 0 1.2rem; color: #fff7e6; font: 500 clamp(2.6rem,7.5vw,4.6rem)/.98 var(--serif); letter-spacing: -.025em; }
.intro > p:last-child,.section-note { max-width: 620px; margin: auto; color: var(--muted); font-size: .99rem; line-height: 1.85; }
.countdown { padding-top: 3.5rem; padding-bottom: 4rem; text-align: center; background: linear-gradient(135deg,rgba(18,58,122,.55),rgba(10,23,51,.78)); border-top: 1px solid rgba(228,197,116,.12); border-bottom: 1px solid rgba(228,197,116,.12); }
.countdown__grid { display: grid; grid-template-columns: repeat(4,minmax(58px,126px)); justify-content: center; gap: clamp(7px,2vw,14px); margin: 1.7rem auto 0; }
.countdown__grid div { padding: 1rem .4rem; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.035); }
.countdown strong { display: block; color: var(--gold-light); font: 500 clamp(1.8rem,7vw,3.1rem)/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.countdown__grid span { display: block; margin-top: .35rem; color: #cad4e8; font-size: .57rem; letter-spacing: .11em; text-transform: uppercase; }
.countdown__celebration { margin: 1.6rem auto 0; color: var(--gold-light); font: 500 1.6rem var(--serif); }
.story { overflow: hidden; text-align: center; background: radial-gradient(ellipse at 50% 48%,rgba(24,61,122,.76) 0,rgba(8,22,51,.83) 55%,rgba(5,14,34,.88) 100%),url('assets/vangogh-background.webp') center 58%/cover no-repeat; }
.section-heading { margin: 0 auto 2.2rem; text-align: center; }
.section-note { margin-top: -.35rem; font-size: .88rem; }
.celebration-extra { text-align: center; background: linear-gradient(rgba(4,12,30,.8),rgba(4,12,30,.86)),url('assets/vangogh-background.webp') center 62%/cover no-repeat; }
.celebration-extra__panel { max-width: 680px; margin: auto; padding: clamp(1.8rem,6vw,3.2rem); border: 1px solid rgba(228,197,116,.34); border-radius: 24px; background: rgba(5,15,39,.84); box-shadow: 0 22px 60px rgba(0,0,0,.24); }
.celebration-extra__icon { display: block; margin-bottom: .45rem; color: var(--gold-light); font: 2rem/1 var(--serif); }
.celebration-extra h2 { margin: 0 0 1rem; color: #fff7e6; font: 500 clamp(2.4rem,7vw,4rem)/1 var(--serif); }
.celebration-extra__panel > p:not(.eyebrow) { max-width: 540px; margin: auto; color: var(--muted); line-height: 1.8; }
.celebration-extra .button { margin-top: 1.2rem; }
.gift-details { max-width: 430px; margin: 0 auto; }
.gift-details > summary { display: flex; justify-content: center; list-style: none; cursor: pointer; }
.gift-details > summary::-webkit-details-marker { display: none; }
.gift-details__content { display: grid; gap: .65rem; margin-top: 1rem; padding: 1rem; border: 1px solid rgba(228,197,116,.25); border-radius: 16px; background: rgba(255,255,255,.045); text-align: left; }
.gift-details__content p { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: .25rem .75rem; margin: 0; color: var(--muted); font-size: .82rem; }
.gift-details__content p span { color: var(--gold-light); }
.gift-details__content strong { grid-column: 1 / -1; overflow-wrap: anywhere; color: #fff; font-size: .95rem; letter-spacing: .025em; }
.copy-button { justify-self: start; min-height: 40px; padding: .4rem .7rem; border: 1px solid rgba(228,197,116,.4); border-radius: 999px; color: var(--gold-light); background: rgba(255,255,255,.04); font: inherit; font-size: .75rem; cursor: pointer; }
.gift-details__content > .button { width: 100%; margin: .4rem 0 0; }
.gift-details__status { min-height: 1.2em; color: var(--gold-light); font-size: .75rem; text-align: center; }
.music-gate-open { overflow: hidden; }
.music-gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(2,8,24,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.music-gate__card { width: min(100%,480px); padding: clamp(1.5rem,6vw,2.7rem); border: 1px solid rgba(248,233,182,.5); border-radius: 25px; background: linear-gradient(150deg,rgba(13,35,78,.98),rgba(4,12,31,.98)); box-shadow: 0 28px 90px rgba(0,0,0,.5); text-align: center; }
.music-gate__card h2 { margin: 0 0 .75rem; color: #fff7e6; font: 500 clamp(2rem,7vw,3rem)/1.05 var(--serif); }
.music-gate__intro,.music-gate__note { color: #d4def0; font-size: .88rem; line-height: 1.65; }
.music-gate__track { margin: .9rem 0 .25rem; color: var(--gold-light); font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.music-gate__player { display: block; width: 100%; height: 54px; margin: .25rem 0 .5rem; border: 0; border-radius: 12px; background: #101a34; }
.music-gate__card > .button { width: 100%; margin-top: .8rem; }
.music-gate__note { margin: .65rem 0 0; font-size: .72rem; }
.music-gate.is-entered { inset: auto .8rem .8rem auto; display: block; width: min(340px,calc(100vw - 1.6rem)); padding: 0; background: transparent; pointer-events: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.music-gate.is-entered .music-gate__card { width: 100%; padding: 0; border: 0; border-radius: 12px; background: transparent; box-shadow: 0 4px 20px rgba(0,0,0,.3); pointer-events: auto; }
.music-gate.is-entered .music-gate__card > :not(.music-gate__player):not(.music-gate__track) { display: none; }
.music-gate.is-entered .music-gate__card > .music-gate__track { margin: 0 0 .15rem; padding: .45rem .75rem 0; color: #fff2c9; font-size: .63rem; text-align: left; }
.music-gate.is-entered .music-gate__player { height: 54px; margin: 0; box-shadow: 0 4px 20px rgba(0,0,0,.3); }
.reel { position: relative; width: min(82vw,360px); aspect-ratio: 941 / 1672; margin: 0 auto; filter: drop-shadow(0 24px 45px rgba(0,0,0,.45)); touch-action: pan-y; user-select: none; }
.reel__window { position: absolute; z-index: 1; top: 20.5%; right: 13%; bottom: 18%; left: 13%; overflow: hidden; border-radius: 10px; background: #081633 url('assets/vangogh-background.webp') center 48%/cover no-repeat; }
.slide { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease,visibility 1s ease; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center center; }
.reel__frame { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: multiply; }
.reel__control { position: absolute; z-index: 4; top: 51%; width: 42px; height: 42px; display: grid; place-items: center; padding: 0 0 4px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; color: white; background: rgba(4,12,32,.82); font: 300 2rem/1 var(--serif); cursor: pointer; }
.reel__control--prev { left: -14px; }.reel__control--next { right: -14px; }
.reel__toolbar { position: absolute; z-index: 4; right: 15%; bottom: 8.5%; left: 15%; display: flex; flex-direction: column; align-items: center; gap: .55rem; }
.reel__toggle { min-height: 34px; padding: .35rem .75rem; border: 1px solid rgba(248,233,182,.55); border-radius: 999px; color: #fff8e5; background: rgba(4,12,32,.8); font-size: .66rem; cursor: pointer; }
.reel__dots { display: flex; justify-content: center; gap: 8px; }
.reel__dots button { width: 9px; height: 9px; padding: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(255,255,255,.24); cursor: pointer; }
.reel__dots button[aria-current="true"] { background: var(--gold-light); border-color: var(--gold-light); transform: scale(1.18); }
.reel__hint { margin: 1.25rem 0 0; color: #c3d0e7; font-size: .75rem; }
.event { background: linear-gradient(180deg,rgba(8,20,46,.84),rgba(9,24,53,.82)),url('assets/vangogh-background.webp') center 66%/cover no-repeat; }
.event__cards { display: grid; grid-template-columns: repeat(2,minmax(0,360px)); justify-content: center; gap: 1.2rem; }
.card { padding: clamp(1.6rem,5vw,2.6rem) 1.1rem; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg,rgba(255,255,255,.065),rgba(255,255,255,.015)); box-shadow: 0 18px 45px rgba(0,0,0,.16); text-align: center; }
.card__icon { color: var(--gold); font-size: 1.55rem; }
.card h3 { margin: .7rem 0 .35rem; color: #fff6df; font: 500 clamp(1.35rem,4vw,1.85rem)/1.2 var(--serif); }
.card p { color: var(--muted); line-height: 1.75; }
.card__large { margin: .4rem 0 1.25rem; color: var(--gold-light)!important; font-size: 1.1rem; letter-spacing: .05em; }
.card .button { margin-top: .65rem; }
.rsvp { background: linear-gradient(rgba(4,12,30,.84),rgba(4,12,30,.91)),url('assets/starry-frame.png') center 39%/cover,url('assets/vangogh-background.webp') center 74%/cover; }
.rsvp__panel { max-width: 650px; margin: auto; padding: clamp(1.6rem,6vw,3.4rem); border: 1px solid rgba(228,197,116,.42); border-radius: 24px; background: rgba(6,16,42,.94); box-shadow: 0 24px 70px rgba(0,0,0,.3); text-align: center; }
.rsvp__deadline { display: flex; flex-wrap: wrap; justify-content: center; gap: .35em; max-width: 500px; margin: 1rem auto 1.2rem; padding: .85rem 1rem; border: 1px solid rgba(248,233,182,.62); border-radius: 999px; color: var(--gold-light); background: linear-gradient(135deg,rgba(228,197,116,.14),rgba(11,30,70,.76)); box-shadow: 0 0 28px rgba(228,197,116,.09); font-size: clamp(1.05rem,3.6vw,1.38rem); font-weight: 700; line-height: 1.35; letter-spacing: .045em; text-transform: uppercase; }
.rsvp__deadline time { white-space: nowrap; }
.rsvp__panel > p:not(.eyebrow):not(.rsvp__deadline) { color: var(--muted); font-size: .9rem; line-height: 1.7; }
form { display: grid; gap: .65rem; margin-top: 1.7rem; text-align: left; }
form > label,.companions legend,.choice-group legend { color: #e6ebf5; font-size: .78rem; font-weight: 600; line-height: 1.5; letter-spacing: .025em; }
label > span { color: var(--gold-light); }
input:not([type="radio"]),select,textarea { width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1px solid rgba(228,197,116,.35); border-radius: 11px; color: #fff; background: rgba(255,255,255,.055); }
select option { color: #172035; }
textarea { min-height: 80px; resize: vertical; }
input::placeholder,textarea::placeholder { color: #aebbd3; opacity: 1; }
input:focus,select:focus,textarea:focus { outline: 2px solid var(--gold-light); outline-offset: 1px; border-color: transparent; }
.companions,.choice-group { min-width: 0; margin: .6rem 0 0; padding: 0; border: 0; }
.companions legend,.choice-group legend { margin-bottom: .65rem; }
.companions__list { display: grid; gap: .8rem; }
.companion-row { position: relative; display: grid; gap: .45rem; padding: .85rem; border: 1px solid rgba(228,197,116,.2); border-radius: 13px; background: rgba(255,255,255,.025); }
.companion-row label { color: #d5deee; font-size: .72rem; }
.companion-row__remove { justify-self: end; padding: .35rem .55rem; border: 0; color: #f1c5ce; background: transparent; font-size: .72rem; text-decoration: underline; cursor: pointer; }
.companions .button { justify-self: start; margin-top: .8rem; }
.attendee-count { margin: 0; color: var(--gold-light); font-size: .78rem; }
.choice { display: inline-flex; align-items: center; gap: .45rem; margin: .1rem 1.1rem .45rem 0; color: #e0e6f2; font-size: .82rem; }
.choice input { width: 18px; height: 18px; accent-color: var(--gold); }
form > .button { width: 100%; margin-top: .65rem; }
.form-note,.form-status { margin: .3rem 0 0; color: #bdc9df; font-size: .72rem; line-height: 1.55; text-align: center; }
.form-status { color: var(--gold-light); }
.noscript-note { margin-top: 1.5rem; color: var(--gold-light); font-size: .82rem; }
.noscript-note a { color: white; }
.closing { position: relative; z-index: 1; padding: 4rem 1.1rem 3rem; text-align: center; background: linear-gradient(rgba(4,11,29,.78),rgba(4,11,29,.88)),url('assets/vangogh-background.webp') center 82%/cover no-repeat; }
.closing__star { margin-bottom: .6rem; color: var(--gold); font-size: 2rem; }
.closing__message { margin: 0 auto 1.4rem; color: #fff4dd; font: 500 clamp(1.65rem,5vw,2.45rem)/1.25 var(--serif); }
.closing__signature { margin: 0; color: #c1cce0; font-size: .7rem; letter-spacing: .08em; }
.closing__signature span { color: var(--gold); padding: 0 .25rem; }
@keyframes drift { to { background-position: 170px 170px,-240px 240px,210px -210px,-290px -290px; } }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(13px); } }
@media (min-width: 850px) {
  .hero { min-height: 760px; flex-direction: row; gap: clamp(2rem,7vw,7rem); padding: 4.5rem 8vw; text-align: left; }
  .hero__portrait { order: 2; width: min(29vw,300px); flex: 0 0 auto; margin: 0; }
  .hero__content { order: 1; width: min(55%,650px); }
  .hero__content .gold-line { margin-left: 0; }
  .hero__surname { letter-spacing: .34em; }
  .guest { margin-left: 0; }
  .event__cards { gap: 1.8rem; }
}
@media (max-width: 580px) {
  .hero { padding-top: 2rem; }
  .hero__portrait { width: min(46vw,190px); margin-bottom: .8rem; }
  .hero h1 { font-size: clamp(3.7rem,16vw,5.2rem); }
  .hero__surname { font-size: .67rem; }
  .eyebrow { font-size: .59rem; letter-spacing: .18em; }
  .hero__date { margin-bottom: .4rem; }
  .guest { margin-top: .4rem; margin-bottom: .85rem; }
  .section { padding: 4.3rem 1rem; }
  .event__cards { grid-template-columns: minmax(0,1fr); max-width: 390px; margin: auto; }
  .reel { width: min(86vw,340px); }
  .reel__control { width: 38px; height: 38px; }
  .reel__control--prev { left: -10px; }.reel__control--next { right: -10px; }
  .countdown__grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 360px) {
  .countdown__grid { gap: 5px; }
  .countdown__grid div { padding-right: .15rem; padding-left: .15rem; }
  .countdown__grid span { font-size: .5rem; letter-spacing: .06em; }
  .hero__portrait { width: min(45vw,150px); }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto!important; animation-duration: .01ms!important; animation-iteration-count: 1!important; transition-duration: .01ms!important; }
}
