:root {
  color-scheme: light;
  --pink: #db4e82;
  --pink-deep: #bd356b;
  --pink-pale: #fff2f7;
  --ink: #4b2a3a;
  --muted: #907384;
  --line: #f3dce6;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 18% 13%, rgba(255, 255, 255, 0.85), transparent 25rem),
    linear-gradient(145deg, #ffe5ee, #f8cfe0 56%, #ffedf3);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.photo-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  pointer-events: none;
}

.photo-backdrop span {
  min-width: 0;
  min-height: 0;
  background-image: var(--photo);
  background-position: center 38%;
  background-size: cover;
  filter: saturate(0.78);
}

.photo-backdrop::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 225, 237, 0.68), rgba(250, 198, 221, 0.57)),
    rgba(255, 242, 247, 0.2);
  content: "";
}

button {
  font: inherit;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 38px 20px 16px;
}

.invite-card {
  width: min(100%, 610px);
  padding: clamp(28px, 6vw, 54px) clamp(22px, 7vw, 64px) 30px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  background: rgba(255, 252, 253, 0.94);
  box-shadow: 0 26px 75px rgba(156, 58, 101, 0.18);
  text-align: center;
}

.overline {
  margin: 0;
  color: var(--pink-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.overline span {
  margin-right: 5px;
  color: #e7a053;
}

.love-art {
  position: relative;
  width: min(100%, 360px);
  height: 150px;
  display: grid;
  place-items: center;
  margin: 14px auto 13px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.82), transparent 35%),
    linear-gradient(135deg, #ffe5ef, #f7c4da);
  box-shadow: 0 12px 30px rgba(156, 58, 101, 0.13);
}

.love-art-heart {
  position: absolute;
  line-height: 1;
  filter: drop-shadow(0 8px 10px rgba(198, 53, 107, 0.18));
  animation: heartbeat 2s ease-in-out infinite;
}

.heart-shadow {
  color: #ef9bbc;
  font-size: 5rem;
  transform: translate(-22px, 5px) rotate(-17deg);
}

.heart-main {
  color: #dc4f85;
  font-size: 5.7rem;
  transform: translate(9px, 0) rotate(8deg);
  animation-delay: 120ms;
}

.heart-small {
  color: #f3a8c3;
  font-size: 2.2rem;
  transform: translate(43px, 29px) rotate(14deg);
  animation-delay: 240ms;
}

.love-art-sparkle {
  position: absolute;
  color: #d49352;
}

.sparkle-one {
  top: 30px;
  left: 27%;
  font-size: 1.1rem;
}

.sparkle-two {
  top: 27px;
  right: 27%;
  color: var(--pink);
  font-size: 1.35rem;
}

.love-art-caption {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  color: #8b627a;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.025em;
}

.place-tag {
  margin: 0 0 8px;
  color: var(--pink-deep);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.venue-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid #f0d6e1;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff7fa, #fff0f6);
  text-align: left;
}

.venue-pin {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  background: #ffe2ed;
  color: var(--pink-deep);
  font-size: 1.2rem;
}

.venue-details {
  min-width: 0;
  display: grid;
  gap: 2px;
  flex: 1;
}

.venue-eyebrow {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.venue-details strong {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.93rem;
}

.venue-details > span:last-child {
  color: var(--muted);
  font-size: 0.67rem;
}

.directions-button {
  min-height: 38px;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--pink-deep);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.directions-button:hover {
  transform: translateY(-1px);
  background: #9f2e5b;
}

.directions-button:focus-visible {
  outline: 3px solid rgba(189, 53, 107, 0.25);
  outline-offset: 2px;
}

h1 {
  max-width: 490px;
  margin: 0 auto;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 7vw, 3.55rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.13;
}

h1 em {
  color: var(--pink);
  font-weight: 500;
}

.message {
  max-width: 430px;
  margin: 17px auto 19px;
  color: #806779;
  font-size: 0.92rem;
  line-height: 1.75;
}

.plan-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.plan-pills span {
  padding: 8px 12px;
  border: 1px solid #f3dce6;
  border-radius: 999px;
  background: #fff6f9;
  color: #77556a;
  font-size: 0.7rem;
  font-weight: 600;
}

.plan-pills span span {
  margin-right: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pink);
}

.plan-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.date-picker {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff9fb;
  text-align: left;
}

.date-picker-title {
  margin: 0 0 10px;
  color: #76596c;
  font-size: 0.7rem;
  font-weight: 700;
}

.date-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.date-option {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 8px;
  border: 1px solid #f1dce5;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.date-option:hover {
  border-color: #e8abc1;
  background: #fff5f9;
}

.date-option[aria-pressed="true"] {
  border-color: var(--pink);
  background: #fff0f6;
  box-shadow: 0 0 0 2px rgba(219, 78, 130, 0.1);
}

.date-option:focus-visible,
.note-button:focus-visible {
  outline: 3px solid rgba(189, 53, 107, 0.25);
  outline-offset: 2px;
}

.option-icon {
  color: var(--pink);
  font-size: 0.9rem;
  line-height: 1.2;
}

.date-option strong,
.date-option small {
  display: block;
}

.date-option strong {
  font-size: 0.64rem;
  line-height: 1.35;
}

.date-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.57rem;
  line-height: 1.35;
}

