:root {
  --navy: #0a1430;
  --navy-2: #122247;
  --navy-3: #1b3060;
  --gold-1: #f7e7b0;
  --gold-2: #d4af52;
  --gold-3: #b8862f;
  --gold-line: rgba(212, 175, 82, 0.45);
  --cream: #efe7d2;
  --cream-soft: #cdc6b4;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--cream);
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(212, 175, 82, 0.12), transparent 60%),
    radial-gradient(900px 600px at 85% 100%, rgba(212, 175, 82, 0.10), transparent 60%),
    linear-gradient(165deg, var(--navy), var(--navy-2) 55%, var(--navy));
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* faint sparkle overlay */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(247, 231, 176, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(247, 231, 176, 0.4), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(247, 231, 176, 0.4), transparent),
    radial-gradient(1px 1px at 85% 20%, rgba(247, 231, 176, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(247, 231, 176, 0.35), transparent);
  background-size: 600px 600px;
  opacity: 0.6;
}
main, .ball-nav { position: relative; z-index: 1; }

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.1; margin: 0; }

.gold-text {
  background: linear-gradient(180deg, var(--gold-1) 0%, var(--gold-2) 55%, var(--gold-3) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

a { color: inherit; }

/* NAV */
.ball-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--gold-line);
  background: rgba(10, 20, 48, 0.6); backdrop-filter: blur(10px);
  position: sticky; top: 0;
}
.ball-nav .back { text-decoration: none; color: var(--cream-soft); font-weight: 700; font-size: 0.95rem; }
.ball-nav .back:hover { color: var(--gold-1); }
.ball-nav .nav-brand { font-family: "Fraunces", serif; font-weight: 700; letter-spacing: 0.04em; }

/* BUTTONS */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: "Nunito", sans-serif; font-weight: 800; font-size: 1.05rem;
  padding: 1rem 2.2rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  color: var(--navy); border: none;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 10px 30px rgba(212, 175, 82, 0.35);
  transition: transform var(--ease) 220ms, box-shadow var(--ease) 220ms;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(212, 175, 82, 0.5); }
.btn-gold.sm { padding: 0.6rem 1.3rem; font-size: 0.95rem; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 800; font-size: 1.05rem; padding: 1rem 2.2rem; border-radius: 999px;
  text-decoration: none; color: var(--gold-1); border: 1.5px solid var(--gold-line);
  transition: border-color 220ms, color 220ms, transform var(--ease) 220ms;
}
.btn-outline:hover { border-color: var(--gold-1); transform: translateY(-2px); }
:focus-visible { outline: 3px solid var(--gold-1); outline-offset: 3px; }

/* FRAME */
.invite {
  max-width: 1000px; margin: clamp(1.5rem, 4vw, 3.5rem) auto;
  padding: clamp(1rem, 4vw, 2rem);
}
.invite-frame {
  border: 1px solid var(--gold-line);
  border-radius: 26px;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.2rem, 4vw, 3.5rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  box-shadow: inset 0 0 0 6px rgba(212, 175, 82, 0.08), 0 30px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.kicker { letter-spacing: 0.34em; text-transform: uppercase; font-size: 0.8rem; color: var(--cream-soft); margin: 0 0 1rem; font-weight: 700; }
.title-all { font-size: clamp(2rem, 1rem + 5vw, 4rem); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.title-fin { font-family: "Pinyon Script", cursive; font-size: clamp(4rem, 2rem + 12vw, 9rem); line-height: 0.8; margin: 0.2em 0; display: inline-block; }
.title-fin .heart { font-family: "Nunito"; font-size: 0.35em; vertical-align: super; }
.subtitle { font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; margin-top: 0.3rem; }

/* PHOTO - Fin the star, with a rotating gold halo */
.fin-portrait-wrap {
  position: relative;
  width: clamp(160px, 30vw, 240px); height: clamp(160px, 30vw, 240px);
  margin: 2.4rem auto 1.6rem;
}
.fin-portrait-wrap::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg, var(--gold-1), var(--navy-3), var(--gold-2), var(--navy-3), var(--gold-1));
  filter: blur(16px); opacity: 0.85;
  animation: finHalo 8s linear infinite;
}
.fin-portrait {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover; display: block;
  border: 4px solid transparent;
  background: linear-gradient(var(--navy), var(--navy)) padding-box,
              linear-gradient(135deg, var(--gold-1), var(--gold-3)) border-box;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  animation: finPulse 6s var(--ease) infinite;
}
@keyframes finHalo { to { transform: rotate(1turn); } }
@keyframes finPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5); }
  50% { transform: scale(1.035); box-shadow: 0 18px 52px rgba(212, 175, 82, 0.5); }
}

