/* ==========================================================================
   Frederick & Nicolene — Save the Date (root landing page only)
   Scoped entirely to this stylesheet; not linked from /admin or /invite.
   ========================================================================== */

html, body.std-page {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--navy);
}

.std-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url('/assets/img/savethedate/5.jpeg');
  background-size: cover;
  background-position: center 25%;
  filter: blur(1px) brightness(0.92) saturate(1.02);
  transform: scale(1.08);
  animation: stdKenBurns 26s ease-in-out infinite alternate;
}

.std-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(20,33,61,0.38) 0%, rgba(58,10,24,0.28) 45%, rgba(20,33,61,0.56) 100%);
}

.std-content {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  text-align: center;
  padding: max(3vh, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(3vh, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

/* -------- "Save / The / Date" — stacked words -------- */
.std-title {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stdw {
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  line-height: 1.15;
  color: var(--gold-light);
  font-size: clamp(30px, 6.4dvh, 66px);
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(-20px);
  animation: stdSlideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.14s * var(--i) + 1.15s);
}

/* -------- Names -------- */
.std-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: clamp(10px, 2dvh, 22px);
  opacity: 0;
  transform: translateY(24px);
  animation: stdSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 2.15s;
}
.std-names .std-name {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(30px, 6.2dvh, 62px);
  line-height: 1.25;
  color: var(--cream);
  text-shadow: 0 4px 22px rgba(0,0,0,0.45);
}
.std-names .std-amp {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(24px, 4dvh, 42px);
  line-height: 1.2;
  color: var(--gold);
  margin: clamp(0px, 0.5dvh, 6px) 0;
}

/* -------- Divider -------- */
.std-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: clamp(8px, 1.6dvh, 16px);
  opacity: 0;
  animation: stdFadeIn 0.9s ease forwards;
  animation-delay: 2.4s;
}
.std-divider .line { width: 46px; height: 1px; background: var(--gold); }
.std-divider .diamond { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }

/* -------- Date -------- */
.std-date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5.4dvh, 52px);
  line-height: 1.15;
  color: var(--gold-light);
  letter-spacing: 0.03em;
  margin-top: clamp(8px, 1.6dvh, 18px);
  text-shadow: 0 4px 20px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(20px);
  animation: stdSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 2.6s;
}

/* -------- Location -------- */
.std-location {
  font-family: var(--font-ui);
  font-size: clamp(11px, 1.6dvh, 14px);
  line-height: 1.3;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(250, 245, 234, 0.82);
  margin-top: clamp(14px, 2.4dvh, 26px);
  opacity: 0;
  animation: stdFadeIn 0.8s ease forwards;
  animation-delay: 2.9s;
}

/* -------- Countdown -------- */
.std-countdown {
  font-family: var(--font-ui);
  font-size: clamp(11px, 1.7dvh, 15px);
  letter-spacing: 0.1em;
  color: rgba(230, 209, 160, 0.85);
  margin-top: clamp(10px, 1.8dvh, 18px);
  opacity: 0;
  animation: stdFadeIn 0.8s ease forwards;
  animation-delay: 3.0s;
}
.std-countdown span { color: var(--gold-light); font-weight: 600; }

/* -------- Invite note -------- */
.std-note {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(18px, 2.8dvh, 26px);
  line-height: 1.3;
  color: rgba(230, 209, 160, 0.9);
  margin-top: clamp(4px, 1dvh, 8px);
  opacity: 0;
  animation: stdFadeIn 0.8s ease forwards;
  animation-delay: 3.15s;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@keyframes stdKenBurns {
  from { transform: scale(1.08) translate(0, 0); }
  to   { transform: scale(1.17) translate(-1.2%, -1.2%); }
}
@keyframes stdSlideDown { to { opacity: 1; transform: translateY(0); } }
@keyframes stdSlideUp   { to { opacity: 1; transform: translateY(0); } }
@keyframes stdFadeIn    { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .std-bg { animation: none; }
  .stdw, .std-names, .std-divider, .std-date, .std-location, .std-note {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
