/* ---------- Tokens ---------- */
:root {
  --bg-1: #fff7f3;
  --bg-2: #ffe7ee;
  --bg-3: #ffd7e6;
  --surface: #ffffff;
  --surface-soft: #fff3f6;
  --ink: #2a1d24;
  --ink-soft: #6f5b65;
  --ink-mute: #9a8791;
  --line: rgba(42, 29, 36, 0.08);

  --pink: #e6217f;
  --pink-soft: #ff8fc1;
  --pink-deep: #b81866;
  --peach: #ffb89a;
  --gold: #f5c14e;

  --venmo: #008cff;
  --zelle: #6d1ed4;

  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;

  --shadow-sm: 0 6px 18px rgba(230, 33, 127, 0.08);
  --shadow-md: 0 18px 50px rgba(230, 33, 127, 0.12), 0 4px 12px rgba(42, 29, 36, 0.05);
  --shadow-lg: 0 30px 80px rgba(230, 33, 127, 0.18), 0 8px 24px rgba(42, 29, 36, 0.08);

  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max-w: 920px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

/* ---------- Base ---------- */
body {
  min-height: 100svh;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 85% -10%, var(--bg-3) 0%, transparent 55%),
    radial-gradient(900px 600px at -10% 20%, #ffeeda 0%, transparent 60%),
    radial-gradient(800px 700px at 50% 110%, #ffe1ec 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Layout ---------- */
.container {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 56px) clamp(20px, 5vw, 40px) 80px;
  display: grid;
  gap: clamp(28px, 5vw, 48px);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  align-items: center;
  padding-top: clamp(8px, 3vw, 24px);
}

@media (min-width: 760px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-deep);
}
.eyebrow__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 4px rgba(230, 33, 127, 0.18);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero__title .name {
  display: block;
  margin-top: 4px;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(56px, 13vw, 120px);
  line-height: 0.95;
  background: linear-gradient(120deg, var(--pink-deep) 0%, var(--pink) 50%, #ff5fa0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 4vw, 32px);
  color: var(--ink);
}
.hero__sub .age {
  font-style: italic;
  font-weight: 700;
  color: var(--pink-deep);
}
.hero__sub .bang {
  display: inline-block;
  color: var(--pink);
  transform-origin: bottom center;
  animation: pop 2.6s ease-in-out infinite;
}

.hero__lead {
  margin-top: 18px;
  max-width: 32ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 2.2vw, 17px);
}

/* ---------- Hero photo ---------- */
.hero__photo {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero__photo-frame {
  position: relative;
  width: min(360px, 92%);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #ffffff 0%, #fff5f8 100%);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.2deg);
  transition: transform 0.5s ease;
}
.hero__photo-frame::before,
.hero__photo-frame::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  pointer-events: none;
}
.hero__photo-frame::before {
  width: 22px; height: 22px;
  top: -10px; left: -8px;
  background: var(--gold);
  box-shadow: 0 6px 14px rgba(245, 193, 78, 0.4);
}
.hero__photo-frame::after {
  width: 14px; height: 14px;
  bottom: 22px; right: -8px;
  background: var(--pink);
  box-shadow: 0 6px 14px rgba(230, 33, 127, 0.45);
}
.hero__photo-frame img {
  width: 100%;
  border-radius: calc(var(--radius-lg) - 10px);
  display: block;
}
.hero__photo-frame:hover {
  transform: rotate(0deg) translateY(-4px);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 44px);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}
.card--soft {
  background: linear-gradient(180deg, #fff8fb 0%, #fff1f6 100%);
}
.card__kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-deep);
}
.card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4.4vw, 38px);
  line-height: 1.15;
  margin-bottom: 18px;
  color: var(--ink);
}
.card p {
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.card p:last-child { margin-bottom: 0; }

/* ---------- Invite / date card ---------- */
.invite { text-align: center; }
.date-card {
  display: inline-grid;
  gap: 2px;
  margin: 18px auto 22px;
  padding: 16px 26px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #fff 0%, #ffeaf2 100%);
  border: 1px solid rgba(230, 33, 127, 0.12);
  box-shadow: 0 12px 28px rgba(230, 33, 127, 0.14);
  min-width: 160px;
}
.date-card__dow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-deep);
}
.date-card__day {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(56px, 10vw, 84px);
  line-height: 1;
  color: var(--pink);
  margin: 4px 0 0;
}
.date-card__month {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.invite__copy {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--ink);
  max-width: 36ch;
  margin: 0 auto 8px;
}
.invite__details {
  color: var(--ink-mute);
  font-size: 14px;
}

