:root {
  --white: #ffffff;
  --dark: #101a17;
  --slide-ms: 6000ms;
  --photo-filter: saturate(0.95) contrast(1.02) brightness(0.99) hue-rotate(-4deg) sepia(0.02);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  font-family:
    "Quicksand", ui-rounded, "Hiragino Maru Gothic ProN", "Segoe UI", system-ui,
    -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

/* ---- Film grain over everything ---- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---- Full-bleed cover ---- */
.show {
  position: relative;
  height: 100svh;
  overflow: hidden;
  cursor: pointer;
}

.show__slides {
  position: absolute;
  inset: 0;
  background: var(--dark);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  filter: var(--photo-filter);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1500ms ease;
  will-change: opacity, transform;
}

.slide.is-active {
  opacity: 1;
  animation: kenburns 14s ease-in-out forwards;
}

.slide:nth-child(2n).is-active {
  animation-name: kenburns-alt;
}

.show__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(8, 14, 12, 0.84) 0%,
      rgba(8, 14, 12, 0.42) 32%,
      rgba(8, 14, 12, 0) 60%
    ),
    linear-gradient(to bottom, rgba(8, 14, 12, 0.34), rgba(8, 14, 12, 0) 24%);
}

/* ---- Text overlay, bottom-left ---- */
.show__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  padding:
    clamp(1.5rem, 5vw, 4rem)
    clamp(1.5rem, 6vw, 5rem)
    max(env(safe-area-inset-bottom), clamp(2.5rem, 7vw, 4.5rem));
  max-width: 48rem;
  pointer-events: none;
}

.show__overlay > * {
  animation: rise-in 1000ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.show__overlay > *:nth-child(2) { animation-delay: 90ms; }
.show__overlay > *:nth-child(3) { animation-delay: 220ms; }
.show__overlay > *:nth-child(4) { animation-delay: 340ms; }

.kicker {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.78rem, 3.4vw, 0.98rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.kicker strong {
  font-weight: 800;
}

.title {
  margin: 0.1rem 0 0.4rem;
  font-size: clamp(4.2rem, 24vw, 10rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.title__sur {
  display: block;
  margin-top: 0.12em;
  font-size: 0.32em;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.meta {
  margin: 0;
}

.meta__line {
  margin: 0;
  font-size: clamp(1.05rem, 4.6vw, 1.55rem);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.96);
}

.meta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.02em;
  height: 1.02em;
  margin-right: 0.38em;
  color: rgba(255, 255, 255, 0.95);
  flex: 0 0 auto;
}

.meta__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.meta__line--date .meta__icon + span {
  vertical-align: middle;
}

.meta__line--place {
  display: inline-flex;
  align-items: center;
  gap: 0.38em;
}

.meta__line + .meta__line {
  color: rgba(255, 255, 255, 0.7);
}

.meta__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  pointer-events: auto;
  transition: text-decoration-color 150ms ease;
}

.meta__link:hover,
.meta__link:focus-visible {
  text-decoration-color: var(--white);
  outline: none;
}

/* ---- RSVP line ---- */
.deadline {
  margin: clamp(1.5rem, 5vw, 2rem) 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  font-weight: 500;
}

/* ---- Motion ---- */
@keyframes kenburns {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.16) translate(-1.8%, -1.4%); }
}

@keyframes kenburns-alt {
  from { transform: scale(1.06) translate(0, 0); }
  to { transform: scale(1.17) translate(2%, -1.2%); }
}

@keyframes fill {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .slide,
  .show__overlay > * {
    animation: none !important;
    transition: none;
    transform: none;
  }
}
