:root {
  --pit-black: #0e0e0e;
  --bone: #f2efe6;
  --smoke: #68655f;
  --ash: #c9c2b6;
  --bourbon: #a96b2b;
  --line: rgba(242, 239, 230, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--pit-black);
  color: var(--bone);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  background:
    url("../images/BROBQ_V_Invite.png")
    78% center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.68)),
    linear-gradient(to right, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(92%, 720px);
  padding: 2rem 1rem;
  animation: hero-rise 0.9s ease both;
}

.hero-edition,
.eyebrow {
  margin: 0 0 1rem;
  color: var(--bourbon);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  line-height: 0.95;
}

h1 {
  font-size: clamp(4.25rem, 18vw, 8.5rem);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

h2 {
  font-size: clamp(3rem, 8vw, 5.75rem);
}

.hero-tagline {
  margin: 1rem 0 0.35rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 4.8vw, 2.1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-date {
  margin: 0;
  color: var(--ash);
  font-size: 0.84rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-button,
.button {
  display: inline-block;
  border: 1px solid var(--bourbon);
  color: var(--bone);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.hero-button {
  margin-top: 2.5rem;
  padding: 1rem 1.65rem;
}

.hero-button:hover,
.hero-button:focus-visible,
.button:hover,
.button:focus-visible {
  background: var(--bourbon);
  color: var(--pit-black);
  transform: translateY(-2px);
}

.scroll-cue {
  position: absolute;
  z-index: 1;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--bourbon);
  font-size: 1.8rem;
  text-decoration: none;
  animation: cue-bounce 1.8s ease-in-out infinite;
}

.invitation-section,
.section {
  padding: clamp(4.5rem, 10vw, 8rem) 1.25rem;
  border-top: 1px solid var(--line);
}

.invitation-section {
  background:
    radial-gradient(circle at top, rgba(169, 107, 43, 0.09), transparent 42%),
    #111;
}

.section-dark {
  background: #111;
}

.section-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
}

.narrow {
  width: min(720px, 100%);
  text-align: center;
}

.centered {
  text-align: center;
}

.invitation-card {
  display: block;
  width: min(920px, 100%);
  margin: 1.5rem auto 0;
  border: 1px solid rgba(169, 107, 43, 0.65);
  box-shadow:
    0 1.5rem 4rem rgba(0, 0, 0, 0.38),
    0 0 0 0.35rem rgba(169, 107, 43, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.invitation-card:hover,
.invitation-card:focus-visible {
  transform: translateY(-3px);
  box-shadow:
    0 2rem 5rem rgba(0, 0, 0, 0.48),
    0 0 0 0.35rem rgba(169, 107, 43, 0.08);
}

.invitation-card img {
  display: block;
  width: 100%;
  height: auto;
}

.lead {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: var(--ash);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.narrow .lead {
  margin-left: auto;
  margin-right: auto;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3.5rem;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-card {
  min-height: 150px;
  padding: 1.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.detail-label {
  color: var(--bourbon);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.detail-card strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.rsvp-section {
  text-align: center;
}

.button {
  margin-top: 1.5rem;
  min-width: 220px;
  padding: 1.15rem 2rem;
}

.fine-print {
  margin-top: 1.5rem;
  color: var(--smoke);
  font-size: 0.78rem;
}

footer {
  padding: 2.75rem 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--smoke);
  text-transform: uppercase;
}

footer p {
  margin: 0;
  color: var(--bone);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  letter-spacing: 0.12em;
}

footer small {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cue-bounce {
  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 8px);
  }
}

@media (max-width: 760px) {
  .hero {
    background-position: 80% center;
  }

  .details-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content {
    width: 96%;
  }

  h1 {
    font-size: clamp(3.6rem, 17vw, 5.4rem);
  }

  .hero-tagline {
    font-size: 1.05rem;
    letter-spacing: 0.11em;
  }

  .hero-date {
    font-size: 0.72rem;
  }

  .invitation-section,
  .section {
    padding: 4rem 1rem;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: 118px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-content,
  .scroll-cue {
    animation: none;
  }
}
