:root {
  color-scheme: light;
  --navy: #062654;
  --navy-soft: #123a6a;
  --pink: #f151ac;
  --pink-deep: #cf2e89;
  --pink-pale: #ffe2f1;
  --cream: #fffaf5;
  --white: #ffffff;
  --ink: #14213a;
  --shadow: 0 28px 80px rgba(41, 36, 76, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #fff7fb;
}

body {
  position: relative;
  display: grid;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 171, 216, 0.38), transparent 27rem),
    radial-gradient(circle at 90% 90%, rgba(167, 206, 235, 0.38), transparent 30rem),
    linear-gradient(145deg, #fff6fb 0%, #fffdfb 48%, #f5faff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.34;
  background-image: radial-gradient(rgba(241, 81, 172, 0.22) 0.8px, transparent 0.8px);
  background-size: 16px 16px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--navy);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.98), rgba(255, 242, 249, 0.95) 46%, rgba(229, 241, 251, 0.96)),
    #fff7fb;
  cursor: pointer;
  animation: splash-fallback 700ms 3.4s forwards;
  transition: opacity 700ms ease, visibility 700ms;
}

.splash-screen::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.5;
  background-image: radial-gradient(rgba(241, 81, 172, 0.26) 0.8px, transparent 0.8px);
  background-size: 17px 17px;
  mask-image: radial-gradient(circle, black, transparent 72%);
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

.splash-content {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(88vw, 32rem);
  text-align: center;
}

.splash-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(58vw, 17rem);
  aspect-ratio: 1;
  animation: splash-logo-in 950ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.splash-logo {
  display: block;
  width: 84%;
  height: auto;
  border: 0.42rem solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 24px 65px rgba(6, 38, 84, 0.22);
}

.splash-ring {
  position: absolute;
  inset: 1%;
  border: 1px dashed rgba(241, 81, 172, 0.55);
  border-radius: 50%;
  animation: rotate 18s linear infinite;
}

.splash-star {
  position: absolute;
  color: var(--pink);
  text-shadow: 0 5px 20px rgba(241, 81, 172, 0.42);
  animation: twinkle 1.8s ease-in-out infinite;
}

.splash-star--one {
  top: 1%;
  right: 10%;
  font-size: 2rem;
}

.splash-star--two {
  bottom: 8%;
  left: 3%;
  color: var(--navy);
  font-size: 2.5rem;
  animation-delay: -0.7s;
}

