/* One continuous wallpaper, sized to the viewport instead of stretched over a long page. */
.home-page {
  position: relative;
  isolation: isolate;
  background: #130a0c;
}

.home-page::before,
.home-page::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.home-page::before {
  z-index: -2;
  background: #130a0c url('/euphoria-ballroom-couple-v4.webp') center center / cover no-repeat;
}

.home-page::after {
  z-index: -1;
  background: linear-gradient(90deg, #10080b44, #10080b55 48%, #10080b22),
    linear-gradient(180deg, #10080b33, transparent 28%, #10080b33);
}

.home-page header {
  background: #160b0dd9;
}

.home-page .hero::before {
  display: none;
}

/* Fit the first screen while allowing the hero to grow when text wraps or scales. */
.home-page .hero {
  height: auto;
  min-height: calc(100svh - 100px);
  max-height: none;
  padding-block: 28px 20px;
  grid-template-rows: auto 1fr auto;
  place-content: normal;
  justify-items: center;
  gap: 16px;
}

.hero-invitation {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
}

.home-page .hero .hero-invitation > .button {
  margin: 0;
}

.home-page .hero .tagline {
  margin-bottom: 10px;
}

.home-page .hero .subline {
  max-width: 46ch;
  margin-bottom: 20px;
}

/* Give the event details a clear place beside the invitation. */
.home-page .hero .event-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
  width: min(640px, 100%);
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-shadow: 0 2px 12px #000;
}

.event-details dt {
  margin-bottom: 6px;
  color: var(--text);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.event-details dd {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.home-page .hero a.scroll-note {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 8px;
  margin: -12px 0;
  line-height: 1.6;
}

.home-page .hero a.scroll-note:hover {
  color: var(--gold);
}

.home-page .hero::after {
  background: radial-gradient(ellipse at center, #10080b55, #10080b11 62%, transparent 82%);
}

.home-page .hero h1 {
  text-shadow: 0 3px 28px #0009, 0 0 80px #0005;
}

.home-page .hero .tagline,
.home-page .hero .subline,
.home-page .hero .eyebrow,
.home-page .hero .meta,
.home-page .scroll-note {
  text-shadow: 0 2px 12px #000;
}

.home-page .hero .subline,
.home-page .scroll-note {
  color: #ebdcd3;
}

.home-page .ribbon {
  background: #160b0de8;
  justify-content: center;
  text-align: center;
}

.home-page section.content {
  background: linear-gradient(90deg, #160b0ded, #160b0de3);
  border-inline: 1px solid #c9a16319;
}

.home-page footer {
  background: #160b0df2;
}

#tickets .cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
  margin-inline: auto;
}

#tickets .card {
  padding: 24px;
}

#tickets .card .eyebrow,
#tickets .card h3 {
  margin-bottom: 12px;
}

#tickets .card .price {
  margin: 16px 0 8px;
}

#tickets .card .ticket-offer {
  margin: 0 0 16px;
  color: var(--gold);
}

#tickets .card .button {
  margin-top: 0;
}

/* An invitation on the left, with a small collection of photo prints on the right. */
.home-page .intro {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.intro-copy h2 {
  margin-bottom: 28px;
}

.intro-copy > p:not(.eyebrow) {
  max-width: 48ch;
}

.prom-gallery {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1.03;
  justify-self: center;
}

.prom-photo {
  position: absolute;
  margin: 0;
  padding: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, #f3dfac, #b99459 22%, #74552d 43%, #dcc18a 67%, #94703c 88%, #eddaa8);
  box-shadow: inset 0 1px 0 #fff4d8,
    inset 1px 0 0 #f3dba5b3,
    inset 0 -1px 0 #634422,
    inset -1px 0 0 #75552b,
    0 3px 5px #0009,
    0 20px 36px #0008;
  transform: rotate(var(--photo-angle));
}

/* Fine outer and inner edges make the metal surround read as a bevel. */
.prom-photo::before {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1px solid #f7e6be9c;
  box-shadow: inset 0 0 0 1px #745629;
  border-radius: 1px;
  pointer-events: none;
}

.prom-photo--friends {
  --photo-angle: -4deg;
  width: 84%;
  left: 8%;
  top: 4%;
  z-index: 1;
}

.prom-photo--dance {
  --photo-angle: 5deg;
  width: 61%;
  left: 0;
  top: 47%;
  z-index: 2;
}

.prom-photo--group {
  --photo-angle: -5deg;
  width: 58%;
  right: 0;
  top: 62%;
  z-index: 3;
}

.prom-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  background: var(--panel);
  outline: 1px solid #51391b;
  box-shadow: 0 1px 0 #f5e4bb99;
}

