:root {
  color-scheme: light;
  --paper: #f1e6df;
  --ink: #25342e;
  --muted: #68756c;
  --leaf: #55725c;
  /* --coral: #c65e4d; */
  --pink: #c37682;
  --green: #8c893b;
  --orange: #c86f28;
  --blue: #6570b0;
  --line: #d8d6cd;
  --image-radius: 6px;
  font-family: "DM Sans", sans-serif;
  color: var(--green);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
}

a {
  color: inherit;
}

main img:not(.image-natural) {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--image-radius);
}

.image-natural {
  width: auto;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 6vw;
}

.wordmark {
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 28px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

nav a[aria-current="page"],
nav a:hover {
  color: var(--pink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  align-items: center;
  gap: 7vw;
  max-width: 1280px;
  min-height: 660px;
  margin: 0 auto;
  padding: 52px 6vw 82px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--leaf);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cesso Test", sans-serif;
  font-weight: 400;
}

h1 {
  max-width: 560px;
  font-size: 92px;
  line-height: 1.02;
}
h1 span {
  color: var(--pink);
  font-style: italic;
  font-family: "Playfair Display", Georgia, serif;

}

.hero-lede {
  max-width: 390px;
  margin: 26px 0 32px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.event-date {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 30px;
}
.event-date span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.event-date strong {
  font-size: 15px;
  font-weight: 600;
}

.text-link {
  color: var(--pink);
  font-size: 14px;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.hero-photo {
  position: relative;
  margin: 0;
}
.hero-photo figcaption {
  margin-top: 11px;
  color: var(--muted);
  font-size: 12px;
}

.welcome,
.story {
  max-width: 850px;
  margin: 0 auto;
  padding: 74px 6vw 100px;
  text-align: center;
}

.welcome h2,
.story h1 {
  font-size: 56px;
}
.welcome p,
.story p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.story {
  text-align: left;
}
.story h1 {
  margin-bottom: 28px;
}

.rsvp {
  max-width: 850px;
  margin: 0 auto;
  padding: 74px 6vw 100px;
}

.rsvp h1 {
  margin-bottom: 20px;
  font-size: 56px;
}
.rsvp > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.rsvp-form {
  display: block;
  width: 100%;
  height: 1300px;
  border: 0;
}
.rsvp-fallback {
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 700px) {
  .site-header,
  .site-footer {
    padding-right: 22px;
    padding-left: 22px;
  }
  .site-header {
    align-items: flex-start;
  }
  nav {
    gap: 16px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    min-height: auto;
    padding: 48px 22px 64px;
  }
  .hero-photo {
    max-width: 560px;
  }
  h1 {
    font-size: 56px;
  }
  .welcome h2,
  .story h1 {
    font-size: 38px;
  }
  .welcome,
  .story {
    padding: 58px 22px 72px;
  }
  .rsvp {
    padding: 58px 12px 72px;
  }
  .rsvp h1 {
    font-size: 38px;
  }
  .rsvp-form {
    height: 1400px;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 374px) {
  .rsvp-form {
    display: none;
  }
  .rsvp-fallback a {
    display: inline-block;
    padding: 12px 16px;
    border: 1px solid var(--ink);
    font-weight: 600;
    text-decoration: none;
  }
}
