:root {
  color-scheme: dark;
  --wine-950: #16050b;
  --wine-900: #240710;
  --wine-800: #3b0b19;
  --wine-700: #5c1228;
  --rose: #d29aa8;
  --ivory: #fff8eb;
  --ivory-muted: rgba(255, 248, 235, 0.73);
  --gold: #e8c477;
  --gold-light: #f7dfaa;
  --gold-dim: rgba(232, 196, 119, 0.32);
  --shadow: 0 34px 100px rgba(8, 0, 3, 0.62);
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--wine-950);
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% -10%, rgba(122, 30, 55, 0.5), transparent 46%),
    radial-gradient(circle at 8% 88%, rgba(91, 24, 42, 0.46), transparent 34%),
    linear-gradient(145deg, #17050b 0%, #2b0712 45%, #120408 100%);
  font-family: var(--sans);
}

body::before {
  position: fixed;
  z-index: -3;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.23'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.08;
  pointer-events: none;
}

button {
  color: inherit;
  font: inherit;
}

button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: min(50vw, 640px);
  aspect-ratio: 1;
  border: 1px solid rgba(232, 196, 119, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.ambient::before,
.ambient::after {
  position: absolute;
  inset: 9%;
  border: inherit;
  border-radius: inherit;
  content: "";
}

.ambient::after {
  inset: 19%;
}

.ambient--one {
  top: -24vw;
  right: -14vw;
}

.ambient--two {
  bottom: -28vw;
  left: -20vw;
}

.page-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: clamp(20px, 4vw, 54px);
}

.screen {
  width: min(100%, 1120px);
  animation: screen-in 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.screen--leaving {
  animation: screen-out 470ms ease both;
}

.invitation-card,
.final-card {
  position: relative;
  width: min(100%, 770px);
  margin: auto;
  overflow: hidden;
  border: 1px solid rgba(232, 196, 119, 0.46);
  border-radius: 4px;
  box-shadow: var(--shadow), inset 0 0 70px rgba(123, 25, 49, 0.18);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 42%),
    rgba(29, 5, 13, 0.83);
  backdrop-filter: blur(16px);
}

.invitation-card {
  padding: clamp(58px, 8vw, 90px) clamp(22px, 7vw, 76px) clamp(34px, 6vw, 58px);
}

.invitation-card::before,
.final-card::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(232, 196, 119, 0.15);
  content: "";
  pointer-events: none;
}

.invitation-card::after {
  position: absolute;
  top: -40%;
  left: -120%;
  width: 60%;
  height: 190%;
  background: linear-gradient(90deg, transparent, rgba(255, 239, 205, 0.055), transparent);
  content: "";
  transform: rotate(16deg);
  animation: card-shimmer 7s 1.2s ease-in-out infinite;
  pointer-events: none;
}

.corner {
  position: absolute;
  z-index: 1;
  width: 42px;
  height: 42px;
  opacity: 0.7;
}

