@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');

:root {
  --cream: #f3ecdf;
  --paper: #f6efe0;
  --ink: #5d4a3d;
  --pink: #efb8c2;
  --blue: #b9dce8;
  --mustard: #d9da6a;
  --orange: #e99d57;
  --olive: #7f8061;
}

* { box-sizing: border-box; }

html {
  min-width: 100%;
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

img { max-width: 100%; }

.page {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(239,184,194,.11), transparent 23rem),
    radial-gradient(circle at 80% 75%, rgba(185,220,232,.13), transparent 26rem),
    var(--cream);
}

/* HERO */
.hero {
  position: relative;
  width: 100%;
  height: 88vh;
  height: 88svh;
  min-height: 620px;
  max-height: 980px;
  overflow: hidden;
  isolation: isolate;
  background: #6e574b;
}

.slideshow,
.slide,
.film-overlay {
  position: absolute;
  inset: 0;
}

.slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.65s ease-in-out;
  will-change: opacity, transform;
  filter: saturate(.82) sepia(.09) contrast(.91) brightness(.96);
}

.slide.is-visible { opacity: 1; }

.film-overlay {
  z-index: 2;
  background:
    linear-gradient(to bottom, rgba(39,27,20,.10) 0%, rgba(39,27,20,.20) 48%, rgba(39,27,20,.36) 100%),
    radial-gradient(circle at center, transparent 48%, rgba(32,23,18,.18) 100%);
  pointer-events: none;
}

.film-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.42) 0 .7px, transparent .8px),
    radial-gradient(circle at 75% 68%, rgba(255,255,255,.28) 0 .7px, transparent .8px);
  background-size: 9px 9px, 11px 11px;
}

.botanical {
  position: absolute;
  z-index: 4;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(50,34,24,.10));
  user-select: none;
}

.botanical--left {
  left: clamp(-135px, -8vw, -72px);
  bottom: clamp(-105px, -6vw, -54px);
  width: clamp(250px, 29vw, 430px);
  transform: rotate(-9deg);
}

