:root {
  --berry: #9b1f65;
  --berry-dark: #711248;
  --pink: #ffd2df;
  --pink-strong: #ff79ad;
  --cream: #fff8ee;
  --teal: #3fc3c5;
  --gold: #e9b44c;
  --ink: #431f35;
  --shadow: 0 24px 70px rgba(103, 21, 67, 0.26);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Poppins", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 16%, rgba(63, 195, 197, 0.28), transparent 25%),
    radial-gradient(circle at 84% 28%, rgba(233, 180, 76, 0.24), transparent 22%),
    linear-gradient(135deg, #ffe6ef 0%, #fffaf2 42%, #dff8f6 100%);
}

button,
a {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 14px;
}

.invite {
  position: relative;
  width: min(100%, 410px);
  min-height: 720px;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 32px;
  background:
    linear-gradient(rgba(255, 220, 231, 0.82), rgba(255, 221, 232, 0.58)),
    url("./assets/marsha-bolo-bg.png") center bottom / cover no-repeat;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.invite::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 3px, transparent 4px)
      0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(255, 245, 248, 0.7) 0 29%, transparent 52%);
}

.invite::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  z-index: -1;
  background: linear-gradient(to top, rgba(255, 244, 249, 0.9), transparent);
}

.ribbon {
  position: absolute;
  z-index: 2;
  left: 32px;
  right: 32px;
  top: 62px;
  height: 70px;
  display: grid;
  place-items: center;
  background: rgba(119, 19, 79, 0.1);
  filter: drop-shadow(0 8px 12px rgba(100, 19, 66, 0.22));
}

.ribbon::before,
.ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 0;
  height: 0;
  border-top: 35px solid rgba(119, 19, 79, 0.1);
  border-bottom: 35px solid rgba(119, 19, 79, 0.1);
}

.ribbon::before {
  left: -22px;
  border-left: 22px solid transparent;
}

.ribbon::after {
  right: -22px;
  border-right: 22px solid transparent;
}

.ribbon span {
  position: absolute;
  inset: 7px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.ribbon h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff8fb;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.7rem, 17vw, 5.1rem);
  font-weight: 400;
  line-height: 0.9;
  -webkit-text-stroke: 3px #ffb8d2;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(113, 18, 72, 0.46), 0 0 5px rgba(113, 18, 72, 0.24);
}

.invite-header {
  position: relative;
  z-index: 1;
  padding: 142px 24px 0;
  text-align: center;
}

.eyebrow {
  margin: 7px 0 0;
  color: var(--berry-dark);
  font-size: 0.88rem;
  font-weight: 500;
}

h1 {
  margin: 0;
}

.event-details {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  width: calc(100% - 92px);
  margin: 16px auto 0;
}

.event-detail {
  display: grid;
  align-content: start;
  gap: 3px;
  text-align: center;
}

.event-detail span {
  color: var(--berry-dark);
  font-size: 0.68rem;
  font-weight: 700;
}

.event-detail strong {
  color: var(--berry);
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(0.9rem, 4.1vw, 1.08rem);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 36px;
  z-index: 0;
  margin: 0;
  opacity: 0.92;
  pointer-events: none;
}

.hero-art img {
  display: block;
  width: 100%;
  transform: scale(1);
  transform-origin: center bottom;
}

.actions {
  position: absolute;
  right: 12px;
  top: 272px;
  z-index: 2;
  display: grid;
  gap: 9px;
}

.action-button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--berry);
  box-shadow: 0 10px 20px rgba(105, 20, 72, 0.24);
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.action-button:hover,
.action-button:focus-visible {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 16px 26px rgba(105, 20, 72, 0.28);
  outline: 3px solid rgba(63, 195, 197, 0.48);
  outline-offset: 3px;
}

.action-button span:last-child {
  position: absolute;
  right: 60px;
  width: 0;
  height: 0;
  overflow: hidden;
  white-space: nowrap;
}

.icon {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.whatsapp {
  background: #2dbb64;
}

.location {
  background: #ba3c81;
}

.gift {
  background: #8f2b75;
}

.reminder {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 3;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--berry), var(--pink-strong));
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(155, 31, 101, 0.28);
  cursor: pointer;
}

.reminder:hover,
.reminder:focus-visible {
  outline: 3px solid rgba(63, 195, 197, 0.48);
  outline-offset: 3px;
}

.sparkle {
  position: absolute;
  z-index: 0;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent 68%);
  animation: float 4.8s ease-in-out infinite;
  pointer-events: none;
}

.sparkle-one {
  left: 18px;
  top: 210px;
}

.sparkle-two {
  right: 62px;
  top: 222px;
  animation-delay: -1.8s;
}

.gift-modal {
  width: min(calc(100% - 28px), 360px);
  border: 0;
  border-radius: 18px;
  padding: 28px;
  color: var(--ink);
  background: #fff9fb;
  box-shadow: 0 26px 70px rgba(61, 18, 46, 0.34);
}

.gift-modal::backdrop {
  background: rgba(54, 18, 42, 0.5);
  backdrop-filter: blur(4px);
}

.gift-modal h2 {
  margin: 0 0 16px;
  color: var(--berry);
  font-size: 1.3rem;
}

.gift-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.gift-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  line-height: 1.35;
}

.gift-icon {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 28px;
  place-items: center;
}

.gift-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.gift-shoe {
  color: #ffb8d2;
}

.gift-dress {
  color: #f28bb7;
}

.gift-box {
  color: #e978a9;
}

.gift-box-ribbon {
  fill: #a66ec7 !important;
}

.close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: var(--berry);
  background: #ffe3ee;
  cursor: pointer;
}

.close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateY(-16px);
    opacity: 0.95;
  }
}

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

  .invite {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }
}

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