.selection-note {
  margin: 9px 0 0;
  color: var(--pink-deep);
  font-size: 0.67rem;
  font-weight: 600;
}

.little-surprise {
  margin-top: 13px;
}

.note-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pink-deep);
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(189, 53, 107, 0.3);
  text-underline-offset: 3px;
}

.note-button span {
  margin-left: 3px;
}

.sweet-note {
  margin: 9px auto 0;
  padding: 10px 13px;
  border-radius: 12px;
  background: #fff2f7;
  color: #79586d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.82rem;
  line-height: 1.5;
}

.reply-area {
  margin-top: 24px;
}

.reply-prompt {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.yes-arena {
  position: relative;
  width: min(100%, 410px);
  height: 78px;
  margin: 0 auto;
  border-radius: 18px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    left 180ms ease,
    top 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.button:focus-visible {
  outline: 3px solid rgba(189, 53, 107, 0.28);
  outline-offset: 3px;
}

.button-yes {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #ed679a, #d84079);
  color: #fff;
  box-shadow: 0 9px 20px rgba(216, 62, 121, 0.24);
}

.button-yes:hover {
  background: linear-gradient(135deg, #e6538b, #c72e69);
  box-shadow: 0 12px 24px rgba(216, 62, 121, 0.3);
}

.button-yes span {
  font-size: 1.05rem;
}

.button-maybe {
  border-color: #efd8e2;
  background: #fff;
  color: #76596c;
}

.button-maybe:hover {
  border-color: #e7a6bd;
  background: #fff6f9;
}

.playful-hint,
.no-pressure {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.response {
  margin: 12px 0 0;
  color: var(--pink-deep);
  font-size: 0.88rem;
  font-weight: 700;
}

.contact-option {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 21px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.72rem;
}

.contact-option a {
  color: var(--pink-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(189, 53, 107, 0.3);
  text-underline-offset: 3px;
}

.contact-option a:hover {
  color: #88264d;
}

.instagram-link {
  display: inline-block;
  margin-top: 11px;
  color: #876b7b;
  font-size: 0.66rem;
  text-decoration: underline;
  text-decoration-color: rgba(189, 53, 107, 0.24);
  text-underline-offset: 3px;
}

.instagram-link:hover {
  color: var(--pink-deep);
}

.instagram-link span {
  color: var(--pink);
}

.venue-card + .date-picker {
  margin-top: 14px;
}

.footer {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 52px;
  color: #986e83;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer span {
  color: var(--pink-deep);
}

[hidden] {
  display: none !important;
}

@keyframes heartbeat {
  0%, 100% { scale: 1; }
  50% { scale: 1.07; }
}

@media (max-width: 520px) {
  .page {
    justify-content: flex-start;
    padding: 20px 12px 8px;
  }

  .photo-backdrop {
    grid-template-columns: 1fr 1fr;
  }

  .invite-card {
    padding: 27px 19px 24px;
    border-radius: 23px;
  }

  .love-art {
    width: min(100%, 330px);
    height: 138px;
    margin-top: 13px;
  }

  .venue-card {
    gap: 9px;
    padding: 10px;
  }

  .directions-button {
    padding: 0 10px;
    font-size: 0.61rem;
  }

  .message {
    font-size: 0.87rem;
  }

  .date-picker {
    padding: 12px;
  }

  .date-options {
    grid-template-columns: 1fr;
  }

  .date-option {
    align-items: center;
    padding: 9px 11px;
  }

  .date-option strong {
    font-size: 0.68rem;
  }

  .date-option small {
    margin-top: 2px;
    font-size: 0.6rem;
  }

  .yes-arena {
    height: 55px;
  }

  .button-yes {
    position: static;
    width: 100%;
  }

  .button-maybe {
    width: 100%;
  }
}

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