.corner--top-left {
  top: 20px;
  left: 20px;
  border-top: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.corner--top-right {
  top: 20px;
  right: 20px;
  border-top: 1px solid var(--gold);
  border-right: 1px solid var(--gold);
}

.corner--bottom-left {
  bottom: 20px;
  left: 20px;
  border-bottom: 1px solid var(--gold);
  border-left: 1px solid var(--gold);
}

.corner--bottom-right {
  right: 20px;
  bottom: 20px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}

.seal {
  display: grid;
  width: 52px;
  height: 52px;
  margin: 0 auto 24px;
  border: 1px solid rgba(232, 196, 119, 0.72);
  border-radius: 50%;
  place-items: center;
  box-shadow: 0 0 0 5px rgba(232, 196, 119, 0.05), 0 0 32px rgba(232, 196, 119, 0.12);
  color: var(--gold);
  font-family: var(--serif);
}

.seal span {
  display: inline-block;
  animation: heartbeat 2.2s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
p {
  position: relative;
  z-index: 2;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  color: var(--ivory);
  font-size: clamp(3rem, 10vw, 5.8rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-shadow: 0 8px 42px rgba(0, 0, 0, 0.35);
}

.lead {
  max-width: 540px;
  margin: 27px auto 0;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  line-height: 1.5;
}

.invitation-copy {
  max-width: 530px;
  margin: 13px auto 0;
  color: var(--ivory-muted);
  font-family: var(--serif);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-style: italic;
  line-height: 1.7;
}

.date-block {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(100%, 490px);
  margin: 32px auto 28px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.date-block__line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 196, 119, 0.58));
}

.date-block__line:last-child {
  background: linear-gradient(90deg, rgba(232, 196, 119, 0.58), transparent);
}

.date-block div {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.date-block strong {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.date-block div span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.question {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.12rem, 2.7vw, 1.35rem);
}

.answer-area {
  position: relative;
  z-index: 4;
  width: min(100%, 520px);
  height: 92px;
  margin: 16px auto 0;
}

.button {
  position: absolute;
  top: 17px;
  min-height: 48px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: box-shadow 240ms ease, background 240ms ease, color 240ms ease, transform 240ms ease;
  white-space: nowrap;
}

.button--gold {
  left: 10px;
  min-width: 250px;
  padding: 0 24px;
  border: 1px solid var(--gold);
  box-shadow: 0 12px 32px rgba(177, 119, 36, 0.16);
  color: #2b0a13;
  background: linear-gradient(135deg, #f7e2ad, #d7a94f);
}

.button--gold:hover {
  box-shadow: 0 16px 44px rgba(232, 196, 119, 0.3);
  transform: translateY(-2px);
}

.button--gold span {
  margin-left: 4px;
}

.button--ghost {
  right: 24px;
  min-width: 112px;
  padding: 0 21px;
  border: 1px solid rgba(255, 248, 235, 0.28);
  color: rgba(255, 248, 235, 0.76);
  background: rgba(255, 255, 255, 0.025);
  will-change: left, top;
}

.button--ghost.is-running {
  right: auto;
  transition: left 180ms cubic-bezier(0.2, 0.8, 0.2, 1), top 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 200ms ease;
}

.playful-hint {
  min-height: 20px;
  margin: -7px 0 0;
  color: rgba(232, 196, 119, 0.7);
  font-family: var(--serif);
  font-size: 0.86rem;
  font-style: italic;
}

.venue-heading {
  margin: 0 auto clamp(26px, 5vw, 46px);
  text-align: center;
}

.tiny-heart {
  margin: -6px 0 16px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.15rem;
  animation: heartbeat 2.2s ease-in-out infinite;
}

.venue-heading h2,
.final-card h2 {
  font-size: clamp(2.4rem, 6vw, 4.65rem);
  letter-spacing: -0.035em;
  line-height: 1.03;
}

.venue-heading > p:last-child {
  margin: 16px auto 0;
  color: var(--ivory-muted);
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-style: italic;
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 30px);
}

.venue-card {
  position: relative;
  min-height: min(58vw, 560px);
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(232, 196, 119, 0.32);
  border-radius: 3px;
  box-shadow: 0 24px 70px rgba(5, 0, 2, 0.38);
  cursor: pointer;
  text-align: left;
  background: #250912;
  isolation: isolate;
}

.venue-card::after {
  position: absolute;
  z-index: 4;
  inset: 11px;
  border: 1px solid rgba(255, 235, 190, 0.14);
  content: "";
  pointer-events: none;
  transition: border-color 300ms ease, inset 300ms ease;
}

.venue-card__image,
.venue-card__image img,
.venue-card__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.venue-card__image {
  z-index: -2;
  display: block;
}

.venue-card__image img {
  object-fit: cover;
  transition: filter 650ms ease, transform 900ms cubic-bezier(0.2, 0.65, 0.2, 1);
}

.venue-card__image--single img {
  object-position: 50% 50%;
}

.venue-card__image--collage img:first-child {
  right: auto;
  bottom: auto;
  width: 100%;
  height: 52%;
  object-position: center;
}

.venue-card__image--collage img:last-child {
  top: 52%;
  height: 48%;
  object-position: center;
}

.venue-card__shade {
  z-index: -1;
  background:
    linear-gradient(to top, rgba(22, 3, 9, 0.98) 2%, rgba(28, 5, 12, 0.72) 37%, rgba(15, 3, 7, 0.08) 72%),
    linear-gradient(115deg, rgba(37, 5, 14, 0.28), transparent 55%);
}

.venue-card__number {
  position: absolute;
  z-index: 2;
  top: 32px;
  left: 32px;
  color: rgba(255, 248, 235, 0.74);
  font-family: var(--serif);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
}

.venue-card__content {
  position: absolute;
  z-index: 2;
  right: clamp(28px, 5vw, 48px);
  bottom: clamp(30px, 5vw, 48px);
  left: clamp(28px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.venue-card__content small {
  margin-bottom: 11px;
  color: var(--gold);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.venue-card__content strong {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.venue-card__content > span {
  margin-top: 8px;
  color: var(--ivory-muted);
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
}

.venue-card__content em {
  margin-top: 25px;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.venue-card__content b {
  display: inline-block;
  margin-left: 8px;
  font-size: 1rem;
  transition: transform 250ms ease;
}

.venue-card:hover .venue-card__image img,
.venue-card:focus-visible .venue-card__image img {
  filter: saturate(1.08) brightness(1.04);
  transform: scale(1.045);
}

.venue-card:hover::after,
.venue-card:focus-visible::after {
  inset: 16px;
  border-color: rgba(232, 196, 119, 0.48);
}

.venue-card:hover .venue-card__content b,
.venue-card:focus-visible .venue-card__content b {
  transform: translateX(6px);
}

.final-card {
  padding: clamp(58px, 9vw, 94px) clamp(26px, 8vw, 84px) clamp(40px, 7vw, 66px);
}

.final-card__halo {
  position: absolute;
  top: -180px;
  left: 50%;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 196, 119, 0.15), transparent 67%);
  transform: translateX(-50%);
  pointer-events: none;
}

.final-card__heart {
  position: relative;
  z-index: 2;
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 27px;
  border: 1px solid rgba(232, 196, 119, 0.72);
  border-radius: 50%;
  place-items: center;
  box-shadow: 0 0 45px rgba(232, 196, 119, 0.15);
  color: var(--gold);
  animation: heartbeat 2.2s ease-in-out infinite;
}

.final-card__label {
  margin: 30px 0 8px;
  color: var(--ivory-muted);
  font-family: var(--serif);
  font-style: italic;
}

.selected-venue {
  margin: 0 auto;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: clamp(1.75rem, 5vw, 2.7rem);
  line-height: 1.2;
}

.final-date {
  position: relative;
  z-index: 2;
  display: flex;
  margin: 27px auto;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.final-date i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.final-message {
  margin: 0;
  color: var(--ivory-muted);
  font-family: var(--serif);
  font-size: clamp(1rem, 2.5vw, 1.17rem);
  line-height: 1.75;
}

.signature {
  margin: 27px 0 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
}

.signature span {
  margin-left: 3px;
  color: var(--gold);
}

.text-button {
  position: relative;
  z-index: 2;
  margin-top: 31px;
  padding: 5px 2px;
  border: 0;
  border-bottom: 1px solid rgba(232, 196, 119, 0.36);
  color: rgba(255, 248, 235, 0.56);
  cursor: pointer;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  transition: border-color 200ms ease, color 200ms ease;
}

.text-button:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.petals,
.celebration {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -40px;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 0.66);
  border-radius: 90% 10% 90% 10%;
  opacity: 0;
  background: linear-gradient(135deg, rgba(209, 126, 150, 0.62), rgba(94, 18, 39, 0.15));
  filter: blur(0.2px);
  animation: petal-fall var(--duration) var(--delay) linear infinite;
}

.burst-heart {
  position: fixed;
  z-index: 20;
  left: var(--x);
  bottom: -35px;
  color: var(--color);
  font-family: var(--serif);
  font-size: var(--size);
  text-shadow: 0 0 14px currentColor;
  animation: heart-rise var(--duration) var(--delay) cubic-bezier(0.17, 0.68, 0.25, 1) both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes screen-out {
  to {
    opacity: 0;
    transform: translateY(-13px) scale(0.985);
  }
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.14);
  }
  22% {
    transform: scale(1);
  }
  32% {
    transform: scale(1.08);
  }
  44% {
    transform: scale(1);
  }
}

@keyframes card-shimmer {
  0%,
  18% {
    left: -120%;
  }
  42%,
  100% {
    left: 170%;
  }
}

@keyframes petal-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -30px, 0) rotate(0deg);
  }
  10% {
    opacity: 0.46;
  }
  82% {
    opacity: 0.34;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), 110vh, 0) rotate(var(--spin));
  }
}

