:root {
  --ink: #0f1512;
  --ink-2: #151d19;
  --line: rgba(200, 167, 107, .28);
  --cream: #f4ece0;
  --cream-soft: rgba(244, 236, 224, .74);
  --cream-faint: rgba(244, 236, 224, .5);
  --gold: #c8a76b;
  --gold-bright: #d9bc85;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink); color: var(--cream);
  font-family: var(--sans); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-bright); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.page { max-width: 640px; margin: 0 auto; padding-bottom: 72px; }

/* ---------- hero ---------- */
.hero { position: relative; aspect-ratio: 1200 / 1080; overflow: hidden; }
.hero img {
  display: block; width: 100%; height: auto;
  filter: saturate(.8) contrast(1.05) brightness(.92) sepia(.06);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,21,18,0) 52%, rgba(15,21,18,.7) 78%, var(--ink) 100%);
}
@media (min-width: 700px) {
  .page { padding-top: 40px; }
  .hero { border-radius: 4px 4px 0 0; }
}

/* ---------- intro ---------- */
.intro { text-align: center; padding: 0 24px; margin-top: -64px; position: relative; }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase;
  color: var(--gold); padding-left: .32em;
}
.name {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(38px, 10.5vw, 60px); line-height: 1.02; margin-top: 12px;
}
.name em { font-style: italic; font-weight: 400; color: var(--gold); white-space: nowrap; }
.years { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--cream-soft); margin-top: 8px; }
.years em { font-weight: 500; color: var(--gold); }

.rule { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 28px auto; }
.rule span { display: block; height: 1px; width: 90px; background: linear-gradient(to right, transparent, var(--gold)); }
.rule span:last-child { background: linear-gradient(to left, transparent, var(--gold)); }
.rule i { display: block; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

.when { font-family: var(--serif); font-weight: 600; font-size: clamp(27px, 7vw, 36px); line-height: 1.1; }
.time { font-size: 14px; font-weight: 500; letter-spacing: .2em; margin-top: 8px; padding-left: .2em; }
.venue { font-family: var(--serif); font-weight: 600; font-size: 28px; margin-top: 24px; }
.addr { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-soft); margin-top: 4px; }

.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.invite {
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.35;
  max-width: 460px; margin: 30px auto 0; text-wrap: balance;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 22px; border-radius: 999px;
  font: 500 14px/1 var(--sans); letter-spacing: .04em; text-decoration: none;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn.ghost { color: var(--cream); border: 1px solid var(--line); background: transparent; }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn.solid {
  width: 100%; min-height: 54px; border: 0; margin-top: 8px;
  background: var(--gold); color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase;
}
.btn.solid:hover { background: var(--gold-bright); }
.btn.solid:disabled { opacity: .6; cursor: wait; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold-bright); outline-offset: 2px;
}

/* ---------- RSVP card ---------- */
.card {
  margin: 48px 16px 0; padding: 32px 22px 28px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 6px;
}
.card h2 {
  font-family: var(--serif); font-weight: 500; font-size: 34px; text-align: center; letter-spacing: .04em;
}
.card-sub { text-align: center; color: var(--cream-soft); font-size: 15px; margin: 6px auto 24px; max-width: 380px; }

.choice { border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 56px; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line);
  font-size: 14px; line-height: 1.25; color: var(--cream-soft); transition: all .2s;
}
.pill input:checked + span { border-color: var(--gold); background: rgba(200,167,107,.12); color: var(--cream); }
.pill input:focus-visible + span { outline: 2px solid var(--gold-bright); outline-offset: 2px; }

.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 7px; }
.field > span em { font-style: normal; font-weight: 400; color: var(--cream-faint); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--sans); color: var(--cream);
  background: rgba(244,236,224,.05); border: 1px solid rgba(244,236,224,.16); border-radius: 6px;
  padding: 13px 14px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--cream-faint); }
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { background: var(--ink-2); color: var(--cream); }
.field.is-hidden { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { min-height: 1.4em; margin-top: 12px; text-align: center; font-size: 14px; color: #e8a3a3; }

.thanks { text-align: center; padding: 8px 0 4px; }
.thanks-title { font-family: var(--serif); font-weight: 500; font-size: 32px; }
.thanks-body { color: var(--cream-soft); font-size: 16px; margin: 10px auto 0; max-width: 400px; }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 48px 28px 0; color: var(--cream-soft); font-size: 15px; }
.foot a { white-space: nowrap; }
.foot blockquote {
  font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4;
  max-width: 440px; margin: 36px auto 0; color: var(--cream-soft); text-wrap: balance;
}
.foot cite {
  display: block; margin-top: 8px; font-style: normal; font-family: var(--sans);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold);
}
.until { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--cream); margin-top: 32px; }
