:root {
  --wine: #3b0d2b;
  --plum: #2c0f4a;
  --ruby: #9b1c47;
  --ruby-light: #c2335f;
  --purple: #6c3a9a;
  --lilac: #e6d6f3;
  --blush: #fbe6ec;
  --paper: #fdf3f1;
  --cream: #fff8f1;
  --gold: #f2c96d;
  --ink: #3a1230;
  --muted: #7a5a74;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 700; letter-spacing: -.03em; }
h1 em, h2 em { font-style: italic; font-weight: 600; letter-spacing: -.035em; }
.section-wrap { max-width: 1160px; margin: auto; }

.top-strip { padding: 9px 16px; background: linear-gradient(90deg, var(--ruby), var(--purple)); color: var(--cream); text-align: center; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.top-strip span { padding-left: 8px; color: var(--gold); }
.site-header { height: 82px; padding: 0 max(5%, calc((100% - 1220px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/.95 "Fraunces", Georgia, serif; letter-spacing: -.03em; white-space: nowrap; }
.brand-icon { font-size: 30px; line-height: 1; color: var(--ruby); }
.brand i { font-weight: 600; color: var(--ruby); }
.brand small { display: block; margin-top: 7px; font: 800 8px "DM Sans", sans-serif; letter-spacing: .22em; color: var(--purple); }
nav { display: flex; gap: 35px; font-size: 13px; font-weight: 700; }
nav a { transition: color .2s; }
nav a:hover { color: var(--ruby); }
.header-link { padding: 12px 18px; border: 1px solid #c9a0bd; border-radius: 999px; font-size: 12px; font-weight: 800; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.header-link:hover { background: var(--ruby); border-color: var(--ruby); color: white; }
.header-link span { margin-left: 10px; }

.hero { position: relative; overflow: hidden; color: var(--cream); background: radial-gradient(ellipse at 85% 8%, #7a2a9a88 0, transparent 46%), radial-gradient(ellipse at 6% 92%, #b3234f66 0, transparent 42%), linear-gradient(160deg, var(--wine), var(--plum)); }
.hero::after { content: ""; position: absolute; inset: 16px; border: 1px solid #f2c96d66; border-radius: 26px; pointer-events: none; }
.hero-inner { position: relative; max-width: 1280px; margin: auto; padding: 84px 6% 60px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 45px; }
.hero-copy { position: relative; z-index: 1; animation: appear .7s ease-out both; }
.eyebrow, .section-kicker { font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.eyebrow { display: inline-flex; gap: 10px; align-items: center; padding: 9px 16px; border: 1px solid #f2c96d88; border-radius: 999px; color: var(--gold); }
.hero-names { margin: 26px 0 0; color: #f6b3c8; font: italic 600 24px "Fraunces", Georgia, serif; letter-spacing: -.01em; }
.hero-names span { color: var(--gold); }
h1 { margin: 12px 0 22px; font-size: clamp(44px, 5.1vw, 70px); line-height: 1.04; }
h1 em { color: var(--gold); }
.hero-description { max-width: 460px; color: #ecd7e6; font-size: 15px; line-height: 1.8; }
.hero-actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; margin-top: 27px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 22px; min-height: 51px; padding: 14px 22px; border: 0; border-radius: 999px; font-size: 13px; font-weight: 800; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-3px); box-shadow: 0 7px 0 #0003; }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.button-gold { background: var(--gold); color: var(--wine); }
.button-ruby { background: linear-gradient(135deg, var(--ruby), var(--purple)); color: var(--cream); }
.button-outline { border: 1px solid #c9a0bd; background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ruby); border-color: var(--ruby); color: white; }
.hero-map { padding-bottom: 5px; border-bottom: 1px solid #f2c96d99; font-size: 13px; font-weight: 800; }
.hero-map:hover { color: var(--gold); }

.hero-art { position: relative; display: flex; flex-wrap: wrap; align-content: center; align-items: center; justify-content: center; width: 100%; max-width: 550px; min-height: 490px; margin: auto; isolation: isolate; animation: appear .9s ease-out both; }
.hero-art::before { content: ""; position: absolute; z-index: -1; width: 78%; aspect-ratio: 1; border: 1px solid #f2c96d77; border-radius: 50%; }
.hero-art::after { content: ""; position: absolute; z-index: -2; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #9b1c4788, transparent 70%); }
.portrait { position: relative; padding: 8px 8px 12px; background: var(--cream); border-radius: 8px; box-shadow: 0 15px 35px #1a051a99; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: .79; object-fit: cover; object-position: center 23%; border-radius: 4px; }
.portrait span { display: flex; justify-content: space-between; align-items: center; padding: 10px 6px 0; color: var(--ink); font: italic 600 18px "Fraunces", Georgia, serif; }
.portrait span b { color: var(--ruby); font: 800 12px "DM Sans", sans-serif; }
.portrait-jess { z-index: 1; width: 52%; padding: 10px 10px 14px; margin-left: 9%; transform: rotate(-3deg) translateY(-8px); box-shadow: 0 22px 45px #1a051acc, 0 0 0 3px var(--gold); }
.portrait-jess span { font-size: 22px; }
.portrait-jess span b { font-size: 14px; }
.portrait-dhi { width: 38%; transform: rotate(4deg) translateY(30px); }
.star-tag { position: absolute; top: -17px; left: -14px; padding: 7px 13px; border-radius: 999px; background: var(--ruby); border: 1px solid var(--gold); color: var(--cream); font: 800 10px "DM Sans", sans-serif; letter-spacing: .06em; transform: rotate(-6deg); white-space: nowrap; }
.round-stamp { position: absolute; z-index: 2; right: 4%; top: 3%; display: flex; width: 88px; height: 88px; flex-direction: column; justify-content: center; align-items: center; border: 3px solid var(--gold); border-radius: 50%; background: var(--ruby); color: var(--cream); text-align: center; font-size: 15px; font-weight: 900; line-height: 1.1; transform: rotate(14deg); }
.round-stamp span { font-size: 10px; letter-spacing: .08em; }
.art-sparkle { position: absolute; z-index: 2; color: var(--gold); font-size: 38px; }
.sparkle-one { left: 3%; top: 13%; }.sparkle-two { right: 3%; bottom: 14%; color: #f6b3c8; }
.art-caption { position: relative; z-index: 2; margin-top: 56px; text-align: center; padding: 14px 22px; border-radius: 7px; background: var(--gold); color: var(--wine); transform: rotate(-3deg); box-shadow: 0 6px 0 #1a051a; }
.art-caption span { display: block; margin-bottom: 5px; font-size: 9px; font-weight: 900; letter-spacing: .17em; }
.art-caption strong br { display: none; }
.art-caption strong { font: 700 18px/1.1 "Fraunces", Georgia, serif; }

.event-bar { position: relative; max-width: 1060px; margin: 0 auto; padding-bottom: 12px; display: grid; grid-template-columns: 1fr 1fr 1.1fr; border-top: 1px solid #f2c96d55; }
.event-bar > div, .event-place { display: flex; align-items: center; gap: 13px; padding: 24px 18px; }
.event-bar > div { border-right: 1px solid #f2c96d33; }
.event-bar > div:first-child { padding-left: 0; }
.event-place { justify-content: space-between; transition: background .2s; border-radius: 0 0 14px 14px; }
.event-place:hover { background: #ffffff12; }
.event-icon { color: var(--gold); font-size: 27px; }
.event-bar small { display: block; margin-bottom: 5px; color: #d9a8c6; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.event-bar strong { font-size: 13px; }
.event-arrow { color: var(--gold); font-size: 22px; }
.party-ribbon { display: flex; justify-content: center; gap: 34px; overflow: hidden; padding: 15px 20px; background: linear-gradient(90deg, var(--ruby), var(--purple)); color: var(--gold); white-space: nowrap; font-size: 11px; font-weight: 800; letter-spacing: .14em; }

.invite { padding: 100px 5%; }
.invite-card { position: relative; max-width: 880px; margin: auto; padding: 70px 60px 60px; border-radius: 30px; background: var(--cream); text-align: center; box-shadow: 0 25px 60px #6c3a9a26; }
.invite-card::before { content: ""; position: absolute; inset: 12px; border: 1px solid #d3a5bf; border-radius: 20px; pointer-events: none; }
.section-kicker { color: var(--ruby); }
.section-kicker span { color: var(--gold); font-size: 12px; padding: 0 4px; }
.invite-card h2 { margin: 18px 0 18px; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.12; color: var(--wine); }
h2 em { color: var(--ruby); }
.invite-card > p { max-width: 520px; margin: 0 auto 32px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.invite-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 34px; padding: 0; list-style: none; }
.invite-list li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px; border-radius: 20px; background: linear-gradient(160deg, var(--blush), var(--lilac)); }
.invite-list li span { margin-bottom: 6px; font-size: 30px; }
.invite-list strong { font: 700 18px "Fraunces", Georgia, serif; color: var(--wine); }
.invite-list small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.inline-link { padding-bottom: 5px; border-bottom: 1px solid var(--ruby); color: var(--ruby); font-size: 13px; font-weight: 800; transition: color .2s; }
.inline-link:hover { color: var(--purple); }

.cheers-section { position: relative; overflow: hidden; padding: 85px 0 95px; background: radial-gradient(circle at 12% 15%, #6b2a7a 0, transparent 40%), radial-gradient(circle at 90% 90%, #8f1d3f 0, transparent 42%), #2a0d27; }
.cheers-section::before, .cheers-section::after { content: ""; position: absolute; border: 1px solid #b46bc566; border-radius: 50%; pointer-events: none; }
.cheers-section::before { width: 380px; height: 380px; right: -120px; top: -140px; }
.cheers-section::after { width: 260px; height: 260px; left: -90px; bottom: -110px; border-color: #e0657f55; }
.cheers-card { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 15px; overflow: hidden; border: 1px solid #ffffff26; border-radius: 34px; background: linear-gradient(135deg, #7d1a3b 0%, #5a1f5e 55%, #3d1a6b 100%); box-shadow: 0 25px 60px #0007; color: #fff3ef; }
.cheers-illustration { position: relative; padding: 26px; }
.cheers-illustration img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 6px solid #f6d9a0; border-radius: 26px; box-shadow: 0 18px 0 #1d0a1d66; transform: rotate(-2.5deg); }
.cheers-copy { padding: 50px 55px 50px 25px; }
.cheers-copy .section-kicker { color: #f6a9c0; }
.cheers-copy h2 { margin: 17px 0 18px; font-size: clamp(34px, 4vw, 50px); line-height: 1.1; color: #fff3ef; }
.cheers-copy h2 em { color: var(--gold); }
.cheers-copy p { max-width: 470px; margin-bottom: 26px; color: #ecd7e6; font-size: 15px; line-height: 1.8; }
.optional-note { margin-top: 17px; color: #dcbfd8; font-size: 11px; font-weight: 700; }.optional-note span { margin-right: 4px; color: #ff8aa7; }

footer { padding: 28px 20px; background: #230a21; text-align: center; }
footer > span { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--gold); }

.contribution-dialog { width: min(460px, calc(100% - 30px)); max-height: calc(100% - 30px); padding: 0; border: 0; border-radius: 26px; background: var(--cream); color: var(--ink); box-shadow: 0 15px 50px #0005; }
.contribution-dialog::backdrop { background: rgba(34, 8, 34, .75); }
.dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 27px 28px; border-bottom: 1px solid #ecd3de; }
.dialog-header h2 { margin: 8px 0 0; font-size: 27px; color: var(--wine); }
.icon-button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--blush); color: var(--ruby); font-size: 30px; line-height: 1; }
.dialog-content { padding: 24px 28px 28px; }
.dialog-content > p, .pix-result p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.dialog-content label { font-size: 12px; font-weight: 800; }
.amount-input { display: flex; align-items: center; gap: 7px; height: 52px; margin-top: 8px; padding: 0 14px; border: 1px solid #cfa8c3; border-radius: 12px; background: white; font-weight: 800; }
.amount-input input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.dialog-content .amount-hint, .dialog-content .payment-external { margin: 8px 0 15px; color: #8c6c86; font-size: 11px; }
.payment-button { width: 100%; margin-top: 10px; }
#contribution-form:not([hidden]) { margin-top: 22px; padding-top: 20px; border-top: 1px solid #ecd3de; }
.pix-result { margin-top: 20px; }
.pix-result textarea { display: block; width: 100%; margin: 8px 0; padding: 10px; resize: vertical; border: 1px solid #e0c4d4; border-radius: 10px; color: var(--ink); font-size: 11px; overflow-wrap: anywhere; }
.pix-result p { font-size: 11px; }
.dialog-content .payment-status { color: #a3204f; overflow-wrap: anywhere; }
.dialog-content .payment-disclaimer { margin: 20px 0 0; padding-top: 15px; border-top: 1px solid #ecd3de; color: #8c6c86; font-size: 11px; }

@keyframes appear { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

@media (max-width: 1250px) {
  .section-wrap { margin-left: 5%; margin-right: 5%; }
  .invite .section-wrap { margin-left: auto; margin-right: auto; }
  .event-bar { margin-left: 6%; margin-right: 6%; }
}
@media (max-width: 850px) {
  .hero-inner { grid-template-columns: 1fr; gap: 20px; padding-top: 70px; }
  .hero-art { max-width: 470px; min-height: 430px; }
  .event-bar { grid-template-columns: 1fr 1fr; }
  .event-bar > div:nth-child(2) { border-right: 0; }
  .event-place { grid-column: 1 / -1; padding-left: 0; border-top: 1px solid #f2c96d33; }
  .invite { padding: 80px 5%; }
  .invite-card { padding: 60px 35px 50px; }
  .invite-list { grid-template-columns: repeat(2, 1fr); }
  .cheers-card { grid-template-columns: 1fr; }
  .cheers-illustration { max-width: 480px; margin: auto; padding-bottom: 0; }
  .cheers-copy { padding: 30px 30px 45px; }
}
@media (max-width: 520px) {
  .top-strip { font-size: 8px; letter-spacing: .08em; }
  .hero::after { inset: 8px; border-radius: 18px; }
  .site-header { height: 70px; }.brand { font-size: 18px; }.brand-icon { font-size: 26px; }.brand small { font-size: 7px; }
  nav { display: none; }.header-link { padding: 10px 12px; font-size: 11px; }.header-link span { margin-left: 3px; }
  .hero-inner { padding: 55px 7% 30px; }.hero-names { font-size: 21px; }.hero-art { min-height: 360px; max-width: 350px; }
  .portrait { padding: 6px 6px 9px; }.portrait span { padding: 7px 3px 0; font-size: 14px; }.portrait span b { font-size: 10px; }
  .portrait-jess { width: 53%; margin-left: 7%; transform: rotate(-3deg) translateY(-6px); }.portrait-jess span { font-size: 17px; }.portrait-dhi { width: 38%; transform: rotate(4deg) translateY(22px); }.star-tag { font-size: 8px; padding: 5px 9px; top: -14px; }
  .round-stamp { width: 70px; height: 70px; right: 0; }.round-stamp span { font-size: 8px; }.art-caption { padding: 10px 13px; }.art-caption strong { font-size: 14px; }
  .sparkle-one { left: 2%; top: 4%; font-size: 30px; }.sparkle-two { display: none; }
  .hero-art { min-height: 0; padding: 34px 0 6px; }.art-caption { margin-top: 46px; }
  .event-bar { margin: 0 7%; }.event-bar > div, .event-place { padding: 18px 9px; }.event-bar strong { font-size: 12px; }
  .party-ribbon { flex-wrap: wrap; gap: 8px 14px; padding: 13px 16px; white-space: normal; text-align: center; font-size: 9px; }
  .invite { padding: 40px 12px; }.invite-card { padding: 42px 16px 34px; border-radius: 24px; }.invite-card::before { inset: 7px; border-radius: 18px; }
  .invite-card h2 { font-size: 30px; }.invite-card > p { font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
  .invite-list { gap: 10px; margin-bottom: 28px; }.invite-list li { padding: 16px 8px; border-radius: 16px; }
  .invite-list li span { margin-bottom: 2px; font-size: 26px; }.invite-list strong { font-size: 16px; }.invite-list small { font-size: 11.5px; }
  .inline-link, .hero-map { display: inline-block; padding: 10px 0 5px; }
  .cheers-section .section-wrap { margin-left: 12px; margin-right: 12px; }
  .cheers-copy h2 { font-size: 32px; }.cheers-copy p { font-size: 14px; line-height: 1.7; }
  .contribution-button { width: 100%; }
  .contribution-dialog { width: 100%; max-width: none; max-height: 92vh; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .dialog-header { padding: 22px 20px; }.dialog-content { padding: 20px 20px 28px; }.dialog-header h2 { font-size: 24px; }
  .cheers-section { padding: 55px 0 65px; }.cheers-card { border-radius: 26px; }
  .cheers-illustration { padding: 20px 20px 0; }.cheers-copy { padding: 26px 24px 35px; }}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
