:root {
  --cream: #fdf8ee;
  --cream-2: #f7efe0;
  --ink: #5b4636;
  --ink-soft: #8a7261;
  --boy: #6fa8dc;
  --girl: #e79bb8;
  --line: #cdb89f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Quicksand", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 20%, #f7dbe2 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, #cfe2f5 0%, transparent 45%),
    radial-gradient(circle at 80% 90%, #dfeee2 0%, transparent 45%),
    linear-gradient(160deg, #fbeef1, #eaf2fb 60%, #f0f8f2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 12px;
  position: relative;
  overflow-x: hidden;
}

/* floating hearts */
.floaties { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.floaties span {
  position: absolute;
  bottom: -40px;
  font-size: 20px;
  opacity: 0.5;
  animation: rise linear infinite;
}
@keyframes rise {
  to { transform: translateY(-115vh) rotate(360deg); opacity: 0; }
}

/* card */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  background: var(--cream);
  border: 2px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(91, 70, 54, 0.18);
  padding: 54px 34px 40px;
  text-align: center;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid #e4d3ba;
  border-radius: 18px;
  pointer-events: none;
}

/* balloons */
.balloons { position: absolute; top: 18px; display: flex; gap: 4px; }
.balloons--left { left: 20px; }
.balloons--right { right: 20px; }
.balloon {
  width: 34px; height: 44px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  box-shadow: inset -6px -8px 0 rgba(255,255,255,0.35);
  animation: bob 4s ease-in-out infinite;
}
.balloon--pink { background: #f2b8c6; }
.balloon--blue { background: #a9cd ; background: #a9cdec; animation-delay: .6s; }
.balloon::after {
  content: ""; position: absolute; bottom: -22px; left: 50%;
  width: 1px; height: 22px; background: var(--line); transform: translateX(-50%);
}
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }

/* dividers */
.divider {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; color: var(--girl); margin: 6px 0 18px;
}
.divider::before, .divider::after {
  content: ""; height: 1px; width: 46px; background: var(--line);
}
.divider.small { margin: 22px 0; }
.divider.small::before, .divider.small::after { width: 60px; }

/* text */
.eyebrow {
  letter-spacing: .32em; text-transform: uppercase;
  font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.12;
  letter-spacing: .01em;
  margin: 10px 0 4px;
}
.title .amp { color: var(--girl); }
.honoring {
  letter-spacing: .28em; text-transform: uppercase;
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  margin-top: 14px;
}
.names {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1;
  margin-top: 4px;
}
.lead { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.7; }
.reveal {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 10vw, 54px);
  margin-top: 12px;
}
.reveal .boy { color: var(--boy); }
.reveal .girl { color: var(--girl); }
.reveal .or { color: var(--ink-soft); font-size: .6em; font-family: "Quicksand"; }

/* details */
.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
  margin: 30px auto 6px;
  max-width: 460px;
  text-align: left;
}
.detail { display: flex; align-items: center; gap: 12px; }
.detail.wide { grid-column: 1 / -1; }
.detail .ico {
  font-size: 20px;
  flex: 0 0 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--cream-2);
  border: 1px solid #e4d3ba;
  border-radius: 12px;
}
.detail strong { display: block; font-size: 17px; font-weight: 700; }
.detail .sub { font-size: 13px; color: var(--ink-soft); }

/* clickable location */
.detail--link {
  text-decoration: none;
  color: inherit;
  padding: 6px;
  margin: -6px;
  border-radius: 12px;
  transition: background .18s ease, transform .18s ease;
}
.detail--link:hover { background: var(--cream-2); transform: translateY(-1px); }
.detail--link .maps-cue {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--boy);
  margin-top: 3px;
}

/* note + dress code */
.note { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; }
.dresscode { margin-top: 22px; }
.dresscode__label { letter-spacing: .2em; text-transform: uppercase; font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.dresscode__value { font-family: "Dancing Script", cursive; font-size: 30px; font-weight: 700; margin-top: 2px; }
.swatches { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.swatches span {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 2px 6px rgba(91,70,54,.15);
}

/* bears */
.bears { display: flex; justify-content: space-between; margin: 26px 8px 0; font-size: 46px; }
.bear { animation: sway 5s ease-in-out infinite; }
.bear:last-child { animation-delay: 1s; }
@keyframes sway { 0%,100%{transform:rotate(-4deg)} 50%{transform:rotate(4deg)} }

/* button */
.rsvp {
  display: block;
  margin: 22px auto 6px;
  max-width: 340px;
  padding: 18px 28px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--boy), var(--girl));
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(231, 155, 184, 0.4);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.rsvp:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 16px 32px rgba(111,168,220,.45); }
.rsvp:active { transform: translateY(0) scale(.99); }
.rsvp.is-disabled { filter: grayscale(.25) opacity(.85); cursor: default; }
.rsvp__text { display: block; font-size: 22px; font-weight: 700; letter-spacing: .04em; }
.rsvp__sub { display: block; font-size: 12px; opacity: .9; margin-top: 2px; letter-spacing: .06em; }

.rsvp-hint { font-size: 12px; color: var(--ink-soft); margin-top: 4px; min-height: 16px; }

.footer { position: relative; z-index: 1; margin-top: 18px; font-size: 13px; color: var(--ink-soft); }

@media (max-width: 420px) {
  .card { padding: 46px 20px 32px; }
  .details { grid-template-columns: 1fr; }
  .balloon { width: 26px; height: 34px; }
}
