:root {
  --ink: #2c2028;
  --muted: #7d6c76;
  --cream: #fff8ec;
  --paper: #fffdf8;
  --pink: #d95f85;
  --peach: #f1a66f;
  --mint: #65b9a4;
  --gold: #c79a45;
  --line: rgba(44, 32, 40, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
}

body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

@media (pointer: fine) {
  body, a, button, input, select { cursor: none; }
  .custom-cursor,
  .custom-cursor-dot {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity 0.2s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease;
  }
  .custom-cursor {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(217, 95, 133, 0.52);
    border-radius: 50%;
    background: rgba(255, 248, 236, 0.22);
    backdrop-filter: blur(6px);
  }
  .custom-cursor-dot {
    width: 7px;
    height: 7px;
    background: var(--pink);
    border-radius: 50%;
  }
  body.cursor-ready .custom-cursor,
  body.cursor-ready .custom-cursor-dot { opacity: 1; }
  body.cursor-hover .custom-cursor { width: 58px; height: 58px; background: rgba(217, 95, 133, 0.16); }
}

.party-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 20%, rgba(217, 95, 133, 0.24), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(101, 185, 164, 0.24), transparent 28%),
    #fff8ec;
  transition: opacity 0.75s ease, visibility 0.75s ease, transform 0.75s ease;
}

body.loader-done .party-loader {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
}

.balloon-loader {
  display: grid;
  place-items: center;
  width: min(62vw, 260px);
  aspect-ratio: 0.82;
  color: #fff;
  background: linear-gradient(145deg, var(--pink), var(--peach));
  border-radius: 48% 48% 52% 52%;
  box-shadow: 0 24px 70px rgba(217, 95, 133, 0.28);
  animation: balloonFloat 2.2s ease-in-out infinite;
}

.balloon-loader span {
  font-family: "Playfair Display", serif;
  font-size: 112px;
}

.party-loader strong {
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 6vw, 72px);
}

.party-progress {
  width: min(72vw, 380px);
  height: 3px;
  overflow: hidden;
  background: rgba(44, 32, 40, 0.12);
  border-radius: 999px;
}

.party-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--pink), var(--peach), var(--mint));
  transform: translateX(-100%);
  animation: partyProgress 2s ease forwards;
}

.party-loader p,
.eyebrow {
  margin: 0;
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@keyframes balloonFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-14px) rotate(2deg); }
}

@keyframes partyProgress {
  to { transform: translateX(0); }
}

.party-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(18px, 5vw, 60px);
  background: rgba(255, 248, 236, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(18px);
  font-weight: 900;
}

.party-nav nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

.sample-logo,
footer strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sample-logo-icon,
footer strong img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  padding: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(217, 95, 133, 0.14);
}

.sample-logo-wordmark {
  width: clamp(108px, 14vw, 164px);
  height: auto;
  display: block;
  mix-blend-mode: multiply;
}

.sample-logo span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.party-hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  padding: 120px clamp(20px, 6vw, 76px) 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 20%, rgba(217, 95, 133, 0.17), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(101, 185, 164, 0.17), transparent 32%),
    #fff8ec;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(217, 95, 133, 0.42) 0 4px, transparent 4px),
    radial-gradient(circle, rgba(101, 185, 164, 0.36) 0 3px, transparent 3px);
  background-size: 90px 90px, 120px 120px;
  animation: confettiDrift 18s linear infinite;
  opacity: 0.5;
}

@keyframes confettiDrift {
  to { transform: translateY(120px); }
}

.party-copy {
  position: relative;
  z-index: 1;
}

h1,
h2 {
  margin: 0;
  font-family: "Playfair Display", "Marcellus", serif;
}

h1 {
  max-width: 800px;
  font-size: clamp(58px, 10vw, 128px);
  line-height: 0.88;
}

h2 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1;
}

.party-copy p:not(.eyebrow),
.party-details p,
.party-rsvp p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.party-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.party-actions a,
.party-rsvp button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  color: #fff;
  background: var(--pink);
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.gift-box {
  position: relative;
  z-index: 1;
  min-height: 360px;
  border: 0;
  background: transparent;
}

.gift-body,
.gift-lid,
.gift-surprise {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.gift-body {
  bottom: 38px;
  display: grid;
  place-items: center;
  width: min(76vw, 330px);
  height: 230px;
  color: #fff;
  background: linear-gradient(145deg, var(--mint), #318875);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(44, 32, 40, 0.16);
  font-weight: 900;
}

.gift-lid {
  bottom: 254px;
  width: min(80vw, 360px);
  height: 76px;
  background: linear-gradient(145deg, var(--pink), var(--peach));
  border-radius: 22px;
  transition: transform 0.6s ease;
}

.gift-surprise {
  bottom: 154px;
  color: var(--pink);
  font-family: "Playfair Display", serif;
  font-size: 34px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.gift-box:hover .gift-lid,
.gift-box.is-open .gift-lid {
  transform: translateX(-50%) translateY(-92px) rotate(-8deg);
}

.gift-box:hover .gift-surprise,
.gift-box.is-open .gift-surprise {
  opacity: 1;
  transform: translateX(-50%) translateY(-58px);
}

section:not(.party-hero) {
  padding: 90px clamp(20px, 5vw, 64px);
}

.timeline-grid,
.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.timeline-grid article,
.detail-stack article,
.party-rsvp form {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(44, 32, 40, 0.1);
}

.timeline-grid span,
.detail-stack span {
  color: var(--pink);
  font-weight: 900;
}

.timeline-grid strong,
.detail-stack strong {
  display: block;
  margin-top: 12px;
  font-family: "Marcellus", serif;
  font-size: 28px;
  font-weight: 400;
}

.timeline-grid p {
  color: var(--muted);
}

.party-details,
.party-rsvp {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}

.detail-stack,
.party-rsvp form {
  display: grid;
  gap: 14px;
}

.memory-wall {
  background: #fff3df;
}

.memory-grid img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(44, 32, 40, 0.1);
}

input,
select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.72);
  background: #1d1519;
}

footer strong { color: #fff; }

@media (max-width: 760px) {
  .party-nav nav { display: none; }
  .party-hero,
  .timeline-grid,
  .memory-grid,
  .party-details,
  .party-rsvp {
    grid-template-columns: 1fr;
  }
  .memory-grid img { height: 340px; }
  footer { display: grid; }
}

.sample-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 1fr) auto;
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  padding: 36px clamp(20px, 5vw, 64px);
  color: rgba(255, 255, 255, 0.74);
  background: radial-gradient(circle at 8% 0%, rgba(217, 95, 133, 0.24), transparent 34%), linear-gradient(145deg, #27141f, #120c11 72%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sample-footer-brand,
.sample-footer nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sample-footer-brand span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 5px;
  background: #fff;
  border-radius: 50%;
}

.sample-footer-brand span img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sample-footer-wordmark {
  width: min(164px, 42vw);
  height: auto;
}

.sample-footer-copy {
  display: grid;
  gap: 5px;
}

.sample-footer-copy strong {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}

.sample-footer-copy span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sample-footer nav {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.sample-footer nav a {
  padding: 10px 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  transition: background 0.24s ease, transform 0.24s ease;
}

.sample-footer nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

@media (max-width: 820px) {
  .sample-footer {
    grid-template-columns: 1fr;
  }

  .sample-footer nav {
    justify-content: flex-start;
  }
}
