:root {
  color-scheme: light;
  --ink: #181512;
  --soft-ink: rgba(24, 21, 18, 0.76);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #f6f4ef;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "EB Garamond", Georgia, serif;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  place-items: center start;
  padding: clamp(2rem, 5vw, 5rem);
}

.hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("/assets/angela-tomasz-backdrop.jpeg");
  background-position: center center;
  background-size: cover;
  filter: saturate(0.95) contrast(1.03);
  transform: scale(1.01);
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.54) 34%, rgba(255, 255, 255, 0.06) 72%),
    radial-gradient(circle at 24% 58%, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0) 42%);
}

.hero::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 28%),
    linear-gradient(0deg, rgba(246, 244, 239, 0.4), rgba(246, 244, 239, 0) 34%);
}

.hero__content {
  width: min(100%, 46rem);
  padding-top: 9svh;
  text-align: left;
  text-shadow: 0 0.08em 1.4em rgba(255, 255, 255, 0.88);
}

.hero__date {
  margin: 0 0 clamp(1.35rem, 2.6vw, 2.35rem);
  color: var(--soft-ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: clamp(5.2rem, 10.5vw, 9.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.95;
}

h1 span {
  display: block;
}

h1 span + span {
  margin-top: 0.18em;
}

.hero__thanks {
  max-width: 34rem;
  margin: clamp(1.55rem, 3vw, 2.6rem) 0 0;
  color: var(--soft-ink);
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
}

.hero__status {
  margin: clamp(0.85rem, 1.8vw, 1.35rem) 0 0;
  color: rgba(24, 21, 18, 0.84);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 720px) {
  .hero {
    place-items: end center;
    padding: 2rem 1.25rem 3.25rem;
  }

  .hero__image {
    background-position: 58% center;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.22) 38%, rgba(246, 244, 239, 0.78) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  }

  .hero__content {
    padding-top: 0;
    text-align: center;
  }

  h1 {
    margin-inline: auto;
    font-size: clamp(4.1rem, 22vw, 6.4rem);
  }

  .hero__thanks {
    max-width: 20rem;
    margin-inline: auto;
  }

  .hero__status {
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__content {
    animation: settle 900ms ease-out both;
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }

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