@import url('https://fonts.googleapis.com/css2?family=Creepster&family=DM+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --ink: #17121f;
  --plum: #281b32;
  --cream: #fff3dc;
  --orange: #ff783f;
  --muted: #c8b9cb;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 32px 18px;
  display: grid;
  place-items: center;
  overflow-x: hidden;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 15% 15%, #51304f 0, transparent 35%),
    radial-gradient(ellipse at 90% 85%, #4a2a28 0, transparent 32%),
    var(--ink);
  font-family: 'DM Sans', sans-serif;
}

body::before {
  content: "✦  ·  ✧  ·  ✦";
  position: fixed;
  top: 7%;
  left: 7%;
  color: #ffb078;
  opacity: .6;
  letter-spacing: 1rem;
  font-size: 1.1rem;
  pointer-events: none;
}

body::after {
  content: "✧  ·  ✦  ·  ✧";
  position: fixed;
  right: 5%;
  bottom: 7%;
  color: #ffb078;
  opacity: .5;
  letter-spacing: .8rem;
  font-size: 1rem;
  pointer-events: none;
}

.invitation {
  position: relative;
  isolation: isolate;
  width: min(100%, 680px);
  padding: clamp(30px, 7vw, 62px);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(255, 243, 220, .22);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(52, 34, 61, .96), rgba(27, 20, 34, .97));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38), inset 0 0 0 7px rgba(255, 243, 220, .025);
}

.invitation::before,
.invitation::after {
  content: "✦";
  position: absolute;
  z-index: -1;
  color: var(--orange);
  opacity: .18;
  font-size: 8rem;
}
.invitation::before { top: 5px; left: 14px; transform: rotate(-18deg); }
.invitation::after { right: 12px; bottom: 25px; transform: rotate(15deg); }

.moon {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 35px rgba(255, 243, 220, .2);
  position: relative;
}
.moon::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  top: -8px;
  left: 16px;
  border-radius: 50%;
  background: #34223d;
}

.eyebrow, .detail-label, .footer {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .19em;
}
.eyebrow { color: var(--muted); margin: 0 0 12px; }

.overline {
  margin: 0;
  color: var(--orange);
  font-family: 'Creepster', cursive;
  font-size: clamp(2rem, 8vw, 3.2rem);
  letter-spacing: .13em;
  line-height: 1;
  transform: rotate(-3deg);
}

h1 {
  margin: 10px 0 14px;
  font-family: 'Creepster', cursive;
  font-size: clamp(3.5rem, 12vw, 6.3rem);
  font-weight: 400;
  line-height: .92;
  letter-spacing: .015em;
  text-shadow: 3px 4px 0 rgba(255, 120, 63, .18);
}
h1 span { color: var(--orange); }

.intro {
  margin: 20px 0 30px;
  color: var(--muted);
  font-size: .98rem;
}

.details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 auto 28px;
}
.detail {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 20px 12px;
  border: 1px solid rgba(255, 243, 220, .15);
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
}
.detail-label { color: var(--orange); }
.detail strong { font-size: .95rem; }
.detail span:last-child { color: var(--muted); font-size: .85rem; }

.welcome {
  margin: 0 auto 8px;
  max-width: 430px;
  font-size: 1.03rem;
  line-height: 1.6;
}
.welcome em { color: var(--orange); font-style: normal; font-weight: 800; }
.small-note { margin: 0 0 26px; color: var(--muted); font-size: .88rem; }

.rsvp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(100%, 390px);
  padding: 17px 22px;
  border: 0;
  border-radius: 999px;
  color: #211624;
  background: var(--orange);
  box-shadow: 0 8px 0 #a8432b, 0 14px 28px rgba(0, 0, 0, .22);
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.rsvp:hover {
  transform: translateY(2px);
  background: #ff925f;
  box-shadow: 0 6px 0 #a8432b, 0 10px 22px rgba(0, 0, 0, .2);
}
.rsvp:focus-visible { outline: 3px solid var(--cream); outline-offset: 5px; }
.arrow { margin-left: auto; font-size: 1.1rem; }

.email-note { margin: 17px 0 28px; color: var(--muted); font-size: .76rem; }
.email-note strong { color: var(--cream); }

.footer {
  padding-top: 19px;
  border-top: 1px solid rgba(255, 243, 220, .12);
  color: var(--muted);
  font-size: .6rem;
}
.footer span { padding: 0 8px; color: var(--orange); }

@media (max-width: 480px) {
  body { padding: 18px 12px; }
  .invitation { border-radius: 22px; }
  .details { grid-template-columns: 1fr; }
  .detail { padding: 16px 12px; }
  .eyebrow { font-size: .58rem; letter-spacing: .12em; }
}


/* Floating Halloween decorations — keep these image files beside index.html. */
.floaters {
  position: fixed;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}
.floater {
  position: absolute;
  width: clamp(58px, 8vw, 112px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .28));
  animation: bob 4.8s ease-in-out infinite;
}
.floater-cat { left: 3%; top: 18%; animation-delay: -1s; }
.floater-sonya { right: 3%; top: 16%; width: clamp(68px, 9vw, 128px); animation-delay: -2.2s; }
.floater-ghost { left: 5%; bottom: 14%; width: clamp(54px, 7vw, 96px); animation-delay: -3.1s; }
.floater-pumpkin { right: 4%; bottom: 13%; animation-delay: -.6s; }
.floater-cat-two { right: 13%; top: 48%; width: clamp(44px, 6vw, 76px); animation-delay: -1.8s; }

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-16px) rotate(5deg); }
}

@media (max-width: 760px) {
  .floaters { position: absolute; }
  .floater-cat { left: 2%; top: 3%; width: 48px; }
  .floater-sonya { right: 2%; top: 3%; width: 56px; }
  .floater-ghost { left: 2%; bottom: 2%; width: 42px; }
  .floater-pumpkin { right: 2%; bottom: 2%; width: 48px; }
  .floater-cat-two { right: 4%; top: 36%; width: 38px; }
}