:root {
  --cream: #fdf8f3;
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --shadow: rgba(40, 22, 28, 0.45);
  --overlay: rgba(35, 20, 28, 0.42);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  color: var(--cream);
  background: #1a1216;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 1.5rem;
  background: #0a0809;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}

.intro-gate__hint {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.3rem, 9.2vw, 3.4rem);
  font-weight: 400;
  color: var(--gold-light);
  text-align: center;
  opacity: 0.9;
  text-shadow:
    0.4px 0 0 rgba(232, 213, 163, 0.35),
    -0.4px 0 0 rgba(232, 213, 163, 0.35),
    0 2px 14px var(--shadow);
}

.intro-gate__btn {
  margin: 0;
  padding: 0.85rem 1.75rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.2rem, 3.5vw, 1.45rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0a0809;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  border: none;
  border-radius: 999px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.intro-gate__btn:hover {
  filter: brightness(1.05);
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.intro-gate__btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.intro-gate__btn:active {
  transform: scale(0.98);
}

.page--invited .intro-gate {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .intro-gate {
    transition: none;
  }
}

.video-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  pointer-events: none;
}

.video-layer--mobile {
  flex-direction: column;
}

.video-layer video {
  display: block;
  flex-shrink: 0;
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.video-layer--mobile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay);
  pointer-events: none;
}

.content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3rem);
  max-width: 42rem;
}

.invite-lead {
  margin: 0 0 1rem;
}

.invite-label {
  margin: 0;
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.92;
  text-shadow: 0 2px 12px var(--shadow);
  animation: fadeUp 1s ease 0.1s both;
}

.invite-sub {
  margin: 0.5rem 0 0;
  font-size: clamp(1.6rem, 4.8vw, 2.15rem);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.95;
  text-shadow: 0 2px 10px var(--shadow);
  animation: fadeUp 1s ease 0.2s both;
}

.names {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.8rem, 13.2vw, 6.4rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--gold-light);
  text-shadow:
    0.45px 0 0 rgba(232, 213, 163, 0.3),
    -0.45px 0 0 rgba(232, 213, 163, 0.3),
    0 2px 4px var(--shadow),
    0 0 40px rgba(201, 169, 98, 0.25);
  animation: fadeUp 1s ease 0.35s both;
}

.names .name {
  display: inline-block;
}

.names .ampersand {
  display: block;
  font-size: 0.45em;
  margin: 0.15em 0;
  color: var(--gold);
  opacity: 0.95;
}

.date {
  display: block;
  margin: 1.75rem 0 0;
  font-size: clamp(1.95rem, 5.8vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cream);
  border-top: 1px solid rgba(201, 169, 98, 0.45);
  border-bottom: 1px solid rgba(201, 169, 98, 0.45);
  padding: 0.85rem 1.5rem;
  text-shadow: 0 2px 12px var(--shadow);
  animation: fadeUp 1s ease 0.5s both;
}

.details-note {
  margin: 1.25rem 0 0;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.9;
  text-shadow: 0 2px 10px var(--shadow);
  animation: fadeUp 1s ease 0.65s both;
}

.closing {
  margin: 1.25rem 0 0;
  font-size: clamp(1.25rem, 3.4vw, 1.6rem);
  font-weight: 600;
  line-height: 1.5;
  opacity: 0.9;
  text-shadow: 0 2px 10px var(--shadow);
  animation: fadeUp 1s ease 0.8s both;
}

.mood-note {
  margin: 1.1rem 0 0;
  font-size: clamp(1.15rem, 3.1vw, 1.45rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.88;
  text-shadow: 0 2px 10px var(--shadow);
  animation: fadeUp 1s ease 0.95s both;
}

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

@media (prefers-reduced-motion: reduce) {
  .invite-label,
  .invite-sub,
  .names,
  .date,
  .details-note,
  .closing,
  .mood-note {
    animation: none;
  }
}