.splash-wordmark {
  display: flex;
  gap: 0.2em;
  align-items: baseline;
  margin: 0.75rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 12vw, 5.6rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1;
  animation: splash-copy-in 800ms 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.splash-wordmark strong {
  color: var(--pink);
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: 1.12em;
  font-weight: 500;
}

.splash-tagline {
  margin: 0.65rem 0 0;
  color: var(--pink-deep);
  font-size: clamp(0.72rem, 2.8vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: splash-copy-in 800ms 460ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.splash-line {
  width: 4.5rem;
  height: 2px;
  margin-top: 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  animation: splash-line-in 900ms 620ms ease both;
}

.splash-halo {
  position: absolute;
  border: 1px solid rgba(241, 81, 172, 0.16);
  border-radius: 50%;
}

.splash-halo--one {
  width: min(85vw, 48rem);
  aspect-ratio: 1;
}

.splash-halo--two {
  width: min(110vw, 64rem);
  aspect-ratio: 1;
  border-color: rgba(6, 38, 84, 0.09);
}

.page-glow {
  position: fixed;
  top: 12%;
  left: 50%;
  z-index: -1;
  width: min(70vw, 62rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  filter: blur(80px);
  transform: translateX(-50%);
}

.event {
  width: min(100% - 2rem, 75rem);
  margin: auto;
  padding: clamp(2rem, 5vw, 5rem) 0 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(16rem, 29rem) minmax(19rem, 1fr);
  gap: clamp(2rem, 6vw, 6.5rem);
  align-items: center;
}

.logo-wrap {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
}

.logo-wrap::before {
  position: absolute;
  inset: 5%;
  z-index: -1;
  border-radius: 50%;
  content: "";
  background: linear-gradient(135deg, rgba(241, 81, 172, 0.26), rgba(6, 38, 84, 0.12));
  filter: blur(24px);
}

.event-logo {
  display: block;
  width: 88%;
  height: auto;
  border: 0.52rem solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  box-shadow: 0 28px 70px rgba(6, 38, 84, 0.2), 0 0 0 1px rgba(241, 81, 172, 0.12);
  animation: reveal-logo 900ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(241, 81, 172, 0.33);
  border-radius: 50%;
}

.orbit--one {
  inset: 1%;
  border-style: dashed;
  animation: rotate 34s linear infinite;
}

.orbit--two {
  inset: 0 10%;
  transform: rotate(52deg);
}

.sparkle {
  position: absolute;
  z-index: 2;
  color: var(--pink);
  text-shadow: 0 5px 18px rgba(241, 81, 172, 0.38);
  animation: twinkle 2.6s ease-in-out infinite;
}

.sparkle--one {
  top: 2%;
  right: 16%;
  font-size: 2rem;
}

.sparkle--two {
  bottom: 9%;
  left: 6%;
  color: var(--navy);
  font-size: 2.4rem;
  animation-delay: -0.8s;
}

.sparkle--three {
  right: 0;
  bottom: 28%;
  font-size: 1.2rem;
  animation-delay: -1.4s;
}

.intro {
  animation: reveal-copy 900ms 140ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.eyebrow,
.countdown-label {
  margin: 0;
  color: var(--pink-deep);
  font-size: clamp(0.84rem, 1.4vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0.55rem 0 1.35rem;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 7.2vw, 6.7rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.83;
}

h1 em {
  display: block;
  margin-top: 0.22em;
  color: var(--pink);
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-size: 1.06em;
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.88;
}

.event-date {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin: 0;
  color: var(--navy);
  font-size: clamp(1rem, 2.1vw, 1.26rem);
  font-weight: 750;
}

.date-separator {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 5px rgba(241, 81, 172, 0.12);
}

.location {
  margin: 0.7rem 0 0;
  color: #526079;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.countdown-panel {
  position: relative;
  margin-top: clamp(2.5rem, 6vw, 5.5rem);
  overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  animation: reveal-copy 900ms 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.countdown-panel::after {
  position: absolute;
  top: -5rem;
  right: -4rem;
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(241, 81, 172, 0.17), transparent 68%);
}

.countdown-label {
  text-align: center;
}

.countdown {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: clamp(0.35rem, 1.5vw, 1.25rem);
  align-items: start;
  margin-top: 1.3rem;
}

.time-card {
  display: grid;
  min-width: 0;
  text-align: center;
}

.time-value {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 7.4vw, 6.2rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.06em;
  line-height: 1;
}

.time-label {
  margin-top: 0.65rem;
  color: #6b7182;
  font-size: clamp(0.72rem, 1.4vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.time-divider {
  margin-top: clamp(0.1rem, 1.2vw, 0.6rem);
  color: var(--pink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1;
  animation: breathe 1s ease-in-out infinite;
}

.timezone-note {
  margin: 1.35rem 0 0;
  color: #7b8190;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-align: center;
}

.event-arrived {
  margin: 1.5rem auto 0;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  text-align: center;
}

.memories {
  display: grid;
  grid-template-columns: minmax(15rem, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(1.6rem, 4vw, 4.5rem);
  align-items: center;
  margin-top: clamp(4rem, 8vw, 7.5rem);
}

.memories-heading h2 {
  max-width: 9ch;
  margin: 0.55rem 0 1rem;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.memories-heading h2 em {
  color: var(--pink);
  font-family: "Snell Roundhand", "Segoe Script", "Brush Script MT", cursive;
  font-weight: 500;
}

.memories-heading > p:last-child {
  max-width: 28rem;
  margin: 0;
  color: #626b7c;
  font-size: 1.02rem;
  line-height: 1.7;
}

.gallery {
  position: relative;
  min-width: 0;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.gallery-viewport {
  position: relative;
  min-height: clamp(29rem, 52vw, 39rem);
  overflow: hidden;
  border-radius: 1.55rem;
  background: var(--navy);
  touch-action: pan-y;
}

.gallery-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.035);
  transition: opacity 650ms ease, transform 900ms ease, visibility 650ms;
}

.gallery-slide::before {
  position: absolute;
  inset: -2rem;
  content: "";
  background-image: linear-gradient(rgba(6, 38, 84, 0.25), rgba(6, 38, 84, 0.45)), var(--slide-image);
  background-position: center;
  background-size: cover;
  filter: blur(22px) saturate(0.85);
  transform: scale(1.09);
}

.gallery-slide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(3, 17, 38, 0.82), transparent 34%, rgba(3, 17, 38, 0.08));
  pointer-events: none;
}

.gallery-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.gallery-slide img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-slide figcaption {
  position: absolute;
  right: 4.5rem;
  bottom: 1.15rem;
  left: 1.25rem;
  z-index: 3;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  line-height: 1.3;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 25px rgba(4, 21, 47, 0.2);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.gallery-arrow:hover {
  color: var(--white);
  background: var(--pink);
}

.gallery-arrow:focus-visible,
.gallery-dot:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.gallery-arrow:active {
  transform: translateY(-50%) scale(0.94);
}

.gallery-arrow--previous {
  left: 1.25rem;
}

.gallery-arrow--next {
  right: 1.25rem;
}

.gallery-arrow svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.gallery-footer {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  min-height: 2.8rem;
  padding: 0.65rem 0.55rem 0.05rem 0.75rem;
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  align-items: center;
}

.gallery-dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d8c5d1;
  cursor: pointer;
  transition: width 220ms ease, background 220ms ease;
}

.gallery-dot.is-active {
  width: 1.7rem;
  border-radius: 1rem;
  background: var(--pink);
}

.gallery-counter {
  flex: 0 0 auto;
  margin: 0;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

footer {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  margin-top: clamp(3rem, 6vw, 5rem);
  color: var(--pink-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

footer p {
  margin: 0;
}

.botanical {
  position: fixed;
  z-index: -1;
  width: clamp(13rem, 26vw, 24rem);
  overflow: visible;
  fill: rgba(241, 81, 172, 0.08);
  stroke: rgba(6, 38, 84, 0.17);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.botanical--top {
  top: -4rem;
  left: -5rem;
  transform: rotate(7deg);
}

.botanical--bottom {
  right: -5rem;
  bottom: -4rem;
  transform: rotate(187deg);
}

@keyframes reveal-logo {
  from {
    opacity: 0;
    transform: scale(0.82) rotate(-4deg);
  }
}

@keyframes splash-logo-in {
  from {
    opacity: 0;
    transform: scale(0.68) rotate(-7deg);
  }
}

@keyframes splash-copy-in {
  from {
    opacity: 0;
    transform: translateY(1.2rem);
  }
}

@keyframes splash-line-in {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
}

@keyframes splash-fallback {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@keyframes reveal-copy {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@keyframes twinkle {
  50% {
    opacity: 0.45;
    transform: scale(0.78) rotate(18deg);
  }
}

@keyframes breathe {
  50% {
    opacity: 0.35;
  }
}

@media (max-width: 760px) {
  .event {
    width: min(100% - 1.35rem, 37rem);
    padding-top: 1.4rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    text-align: center;
  }

  .logo-wrap {
    width: min(82vw, 22rem);
    margin-inline: auto;
  }

  .event-logo {
    width: 84%;
  }

  h1 {
    max-width: none;
    margin-top: 0.45rem;
    font-size: clamp(3.3rem, 16vw, 5.3rem);
  }

  .event-date {
    justify-content: center;
  }

  .countdown-panel {
    margin-top: 2rem;
    padding: 1.5rem 0.8rem 1.25rem;
    border-radius: 1.55rem;
  }

  .countdown {
    gap: 0.12rem;
  }

  .time-value {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
  }

  .time-divider {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .time-label {
    margin-top: 0.5rem;
    font-size: clamp(0.56rem, 2.6vw, 0.75rem);
    letter-spacing: 0.07em;
  }

  .memories {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 4rem;
  }

  .memories-heading {
    text-align: center;
  }

  .memories-heading h2,
  .memories-heading > p:last-child {
    max-width: none;
  }

  .memories-heading h2 {
    font-size: clamp(3rem, 14vw, 4.4rem);
  }

  .gallery {
    padding: 0.42rem;
    border-radius: 1.55rem;
  }

  .gallery-viewport {
    min-height: min(69vh, 35rem);
    border-radius: 1.2rem;
  }

  .gallery-arrow {
    width: 2.65rem;
    height: 2.65rem;
  }

  .gallery-arrow--previous {
    left: 0.8rem;
  }

  .gallery-arrow--next {
    right: 0.8rem;
  }

  .gallery-slide figcaption {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    padding-right: 3rem;
  }

  .botanical {
    opacity: 0.7;
  }
}

@media (max-width: 390px) {
  .date-separator {
    display: none;
  }

  .event-date span {
    width: 100%;
  }

  .countdown-panel {
    padding-inline: 0.45rem;
  }
}

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