/* ================================================================
   Emily & Sean — Save the Date
   Single viewport, no scroll
   ================================================================ */

html, body {
  height: 100%;
  overflow: hidden;
}

#std-hero {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #7a3d3c 0%, #955251 30%, #b66f61 58%, #6b3533 100%);
}

#std-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0.22) 0%, transparent 70%),
    radial-gradient(ellipse at 25% 75%, rgba(201,169,110,0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(253,248,240,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 2;
  transform: translate(var(--mx, 0px), var(--my, 0px)) scale(1.08);
  will-change: transform;
}

#std-hero::after {
  content: '';
  position: absolute;
  inset: 28px 28px 28px;
  border: 1px solid rgba(201,169,110,0.2);
  pointer-events: none;
  z-index: 3;
}

.std-inner {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.2vh, 32px);
}

.std-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 1;
}

.std-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.std-name {
  font-family: 'Bodoni Moda', Georgia, serif;
  font-size: clamp(3rem, 9vh, 8rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.std-ampersand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3.5vh, 3rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.2;
  display: block;
  background: linear-gradient(
    100deg,
    var(--gold-dark)  0%,
    var(--gold-dark)  26%,
    var(--gold)       33%,
    var(--gold-light) 50%,
    var(--gold)       67%,
    var(--gold-dark)  74%,
    var(--gold-dark)  100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 5s linear infinite;
}

.std-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.std-divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(201,169,110,0.35);
}

.std-divider-gem {
  font-size: 0.4rem;
  color: var(--gold);
}

.std-date {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vh, 2.1rem);
  font-weight: 400;
  color: var(--text-on-dark);
  letter-spacing: 0.04em;
}

.std-date sup {
  font-size: 0.55em;
  vertical-align: super;
  letter-spacing: 0.04em;
}

.std-venue {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.8vh, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  opacity: 1;
}

.std-invitation {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.8vh, 1.2rem);
  font-weight: 300;
  color: rgba(253,248,240,0.82);
  letter-spacing: 0.04em;
  line-height: 1.8;
}

/* ── Countdown ─────────────────────────────────────────────────── */
.std-countdown {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
}

.std-countdown .countdown-unit {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.std-countdown .countdown-num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vh, 2.5rem);
  font-weight: 400;
  color: var(--text-on-dark);
  line-height: 1;
  text-align: center;
  width: 100%;
  transition: opacity 0.12s ease;
}

.std-countdown .countdown-num.is-flip { opacity: 0; }

.std-countdown .countdown-label {
  font-family: var(--font-ui);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(253,248,240,0.65);
  margin-top: 4px;
}

.std-countdown .countdown-sep {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vh, 2.5rem);
  color: rgba(201,169,110,0.6);
  line-height: 1;
  align-self: flex-start;
}

/* ── Calendar widget ───────────────────────────────────────────── */
.std-cal { margin: 0; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .std-inner { padding: 0 24px; }
  #std-hero::after { inset: 16px; }
  .std-countdown .countdown-unit { width: 56px; }
}
