:root {
  --bg-dark: #0f1012;
  --text-dark: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.65);

  --bg-light: #f3f0ec;
  --bg-cream: #efe7df;
  --text-light: #1b1b1b;

  --radius: 18px;
  --max: 980px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-cream);
  color: var(--text-light);
}

/* ---------------- Cover page ---------------- */
.page-cover {
  overflow: hidden;
  background: #4b4b4b;
}

.cover {
  min-height: 100svh;
  width: 100%;
  background: var(--cover-url) center/cover no-repeat;
  position: relative;
  display: grid;
  place-items: center;
}

.cover__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.55));
}

.cover__content {
  position: relative;
  width: min(92vw, 520px);
  min-height: 92svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 26px 18px;
}

.cover__names {
  text-align: center;
  letter-spacing: 2px;
  font-weight: 650;
  font-size: 20px;
  margin-top: -50px;
  color: #f1edefb1;
}


.cover__center {
  display: grid;
  place-items: center;
  gap: 18px;
}

.cover__monogram {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 10vw, 92px);
  letter-spacing: 6px;
  opacity: 0.25;
  transform: translateY(10px);
  user-select: none;
}

.btn-outline {
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  padding: 12px 28px;
  border-radius: 12px;
  letter-spacing: 1.8px;
  font-weight: 650;
  cursor: pointer;
  backdrop-filter: blur(6px);
  position: fixed;
  left: 50%;
  z-index: 1000;
  align-items: end;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  /* 🔥 forces single line */
}

.btn-outline:active {
  transform: translateY(1px);
}

.cover__hint {
  text-align: center;
  font-size: 12px;
  opacity: 0.0;
  /* keep hidden like video */
}

/* ---------------- Invite page ---------------- */
.page-invite {
  background: var(--bg-light);
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 10px 12px;

  background: rgba(239, 231, 223, 0.85);
  /* cream glass */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-light);
}

.topbar__back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.6);
  color: var(--text-light);
  cursor: pointer;
}

.topbar__title {
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
}

.invite {
  width: 100%;
}

.section {
  min-height: 40svh;
  display: grid;
  place-items: center;
  padding: 26px 14px;
}

.section__inner {
  width: min(var(--max), 94vw);
  padding: clamp(0px, 1vw, 28px);
}

.section--dark,
.section--light,
.section--cream {
  background: transparent;
  color: inherit;
}


.section--dark {
  padding-top: unset;
}

.section__title {
  margin: unset;
  font-size: clamp(28px, 5vw, 44px);
  font-family: 'Allura', cursive;
  letter-spacing: 1px;
  text-align: center;
}

.names__title {
  margin: 0 0 20px;
  font-size: clamp(28px, 5vw, 44px);
  letter-spacing: 1px;
  text-align: center;
}

.section__title--light {
  color: var(--text-light);
}

.section__text {
  margin: 25px auto;
  max-width: 760px;
  line-height: 1.65;
  font-size: 16px;
  color: rgba(0, 0, 0, 0.65);
  text-align: center;
}

.section__text--light {
  color: rgba(0, 0, 0, 0.7);
}

.scrollHint {
  margin-top: 18px;
  text-align: center;
  opacity: 0.75;
  letter-spacing: 0.6px;
}

/* Calendar */
.calendar {
  margin: 22px auto 0;
  max-width: 520px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgb(217, 216, 216);
  backdrop-filter: blur(6px);
  padding: 14px 14px 16px;
}

.calendar__month {
  text-align: center;
  font-weight: 750;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: center;
}

.cal__dow {
  text-align: center;
  font-size: 12px;
  opacity: 0.7;
}

.cal__day {
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 14px;
  opacity: 0.92;
}

.cal__day.is-dim {
  opacity: 0.15;
}

.cal__day.is-heart {
  position: relative;
  color: #111;
  font-weight: 800;
}

.cal__day.is-heart::before {
  content: "♥";
  position: absolute;
  inset: -20px;
  display: grid;
  place-items: center;
  font-size: 50px;
  color: rgba(255, 0, 0, 0.92);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.cal__day.is-heart span {
  position: relative;
  z-index: 1;
  color: #111;
}

.gallery {
  width: min(var(--max), 94vw);
  margin: 0 auto;
}

.gallery__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  /* 🔥 BEST way for desktop */
  object-fit: cover;
  max-height: 50svh;
}

.placesImage {
  width: 100%;
  display: block;
  margin: 20px auto;
}


.footerNote {
  margin-top: 20px;
  text-align: center;
  opacity: 0.9;
  font-weight: 700;
}


/* Location section */
.locationIcon {
  display: flex;
  justify-content: center;
  margin: 18px 0;
  color: rgba(0, 0, 0, 0.55);
  /* outline color */
}

.locationIcon svg {
  width: 56px;
  height: 56px;
}

