@import url("../../shared/common.css");

body {
  min-width: 0;
  background: #dec1aa;
  color: #49372e;
}

.invitation {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 72px;
  text-align: center;
}

.hero {
  min-height: 76vh;
  display: grid;
  place-items: center;
}

.hero > div {
  width: 100%;
  min-width: 0;
}

.eyebrow {
  overflow-wrap: anywhere;
}

.hero h1 {
  margin: 12px 0;
  font: 300 clamp(4rem, 12vw, 8rem) / 0.9 var(--font-serif);
  letter-spacing: -0.07em;
}

.date {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.section {
  max-width: 500px;
  margin: 24px auto 0;
  border-top: 1px solid rgb(73 55 46 / 30%);
  padding-top: 24px;
}

.section h2,
.rsvp h2 {
  font: 400 2rem var(--font-serif);
}

.section p {
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.rsvp__note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.rsvp {
  margin-top: 32px;
  border-radius: 18px;
  background: rgb(255 253 249 / 35%);
  padding: 24px;
}

.rsvp form {
  display: grid;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

input,
select,
button {
  width: 100%;
  border: 1px solid rgb(73 55 46 / 40%);
  border-radius: 10px;
  background: rgb(255 255 255 / 45%);
  padding: 12px 14px;
  color: inherit;
  font: inherit;
}

button {
  background: #49372e;
  color: #fff;
  cursor: pointer;
}

[data-rsvp-status] {
  min-height: 1.5em;
  margin-top: 1rem;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

@media (max-width: 420px) {
  .invitation {
    padding: 24px 16px 48px;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 15vw, 5rem);
    overflow-wrap: anywhere;
  }

  .date {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .section h2,
  .rsvp h2 {
    font-size: 1.7rem;
    overflow-wrap: anywhere;
  }

  .rsvp {
    padding: 16px;
  }

  .rsvp form,
  .rsvp input,
  .rsvp select,
  .rsvp button {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }
}
