:root {
  --forest: #39136d;
  --dark: #250e4b;
  --ink: #351058;
  --paper: #fff8ec;
  --muted: #e5d8f7;
  --gold: #ffdc52;
  --hot: #ff4d9a;
  --coral: #ff8067; /* confetti accent */
  --sky: #71e6ff;
  --line: #ffffff3d;
  --serif: Georgia, 'Times New Roman', serif;
  color-scheme: dark;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; }
body { margin: 0; background: radial-gradient(circle at 12% 5%, #7947bd 0, transparent 26rem), radial-gradient(circle at 90% 45%, #ff47852a 0, transparent 30rem), var(--forest); color: var(--paper); font: 16px/1.55 Arial, Helvetica, sans-serif; }
a { color: inherit; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
button:disabled { cursor: wait; opacity: .65; }
[hidden] { display: none !important; }

.page-wrap { width: min(1220px, calc(100% - 96px)); margin: auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 96px; border-bottom: 1px dashed var(--line); }
.wordmark { color: var(--gold); font: italic 38px var(--serif); text-decoration: none; transform: rotate(-8deg); }
.masthead > span { color: var(--muted); font-size: 12px; letter-spacing: .19em; }
.nav-rsvp { font-size: 14px; font-weight: 700; text-underline-offset: 6px; }

.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; min-height: 635px; padding: 42px 0 60px; }
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .16em; line-height: 1.65; margin: 0 0 20px; }
.hero h1 { font: normal clamp(120px, 13.5vw, 186px)/.84 var(--serif); letter-spacing: -.08em; margin: 26px 0 18px; }
.period { color: var(--hot); }
.full-name { color: var(--muted); font-size: 12px; letter-spacing: .28em; margin: 0 0 30px; padding-left: 5px; }
.hero-line { font: normal clamp(28px, 3.1vw, 42px)/1.13 var(--serif); letter-spacing: -.02em; margin: 0 0 18px; }
.hero-line em, .rsvp-intro h2 em { color: var(--gold); font-weight: normal; }
.hero-note { color: var(--muted); font-size: 15px; margin: 0 0 28px; }
.button { align-items: center; border: 1px solid transparent; border-radius: 999px; display: inline-flex; font-size: 15px; font-weight: 700; gap: 34px; justify-content: space-between; line-height: 1.4; min-height: 54px; padding: 14px 23px; text-decoration: none; transition: background .2s, box-shadow .2s, transform .2s; }
.button:hover { box-shadow: 0 8px 0 #1607255c; transform: translateY(-3px) rotate(-1deg); }
.button span { font-size: 22px; font-weight: 400; line-height: 1; }
.button-gold { background: var(--gold); color: var(--dark); }
.button-gold:hover { background: #ffe57e; }
.button-dark { background: var(--forest); color: var(--paper); width: 100%; }
.button-dark:hover { background: #54258e; }

.hero-visual { align-self: stretch; background: linear-gradient(135deg, #ff558f 0 41%, #ff785f 41% 55%, #6ce4fb 55% 100%); border-radius: 38px 12px 42px 18px; box-shadow: 13px 15px 0 #220a4659; isolation: isolate; min-height: 525px; overflow: hidden; position: relative; }
.hero-visual::after { background: linear-gradient(0deg, #19072a38, transparent 31%); content: ''; inset: 0; pointer-events: none; position: absolute; z-index: 1; }
.party-art { inset: 0; overflow: hidden; position: absolute; }
.party-art::before { background: repeating-linear-gradient(-21deg, #f7fbff 0 15px, #ffdc52 15px 30px, #9045c0 30px 45px); content: ''; height: 56%; left: -13%; opacity: .98; position: absolute; top: 34%; transform: rotate(-8deg); width: 120%; }
.party-art::after { border: 2px dashed #fff8ecae; border-radius: 29px 8px 31px 14px; content: ''; inset: 18px; position: absolute; }
.streamer { border: 18px solid var(--gold); border-bottom: 0; border-left: 0; border-radius: 0 100% 0 0; height: 80px; position: absolute; transform: rotate(31deg); width: 170px; z-index: 1; }
.streamer-one { left: -37px; top: -18px; }
.streamer-two { border-color: var(--forest); bottom: -8px; right: -32px; transform: rotate(210deg); }
.confetti { background: var(--forest); border-radius: 99px; display: block; height: 39px; position: absolute; transform: rotate(33deg); width: 15px; z-index: 2; }
.confetti-one { background: var(--sky); left: 20%; top: 11%; transform: rotate(-39deg); }
.confetti-two { background: var(--gold); right: 15%; top: 17%; transform: rotate(28deg); }
.confetti-three { background: var(--hot); left: 9%; top: 62%; transform: rotate(-34deg); }
.confetti-four { background: #fff8ec; right: 12%; top: 69%; transform: rotate(43deg); }
.confetti-five { background: var(--forest); height: 28px; right: 7%; top: 42%; transform: rotate(-42deg); width: 12px; }
.party-star { color: var(--gold); display: block; font-size: 47px; line-height: 1; position: absolute; text-shadow: 2px 3px 0 #39136d; z-index: 2; }
.star-one { right: 32%; top: 8%; transform: rotate(12deg); }
.star-two { color: #fff8ec; font-size: 28px; left: 18%; top: 52%; transform: rotate(-22deg); }
.star-three { bottom: 12%; color: var(--hot); font-size: 36px; right: 30%; transform: rotate(20deg); }
.party-face { color: #fff8ec; font: normal 104px/.8 Arial, Helvetica, sans-serif; position: absolute; right: 15%; text-shadow: 5px 5px 0 var(--forest); top: 27%; transform: rotate(9deg); z-index: 2; }
.party-word { color: var(--forest); font: 900 clamp(64px, 9vw, 112px)/.8 Arial, Helvetica, sans-serif; left: 50%; letter-spacing: -.09em; position: absolute; text-shadow: 4px 4px 0 #fff8ec, -4px -4px 0 #fff8ec; top: 49%; transform: translate(-50%, -50%) rotate(-10deg); white-space: nowrap; z-index: 2; }
.date-stamp { align-items: center; background: var(--gold); border-radius: 44% 56% 51% 49% / 55% 43% 57% 45%; bottom: 58px; box-shadow: 0 7px 0 #240f4d66; color: var(--dark); display: flex; flex-direction: column; height: 142px; justify-content: center; left: 28px; position: absolute; transform: rotate(-10deg); width: 142px; z-index: 3; }
.date-stamp > span { font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.date-stamp strong { font: normal 46px/1.2 var(--serif); letter-spacing: -.06em; }
.date-stamp strong span { font-size: 30px; padding: 0 3px; }
.image-caption { bottom: 20px; color: var(--dark); font-size: 10px; font-weight: 800; letter-spacing: .13em; position: absolute; right: 22px; text-align: right; z-index: 3; }

.details { border-bottom: 1px dashed var(--line); border-top: 1px dashed var(--line); display: grid; gap: 30px; grid-template-columns: 1fr 1.2fr 1fr; padding: 33px 0; }
.details > div + div { border-left: 1px dashed var(--line); padding-left: 33px; }
.details .eyebrow { margin-bottom: 10px; }
.details h2 { font: normal 24px/1.2 var(--serif); margin: 0 0 8px; }
.details p:not(.eyebrow) { color: var(--muted); font-size: 15px; margin: 0 0 5px; }
.small-note { color: var(--muted); font-size: 12px; }
.text-link { align-items: center; display: inline-flex; font-size: 14px; gap: 8px; margin-top: 10px; text-underline-offset: 5px; }
.text-link svg { fill: none; stroke: currentColor; stroke-width: 1.6; }

.rsvp-section { align-items: start; display: grid; gap: 70px; grid-template-columns: 1fr 1fr; padding: 85px 0 88px; }
.rsvp-intro h2 { font: normal clamp(36px, 4.5vw, 60px)/1.09 var(--serif); letter-spacing: -.035em; margin: 0 0 24px; }
.rsvp-intro > p:not(.eyebrow) { color: var(--muted); font-size: 16px; line-height: 1.8; }
.rsvp-ornament { color: var(--hot); font: italic 110px var(--serif); line-height: 1; margin: 28px 0 0; opacity: .8; }
.rsvp-ornament span { color: var(--gold); display: inline-block; font: normal 50px Arial; margin: 8px 0 0 9px; vertical-align: top; }
.form-card { background: var(--paper); border-radius: 22px 4px 22px 4px; box-shadow: 10px 10px 0 #200a4252; color: var(--ink); color-scheme: light; padding: 35px; }
.form-card h3 { font: normal 29px/1.2 var(--serif); letter-spacing: -.02em; margin: 0 0 26px; }
.form-card label:not(.guest-choice), legend { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.form-card input[type=text], .form-card input[type=password], .form-card input[type=url] { background: #fffefa; border: 1px solid #ad93c4; border-radius: 10px; color: var(--ink); font-size: 16px; height: 52px; padding: 12px 14px; width: 100%; }
.form-card input::placeholder { color: #79688a; }
.form-card input[aria-invalid=true] { border-color: #a22d24; }
.form-card fieldset { border: 0; margin: 24px 0; min-width: 0; padding: 0; }
.guest-options { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.guest-choice { align-items: center; border: 1px solid #b89dcc; border-radius: 12px; cursor: pointer; display: flex; gap: 10px; padding: 14px 12px; position: relative; }
.guest-choice:has(input:checked) { background: #ffe8f3; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.guest-choice input { accent-color: var(--ink); flex: none; height: 17px; margin: 0; width: 17px; }
.guest-choice strong, .guest-choice small { display: block; }
.guest-choice strong { font-size: 14px; }
.guest-choice small { color: #634f72; font-size: 12px; margin-top: 2px; }
.privacy-note { color: #634f72; font-size: 12px; line-height: 1.6; margin: 21px 0; }
.form-footnote { color: #715f7e; font-size: 12px; line-height: 1.6; margin: 15px 0 0; }
.form-error, .notice { background: #f8e3d9; border-radius: 10px; color: #813929; font-size: 14px; line-height: 1.5; padding: 12px 14px; }
.notice { background: #fff0bb; color: #684902; margin-bottom: 20px; }
.honey { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }
.success-panel { padding: 22px 0; text-align: center; }
.success-mark { align-items: center; background: #ffe1ee; border-radius: 50%; display: flex; font-size: 28px; height: 60px; justify-content: center; margin: 0 auto 26px; width: 60px; }
.success-panel .eyebrow { color: #7a3c67; font-size: 11px; }
.success-panel h3 { font-size: 34px; margin-bottom: 18px; }
.success-panel p { font-size: 16px; }
.success-date { color: #665575; margin: 28px 0; }
.text-button { background: none; border: 0; border-bottom: 1px solid; color: var(--ink); font-size: 14px; padding: 5px 0; }
.success-panel:focus { outline: none; }

footer { align-items: center; border-top: 1px dashed var(--line); color: var(--muted); display: flex; gap: 20px; justify-content: space-between; padding: 28px 0 40px; }
.footer-signature { color: var(--gold); font: italic 32px var(--serif); }
footer p { font-size: 14px; }
footer > span:last-child { font-size: 12px; letter-spacing: .14em; }
.skip-link { background: var(--gold); color: var(--dark); left: 15px; padding: 14px; position: fixed; top: -100px; z-index: 10; }
.skip-link:focus { top: 10px; }

.admin-wrap { margin: 0 auto; padding: 40px 0; width: min(1060px, calc(100% - 40px)); }
.admin-title { font: normal 42px var(--serif); }
.admin-login { margin: 55px auto; max-width: 440px; }
.admin-login label { margin-top: 18px; }
.admin-login .button { margin-top: 22px; }
.admin-tools { align-items: center; display: flex; flex-wrap: wrap; gap: 18px; margin: 25px 0; }
.admin-metrics { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin: 30px 0; }
.metric { border: 1px dashed var(--line); padding: 20px; }
.metric strong { color: var(--gold); display: block; font: normal 40px var(--serif); }
.metric span { font-size: 14px; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; font-size: 14px; text-align: left; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 15px 12px; vertical-align: top; }
th { color: var(--gold); }
.admin-settings { margin: 35px 0; }
.admin-settings .form-card { max-width: 750px; }
.admin-settings .button { margin-top: 18px; }
.danger-link { background: none; border: 1px solid #ffffff60; border-radius: 999px; color: #ffd3e5; font-size: 13px; padding: 8px 13px; }
.admin-notice { border: 1px solid var(--gold); color: var(--gold); padding: 15px; }
.muted, .admin-empty { color: var(--muted); }
.admin-empty { padding: 40px 0; }

@media (min-width: 1450px) { .hero { min-height: 685px; } .hero-visual { min-height: 560px; } }
@media (max-width: 950px) { .page-wrap { width: calc(100% - 56px); } .hero { gap: 24px; } .hero-visual { min-height: 490px; } .hero h1 { font-size: 140px; } .details { gap: 20px; } .details > div + div { padding-left: 20px; } .details h2 { font-size: 22px; } .rsvp-section { gap: 35px; } .form-card { padding: 26px; } .guest-choice { gap: 7px; padding: 12px 9px; } }
@media (max-width: 680px) { .page-wrap { width: calc(100% - 40px); } .masthead { gap: 12px; min-height: 78px; } .masthead > span { font-size: 10px; letter-spacing: .1em; } .wordmark { font-size: 30px; } .nav-rsvp { font-size: 13px; } .hero { gap: 35px; grid-template-columns: 1fr; padding: 38px 0; } .hero-copy { text-align: center; } .hero .eyebrow { font-size: 10px; letter-spacing: .13em; margin: 0; } .hero h1 { font-size: 148px; margin: 29px 0 18px; } .full-name { font-size: 11px; margin-bottom: 25px; } .hero-line { font-size: 35px; line-height: 1.14; } .hero-line br:nth-of-type(2) { display: none; } .hero-note { font-size: 14px; margin-bottom: 24px; } .hero-visual { aspect-ratio: 1.08; border-radius: 28px 10px 30px 12px; margin: auto; max-width: 450px; min-height: 340px; width: 100%; } .date-stamp { bottom: 51px; height: 120px; left: 20px; width: 120px; } .date-stamp strong { font-size: 40px; } .date-stamp > span { font-size: 9px; } .image-caption { bottom: 18px; font-size: 9px; right: 18px; } .party-face { font-size: 72px; } .party-word { font-size: 75px; } .details { gap: 0; grid-template-columns: 1fr; padding: 0; } .details > div { padding: 24px 0; } .details > div + div { border-left: 0; border-top: 1px dashed var(--line); padding-left: 0; } .details h2 { font-size: 25px; } .details .eyebrow { font-size: 11px; margin-bottom: 8px; } .rsvp-section { gap: 27px; grid-template-columns: 1fr; padding: 46px 0; } .rsvp-intro h2 { font-size: 43px; margin-bottom: 18px; } .rsvp-intro > p:not(.eyebrow) { font-size: 15px; } .rsvp-ornament { display: none; } .rsvp-intro .eyebrow { font-size: 11px; margin-bottom: 15px; } .form-card { padding: 26px 22px; } .form-card h3 { font-size: 27px; } .guest-choice { gap: 8px; padding: 13px 9px; } .guest-choice strong { font-size: 13px; } footer { flex-wrap: wrap; gap: 12px; padding: 26px 0; } footer p { font-size: 13px; } footer > span:last-child { font-size: 10px; } .admin-metrics { gap: 8px; } .metric { padding: 12px; } .metric span { font-size: 12px; } .admin-title { font-size: 32px; } .admin-wrap { padding-top: 20px; } }
@media (max-width: 370px) { .masthead > span { display: none; } .hero h1 { font-size: 128px; } .form-card { padding: 23px 17px; } .guest-choice strong { font-size: 12px; } .guest-options { gap: 7px; } .page-wrap { width: calc(100% - 32px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
