:root {
  --teal: #1f5b64;
  --deep-teal: #103c46;
  --cream: #f5dcb4;
  --paper: #f2d5a7;
  --ochre: #d79328;
  --coral: #d55057;
  --rose: #b83845;
  --ink: #3d2a23;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #123e48;
  font-family: "Libre Baskerville", Georgia, serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.poster-shell {
  width: min(100%, 1020px);
  margin: 0 auto;
  background: #F2E8D5;
  border: 8px solid #f7ead1;
  box-shadow: 0 18px 70px rgba(0, 0, 0, .35);
}

.hero {
  position: relative;
  min-height: 1040px;
  overflow: hidden;
  color: #f8d88a;
  background:
    linear-gradient(rgba(14, 53, 61, .18), rgba(14, 53, 61, .52)),
    url("assets/hero-vintage-lake.png") center / cover;
}

.hero::after,
.details::after,
.rsvp::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 18% 22%, rgba(61, 42, 35, .08) 0 1px, transparent 1.8px),
    radial-gradient(circle at 72% 38%, rgba(255, 255, 255, .18) 0 1px, transparent 1.7px),
    radial-gradient(circle at 42% 78%, rgba(61, 42, 35, .06) 0 1.2px, transparent 2px),
    radial-gradient(circle at 86% 84%, rgba(255, 255, 255, .12) 0 1px, transparent 1.8px);
  background-size: 9px 11px, 13px 15px, 17px 19px, 21px 23px;
  mix-blend-mode: multiply;
}

.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 4vw, 46px);
  padding: 0 36px 58px;
  color: #f6e3b8;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(.9rem, 1.8vw, 1.15rem);
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border: 1px solid rgba(247, 217, 143, .85);
  background: rgba(177, 55, 61, .86);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, .72);
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .55);
}

.nav-star {
  color: #f0a526;
  font-size: 3.2rem;
  line-height: 1;
  text-shadow: 1px 2px 0 rgba(67, 38, 27, .45);
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 105px 30px 80px;
  text-align: center;
}

.header-title {
  display: block;
  width: min(92%, 720px);
  max-height: 760px;
  height: auto;
  object-fit: contain;
}

.mini-heading {
  margin: 0 0 4px;
  color: var(--coral);
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-shadow: none;
}

.hero h2 {
  margin: 0;
  color: #f15d5c;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: .85;
  text-transform: uppercase;
  -webkit-text-stroke: 2px #f9dec2;
}

.hero h2 span {
  color: var(--ochre);
  font-family: "Fraunces", serif;
  font-size: .58em;
  -webkit-text-stroke: 1px #51351e;
}

.tagline,
.venue {
  color: #f5d273;
  font-family: "Great Vibes", cursive;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: .9;
}

.tagline {
  margin: 34px 0 34px;
}

.date {
  margin: 0;
  color: #e36b65;
  font-family: "Fraunces", serif;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 1px 2px 0 rgba(67, 38, 27, .45);
  
  
}

.venue {
  margin: 12px 0 0;
}

.details {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 54px 48px 42px;
  background: #F2E8D5;
}

.detail-card {
  position: relative;
  z-index: 1;
  min-height: 520px;
  padding: 38px 46px;
  text-align: center;
}

.detail-card:nth-child(odd) {
  border-right: 1px solid rgba(149, 72, 45, .65);
}

.detail-card:nth-child(-n + 2) {
  border-bottom: 1px solid rgba(149, 72, 45, .65);
}

.detail-card h3 {
  margin: 0 0 34px;
  color: var(--rose);
  font-family: "Fraunces", serif;
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
}

.place,
.timeline {
  display: grid;
  align-content: center;
  padding-inline: 24px;
}

.detail-image {
  display: block;
  width: min(100%, 560px);
  height: auto;
  max-height: 660px;
  object-fit: contain;
  margin: 0 auto;
}

.detail-image-link {
  display: block;
  width: min(100%, 560px);
  margin: 0 auto;
  cursor: pointer;
  transition: filter .18s ease, transform .18s ease;
}

.detail-image-link:hover,
.detail-image-link:focus-visible {
  filter: drop-shadow(4px 6px 0 rgba(75, 42, 33, .22));
  transform: translateY(-3px);
}

.mobile-map-hint {
  display: none;
}

.gifts {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 30px;
}

.gifts-image {
  display: block;
  width: min(100%, 430px);
  height: auto;
  max-height: 430px;
  object-fit: contain;
  margin: 0 auto;
}

.facts {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
}

.facts-image {
  display: block;
  width: min(100%, 520px);
  height: auto;
  max-height: 620px;
  object-fit: contain;
  margin: 0 auto;
}

.spotify-embed {
  display: block;
  width: min(100%, 520px);
  border: 0;
  border-radius: 12px;
}