.invite__when {
  margin: 4px auto 14px;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 26px);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.2;
}
.invite__when-label {
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 500;
  margin-right: 6px;
}
.invite__when strong {
  font-style: italic;
  font-weight: 700;
  color: var(--pink-deep);
}

.invite__where {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.invite__where:hover {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.invite__pin {
  color: var(--pink-deep);
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.invite__where:hover .invite__pin,
.invite__where:hover .invite__ext { color: #fff; }
.invite__ext { opacity: 0.7; flex-shrink: 0; transition: color 0.2s ease; }

/* ---------- Gifts ---------- */
.gifts strong { color: var(--pink-deep); }
.aside {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-mute);
  font-style: italic;
}

/* ---------- Contribute ---------- */
.contribute__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 34px);
  text-align: center;
  margin-bottom: 6px;
}
.contribute__sub {
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.contribute__sub strong { color: var(--ink); }

.pay-cards {
  display: grid;
  gap: 16px;
}
@media (min-width: 620px) {
  .pay-cards { grid-template-columns: 1fr 1fr; }
}

.pay-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.pay-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pay-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pay-card__brand {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.pay-card__brand--zelle { background: var(--zelle); }
.pay-card__brand--venmo { background: var(--venmo); }

.pay-card__name {
  font-size: 13px;
  color: var(--ink-mute);
  font-weight: 600;
}
.pay-card__link {
  color: var(--venmo);
  text-decoration: none;
  font-weight: 700;
}
.pay-card__link:hover { text-decoration: underline; }

.pay-card__body {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.pay-card__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 4.4vw, 28px);
  letter-spacing: -0.01em;
  color: var(--ink);
  user-select: all;
  -webkit-user-select: all;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--pink-deep);
  font-weight: 700;
  font-size: 13px;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease, border-color 0.2s ease;
}
.copy-btn:hover {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}
.copy-btn:active { transform: scale(0.97); }
.copy-btn.is-copied {
  background: #1f9f5a;
  color: #fff;
  border-color: #1f9f5a;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 12px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-mute);
}
.footer .heart {
  color: var(--pink);
  display: inline-block;
  animation: heartbeat 1.6s ease-in-out infinite;
}
.footer__name { color: var(--ink-soft); font-weight: 600; }

/* ---------- Floating background balloons ---------- */
.balloons {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.balloon {
  position: absolute;
  width: 60px; height: 74px;
  border-radius: 50% 50% 48% 48% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #ffb6d4, var(--pink) 70%, var(--pink-deep) 100%);
  opacity: 0.55;
  filter: blur(0.3px);
  box-shadow: inset -6px -10px 16px rgba(184, 24, 102, 0.35);
  animation: float 14s ease-in-out infinite;
}
.balloon::after {
  content: "";
  position: absolute;
  bottom: -180px;
  left: 50%;
  width: 1px;
  height: 180px;
  background: linear-gradient(to bottom, rgba(230, 33, 127, 0.55), rgba(230, 33, 127, 0));
  transform: translateX(-50%);
}
.balloon::before {
  content: "";
  position: absolute;
  bottom: -6px; left: 50%;
  width: 8px; height: 8px;
  background: var(--pink-deep);
  border-radius: 50%;
  transform: translateX(-50%);
}
.balloon--1 { top: 8%;  left: 4%;  animation-delay: -2s;  transform: scale(0.9); }
.balloon--2 { top: 32%; right: 6%; animation-delay: -7s;  transform: scale(0.7); opacity: 0.4; }
.balloon--3 { top: 64%; left: 8%;  animation-delay: -4s;  transform: scale(0.6); opacity: 0.4; }
.balloon--4 { top: 78%; right: 10%; animation-delay: -10s; transform: scale(0.85); opacity: 0.5; }
.balloon--5 { top: 18%; left: 50%; animation-delay: -1s;  transform: scale(0.55); opacity: 0.35; }

/* ---------- Confetti canvas ---------- */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  pointer-events: none;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 30px);
  padding: 12px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(42, 29, 36, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
  max-width: 92vw;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- Animations ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(var(--s, 1)); }
  50%      { transform: translateY(-22px) scale(var(--s, 1)); }
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.2); }
  40%      { transform: scale(0.95); }
  60%      { transform: scale(1.1); }
}
@keyframes pop {
  0%, 80%, 100% { transform: scale(1) rotate(0deg); }
  85%           { transform: scale(1.25) rotate(-6deg); }
  90%           { transform: scale(0.95) rotate(4deg); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .balloons { display: none; }
  .confetti-canvas { display: none; }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 6px;
}
