:root {
  color-scheme: dark;
  --black: #000;
  --white: #f7f7f7;
  --gray: #d1d1d1;
  --display: "Playfair Display", Georgia, serif;
  --script: "Madelyn", cursive;
  --text: "Poppins", sans-serif;
}

@font-face {
  font-family: "Madelyn";
  src: url("./fonts/MadelynFill-Trial-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  background: var(--black);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  background: transparent;
  color: var(--white);
  font: 300 1rem/1.55 var(--text);
  letter-spacing: .025em;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  background-image: url("./images/pista-boliche.jpg");
  background-position: center 90%;
  background-size: cover;
  background-repeat: no-repeat;
}

h1, h2, h3, p {
  margin: 0;
}

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: .65rem 1rem;
  background: var(--white);
  color: var(--black);
  transform: translateY(calc(-100% - 2rem));
}

.skip-link:focus {
  transform: none;
}

.invitation-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(3rem, 8vh, 5.5rem) clamp(1.5rem, 7vw, 3.5rem);
  background-image: var(--page-overlay);
  background-size: cover;
  background-repeat: no-repeat;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  text-align: center;
}

.page-content {
  width: min(100%, 34rem);
  margin-inline: auto;
}

.cover-page {
  --page-overlay: linear-gradient(180deg, #0002 0%, #0003 22%, #0008 42%, #000 68%, #000 100%);
  justify-content: center;
  padding-block: clamp(3rem, 8vh, 5.5rem);
  background-image: var(--page-overlay), url("./images/pista-boliche.jpg");
  background-position: center, center 90%;
  background-size: cover, auto 175%;
}

.cover-content {
  display: grid;
  justify-items: center;
  gap: clamp(2.5rem, 6.5vh, 4.5rem);
  transform: scale(1.2);
}

.cover-date {
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 300;
  letter-spacing: .04em;
}

.cover-content h1 {
  font-family: var(--script);
  font-size: clamp(9rem, 28vw, 15rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: .9;
  text-shadow: 0 2px 20px #0008;
}

.cover-subtitle {
  margin-top: .5rem;
  font-size: clamp(1.15rem, 4.2vw, 1.55rem);
  font-weight: 300;
}

.event-page,
.questions-page,
.gifts-page,
.rsvp-page {
  --page-overlay: linear-gradient(180deg, #000b 0%, #000c 52%, #000f 100%);
}

.eyebrow {
  font-size: clamp(.9rem, 3.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: .2em;
}

.event-content {
  display: grid;
  justify-items: center;
  gap: clamp(.6rem, 2.2vh, 1.3rem);
}

.event-content h2,
.event-content h3,
.questions-content h2,
.gifts-content h2,
.rsvp-content h2 {
  font-family: var(--display);
  font-weight: 400;
}

.event-date,
.event-time {
  font-size: clamp(2.65rem, 8vw, 4.1rem);
  letter-spacing: -.045em;
  line-height: 1.15;
}

.event-time {
  font-family: var(--display);
  font-size: clamp(2.9rem, 8.8vw, 4.5rem);
  margin-top: .25rem;
}

.event-at {
  margin-top: clamp(1.1rem, 3vh, 2rem);
}

.venue-title {
  font-size: clamp(2.35rem, 7.5vw, 3.6rem);
  letter-spacing: -.04em;
  line-height: 1.12;
}

.venue-address {
  font-size: clamp(1rem, 3.8vw, 1.25rem);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  min-height: 3.6rem;
  margin-top: clamp(1.2rem, 3vh, 2rem);
  padding: .7rem 1.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font: 600 .95rem/1.2 var(--text);
  letter-spacing: .035em;
  text-align: center;
  cursor: pointer;
}

.button:hover {
  background: #dedede;
}

.button:disabled {
  opacity: 1;
  cursor: default;
}

.questions-content {
  display: grid;
  justify-items: center;
  gap: clamp(2.2rem, 6vh, 4rem);
  transform: translateY(-4vh);
}

.questions-content h2,
.rsvp-content h2 {
  font-size: clamp(2.75rem, 8vw, 4rem);
  letter-spacing: -.035em;
  line-height: 1.15;
}

.question-list {
  display: grid;
  width: min(100%, 30rem);
  font-size: clamp(1.05rem, 4vw, 1.4rem);
  font-weight: 300;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid #fff7;
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem .15rem;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5em;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 .15rem 1.25rem;
  color: var(--gray);
  font-size: .86em;
  text-align: left;
}

.whatsapp-link {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.gifts-page {
  padding-top: clamp(5rem, 12vh, 8rem);
  padding-bottom: clamp(5rem, 12vh, 8rem);
}

.gifts-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 2.6vh, 1.7rem);
}

.gifts-content h2 {
  font-size: clamp(2.35rem, 7.3vw, 3.7rem);
  letter-spacing: -.035em;
  line-height: 1.17;
}

.gift-intro,
.bank-details,
.gift-note,
.rsvp-instructions {
  font-size: clamp(.98rem, 3.6vw, 1.2rem);
  font-weight: 300;
}

.gift-intro {
  max-width: 31ch;
}

.bank-details {
  display: grid;
  gap: .35rem;
  margin-top: 1.6rem;
}

.account-type {
  font-weight: 600;
}

.gift-note {
  max-width: 30ch;
  margin-top: clamp(2rem, 5vh, 3.7rem);
}

.rsvp-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.8rem, 5vh, 3.6rem);
}

.rsvp-instructions {
  display: grid;
  gap: clamp(1.2rem, 3vh, 2rem);
  max-width: 34ch;
}

.rsvp-instructions strong {
  font-weight: 600;
}

.rsvp-content .button {
  margin-top: .2rem;
}

.rsvp-thanks {
  margin-top: clamp(1rem, 3vh, 2rem);
  font-family: var(--display);
  font-size: clamp(1.55rem, 5vw, 2.4rem);
  line-height: 1.2;
}

@media (max-width: 24rem) {
  .invitation-page {
    padding-inline: 1.25rem;
  }

  .gifts-content h2 {
    font-size: 2.1rem;
  }

  .bank-details,
  .gift-intro,
  .gift-note,
  .rsvp-instructions {
    font-size: .95rem;
  }
}

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