.lead { max-width: 52ch; margin: 0 auto; color: var(--cream); font-size: 1.1rem; }

/* DIVIDER */
.divider { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2.5rem auto; color: var(--gold-2); }
.divider::before, .divider::after { content: ""; height: 1px; width: min(120px, 22vw); background: linear-gradient(90deg, transparent, var(--gold-line)); }
.divider::after { background: linear-gradient(90deg, var(--gold-line), transparent); }
.divider svg { width: 18px; height: 18px; }

.ribbon {
  display: inline-block; margin: 1.5rem auto 0; padding: 0.7rem 2rem;
  border: 1px solid var(--gold-line); border-radius: 999px;
  font-family: "Fraunces", serif; font-style: italic; font-size: clamp(1rem, 0.9rem + 0.6vw, 1.4rem);
  color: var(--gold-1); letter-spacing: 0.04em;
}

/* DETAILS GRID */
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin: 3rem 0 0; }
.detail { padding: 1.5rem 1rem; border: 1px solid rgba(212, 175, 82, 0.18); border-radius: 16px; background: rgba(255, 255, 255, 0.02); }
.detail .ico { color: var(--gold-2); margin-bottom: 0.8rem; display: flex; justify-content: center; }
.detail .ico svg { width: 30px; height: 30px; }
.detail h3 { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-1); margin-bottom: 0.5rem; }
.detail p { margin: 0; font-size: 0.98rem; color: var(--cream); }
@media (max-width: 820px) { .details { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .details { grid-template-columns: 1fr; } }

/* EVENING / FEATURES */
.evening { max-width: 1000px; margin: 0 auto; padding: clamp(2rem, 4vw, 3rem) clamp(1.2rem, 4vw, 2rem); }
.evening h2 { text-align: center; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 2.5rem; }
.features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.feature { text-align: center; }
.feature .ico { width: 58px; height: 58px; margin: 0 auto 0.9rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-line); color: var(--gold-1); }
.feature .ico svg { width: 26px; height: 26px; }
.feature p { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream-soft); font-weight: 700; margin: 0; }
@media (max-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

/* BOOKING */
.booking { max-width: 760px; margin: 0 auto clamp(3rem, 6vw, 6rem); padding: 0 clamp(1.2rem, 4vw, 2rem); }
.booking-card {
  border: 1px solid var(--gold-line); border-radius: 22px; padding: clamp(2rem, 4vw, 3.5rem);
  text-align: center; background: linear-gradient(180deg, rgba(212, 175, 82, 0.06), rgba(255, 255, 255, 0));
}
.booking-card h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); margin-bottom: 0.8rem; }
.booking-card p { color: var(--cream); margin: 0 auto 1.8rem; max-width: 46ch; }
.booking-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.dress {
  margin: 2.2rem auto 0; display: inline-flex; flex-direction: column; gap: 0.2rem;
  padding: 0.9rem 2rem; border: 1px dashed var(--gold-line); border-radius: 14px;
}
.dress span { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-soft); }
.dress strong { font-family: "Fraunces", serif; font-size: 1.2rem; color: var(--gold-1); }
.note { font-size: 0.82rem; color: var(--cream-soft); margin-top: 1.5rem; }

/* FOOTER */
.ball-footer { text-align: center; padding: 2.5rem 1.5rem 3.5rem; border-top: 1px solid var(--gold-line); }
.ball-footer p { font-family: "Fraunces", serif; font-style: italic; font-size: clamp(1rem, 0.9rem + 0.6vw, 1.3rem); color: var(--gold-1); margin: 0; }
.ball-footer .small { font-style: normal; font-family: "Nunito"; font-size: 0.85rem; color: var(--cream-soft); margin-top: 1rem; }

/* MOBILE NAV TIDY */
@media (max-width: 560px) {
  .ball-nav { padding: 0.8rem 1rem; gap: 0.6rem; }
  .ball-nav .nav-brand { display: none; }
  .ball-nav .back { font-size: 0.88rem; }
  .subtitle { letter-spacing: 0.12em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-gold:hover, .btn-outline:hover { transform: none; }
  .fin-portrait, .fin-portrait-wrap::before { animation: none; }
  body, body::before { background-attachment: scroll; }
}
