@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:opsz,wght@6..96,400;6..96,500&family=Cormorant+Garamond:ital,wght@0,400;0,500;1,400&family=Italianno&family=Montserrat:wght@300;400;500&display=swap');

:root {
  --espresso: #140b07;
  --espresso-soft: #211109;
  --brown: #3a1f11;
  --gold: #d8ad65;
  --gold-bright: #f0cf8c;
  --gold-deep: #9c672e;
  --ivory: #f4ead7;
  --ivory-soft: #fff8eb;
  --ink: #1b120d;
  --muted: rgba(244, 234, 215, 0.72);
  --hairline: rgba(216, 173, 101, 0.56);
  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Bodoni Moda", "Times New Roman", serif;
  --script: "Italianno", "Snell Roundhand", cursive;
  --sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--espresso);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  font-family: var(--serif);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
a,
label,
input {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

::selection {
  color: var(--espresso);
  background: var(--gold-bright);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: 0.07;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.65) 0 0.45px, transparent 0.7px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.38) 0 0.4px, transparent 0.65px);
  background-size: 9px 9px, 13px 13px;
  mix-blend-mode: soft-light;
}

.light-grain {
  opacity: 0.045;
  mix-blend-mode: multiply;
}

.ambient-glow {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--glow-x, 68%) var(--glow-y, 38%), rgba(231, 178, 91, 0.15), transparent 64%);
  transition: opacity 220ms ease;
}

.custom-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-100px, -100px, 0);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(240, 207, 140, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 22px rgba(216, 173, 101, 0.2);
  transition: width 180ms ease, height 180ms ease, margin 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.cursor-star {
  margin: -7px 0 0 -5px;
  color: var(--gold-bright);
  font-size: 11px;
  line-height: 1;
  transition: transform 90ms linear, opacity 180ms ease;
}

body.cursor-ready .custom-cursor {
  opacity: 1;
}

body.cursor-hover .cursor-ring {
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-color: rgba(240, 207, 140, 0.95);
}

body.cursor-hover .cursor-star {
  transform: rotate(45deg) scale(1.2);
}

.dark-ring {
  border-color: rgba(75, 42, 17, 0.62);
}

.dark-star {
  color: #7e5226;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 750ms ease, transform 850ms cubic-bezier(.2,.75,.25,1);
}

.landing-page {
  position: relative;
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(9,5,3,0.99) 0%, rgba(13,7,4,0.94) 33%, rgba(15,8,4,0.38) 62%, rgba(10,6,4,0.22) 100%),
    url("golden-evening.webp") center center / cover no-repeat fixed;
}

.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11,6,4,0.08), rgba(11,6,4,0.35));
  pointer-events: none;
}

.invitation-shell {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 225px;
  min-height: 100svh;
}

.invitation-copy {
  position: relative;
  width: min(740px, 100%);
  padding: clamp(54px, 6.3vw, 96px) clamp(34px, 6.8vw, 110px) 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.invited-line,
.footer-thought,
.mood-rail,
.back-link,
.field > span,
.attendance legend,
.confirmation-kicker,
.detail-label {
  font-family: var(--sans);
  letter-spacing: 0.27em;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 400;
}

.eyebrow span,
.footer-thought span {
  color: var(--gold);
  padding: 0 0.45em;
}

.gold-rule {
  width: 1px;
  height: 48px;
  margin-bottom: 22px;
  background: linear-gradient(var(--gold-bright), rgba(216,173,101,0.08));
}

.script-line {
  margin: 0 0 1px;
  color: var(--gold-bright);
  font-family: var(--script);
  font-size: clamp(46px, 5.2vw, 74px);
  line-height: 0.95;
  text-shadow: 0 0 28px rgba(216,173,101,0.16);
}

.invited-line {
  margin: 11px 0 22px;
  color: rgba(255,248,235,0.82);
  font-size: 10px;
  line-height: 1.5;
}

.event-title {
  margin: 0;
  max-width: 670px;
  color: var(--ivory-soft);
  font-family: var(--display);
  font-size: clamp(54px, 6.6vw, 93px);
  font-weight: 400;
  line-height: 0.93;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 4px 32px rgba(0,0,0,0.25);
}

.short-rule {
  width: 58px;
  height: 1px;
  margin: 31px 0 24px;
  background: var(--gold);
}

.event-description {
  max-width: 610px;
  margin: 0;
  color: rgba(255,248,235,0.88);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.42;
}

.rsvp-button,
.submit-button,
.gold-action,
.outline-action {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 64px;
  padding: 0 34px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  cursor: pointer;
  transform: translate3d(0,0,0);
  will-change: transform;
}

.rsvp-button {
  width: min(410px, 100%);
  margin-top: 34px;
  border: 1px solid rgba(240,207,140,0.8);
  color: var(--ivory-soft);
  background: rgba(14,8,4,0.38);
  box-shadow: 0 0 0 1px rgba(240,207,140,0.08), 0 16px 42px rgba(0,0,0,0.24);
}

.rsvp-button::before,
.submit-button::before,
.gold-action::before,
.outline-action::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 18%, rgba(255,244,211,0.18) 45%, transparent 72%);
  transform: translateX(-135%);
  transition: transform 700ms ease;
}

