:root {
  --ink: #20231f;
  --paper: #f7f5ef;
  --sage: #73806d;
  --gold: #c09a5b;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", sans-serif;
  line-height: 1.7;
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background-image: url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=2000&q=85");
  background-position: center;
  background-size: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(20 24 19 / 28%), rgb(20 24 19 / 66%));
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(90%, 960px);
  padding: 3rem 1rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 1;
}

h1 {
  margin: 0;
  font-size: 8rem;
  white-space: nowrap;
}

h1 span {
  display: inline-block;
  color: #f1d8ad;
  font-size: 0.62em;
  font-style: italic;
}

.invitation {
  margin: 1.5rem 0 0.5rem;
}

.date {
  margin: 0 0 2rem;
  font-weight: 600;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border: 1px solid currentColor;
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  color: var(--ink);
  background: var(--white);
}

.details {
  padding: 6rem max(1.5rem, calc((100% - 1120px) / 2));
}

.details__intro {
  max-width: 680px;
  margin-bottom: 4rem;
}

.details__intro .eyebrow {
  color: var(--sage);
}

h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.8rem, 7vw, 5rem);
}

.details__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid #c9c8bf;
}

.details__grid article {
  padding: 2.5rem 2rem;
}

.details__grid article + article {
  border-left: 1px solid #c9c8bf;
}

.detail-number {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
}

h3 {
  margin: 1rem 0;
  font-size: 2.2rem;
}

.rsvp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 4rem;
  padding: 2rem;
  color: var(--white);
  background: var(--sage);
}

.rsvp p {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
}

.button--dark:hover,
.button--dark:focus-visible {
  color: var(--sage);
}

@media (max-width: 1000px) {
  h1 {
    font-size: 6rem;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 88vh;
  }

  h1 {
    font-size: 4rem;
    white-space: normal;
  }

  h1 span {
    display: block;
    margin: 0.1em 0;
  }

  .details {
    padding-block: 4rem;
  }

  .details__grid {
    grid-template-columns: 1fr;
  }

  .details__grid article {
    padding-inline: 0;
  }

  .details__grid article + article {
    border-top: 1px solid #c9c8bf;
    border-left: 0;
  }

  .rsvp {
    align-items: flex-start;
    flex-direction: column;
  }
}

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