:root {
  --page-max: 420px;
  --white: #ffffff;
  --soft-white: rgba(255, 255, 255, 0.82);
  --muted: rgba(255, 255, 255, 0.64);
  --ink: #111111;
  --charcoal: #1d1d1f;
  --glass: rgba(20, 20, 22, 0.44);
  --glass-strong: rgba(20, 20, 22, 0.58);
  --line: rgba(255, 255, 255, 0.18);
  --gold: #d9b86f;
  --gold-light: #f4dfa2;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background: var(--ink);
  font-family: "Montserrat", Arial, sans-serif;
}

button,
input,
a {
  font: inherit;
}

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

.background,
.background::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background {
  z-index: -3;
  overflow: hidden;
  background: var(--ink) url("assets/wedding-bg-20260808.jpg") center / cover no-repeat;
  filter: saturate(0.95) contrast(0.98) brightness(0.88);
  transform: scale(1.02);
}

.background__video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.background__video.is-playing {
  opacity: 1;
}

.background__video::-webkit-media-controls,
.background__video::-webkit-media-controls-panel,
.background__video::-webkit-media-controls-play-button,
.background__video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.background::after {
  content: "";
  z-index: -2;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.48) 0%,
      rgba(0, 0, 0, 0.39) 38%,
      rgba(0, 0, 0, 0.58) 100%
    ),
    rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(1.5px);
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(24, 24, 24, 0.94)),
    var(--ink);
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.is-hidden {
  visibility: hidden;
  opacity: 0;
}

.preloader__mark {
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 184, 111, 0.48);
  border-radius: 50%;
  color: var(--gold-light);
  font-family: "Playfair Display", serif;
  font-size: 1.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-align: center;
  padding-bottom: 3px;
  box-shadow: inset 0 0 28px rgba(217, 184, 111, 0.1);
  animation: loaderPulse 1.6s ease-in-out infinite;
}

.preloader__line {
  width: 132px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
}

.preloader__line::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--gold-light);
  animation: loaderLine 1.4s ease-in-out infinite;
}

.particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  bottom: -30px;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: rgba(244, 223, 162, 0.78);
  box-shadow: 0 0 18px rgba(244, 223, 162, 0.42);
  opacity: 0;
  animation: floatParticle var(--duration) linear infinite;
  animation-delay: var(--delay);
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(100%, var(--page-max));
  margin: 0 auto;
  padding: 0 16px 40px;
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 84px 0 58px;
}

.glass {
  width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(118%);
  -webkit-backdrop-filter: blur(22px) saturate(118%);
}

.hero-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.eyebrow,
.label {
  margin: 0;
  color: var(--gold-light);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin: 28px 0 12px;
  font-family: "Great Vibes", cursive;
  font-size: 4.05rem;
  font-weight: 400;
  line-height: 0.94;
  text-wrap: balance;
}

.hero-date {
  margin: 0;
  color: var(--soft-white);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.42rem;
  font-weight: 600;
}

.scroll-cue {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-top: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-light);
  animation: cueBounce 1.8s ease-in-out infinite;
}

.scroll-cue svg,
.icon-circle svg,
.primary-button svg,
.answer-button svg,
.music-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section {
  padding: 22px 0;
}

.section-title {
  margin: 0 0 18px;
  padding: 0 6px;
  color: var(--white);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.04;
  text-align: center;
  text-wrap: balance;
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.person-name {
  margin: 8px 0 0;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: 1.38rem;
  font-weight: 700;
}

.ampersand {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  background: rgba(217, 184, 111, 0.12);
  border: 1px solid rgba(217, 184, 111, 0.2);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.card-heading h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  line-height: 1.05;
}

.icon-circle {
  width: 42px;
  height: 42px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(217, 184, 111, 0.14);
  border: 1px solid rgba(217, 184, 111, 0.24);
}

.info-list {
  display: grid;
  gap: 14px;
}

.info-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.info-list div:last-child {
  border-bottom: 0;
}

.info-list span,
.location-copy p,
.rsvp-form label,
.footer p {
  color: var(--muted);
}

.info-list strong {
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.countdown__item {
  min-height: 84px;
  display: grid;
  place-items: center;
  padding: 12px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}

.countdown__item strong {
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  line-height: 1;
}

.countdown__item span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.wedding-day {
  margin: 22px 0 0;
  color: var(--gold-light);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.75rem;
  line-height: 1.1;
  text-align: center;
}

.location-copy {
  margin-bottom: 22px;
}

.location-copy p {
  margin: 4px 0 0;
  line-height: 1.6;
}

.location-copy .venue {
  margin: 0;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.1;
}

.primary-button,
.answer-button,
.music-toggle {
  border: 0;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.primary-button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0 18px;
  border-radius: 18px;
  color: #16110a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.primary-button:hover,
.answer-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.primary-button:active,
.answer-button:active {
  transform: scale(0.98);
}

.answer-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.rsvp-form {
  display: grid;
  gap: 14px;
}

.rsvp-form label {
  font-size: 0.82rem;
  font-weight: 700;
}

.rsvp-form input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  color: var(--white);
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.rsvp-form input:focus {
  border-color: rgba(244, 223, 162, 0.72);
  box-shadow: 0 0 0 4px rgba(217, 184, 111, 0.12);
}

.rsvp-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.answer-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font-weight: 700;
}

.answer-button.is-selected {
  color: #17120a;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: rgba(244, 223, 162, 0.7);
}

.music-toggle {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--white);
  background: var(--glass-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  font-size: 0.74rem;
  font-weight: 700;
  transform: translateX(-50%);
  white-space: nowrap;
}

.music-toggle:hover {
  transform: translateX(-50%) translateY(-2px) scale(1.01);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

.music-toggle:active {
  transform: translateX(-50%) scale(0.98);
}

.music-toggle__icon {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(217, 184, 111, 0.12);
}

.music-toggle__pause {
  display: none;
}

.music-toggle.is-playing .music-toggle__play {
  display: none;
}

.music-toggle.is-playing .music-toggle__pause {
  display: block;
}

.music-toggle__play[hidden],
.music-toggle__pause[hidden] {
  display: none !important;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 18px;
  left: 16px;
  z-index: 30;
  width: min(calc(100% - 32px), 388px);
  margin: 0 auto;
  padding: 16px 18px;
  border: 1px solid rgba(244, 223, 162, 0.34);
  border-radius: 18px;
  color: var(--white);
  background: rgba(17, 17, 17, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.footer {
  padding: 32px 0 10px;
  text-align: center;
}

.footer p {
  margin: 0 0 4px;
}

.footer strong {
  color: var(--gold-light);
  font-family: "Great Vibes", cursive;
  font-size: 2.25rem;
  font-weight: 400;
}

.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@keyframes loaderPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.045);
  }
}

@keyframes loaderLine {
  0% {
    transform: translateX(-54px);
  }

  100% {
    transform: translateX(140px);
  }
}

@keyframes cueBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(8px);
  }
}

@keyframes floatParticle {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.7);
  }

  15% {
    opacity: 0.58;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--drift), -112vh, 0) scale(1.1);
  }
}

@media (max-width: 370px) {
  .site-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .glass {
    padding: 22px;
  }

  h1 {
    font-size: 3.55rem;
  }

  .hero-card {
    min-height: 402px;
  }

  .countdown {
    gap: 6px;
  }

  .countdown__item {
    min-height: 78px;
  }

  .countdown__item strong {
    font-size: 1.34rem;
  }

  .countdown__item span {
    font-size: 0.62rem;
  }
}

@media (max-width: 600px) {
  .background__video {
    object-position: center 54%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