@keyframes heart-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-8deg) scale(0.5);
  }
  12% {
    opacity: 0.88;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -112vh, 0) rotate(18deg) scale(1.18);
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 14px;
  }

  .invitation-card {
    padding-top: 52px;
  }

  .corner {
    width: 30px;
    height: 30px;
  }

  .corner--top-left,
  .corner--top-right {
    top: 15px;
  }

  .corner--bottom-left,
  .corner--bottom-right {
    bottom: 15px;
  }

  .corner--top-left,
  .corner--bottom-left {
    left: 15px;
  }

  .corner--top-right,
  .corner--bottom-right {
    right: 15px;
  }

  .eyebrow {
    letter-spacing: 0.24em;
  }

  .desktop-break {
    display: none;
  }

  .date-block {
    gap: 12px;
  }

  .date-block div {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  .answer-area {
    height: 112px;
  }

  .button {
    top: 17px;
    min-height: 47px;
    letter-spacing: 0.07em;
  }

  .button--gold {
    left: 0;
    min-width: 210px;
    padding: 0 17px;
  }

  .button--ghost {
    right: 0;
    min-width: 80px;
    padding: 0 15px;
  }

  .playful-hint {
    margin-top: -20px;
  }

  .venue-grid {
    grid-template-columns: 1fr;
  }

  .venue-card {
    min-height: min(124vw, 540px);
  }

  .venue-card__content strong {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }
}

@media (max-width: 390px) {
  .invitation-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .button {
    font-size: 0.65rem;
  }

  .button--gold {
    min-width: 190px;
    padding: 0 11px;
  }

  .button--ghost {
    min-width: 66px;
    padding: 0 10px;
  }

  .final-date {
    gap: 10px;
    letter-spacing: 0.08em;
  }
}

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

  .petals {
    display: none;
  }
}
