:root {
  --bg: #fff7f7;
  --panel: rgba(255, 250, 252, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --text: #24162d;
  --muted: #66546f;
  --purple: #8b46ff;
  --purple-deep: #5b25bc;
  --orange: #ff9362;
  --yellow: #ffd86b;
  --green: #3bbf92;
  --border: rgba(58, 21, 92, 0.12);
  --shadow: 0 30px 80px rgba(82, 29, 140, 0.16);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(139, 70, 255, 0.22), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(255, 147, 98, 0.26), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(59, 191, 146, 0.18), transparent 26%),
    linear-gradient(180deg, #fffaf4 0%, #fff4fb 52%, #fffdf8 100%);
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a,
button,
summary,
input {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

a:hover,
button:hover,
summary:hover {
  transform: translateY(-2px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}

.orb-one {
  inset: 10% auto auto 5%;
  width: 280px;
  height: 280px;
  background: rgba(139, 70, 255, 0.14);
}

.orb-two {
  inset: 55% 2% auto auto;
  width: 220px;
  height: 220px;
  background: rgba(255, 147, 98, 0.12);
}

.orb-three {
  inset: auto auto 5% 35%;
  width: 240px;
  height: 240px;
  background: rgba(59, 191, 146, 0.12);
}

.gate-shell,
.site-shell {
  position: relative;
  z-index: 1;
}

.gate-shell {
  min-height: 100vh;
  padding: 32px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.gate-card,
.panel {
  backdrop-filter: blur(18px);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.gate-card {
  width: min(100%, 680px);
  border-radius: 40px;
  padding: 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--purple-deep);
  font-weight: 700;
}

h1,
h2,
h3,
h4,
legend {
  font-family: "Fraunces", serif;
  line-height: 1;
  margin: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  margin-bottom: 18px;
}

h3 {
  font-size: 1.7rem;
}

.gate-copy,
.lede,
.overview-card p,
.content-card p,
.registry-card p,
.faq-list p,
.result-copy p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.04rem;
}

.gate-form {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

input[type="password"] {
  width: min(100%, 320px);
  border-radius: 999px;
  border: 1px solid rgba(91, 37, 188, 0.18);
  padding: 16px 20px;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
}

input[type="password"]:focus-visible {
  outline: 3px solid rgba(139, 70, 255, 0.22);
  outline-offset: 2px;
}

button,
.button-link,
.registry-card,
.overview-card,
.text-link,
.main-nav a,
.brand {
  text-decoration: none;
}

button,
.button-link,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 15px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button,
.button-link,
.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--purple) 0%, #b54cff 55%, var(--orange) 100%);
  box-shadow: 0 18px 40px rgba(139, 70, 255, 0.28);
}

.secondary-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(91, 37, 188, 0.12);
}

.error-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: #b12952;
  font-weight: 700;
}

.floating-photo,
.collage-card,
.sidebar-photo,
.registry-photo,
.faq-photo,
.result-photo {
  overflow: hidden;
  border-radius: 26px;
  border: 10px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 28px 60px rgba(75, 28, 126, 0.18);
  background: white;
}

.floating-photo {
  position: absolute;
  width: 180px;
  height: 220px;
}

.photo-a {
  top: 10%;
  left: 5%;
}

.photo-b {
  top: 18%;
  right: 7%;
}

.photo-c {
  bottom: 9%;
  right: 18%;
}

.tilt-left {
  transform: rotate(-6deg);
}

.tilt-right {
  transform: rotate(6deg);
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 22px 0 48px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 4;
  margin-bottom: 24px;
  padding: 18px 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border-radius: 999px;
  background: rgba(255, 252, 253, 0.78);
  border: 1px solid rgba(91, 37, 188, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 38px rgba(95, 41, 156, 0.12);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.main-nav a,
.text-link {
  color: var(--text);
  font-weight: 700;
}

.main-nav a.active {
  color: var(--purple-deep);
}

.main-nav a:hover,
.text-link:hover {
  color: var(--purple-deep);
}

main {
  display: grid;
  gap: 26px;
}

.panel {
  border-radius: var(--radius-xl);
  padding: 34px;
}

.compact-panel {
  padding-top: 28px;
  padding-bottom: 28px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
  min-height: 72vh;
}

.hero-copy {
  max-width: 560px;
}

.cta-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-collage {
  position: relative;
  min-height: 460px;
}

.collage-card {
  position: absolute;
}

.collage-card.large {
  inset: 40px 20px 20px 70px;
}

.collage-card.small {
  width: 200px;
  height: 230px;
}

.collage-card.small.top {
  top: 0;
  left: 0;
}

.collage-card.small.bottom {
  right: 0;
  bottom: 10px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.page-intro {
  max-width: 860px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.overview-card,
.registry-card {
  color: inherit;
}

.overview-card {
  display: grid;
  gap: 16px;
  background: var(--panel-strong);
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(91, 37, 188, 0.1);
  box-shadow: 0 14px 30px rgba(91, 37, 188, 0.08);
}

.overview-card img {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
}

.two-column-layout,
.registry-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.stack {
  display: grid;
  gap: 20px;
}

.content-card,
.quiz-shell {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--panel-strong);
  border: 1px solid rgba(91, 37, 188, 0.08);
}

.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 18px;
}

.card-heading span {
  color: var(--purple-deep);
  font-weight: 700;
}

.event-list,
.travel-grid,
.registry-links {
  display: grid;
  gap: 18px;
}

.event-item,
.travel-grid section {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 240, 255, 0.85));
}

.event-item h4,
.travel-grid h4 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.event-item p,
.travel-grid p {
  margin: 8px 0 0;
}

.photo-column {
  display: grid;
  gap: 18px;
}

.sidebar-photo {
  aspect-ratio: 0.9;
}

.registry-panel {
  background:
    linear-gradient(140deg, rgba(255, 243, 240, 0.9), rgba(249, 239, 255, 0.9)),
    var(--panel);
}

.registry-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.registry-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 210px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(139, 70, 255, 0.16), rgba(255, 216, 107, 0.22));
  border: 1px solid rgba(91, 37, 188, 0.1);
  box-shadow: 0 18px 34px rgba(91, 37, 188, 0.08);
}

