:root {
  --wine: #6f2732;
  --wine-dark: #471720;
  --pumpkin: #c96f37;
  --cream: #fbf6ec;
  --paper: #fffdf8;
  --ink: #2d2824;
  --muted: #746c64;
  --sage: #7e8b6a;
  --line: #e8dccb;
  --shadow: 0 24px 70px rgba(67, 35, 26, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", system-ui, sans-serif; line-height: 1.5; }
button, input { font: inherit; }
a { color: inherit; }

.site-header { position: absolute; z-index: 5; top: 0; left: 0; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 24px clamp(24px, 5vw, 76px); color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.65); border-radius: 50%; font-family: "Playfair Display", serif; font-weight: 700; }
.brand-copy { display: grid; line-height: 1.05; text-transform: uppercase; letter-spacing: .09em; }
.brand-copy strong { font-size: .78rem; }
.brand-copy small { font-size: .57rem; opacity: .76; margin-top: 4px; }
.header-link { padding: 9px 18px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

.hero { position: relative; min-height: 720px; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: center; gap: clamp(36px, 7vw, 110px); padding: 130px clamp(24px, 8vw, 130px) 90px; color: #fff; background: radial-gradient(circle at 78% 15%, rgba(222,141,75,.3), transparent 28%), linear-gradient(135deg, #521d29 0%, #7d3035 53%, #9b4d36 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) .7px, transparent .7px); background-size: 8px 8px; opacity: .35; pointer-events: none; }
.hero-copy, .date-card { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 12px; color: var(--pumpkin); font-size: .73rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.hero .eyebrow { color: #f5c08d; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; line-height: 1.05; }
h1 { max-width: 720px; margin: 0; font-size: clamp(4rem, 8.4vw, 8rem); font-weight: 700; letter-spacing: -.045em; }
h1 span { display: block; margin-bottom: 3px; font-family: "DM Sans", sans-serif; font-size: .16em; letter-spacing: .24em; text-transform: uppercase; }
.hero-intro { max-width: 590px; margin: 28px 0 0; color: rgba(255,255,255,.8); font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 36px; }
.button { min-height: 52px; border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 25px; cursor: pointer; font-weight: 700; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, .text-link:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #e7a465; outline-offset: 3px; }
.button-primary { color: #fff; background: var(--pumpkin); box-shadow: 0 12px 28px rgba(53,25,16,.23); }
.button-primary:hover { background: #b85f2d; }
.text-link { color: rgba(255,255,255,.85); font-weight: 600; text-underline-offset: 5px; }
.date-card { justify-self: end; width: min(100%, 380px); padding: 44px 38px; border: 1px solid rgba(255,255,255,.26); border-radius: 190px 190px 28px 28px; text-align: center; background: rgba(48,16,23,.28); box-shadow: inset 0 1px 0 rgba(255,255,255,.17), 0 25px 50px rgba(40,12,15,.2); backdrop-filter: blur(10px); }
.date-card p { margin: 0; }
.date-month { font-family: "Playfair Display", serif; font-size: 1.4rem; font-style: italic; }
.date-number { margin: -5px 0 -9px !important; font-family: "Playfair Display", serif; font-size: 8rem; font-weight: 700; line-height: 1; }
.date-year { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.date-rule { display: block; width: 54px; height: 1px; margin: 27px auto 22px; background: rgba(255,255,255,.55); }
.date-time { font-weight: 700; }
.date-place { margin-top: 6px !important; color: rgba(255,255,255,.74); font-size: .9rem; }
.leaf { position: absolute; z-index: 0; width: 160px; height: 72px; border-radius: 100% 0 100% 0; opacity: .18; transform: rotate(30deg); background: #f5c08d; }
.leaf::after { content: ""; position: absolute; left: 14%; top: 49%; width: 80%; height: 1px; transform: rotate(-22deg); background: rgba(255,255,255,.6); }
.leaf-one { left: -55px; bottom: 95px; transform: rotate(12deg); }
.leaf-two { right: 7%; top: 95px; width: 95px; height: 45px; transform: rotate(155deg); }

.details { padding: 96px clamp(24px, 8vw, 130px); background: var(--paper); }
.section-heading { max-width: 650px; margin-bottom: 38px; }
h2 { margin: 0; color: var(--wine-dark); font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.035em; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.detail-card { display: flex; align-items: flex-start; gap: 17px; min-height: 142px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.detail-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--wine); background: #f5e6dd; font-size: 1.1rem; }
.detail-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.detail-card .detail-label { margin-bottom: 7px; color: var(--wine-dark); font-weight: 700; }

.rsvp-section { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(490px,1.1fr); gap: clamp(38px, 8vw, 110px); align-items: start; padding: 110px clamp(24px, 8vw, 130px) 120px; background: linear-gradient(180deg, #f5ead9 0%, #fbf6ec 100%); }
.rsvp-intro { position: sticky; top: 50px; padding-top: 30px; }
.rsvp-intro p:last-child { max-width: 440px; margin-top: 21px; color: var(--muted); }
.rsvp-shell { width: 100%; min-height: 570px; padding: clamp(25px, 4vw, 46px); border: 1px solid rgba(113,69,45,.12); border-radius: 26px; background: rgba(255,255,255,.86); box-shadow: var(--shadow); }
.progress { display: flex; align-items: center; max-width: 290px; margin: 0 auto 40px; }
.progress-step { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; color: #9b9187; background: #fff; font-size: .75rem; font-weight: 700; transition: .2s ease; }
.progress-step.is-active { border-color: var(--wine); color: #fff; background: var(--wine); }
.progress-line { flex: 1; height: 1px; background: var(--line); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend, .group-label { margin-bottom: 12px; color: var(--wine-dark); font-weight: 700; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-card { position: relative; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card span { display: flex; min-height: 88px; flex-direction: column; justify-content: center; padding: 17px 17px 17px 49px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: .18s ease; }
.choice-card span::before { content: ""; position: absolute; left: 18px; top: 50%; width: 17px; height: 17px; border: 2px solid #b7aa9d; border-radius: 50%; transform: translateY(-50%); }
.choice-card input:checked + span { border-color: var(--wine); box-shadow: 0 0 0 2px rgba(111,39,50,.08); background: #fffaf7; }
.choice-card input:checked + span::before { border: 5px solid var(--wine); }
.choice-card input:focus-visible + span { outline: 3px solid #e7a465; outline-offset: 3px; }
.choice-card strong { color: var(--wine-dark); font-size: .94rem; }
.choice-card small { margin-top: 4px; color: var(--muted); font-size: .75rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 25px; }
.field { display: grid; gap: 7px; color: var(--wine-dark); font-size: .86rem; font-weight: 700; }
.field input { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; color: var(--ink); background: #fff; }
.field input::placeholder { color: #aba197; }
.field input.is-invalid { border-color: #ae3039; background: #fffafa; }
.website-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.error { min-height: 16px; color: #a72b34; font-size: .72rem; font-weight: 600; }
.guest-counts { margin-top: 14px; }
.counter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.counter-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.counter-card > div:first-child { display: grid; }
.counter-card strong { color: var(--wine-dark); font-size: .9rem; }
.counter-card small { color: var(--muted); font-size: .7rem; }
.counter { display: flex; align-items: center; gap: 8px; }
.counter button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; color: var(--wine); background: var(--cream); cursor: pointer; font-size: 1rem; }
.counter output { width: 22px; text-align: center; font-weight: 700; }
.total-row { display: flex; justify-content: space-between; margin-top: 14px; padding: 13px 3px 3px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.total-row strong { color: var(--wine-dark); }
.button-wide { width: 100%; margin-top: 24px; }
.privacy-note { margin: 12px 0 0; color: #8a8178; font-size: .7rem; text-align: center; }
.is-hidden { display: none !important; }
.step-kicker { margin: 0 0 5px; color: var(--pumpkin); font-size: .73rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.form-step h3 { margin: 0; color: var(--wine-dark); font-size: clamp(2rem,4vw,3rem); }
.review-list { margin: 30px 0; border-top: 1px solid var(--line); }
.review-list div { display: grid; grid-template-columns: 120px 1fr; gap: 15px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.review-list dt { color: var(--muted); }
.review-list dd { margin: 0; color: var(--wine-dark); font-weight: 700; text-align: right; }
.review-actions { display: grid; grid-template-columns: .8fr 1.4fr; gap: 12px; }
.button-secondary { border: 1px solid var(--line); color: var(--wine); background: #fff; box-shadow: none; }
.confirmation { padding: 36px 0 15px; text-align: center; }
.confirmation-mark { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: var(--sage); font-size: 1.6rem; }
.confirmation > p:not(.step-kicker) { max-width: 480px; margin: 18px auto; color: var(--muted); }
.confirmation-summary { max-width: 420px; margin: 25px auto 20px; padding: 17px; border-radius: 13px; color: var(--wine-dark); background: #f6eadc; font-weight: 700; }
.submit-error { grid-column: 1 / -1; min-height: 20px; margin: 0; color: #a72b34; font-size: .78rem; font-weight: 700; text-align: center; }
.text-button { border: 0; padding: 8px; color: var(--wine); background: none; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
footer { padding: 28px 24px; color: rgba(255,255,255,.72); background: var(--wine-dark); text-align: center; font-size: .78rem; letter-spacing: .05em; }
footer p { margin: 0; }
footer span { margin: 0 8px; color: #d59a6e; }

@media (max-width: 850px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 140px; }
  .date-card { justify-self: start; width: min(100%, 460px); border-radius: 24px; }
  .date-number { font-size: 6rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .rsvp-section { grid-template-columns: 1fr; }
  .rsvp-intro { position: static; padding-top: 0; }
}

@media (max-width: 560px) {
  .site-header { padding: 18px 20px; }
  .brand-mark { width: 36px; height: 36px; font-size: .9rem; }
  .brand-copy strong { font-size: .7rem; }
  .header-link { padding: 8px 15px; }
  .hero { gap: 42px; padding: 125px 20px 56px; }
  h1 { font-size: clamp(3.65rem, 19vw, 5.3rem); }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 17px; }
  .text-link { text-align: center; }
  .date-card { padding: 31px 24px; }
  .details, .rsvp-section { padding: 72px 20px; }
  .details { padding-bottom: 78px; }
  .detail-card { min-height: 124px; }
  .rsvp-section { gap: 28px; }
  .rsvp-shell { min-height: 0; padding: 24px 18px; border-radius: 20px; }
  .progress { margin-bottom: 30px; }
  .choice-row, .field-row, .counter-grid { grid-template-columns: 1fr; }
  .choice-card span { min-height: 76px; }
  .field-row { gap: 4px; }
  .review-list div { grid-template-columns: 92px 1fr; }
  .review-actions { grid-template-columns: 1fr; }
  .review-actions .button-secondary { order: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