/* Keep the real club lettering and wheel together as one brand asset. */
.club-lockup img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.hero .hero-club {
  width: clamp(190px, 20vw, 240px);
  margin: 0 auto;
}

.image-wordmark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 180px;
}

.image-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-club {
  width: 230px;
}

.home-page .hero .gold-title {
  width: min(680px, 78vw, calc((100svh - 100px) * .78));
  margin: 0 auto 20px;
  font-size: 0;
  line-height: 1;
  letter-spacing: normal;
}

.gold-title img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 5px 20px #0008);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 800px) {
  .home-page .hero {
    min-height: calc(100svh - 80px);
    padding-block: 24px;
  }

  .image-wordmark {
    width: 140px;
  }

  .hero .hero-club {
    width: clamp(180px, 48vw, 220px);
    margin-bottom: 0;
  }

  .home-page .hero .gold-title {
    width: min(520px, 88vw, calc((100svh - 80px) * .65));
    margin-bottom: 18px;
  }

  /* Keep the couple visible in the portrait crop; the overlay protects text contrast. */
  .home-page::before {
    background-position: 85% center;
  }

  .home-page::after {
    background: linear-gradient(180deg, #10080b33, #10080b66 48%, #10080b55);
  }

  .home-page section.content {
    border-inline: 0;
    background: #160b0ded;
  }

  .home-page .intro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .prom-gallery {
    max-width: 520px;
  }

  #tickets .cards {
    grid-template-columns: 1fr;
  }
}

/* Browser toolbars and shorter laptop screens leave less vertical room. */
@media (min-width: 801px) and (max-height: 800px) {
  .home-page .hero {
    padding-block: 16px;
  }

  .hero .hero-club {
    width: 220px;
    margin-bottom: 0;
  }

  .home-page .hero .gold-title {
    width: min(580px, 74vw, calc((100svh - 100px) * .75));
    margin-bottom: 14px;
  }

  .home-page .hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .home-page .hero .subline {
    font-size: .9375rem;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .home-page .hero .event-details {
    margin-top: 16px;
    padding-top: 12px;
  }

  .home-page .hero .event-details dd {
    font-size: 1.5rem;
  }

  .home-page .hero .scroll-note {
    margin: 0;
  }
}

@media (min-width: 801px) and (max-height: 650px) {
  .hero .hero-club {
    width: 190px;
    margin-bottom: 0;
  }

  .home-page .hero .gold-title {
    width: min(460px, 64vw, calc((100svh - 100px) * .6));
    margin-bottom: 12px;
  }

  .home-page .hero .scroll-note {
    display: block;
  }
}

@media (max-width: 800px) and (max-height: 740px) {
  .home-page .hero {
    padding-block: 14px;
    gap: 8px;
  }

  .hero .hero-club {
    width: 180px;
    margin-bottom: 0;
  }

  .home-page .hero .gold-title {
    width: min(410px, 88vw, calc((100svh - 80px) * .5));
    margin-bottom: 12px;
  }

  .home-page .hero .tagline {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .home-page .hero .subline {
    font-size: .9375rem;
    line-height: 1.45;
    margin-bottom: 14px;
  }

  .home-page .hero .event-details {
    margin-top: 16px;
    padding-top: 12px;
    gap: 12px;
  }

  .home-page .hero .event-details dd {
    font-size: 1.375rem;
  }

  .home-page .hero .scroll-note {
    display: block;
  }
}

@media (max-width: 540px) {
  .home-page .hero a.scroll-note {
    gap: 8px;
    padding-inline: 2px;
    letter-spacing: .08em;
    white-space: nowrap;
  }

  .home-page .hero .event-details {
    grid-template-columns: 1fr;
  }

  .prom-photo {
    padding: 6px;
  }
}

@media (max-width: 540px) and (max-height: 740px) {
  .home-page .hero .event-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