.registry-photo,
.faq-photo {
  min-height: 100%;
}

.quiz-progress {
  margin-bottom: 24px;
}

.progress-track {
  width: 100%;
  height: 12px;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(91, 37, 188, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 10%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green), var(--purple), var(--orange));
}

.quiz-form {
  display: grid;
  gap: 20px;
}

.quiz-card {
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-card legend {
  width: 100%;
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.answer-list {
  display: grid;
  gap: 14px;
}

.answer-option {
  display: flex;
}

.answer-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-option label {
  width: 100%;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(91, 37, 188, 0.12);
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  font-weight: 500;
  line-height: 1.5;
}

.answer-option label:hover,
.answer-option input:focus-visible + label {
  border-color: rgba(139, 70, 255, 0.55);
  box-shadow: 0 12px 28px rgba(139, 70, 255, 0.12);
}

.answer-option input:checked + label {
  background: linear-gradient(135deg, rgba(139, 70, 255, 0.14), rgba(255, 147, 98, 0.15));
  border-color: rgba(139, 70, 255, 0.45);
}

.quiz-controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.quiz-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  gap: 22px;
  align-items: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(91, 37, 188, 0.12);
}

.quiz-result.hidden {
  display: none;
}

.result-photo {
  min-height: 360px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

details {
  border-radius: 20px;
  background: var(--panel-strong);
  border: 1px solid rgba(91, 37, 188, 0.09);
  padding: 20px 22px;
}

summary {
  cursor: pointer;
  list-style: none;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 14px 0 0;
}

@media (max-width: 1080px) {
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .two-column-layout,
  .registry-layout,
  .faq-layout,
  .quiz-result {
    grid-template-columns: 1fr;
  }

  .hero-collage {
    min-height: 420px;
  }

  .registry-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .gate-shell,
  .site-shell {
    width: calc(100% - 20px);
    padding-left: 0;
    padding-right: 0;
  }

  .gate-shell {
    padding-top: 22px;
    padding-bottom: 22px;
  }

  .gate-card,
  .panel {
    padding: 24px;
    border-radius: 28px;
  }

  .site-header {
    position: static;
    border-radius: 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .overview-grid,
  .registry-links {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-collage {
    min-height: 300px;
  }

  .collage-card.large {
    inset: 30px 10px 10px 30px;
  }

  .collage-card.small {
    width: 130px;
    height: 150px;
  }

  .floating-photo {
    display: none;
  }

  .quiz-controls {
    flex-direction: column-reverse;
  }

  button,
  .button-link,
  .primary-button,
  .secondary-button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
