:root {
  --night: #0b1c2c;
  --night-deep: #061018;
  --gold: #c6a15b;
  --gold-soft: #e2c789;
  --tropical: #1f6b5a;
  --tropical-light: #2f8f78;
  --ivory: #f7f3ea;
  --cream: #efe6d6;
  --coral: #e07a5f;
  --peach: #f0b7a0;
  --ink: #14202b;
  --muted: rgba(247, 243, 234, 0.72);
  --line: rgba(198, 161, 91, 0.35);
  --shadow: 0 24px 60px rgba(6, 16, 24, 0.35);
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ivory);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(47, 143, 120, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 45% at 90% 10%, rgba(224, 122, 95, 0.14), transparent 50%),
    linear-gradient(165deg, var(--night-deep) 0%, var(--night) 45%, #123047 100%);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(6, 16, 24, 0.88), transparent);
  backdrop-filter: blur(6px);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold-soft);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  justify-content: flex-end;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  opacity: 0.78;
  transition: opacity 0.25s var(--ease), color 0.25s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory);
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 16, 24, 0.25) 0%, rgba(6, 16, 24, 0.55) 45%, rgba(6, 16, 24, 0.92) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800' viewBox='0 0 800 800'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop stop-color='%231f6b5a' stop-opacity='.35'/%3E%3Cstop offset='1' stop-color='%230b1c2c' stop-opacity='.1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='800' height='800' fill='%060b1c2c'/%3E%3Cpath d='M40 700C180 520 220 420 180 280C300 360 360 480 340 640C460 500 540 420 620 300C580 520 640 620 760 700H40Z' fill='url(%23g)'/%3E%3Cpath d='M120 120c40 60 20 120-20 160 80-10 140 40 160 110-10-90 40-160 120-190-90 10-150-40-180-100-20 40-50 40-80 20z' fill='%23c6a15b' fill-opacity='.12'/%3E%3C/svg%3E") center/cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-leaf {
  position: absolute;
  width: min(42vw, 320px);
  opacity: 0.28;
  filter: blur(0.2px);
  pointer-events: none;
}

.hero-leaf.left {
  left: -4%;
  bottom: 8%;
  animation: floatY 9s var(--ease) infinite alternate;
}

.hero-leaf.right {
  right: -6%;
  top: 18%;
  transform: scaleX(-1);
  animation: floatY 11s var(--ease) infinite alternate-reverse;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 7rem 1.25rem 4rem;
  max-width: 920px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0;
  animation: rise 1s var(--ease) 0.15s forwards;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(3.4rem, 12vw, 7.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ivory);
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.28s forwards;
}

.hero-title span {
  display: block;
  font-size: 0.42em;
  margin: 0.55rem 0;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.hero-date {
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--peach);
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.42s forwards;
}

.hero-lead {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.55s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.2rem;
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.7s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #a8843f);
  color: var(--night-deep);
  font-weight: 700;
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(247, 243, 234, 0.04);
  color: var(--ivory);
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(4.5rem, 1fr));
  gap: 0.75rem;
  max-width: 28rem;
  margin: 2.5rem auto 0;
  opacity: 0;
  animation: rise 1.1s var(--ease) 0.85s forwards;
}

.countdown div {
  padding: 0.9rem 0.4rem;
  border: 1px solid var(--line);
  background: rgba(7, 18, 28, 0.45);
  backdrop-filter: blur(8px);
}

.countdown strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  color: var(--gold-soft);
}

.countdown span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.page {
  padding: 7rem clamp(1rem, 4vw, 2.5rem) 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 2.5rem;
}

.page-header h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
}

.page-header p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 40rem;
}

.section-grid {
  display: grid;
  gap: 1.25rem;
}

.timeline-item,
.info-block,
.place-block {
  padding: 1.35rem 1.25rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
}

.timeline-item h2,
.place-block h2,
.info-block h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--gold-soft);
}

.time-label {
  color: var(--coral);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.site-footer {
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid rgba(198, 161, 91, 0.2);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-soft);
  font-weight: 500;
}

.form-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: rgba(7, 18, 28, 0.55);
  backdrop-filter: blur(10px);
}

.guest-card {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(198, 161, 91, 0.18);
}

.guest-card:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.guest-card h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--gold-soft);
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.field label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(198, 161, 91, 0.28);
  border-radius: 0;
  background: rgba(247, 243, 234, 0.04);
  color: var(--ivory);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.checks {
  display: grid;
  gap: 0.45rem;
  margin: 0.75rem 0 1rem;
}

.checks label {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--muted);
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.status-pills label {
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.status-pills input {
  accent-color: var(--gold);
}

.alert {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(198, 161, 91, 0.1);
}

.alert.error {
  border-left-color: var(--coral);
  background: rgba(224, 122, 95, 0.12);
}

.alert.success {
  border-left-color: var(--tropical-light);
  background: rgba(47, 143, 120, 0.14);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatY {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-18px);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, 1%, 0);
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    padding: 1rem;
    background: rgba(6, 16, 24, 0.96);
    border: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }
}