.center {
  text-align: center;
}

.locPlace {
  margin-top: 30px;
}

.locTitle {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 6vw, 56px);
  letter-spacing: 0.5px;
  margin: 8px 0 8px;
}

.locTitle span {
  display: block;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-weight: 500;
  margin-top: -8px;
  opacity: 0.85;
}

.pin {
  width: 62px;
  height: 62px;
  margin: 18px auto;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
}

.pin__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.55);
}

.pillBtn {
  display: inline-block;
  margin-top: 6px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 1.2px;
}

.mapPreview {
  margin: 16px auto 0;
  width: min(620px, 92vw);
  border-radius: var(--radius);
  height: 220px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

/* Details grid */
.infoGrid {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.infoCard {
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.6);
  padding: 14px 14px;
  text-align: center;
}

.infoCard__label {
  opacity: 0.7;
  font-size: 13px;
}

.infoCard__value {
  margin-top: 6px;
  font-weight: 800;
}


.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  filter: blur(6px);
  transition:
    opacity 700ms ease,
    transform 700ms ease,
    filter 700ms ease;
  will-change: opacity, transform;
}

.reveal.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.reveal[data-anim="fade"] {
  transform: none;
}

.reveal[data-anim="up"] {
  transform: translate3d(0, 18px, 0);
}

.reveal[data-anim="scale"] {
  transform: scale(0.96);
}

.reveal[data-anim="zoom"] {
  transform: scale(0.92);
  filter: blur(10px);
}

.reveal.is-in[data-anim="scale"],
.reveal.is-in[data-anim="zoom"] {
  transform: scale(1);
  filter: blur(0);
}

/* Use data-delay for staged appearance */
.reveal {
  transition-delay: calc(var(--delay, 0) * 1ms);
}

/* ===== Sticky "fixed in place" feeling ===== */
.section {
  /* keep as you have */
  position: relative;
}

.section__sticky {
  position: sticky;
  top: 64px;
  /* below topbar */
  width: 100%;
  display: grid;
  place-items: center;
  padding: 18px 0;
}

/* Optional: “card” look like in video */
.section__inner {
  border-radius: 18px;
}


.countdownWrap {
  margin-top: 50px;
  margin-bottom: 30px;

}

/* Reduce motion accessibility */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .reveal.is-in {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
}






/* ===== Timeline (like your screenshots) ===== */
.timeline {
  width: min(520px, 92vw);
  margin: 0 auto 0;
  display: grid;
  gap: 26px;
}

.timeline__item {
  display: grid;
  justify-items: center;
  text-align: center;
}

.timeline__line {
  width: 2px;
  height: 44px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 2px;
}

.timeline__time {
  margin: 14px 0 8px;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.78);
}

.timeline__text {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.7);
}

/* ===== Countdown (like screenshot) ===== */
.countdownWrap {
  text-align: center;
}

.countdown {
  display: inline-flex;
}

.countdownTitle {
  margin-top: 25px;
  font-size: 16px;
  letter-spacing: 2px;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 16px;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
}

.cd__box {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0 14px;
  /* spacing around each block */
  min-width: 64px;
}

/* the "dots" between groups (like your screenshot) */
.cd__box:not(:last-child)::after {
  content: ":";
  position: absolute;
  right: -1px;
  top: 34%;
  transform: translate(50%, -50%);
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  color: rgba(0, 0, 0, 0.75);
  line-height: 1;
  /* ✅ */
}

.cd__num {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 500;
  letter-spacing: 2px;
  color: rgb(0, 0, 0);
  line-height: 1;
}

.cd__label {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
}







@media (max-width: 768px) {
  .btn-outline {
    position: fixed;
    left: 50%;
    bottom: calc(20px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 1000;
    min-width: 200px;
    text-align: center;
  }

  .btn-outline:active {
    transform: translateX(-50%) translateY(1px);
  }

  .btn-outline:active {
    transform: translateX(-50%) translateY(1px);
  }

  .section {
    min-height: 40svh;
    display: grid;
    place-items: center;
    justify-content: center;
    padding: 10px 14px;
  }

  .cover {
    width: 100%;
    min-width: 0px;
    /* min-height: 55svh; */
    background: var(--cover-url) center/cover no-repeat;
    position: relative;
    display: grid;
    place-items: center;

  }

  .placesImage {
    display: block;
    width: clamp(280px, 30vw, 240px);
    margin: 5px auto;
  }
}



@media (max-width: 768px) {
  .btn-outline {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  }
}


@media (max-width: 820px) {
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery__img {
    margin-top: 10px;
    margin-bottom: 10px;
    min-height: 80svh;
  }
}




@media (max-width: 820px) {
  .infoGrid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 420px) {
  .cd__box {
    min-width: 54px;
    padding: 0 10px;
  }
}