:root {
  --ink: #2f3a33;
  --cream: #faf7f0;
  --sage: #dfe6dc;
  --accent: #8b5e4b;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(rgba(47, 58, 51, 0.3), rgba(47, 58, 51, 0.5)),
    linear-gradient(135deg, #b9c7b5, #e5d3c8);
  color: var(--white);
}

.nav {
  width: min(1100px, 90%);
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-size: 1.5rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-content {
  width: min(900px, 90%);
  margin: auto;
  padding: 5rem 0;
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.75rem;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4rem, 13vw, 9rem);
  font-weight: normal;
  line-height: 0.95;
}

h1 span {
  font-style: italic;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: normal;
  line-height: 1.1;
}

h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: normal;
}

.date {
  margin-bottom: 2rem;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border: 1px solid currentColor;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.button:focus {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--ink);
}

.button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

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

.section {
  padding: 7rem max(5%, calc((100% - 1000px) / 2));
}

.intro {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.intro > p:last-child,
.rsvp > p {
  font-size: 1.15rem;
}

.tinted {
  background: var(--sage);
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.card {
  padding: 3rem 2rem;
  border: 1px solid rgba(47, 58, 51, 0.25);
  background: rgba(255, 255, 255, 0.25);
}

.card p {
  margin-bottom: 0.25rem;
}

.card-time {
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.split h3:not(:first-child) {
  margin-top: 2rem;
}

.rsvp {
  background: var(--accent);
  color: var(--white);
  text-align: center;
}

footer {
  padding: 2rem;
  background: var(--ink);
  color: var(--white);
  text-align: center;
}

footer p {
  margin: 0;
}

@media (max-width: 650px) {
  .nav {
    align-items: flex-start;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.35rem;
    text-align: right;
  }

  .section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .cards,
  .split {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 1rem;
  }
}
