:root {
  --ink: #28231e;
  --cream: #f3eee5;
  --paper: #fbf8f2;
  --gold: #af9371;
  --line: rgba(40, 35, 30, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  font-weight: 300;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 32px clamp(24px, 5vw, 80px);
  color: #fff;
  isolation: isolate;
  background-color: #777067;
  background-image:
    linear-gradient(115deg, rgba(24, 21, 18, 0.25), rgba(24, 21, 18, 0.02)),
    url("assets/couple.jpg");
  background-size: cover;
  background-position: center;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(15, 13, 11, 0.24), transparent 28%, transparent 60%, rgba(15, 13, 11, 0.45)),
    radial-gradient(circle at center, transparent 15%, rgba(14, 12, 10, 0.18) 100%);
}

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px clamp(24px, 5vw, 80px);
}

.monogram,
.nav__date {
  text-decoration: none;
  text-transform: uppercase;
}

.monogram {
  font-family: "Italiana", serif;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
}

.monogram span {
  color: #ddcbb2;
  margin: 0 0.08em;
}

.nav__date {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
}

.hero__content {
  width: min(100%, 1100px);
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
}

.eyebrow {
  margin: 0 0 28px;
  font-size: clamp(0.62rem, 1vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Italiana", serif;
  font-weight: 400;
}

h1 {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 60px);
  font-size: clamp(4rem, 11vw, 10rem);
  line-height: 0.85;
  letter-spacing: -0.035em;
}

h1 i {
  color: #e5d0b4;
  font-size: 0.48em;
  font-weight: 400;
}

.hero__date {
  margin: 42px 0 0;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-hint i {
  width: 1px;
  height: 34px;
  background: currentColor;
  animation: breathe 1.8s ease-in-out infinite;
}

.countdown-section {
  min-height: 78svh;
  padding: clamp(90px, 12vw, 160px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--paper);
}

.ornament {
  margin-bottom: 28px;
  color: var(--gold);
  font-size: 0.85rem;
}

.eyebrow--dark {
  color: #756858;
}

.countdown-section h2,
.invitation h2 {
  margin: 0;
  font-size: clamp(2.7rem, 6.2vw, 6rem);
  line-height: 1;
  letter-spacing: -0.025em;
}

.countdown {
  width: min(100%, 920px);
  margin-top: clamp(60px, 8vw, 96px);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
}

.countdown__item {
  min-width: 0;
}

.countdown__item strong {
  display: block;
  font-family: "Italiana", serif;
  font-size: clamp(2.7rem, 7.3vw, 6.4rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown__item span {
  display: block;
  margin-top: 18px;
  color: #746b60;
  font-size: clamp(0.58rem, 1vw, 0.7rem);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.countdown__separator {
  width: 1px;
  height: 82px;
  background: var(--line);
}

.countdown__complete {
  margin-top: 64px;
  font-family: "Italiana", serif;
  font-size: 1.8rem;
}

.invitation {
  padding: clamp(24px, 5vw, 72px);
  background: #27231f;
}

.invitation__card {
  min-height: 82svh;
  padding: clamp(70px, 10vw, 130px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--cream);
  border: 1px solid rgba(175, 147, 113, 0.55);
  outline: 1px solid rgba(175, 147, 113, 0.22);
  outline-offset: -13px;
}

.invitation__copy {
  max-width: 560px;
  margin: 34px auto 0;
  color: #6f665c;
  font-size: 0.95rem;
  line-height: 1.9;
}

.invitation__date {
  margin: 50px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  color: #63594f;
}

.invitation__date span {
  min-width: 92px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.invitation__date strong {
  font-family: "Italiana", serif;
  font-size: 4.3rem;
  font-weight: 400;
  line-height: 1;
}

.rsvp-button {
  min-width: min(100%, 330px);
  padding: 18px 26px;
  color: #f8f4ed;
  background: var(--ink);
  border: 0;
  cursor: not-allowed;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.rsvp-button small {
  display: block;
  margin-top: 7px;
  color: #bdb1a3;
  font-size: 0.52rem;
  letter-spacing: 0.17em;
}

footer {
  min-height: 150px;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #bfb5a8;
  background: #27231f;
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-align: center;
  text-transform: uppercase;
}

.footer__mark {
  color: var(--gold);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal--delay-1 {
  animation-delay: 0.16s;
}

.reveal--delay-2 {
  animation-delay: 0.32s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  50% {
    opacity: 0.25;
    transform: scaleY(0.75);
    transform-origin: top;
  }
}

@media (max-width: 700px) {
  .hero {
    background-position: 58% center;
  }

  h1 {
    flex-direction: column;
    gap: 14px;
    font-size: clamp(4.4rem, 21vw, 7.2rem);
  }

  h1 i {
    font-size: 0.42em;
    line-height: 0.6;
  }

  .hero__date {
    margin-top: 36px;
  }

  .countdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }

  .countdown__separator {
    display: none;
  }

  .countdown__item:has(#days),
  .countdown__item:has(#minutes) {
    border-right: 1px solid var(--line);
  }

  .invitation__date {
    gap: 12px;
  }

  .invitation__date span {
    min-width: 78px;
  }

  footer {
    flex-direction: column;
    gap: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .scroll-hint i {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