.botanical--right {
  right: clamp(-140px, -8vw, -76px);
  top: clamp(-65px, -4vw, -34px);
  width: clamp(245px, 28vw, 420px);
  transform: rotate(8deg);
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: min(920px, calc(100% - 2rem));
  height: 100%;
  margin: 0 auto;
  padding: clamp(3.8rem, 10vh, 7rem) 0 clamp(4rem, 10vh, 7rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff8ed;
  text-shadow: 0 2px 22px rgba(40,27,19,.34);
}

.paper-label {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-width: clamp(215px, 24vw, 330px);
  min-height: clamp(58px, 7vh, 72px);
  margin-bottom: clamp(.75rem, 2vh, 1.35rem);
  padding: clamp(.85rem, 1.7vh, 1.15rem) clamp(1.4rem, 3vw, 2rem);
  color: #60493d;
  background: url("assets/paper-banner.png") center/100% 100% no-repeat;
  font-family: "DM Sans", sans-serif;
  font-size: clamp(.68rem, 1.2vw, .9rem);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-shadow: none;
  transform: rotate(-1.2deg);
  filter: drop-shadow(0 8px 16px rgba(41,28,20,.14));
  white-space: nowrap;
}

.names {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .02em;
  max-width: 100%;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(4rem, min(10.5vw, 14vh), 9.4rem);
  line-height: .78;
  font-weight: 600;
  letter-spacing: -.055em;
}

.names span { display: block; }

.names span:nth-child(2) {
  font-size: .63em;
  line-height: 1.05;
  margin: .05em 0 .09em;
}

.date-paper {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: clamp(1.1rem, 2.5vh, 2rem);
  padding: 0;
  color: #fff8ed;
  background: none;
  text-shadow: 0 2px 18px rgba(40,27,19,.34);
}

.date {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.85rem, min(4.4vw, 5.5vh), 3.35rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

.place {
  margin: clamp(.45rem, 1vh, .65rem) 0 0;
  font-size: clamp(.7rem, 1.25vw, .95rem);
  font-weight: 600;
  letter-spacing: .27em;
  text-transform: uppercase;
}

/* COUNTDOWN */
.countdown-zone {
  position: relative;
  z-index: 7;
  width: 100%;
  min-height: 58svh;
  padding: 0 clamp(.7rem, 2.4vw, 1.5rem) clamp(4rem, 8vw, 6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-paper {
  position: relative;
  width: min(980px, calc(100vw - 2rem));
  min-height: 500px;
  margin-top: clamp(-52px, -5vw, -38px);
  padding: 2.75rem clamp(2rem, 8vw, 6.4rem) 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-.3deg);
}

.countdown-paper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/paper-banner.png") center/100% 100% no-repeat;
  filter: drop-shadow(0 20px 32px rgba(77,55,39,.12));
}

.countdown-kicker {
  margin: 0 0 clamp(1.35rem, 3vw, 1.8rem);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.65rem, 4vw, 2.8rem);
  font-weight: 500;
}

.countdown {
  width: min(650px, 88%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.45rem, 2vw, 1.4rem);
  margin: 0 auto;
}

.countdown-item {
  min-width: 0;
  padding: clamp(.8rem, 2vw, 1rem) clamp(.25rem, 1.4vw, .7rem) clamp(1rem, 2vw, 1.35rem);
  border-top: 1px solid rgba(93,74,61,.23);
  border-bottom: 1px solid rgba(93,74,61,.23);
}

.countdown-item strong {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.35rem, 6.3vw, 4.9rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
}

.countdown-item span {
  display: block;
  margin-top: clamp(.45rem, 1.5vw, .7rem);
  font-size: clamp(.6rem, 1.2vw, .84rem);
  text-transform: uppercase;
  letter-spacing: clamp(.08em, .8vw, .17em);
  font-weight: 600;
}

.follow-up {
  position: relative;
  z-index: 2;
  width: min(92vw, 760px);
  margin: clamp(1.15rem, 2.4vw, 1.8rem) 0 0;
  padding-inline: .75rem;
  text-align: center;
  font-size: clamp(.82rem, 1.7vw, 1.02rem);
  line-height: 1.4;
  opacity: .75;
}

.paper-flower {
  position: absolute;
  height: auto;
  opacity: .98;
  pointer-events: none;
  filter: drop-shadow(0 8px 15px rgba(72,51,36,.10));
  user-select: none;
}

.paper-flower--one {
  left: clamp(-112px, -8vw, -58px);
  bottom: clamp(-54px, -4vw, -28px);
  width: clamp(145px, 18vw, 255px);
  transform: rotate(-10deg);
}

.paper-flower--two {
  right: clamp(-116px, -8vw, -60px);
  top: clamp(-34px, -2vw, -18px);
  width: clamp(150px, 19vw, 270px);
  transform: rotate(10deg);
}

/* Tablet */
@media (max-width: 900px) {
  .hero {
    height: 86svh;
    min-height: 600px;
  }

  .hero-copy {
    width: min(760px, calc(100% - 2rem));
  }

  .botanical--left {
    left: -112px;
    bottom: -78px;
    width: clamp(255px, 37vw, 330px);
  }

  .botanical--right {
    right: -108px;
    top: -40px;
    width: clamp(245px, 35vw, 320px);
  }

  .countdown-paper {
    width: min(760px, calc(100vw - 1.5rem));
    min-height: 450px;
    padding: 2.35rem clamp(1.4rem, 6vw, 4rem) 2.5rem;
  }

  .countdown-kicker {
    margin-top: 0;
  }
}

/* Phones */
@media (max-width: 600px) {
  .hero {
    height: 84svh;
    min-height: 560px;
    max-height: 820px;
  }

  .hero-copy {
    width: calc(100% - 1.25rem);
    padding-top: clamp(3.25rem, 8vh, 5rem);
    padding-bottom: clamp(4.2rem, 9vh, 5.8rem);
  }

  .paper-label {
    min-width: 205px;
    min-height: 54px;
    padding: .82rem 1.1rem;
    font-size: clamp(.62rem, 2.6vw, .72rem);
    letter-spacing: .12em;
  }

  .names {
    font-size: clamp(3.55rem, 17.5vw, 6rem);
    line-height: .8;
  }

  .date {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .place {
    font-size: clamp(.65rem, 2.7vw, .78rem);
  }

  .botanical--left {
    left: clamp(-128px, -28vw, -92px);
    bottom: clamp(-82px, -16vw, -54px);
    width: clamp(230px, 66vw, 295px);
  }

  .botanical--right {
    right: clamp(-126px, -27vw, -88px);
    top: clamp(-42px, -7vw, -24px);
    width: clamp(225px, 64vw, 285px);
  }

  .countdown-zone {
    min-height: auto;
    padding-inline: .55rem;
    padding-bottom: 4rem;
  }

  .countdown-paper {
    width: calc(100vw - 1rem);
    min-height: 380px;
    margin-top: -32px;
    padding: 2rem clamp(.8rem, 5vw, 1.55rem) 2rem;
    justify-content: center;
  }

  .countdown-kicker {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .countdown {
    width: min(100%, 430px);
    gap: clamp(.2rem, 1.5vw, .45rem);
    margin-bottom: .15rem;
  }

  .countdown-item {
    padding: .8rem .15rem 1.05rem;
  }

  .countdown-item strong {
    font-size: clamp(2.05rem, 12vw, 3.25rem);
  }

  .countdown-item span {
    margin-top: .5rem;
    font-size: clamp(.55rem, 2.5vw, .64rem);
    letter-spacing: .09em;
  }

  .follow-up {
    max-width: 28rem;
    margin-top: 1.6rem;
    padding-inline: 1rem;
    font-size: clamp(.78rem, 3.4vw, .92rem);
  }

  .paper-flower,
  .paper-flower--one,
  .paper-flower--two {
    display: none;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero {
    min-height: 540px;
  }

  .hero-copy {
    width: calc(100% - .8rem);
  }

  .names {
    font-size: clamp(3.3rem, 17vw, 4rem);
  }

  .paper-label {
    min-width: 190px;
    font-size: .6rem;
  }

  .countdown-paper {
    min-height: 360px;
    padding: 1.8rem .65rem 1.9rem;
  }

  .countdown-kicker {
    margin-top: 0;
    margin-bottom: 1.35rem;
  }

  .countdown-item strong {
    font-size: clamp(1.95rem, 11vw, 2.55rem);
  }

  .countdown-item span {
    font-size: .52rem;
    letter-spacing: .06em;
  }

  .follow-up {
    margin-top: 1.25rem;
    padding-inline: .75rem;
  }
}

/* Short landscape screens */
@media (orientation: landscape) and (max-height: 620px) {
  .hero {
    height: 100svh;
    min-height: 390px;
    max-height: none;
  }

  .hero-copy {
    padding: 1.4rem 0 2rem;
  }

  .paper-label {
    min-height: 44px;
    margin-bottom: .45rem;
    padding: .55rem 1.25rem;
    font-size: .62rem;
  }

  .names {
    font-size: clamp(3rem, min(9vw, 13.5vh), 5.2rem);
    line-height: .8;
  }

  .names span:nth-child(2) {
    margin: 0;
  }

  .date-paper {
    margin-top: .6rem;
  }

  .date {
    font-size: clamp(1.35rem, 5.2vh, 2rem);
  }

  .place {
    margin-top: .25rem;
    font-size: .62rem;
  }

  .botanical--left {
    left: -92px;
    bottom: -76px;
    width: clamp(220px, 28vw, 290px);
  }

  .botanical--right {
    right: -90px;
    top: -52px;
    width: clamp(215px, 27vw, 280px);
  }

  .countdown-zone {
    min-height: auto;
    padding-bottom: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: opacity .2s linear !important;
    animation: none !important;
  }
}
