:root {
  --cream: oklch(0.975 0.012 80);
  --foreground: oklch(0.32 0.09 25);
  --burgundy: oklch(0.36 0.12 18);
  --terracotta: oklch(0.58 0.16 35);
  --burnt: oklch(0.65 0.19 45);
  --olive: oklch(0.55 0.10 125);
  --sand: oklch(0.85 0.04 75);
  --script: "Allura", cursive;
  --hand: "Caveat", cursive;
  --serif: "Cormorant Garamond", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--foreground);
  font-family: var(--serif);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem);
  color: var(--burgundy);
  font-family: var(--hand);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: 0.05em;
}

.site-nav--overlay {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
}

.brand {
  color: var(--burnt);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.85rem clamp(1rem, 3vw, 1.75rem);
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links .is-active,
.brand:hover {
  color: var(--burnt);
}

.home-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5.5rem 1rem 3rem;
}

.invitation {
  width: min(100%, 42rem);
  margin: 0;
}

.countdown-section {
  border-top: 2px dashed color-mix(in oklab, var(--cream) 20%, transparent);
  background: var(--burgundy);
  padding: 4rem 1.5rem;
  text-align: center;
}

.countdown-section h1,
.story-section h2,
.page h1 {
  margin: 0;
  font-family: var(--script);
  font-weight: 400;
  line-height: 1;
}

.countdown-section h1 {
  color: var(--cream);
  font-size: clamp(4rem, 10vw, 6rem);
}

.countdown-disc {
  width: min(20rem, 78vw);
  aspect-ratio: 1;
  margin: 2rem auto 0;
  border: 2px dashed color-mix(in oklab, var(--burgundy) 40%, transparent);
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
}

.countdown-disc strong {
  color: var(--burnt);
  font-family: var(--script);
  font-size: clamp(5rem, 18vw, 8rem);
  font-weight: 400;
  line-height: 0.9;
}

.countdown-disc span,
.story-section p,
.site-footer,
.hint,
.small,
.rsvp-form span,
.rsvp-form legend {
  font-family: var(--hand);
  letter-spacing: 0.12em;
}

.story-section {
  border-top: 2px dashed color-mix(in oklab, var(--burgundy) 30%, transparent);
  padding: 4rem 1.5rem;
  text-align: center;
}

.story-section p,
.hint,
.small,
.rsvp-form span,
.rsvp-form legend {
  color: var(--olive);
}

.story-section h2,
.page h1 {
  color: var(--burnt);
  font-size: clamp(4rem, 12vw, 6.25rem);
}

.story-section img {
  width: min(100%, 28rem);
  margin: 2rem auto 0;
}

.page {
  width: min(100% - 2rem, 48rem);
  margin: 0 auto;
  padding: 2.5rem 0 6rem;
}

.page--narrow {
  width: min(100% - 2rem, 42rem);
}

.page--center,
.page--form {
  text-align: center;
}

.page--form {
  width: min(100% - 2rem, 38rem);
}

.feature-image {
  margin-top: 2.5rem;
  border-radius: 0.5rem;
}

.monogram {
  width: 12rem;
  margin: 0 auto;
}

.lead {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  color: var(--burgundy);
  font-family: var(--hand);
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  line-height: 1.35;
}

.small {
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.button {
  display: inline-block;
  margin-top: 2.5rem;
  border: 2px solid var(--burgundy);
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--cream);
  padding: 0.95rem 2.5rem;
  font-family: var(--hand);
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  border-color: var(--burnt);
  background: var(--burnt);
}

.button--full {
  width: 100%;
  cursor: pointer;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
  color: var(--olive);
}

.divider span {
  width: 3rem;
  height: 1px;
  background: currentColor;
}

.divider b,
.signoff {
  color: var(--terracotta);
  font-family: var(--script);
  font-weight: 400;
}

.divider b {
  font-size: 2rem;
}

.signoff {
  margin-top: 1rem;
  font-size: 2rem;
}

.rsvp-form,
.thanks-card,
.form-message {
  margin-top: 2rem;
  border: 2px solid color-mix(in oklab, var(--burgundy) 30%, transparent);
  border-radius: 1.5rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  text-align: left;
}

.thanks-card {
  text-align: center;
}

.script-large {
  margin: 0;
  color: var(--burnt);
  font-family: var(--script);
  font-size: clamp(4rem, 12vw, 5rem);
  line-height: 1;
}

.rsvp-form {
  display: grid;
  gap: 1.25rem;
}

.rsvp-form label {
  display: grid;
  gap: 0.35rem;
}

.rsvp-form span,
.rsvp-form legend {
  text-transform: uppercase;
}

.rsvp-form input[type="text"],
.rsvp-form input[type="email"],
.rsvp-form textarea {
  width: 100%;
  border: 2px solid color-mix(in oklab, var(--burgundy) 40%, transparent);
  border-radius: 999px;
  background: var(--cream);
  color: var(--burgundy);
  padding: 0.75rem 1.25rem;
  font-family: var(--hand);
  font-size: 1.2rem;
  outline: none;
}

.rsvp-form textarea {
  border-radius: 1.25rem;
  resize: vertical;
}

.rsvp-form input:focus,
.rsvp-form textarea:focus {
  border-color: var(--burgundy);
}

.rsvp-form fieldset {
  margin: 0;
  border: 0;
  padding: 0;
  color: var(--burgundy);
}

.rsvp-form fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.45rem 1rem 0.25rem 0;
  font-family: var(--hand);
  font-size: 1.25rem;
}

.rsvp-form input[type="radio"] {
  accent-color: var(--burgundy);
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message--error {
  color: var(--burgundy);
  font-family: var(--hand);
  font-size: 1.15rem;
}

.site-footer {
  border-top: 2px dashed color-mix(in oklab, var(--burgundy) 30%, transparent);
  padding: 2rem 1rem;
  color: var(--olive);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
  color: var(--burgundy);
}

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

  .nav-links {
    /* max-width: 14rem; */
  }
}