.button,
.rsvp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 34px;
  color: #ffe9bf;
  background: var(--rose);
  border: 2px solid rgba(255, 235, 186, .65);
  font-family: "Fraunces", serif;
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rsvp {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, .75fr) minmax(0, 1.45fr) minmax(120px, .75fr);
  gap: 28px;
  align-items: center;
  justify-items: center;
  min-height: 340px;
  overflow: hidden;
  padding: 42px 44px;
  color: #f7ddb5;
  background:
    linear-gradient(90deg, rgba(154, 45, 55, .85), rgba(190, 66, 73, .92)),
    #b93f49;
}

.rsvp-copy {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ticket {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 210px);
  height: auto;
  object-fit: contain;
}

.ticket-left {
  justify-self: end;
}

.ticket-right {
  justify-self: start;
}

.rsvp h2 {
  margin: 0 0 8px;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.rsvp p {
  margin: 0 0 24px;
  font-size: 1rem;
  text-transform: uppercase;
}

.rsvp-button {
  cursor: pointer;
  color: #54311e;
  background: #e9a83b;
  border-color: #f7e5ba;
  box-shadow: 3px 4px 0 rgba(75, 42, 33, .35);
}

.contact {
  margin-top: 28px !important;
  font-size: .95rem !important;
  text-transform: none !important;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 32, 36, .72);
}

.rsvp-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  width: min(100%, 460px);
  padding: 34px;
  color: var(--ink);
  background: #f4d7a9;
  border: 4px solid #f7ead1;
  box-shadow: 9px 11px 0 rgba(65, 36, 26, .35);
}

.rsvp-form h2 {
  margin: 0 42px 6px 0;
  color: var(--rose);
  font-family: "Fraunces", serif;
  font-size: 1.7rem;
  text-transform: uppercase;
}

.rsvp-form label {
  display: grid;
  gap: 8px;
  font-family: "Fraunces", serif;
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rsvp-form [hidden] {
  display: none !important;
}

.rsvp-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff3d9;
  border: 2px solid rgba(149, 72, 45, .7);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1rem;
}

.checkbox-field {
  display: flex !important;
  align-items: center;
  gap: 12px !important;
}

.checkbox-field input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--rose);
}

.children-count {
  display: none !important;
}

.children-count.is-visible {
  display: grid !important;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: #f8dfb7;
  background: var(--rose);
  border: 2px solid #f7e0b6;
  font-size: 1.6rem;
  line-height: 1;
}

.form-message {
  min-height: 1.4em;
  margin: 0;
  color: var(--rose);
  font-size: .95rem;
  text-align: center;
}

@media (max-width: 820px) {
  .poster-shell {
    border-width: 4px;
  }

  .hero {
    min-height: 100px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 16px 42px;
  }

  .nav a {
    min-height: 38px;
    padding: 0 14px;
    box-shadow: 3px 4px 0 rgba(0, 0, 0, .72);
  }

  .nav-star {
    order: 5;
    width: 100%;
    text-align: center;
    font-size: 2.1rem;
  }

  .hero-copy {
    padding: 56px 18px 32px;
  }

  .header-title {
    width: min(92vw, 390px);
    max-height: 620px;
  }

  .mini-heading {
    margin-bottom: 8px;
    font-size: clamp(1.15rem, 5.8vw, 1.7rem);
    letter-spacing: .12em;
  }

  .hero h2 {
    max-width: 100%;
    font-size: clamp(4rem, 18vw, 5.1rem);
    line-height: .88;
    white-space: nowrap;
    -webkit-text-stroke-width: 1px;
  }

  .hero h2 span {
    font-size: .52em;
    -webkit-text-stroke-width: 1px;
  }

  .tagline {
    max-width: 340px;
    margin: 24px 0 26px;
    font-size: clamp(1.85rem, 8vw, 2.45rem);
    line-height: 1;
  }

  .date {
    font-size: clamp(1.05rem, 4.9vw, 1.45rem);
  }

  .venue {
    margin-top: 8px;
    font-size: clamp(2rem, 8.8vw, 2.8rem);
  }

  .details {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }

  .detail-card {
    min-height: auto;
    padding: 34px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(149, 72, 45, .65);
  }

  .detail-card:nth-child(odd) {
    border-right: 0;
  }

  .detail-card:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(149, 72, 45, .65);
  }

  .detail-card:first-child {
    padding-top: 0;
  }

  .detail-card:last-child {
    border-bottom: 0;
  }

  .detail-image {
    width: min(100%, 430px);
    height: auto;
    max-height: 620px;
  }

  .detail-image-link {
    width: min(100%, 430px);
  }

  .place,
  .timeline {
    padding-inline: 0;
  }

  .mobile-map-hint {
    display: block;
    margin-top: 10px;
    color: var(--rose);
    font-family: "Fraunces", serif;
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .gifts {
    gap: 24px;
  }

  .gifts-image {
    width: min(100%, 360px);
    max-height: 380px;
  }

  .facts-image {
    width: min(100%, 430px);
    max-height: 620px;
  }

  .spotify-embed {
    width: min(100%, 430px);
  }

  .rsvp {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 38px 24px;
  }

  .ticket {
    width: min(74vw, 240px);
  }

  .ticket-left,
  .ticket-right {
    justify-self: center;
  }

  .contact {
    line-height: 1.8;
  }
}