.rsvp-button:hover::before,
.submit-button:hover::before,
.gold-action:hover::before,
.outline-action:hover::before {
  transform: translateX(135%);
}

.rsvp-button:hover {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(240,207,140,0.16), 0 0 34px rgba(216,173,101,0.18), 0 16px 42px rgba(0,0,0,0.24);
}

.button-spark {
  color: var(--gold-bright);
  font-size: 15px;
  transition: transform 400ms ease;
}

.rsvp-button:hover .button-spark,
.submit-button:hover .button-spark {
  transform: rotate(90deg) scale(1.14);
}

.detail-note {
  margin: 18px 0 0;
  color: rgba(255,248,235,0.68);
  font-size: 15px;
  font-style: italic;
}

.footer-thought {
  margin-top: 47px;
  color: rgba(255,248,235,0.67);
  font-size: 9px;
  line-height: 1.65;
}

.footer-thought p {
  margin: 0;
}

.footer-rule {
  width: 115px;
  height: 1px;
  margin-bottom: 16px;
  background: var(--gold);
}

.mood-rail {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(240,207,140,0.24);
  background: linear-gradient(180deg, rgba(199,137,64,0.13), rgba(24,12,6,0.16));
  backdrop-filter: blur(3px);
}

.mood-rail::before {
  content: "";
  position: absolute;
  inset: 18% 44%;
  width: 1px;
  background: linear-gradient(transparent, rgba(240,207,140,0.5), transparent);
}

.mood-rail-inner {
  position: relative;
  padding: 26px 20px;
  color: rgba(255,241,211,0.84);
  font-size: 10px;
  line-height: 1.9;
  text-align: left;
}

.mood-rail-inner p {
  margin: 0;
}

.rsvp-page {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(10,5,3,0.985), rgba(26,12,6,0.96)),
    url("golden-evening.webp") center center / cover fixed;
}

.rsvp-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 86% 10%, rgba(205,149,73,0.12), transparent 33%),
    linear-gradient(120deg, transparent 0 72%, rgba(216,173,101,0.035) 72% 73%, transparent 73%);
}

.rsvp-shell {
  position: relative;
  z-index: 10;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 34px 28px 70px;
}

.back-link {
  display: inline-block;
  margin: 0 0 28px;
  color: rgba(244,234,215,0.6);
  font-size: 9px;
  transition: color 180ms ease;
}

.back-link:hover {
  color: var(--gold-bright);
}

.rsvp-card {
  position: relative;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid rgba(216,173,101,0.16);
  background: linear-gradient(150deg, rgba(29,14,7,0.92), rgba(12,6,3,0.93));
  box-shadow: 0 24px 70px rgba(0,0,0,0.38), inset 0 1px rgba(255,255,255,0.025);
  overflow: hidden;
}

.rsvp-card::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -130px;
  width: 330px;
  height: 330px;
  border-radius: 52% 48% 55% 45%;
  border: 1px solid rgba(216,173,101,0.1);
  transform: rotate(28deg);
  box-shadow: 0 0 70px rgba(216,173,101,0.05);
}

.rsvp-heading {
  position: relative;
  margin-bottom: 34px;
}

.rsvp-script {
  margin: 0 0 2px;
  color: var(--gold);
  font-family: var(--script);
  font-size: 38px;
  line-height: 1;
}

.rsvp-heading h1 {
  margin: 0;
  color: var(--ivory-soft);
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 86px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}

.rsvp-heading .short-rule {
  margin: 18px 0 16px;
  width: 50px;
}

.rsvp-heading > p:last-child {
  margin: 0;
  color: rgba(255,248,235,0.84);
  font-size: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
}

.field {
  display: block;
}

.field > span,
.attendance legend {
  display: block;
  margin-bottom: 9px;
  color: rgba(244,234,215,0.82);
  font-size: 8px;
  font-weight: 500;
}

.field input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid rgba(216,173,101,0.42);
  border-radius: 0;
  outline: 0;
  color: var(--ivory-soft);
  background: rgba(12,6,3,0.26);
  font-family: var(--serif);
  font-size: 17px;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field input::placeholder {
  color: rgba(244,234,215,0.44);
}

.field input:focus {
  border-color: rgba(240,207,140,0.88);
  background: rgba(33,17,9,0.44);
  box-shadow: 0 0 0 3px rgba(216,173,101,0.06);
}

.attendance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  border: 0;
}

.attendance legend {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 2px;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 14px;
  border: 1px solid rgba(216,173,101,0.28);
  color: rgba(255,248,235,0.82);
  background: rgba(12,6,3,0.22);
  font-size: 16px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.choice-card:hover {
  border-color: rgba(216,173,101,0.62);
  background: rgba(56,30,15,0.34);
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-dot {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px transparent;
  transition: box-shadow 180ms ease, background 180ms ease;
}

.choice-card:has(input:checked) {
  border-color: var(--gold-bright);
  color: var(--ivory-soft);
  background: rgba(80,43,19,0.36);
}

.choice-card:has(input:checked) .choice-dot {
  background: var(--gold-bright);
  box-shadow: inset 0 0 0 3px var(--espresso-soft);
}

.submit-button {
  width: 100%;
  margin-top: 24px;
  color: #25150c;
  background: linear-gradient(135deg, #efd49d, #c38b45);
  box-shadow: 0 16px 40px rgba(159,102,44,0.18);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.privacy-note,
.form-status {
  margin: 16px 0 0;
  text-align: center;
  color: rgba(244,234,215,0.56);
  font-size: 13px;
  font-style: italic;
}

.form-status {
  min-height: 20px;
  color: var(--gold-bright);
  font-style: normal;
}

.bot-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.confirmation-page {
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 8%, rgba(209,164,97,0.22), transparent 27%),
    radial-gradient(circle at 10% 90%, rgba(209,164,97,0.12), transparent 31%),
    linear-gradient(135deg, #fffaf0, #efe1ca);
}

.confirmation-page::before,
.confirmation-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  filter: blur(1px);
  opacity: 0.26;
}

.confirmation-page::before {
  width: 36vw;
  height: 36vw;
  min-width: 280px;
  min-height: 280px;
  top: -12vw;
  right: -11vw;
  border: 1px solid rgba(112,72,34,0.18);
  border-radius: 49% 51% 39% 61%;
  transform: rotate(18deg);
}

.confirmation-page::after {
  width: 31vw;
  height: 31vw;
  min-width: 240px;
  min-height: 240px;
  bottom: -13vw;
  left: -10vw;
  border: 1px solid rgba(112,72,34,0.13);
  border-radius: 45% 55% 59% 41%;
  transform: rotate(-24deg);
}

.confirmation-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(440px circle at var(--glow-x, 70%) var(--glow-y, 30%), rgba(255,255,255,0.46), transparent 68%);
}

.confirmation-shell,
.decline-shell {
  position: relative;
  z-index: 10;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 42px 24px;
}

.confirmation-card {
  width: min(740px, 100%);
  padding: clamp(36px, 6vw, 70px);
  border: 1px solid rgba(127,82,38,0.3);
  background: rgba(255,250,240,0.54);
  box-shadow: 0 28px 80px rgba(71,43,20,0.12), inset 0 0 0 7px rgba(255,255,255,0.16);
  backdrop-filter: blur(10px);
  text-align: center;
}

.confirmation-mark {
  color: var(--gold-deep);
  font-size: 28px;
  line-height: 1;
}

.confirmation-kicker {
  margin: 17px 0 0;
  color: #5e3b1d;
  font-size: 9px;
}

.center-rule {
  margin: 18px auto 16px;
  background: #a2713b;
}

.confirmation-script,
.decline-script {
  margin: 0;
  color: #2a180d;
  font-family: var(--script);
  font-size: clamp(55px, 8vw, 84px);
  font-weight: 400;
  line-height: 0.95;
}

.confirmation-intro,
.decline-copy {
  width: min(490px, 100%);
  margin: 17px auto 0;
  font-size: 19px;
  line-height: 1.42;
}

.event-details {
  margin: 34px auto 0;
  border-top: 1px solid rgba(102,64,29,0.2);
  border-bottom: 1px solid rgba(102,64,29,0.2);
}

.event-detail-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  padding: 17px 8px;
  text-align: left;
}

.event-detail-row + .event-detail-row {
  border-top: 1px solid rgba(102,64,29,0.14);
}

.detail-symbol {
  color: #9b6935;
  font-size: 13px;
}

.detail-label {
  display: block;
  margin-bottom: 3px;
  color: rgba(60,35,18,0.64);
  font-size: 7px;
}

.event-detail-row strong {
  display: block;
  color: #2e1b10;
  font-size: 18px;
  font-weight: 500;
}

.confirmation-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.outline-action,
.gold-action {
  min-height: 56px;
  padding: 0 18px;
  font-size: 9px;
  letter-spacing: 0.19em;
}

.outline-action {
  border: 1px solid rgba(128,80,35,0.64);
  color: #5a381d;
  background: rgba(255,255,255,0.13);
}

.gold-action {
  color: #fff8eb;
  background: linear-gradient(135deg, #b78041, #7a4d24);
  box-shadow: 0 13px 30px rgba(99,57,24,0.17);
}

.closing-script {
  margin: 32px 0 0;
  color: #875a2c;
  font-family: var(--script);
  font-size: 37px;
  line-height: 1;
}

.decline-page {
  min-height: 100svh;
  background:
    linear-gradient(90deg, rgba(10,5,3,0.965), rgba(22,10,5,0.91)),
    url("golden-evening.webp") center center / cover fixed;
}

.decline-card {
  width: min(620px, 100%);
  padding: clamp(42px, 7vw, 78px);
  border: 1px solid rgba(216,173,101,0.25);
  background: rgba(18,9,5,0.86);
  box-shadow: 0 30px 80px rgba(0,0,0,0.34);
  text-align: center;
  backdrop-filter: blur(8px);
}

.decline-page .confirmation-kicker {
  color: var(--gold-bright);
}

.decline-page .center-rule {
  background: var(--gold);
}

.decline-script {
  color: var(--ivory-soft);
}

.decline-copy {
  color: rgba(255,248,235,0.79);
}

.small-button {
  width: auto;
  min-width: min(360px, 100%);
  margin: 31px auto 0;
}

@media (pointer: fine) {
  body,
  a,
  button,
  label,
  input {
    cursor: none !important;
  }
}

@media (max-width: 900px) {
  .landing-page {
    background-position: 62% center;
  }

  .invitation-shell {
    grid-template-columns: 1fr;
  }

  .mood-rail {
    display: none;
  }

  .invitation-copy {
    width: min(680px, 100%);
    padding-right: 30px;
  }

  .form-grid,
  .attendance {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .landing-page,
  .rsvp-page,
  .decline-page {
    background-attachment: scroll;
  }

  .landing-page {
    background:
      linear-gradient(180deg, rgba(9,5,3,0.82) 0%, rgba(10,5,3,0.93) 49%, rgba(10,5,3,0.98) 100%),
      url("golden-evening.webp") 66% center / cover no-repeat;
  }

  .invitation-copy {
    min-height: 100svh;
    justify-content: flex-end;
    padding: 80px 24px 38px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 9px;
  }

  .gold-rule {
    height: 35px;
    margin-bottom: 18px;
  }

  .script-line {
    font-size: 48px;
  }

  .invited-line {
    margin-top: 8px;
    margin-bottom: 15px;
  }

  .event-title {
    font-size: clamp(49px, 15vw, 70px);
  }

  .short-rule {
    margin: 24px 0 19px;
  }

  .event-description {
    font-size: 18px;
    line-height: 1.38;
  }

  .rsvp-button {
    margin-top: 28px;
    min-height: 60px;
  }

  .detail-note {
    font-size: 14px;
  }

  .footer-thought {
    margin-top: 34px;
  }

  .rsvp-shell {
    padding: 24px 14px 44px;
  }

  .rsvp-card {
    padding: 30px 20px 34px;
  }

  .rsvp-script {
    font-size: 33px;
  }

  .choice-card {
    min-height: 56px;
    font-size: 15px;
  }

  .confirmation-shell,
  .decline-shell {
    padding: 16px;
  }

  .confirmation-card,
  .decline-card {
    padding: 35px 21px;
  }

  .confirmation-actions {
    grid-template-columns: 1fr;
  }

  .confirmation-script,
  .decline-script {
    font-size: clamp(51px, 16vw, 72px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .custom-cursor,
  .ambient-glow,
  .confirmation-glow {
    display: none;
  }
}

.date-line {
  margin: 22px 0 0;
  color: var(--gold-bright);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.28em;
}
