:root {
  --bg: #091326;
  --bg-2: #122447;
  --panel: rgba(10, 22, 46, 0.74);
  --line: rgba(137, 176, 255, 0.16);
  --text: #ebf3ff;
  --muted: #b6c8ea;
  --accent: #8daef8;
  --accent-2: #d5b5ff;
  --shadow: 0 24px 80px rgba(4, 10, 24, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(91, 129, 255, 0.25), transparent 32%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  opacity: 0.22;
}

.hidden {
  visibility: hidden;
  opacity: 0;
}

.intro-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at center, rgba(255, 236, 185, 0.8), transparent 40%),
    linear-gradient(160deg, rgba(13, 29, 58, 0.5), rgba(4, 9, 22, 0.94)),
    url("assets/couple.jpg") center/cover;
  z-index: 10;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.intro-screen.is-open {
  opacity: 0;
  visibility: hidden;
}

.intro-visual,
.particle-layer,
.hero-backdrop::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.intro-visual {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.32), transparent 15%),
    radial-gradient(circle at 80% 25%, rgba(255,226,153,0.35), transparent 18%),
    radial-gradient(circle at 50% 85%, rgba(255,246,223,0.22), transparent 20%);
  animation: glowDrift 9s ease-in-out infinite alternate;
}

.intro-copy,
.content {
  position: relative;
  z-index: 2;
}

.intro-copy {
  max-width: 42rem;
  text-align: center;
  color: #f4f7ff;
}

.eyebrow,
.section-label {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.intro-copy h1,
.hero h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  line-height: 0.95;
  margin: 0.6rem 0 1rem;
}

.intro-copy h1 {
  font-size: clamp(3rem, 10vw, 6rem);
}

.intro-button,
.scroll-link,
.response-card button,
.share-actions button,
.reaction-chip,
.music-toggle {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.intro-button,
.response-card button,
.share-actions button,
.scroll-link {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #2d1f09;
  box-shadow: 0 12px 36px rgba(255, 209, 143, 0.35);
}

.intro-button,
.response-card button {
  padding: 1rem 1.6rem;
}

.music-toggle {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.85rem 1.1rem;
  background: rgba(11, 25, 52, 0.82);
  color: #f4f7ff;
  z-index: 4;
  backdrop-filter: blur(12px);
}

.page-shell {
  transition: opacity 0.8s ease;
}

.section {
  position: relative;
  padding: 5rem 1.5rem;
}

.content {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding-bottom: 4rem;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 15, 36, 0.22), rgba(6, 15, 36, 0.82)),
    url("assets/couple.jpg") center/cover;
  transform: scale(1.05);
}

.hero-backdrop::before {
  content: "";
  background:
    radial-gradient(circle at 20% 20%, rgba(162, 193, 255, 0.36), transparent 18%),
    radial-gradient(circle at 70% 30%, rgba(215, 181, 255, 0.26), transparent 16%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.18), transparent 24%);
}

.particle-layer {
  background-image:
    radial-gradient(circle, rgba(243, 248, 255, 0.9) 0 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(141, 174, 248, 0.42) 0 1px, transparent 1px);
  background-size: 120px 120px, 70px 70px;
  animation: driftUp 20s linear infinite;
  opacity: 0.65;
}

.hero h1 {
  font-size: clamp(3.4rem, 9vw, 7rem);
  max-width: 10ch;
  color: #fff7e7;
}

.lede,
.hero .eyebrow,
.hero .scroll-link {
  color: #f9edcf;
}

.lede {
  max-width: 34rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.scroll-link {
  display: inline-flex;
  margin-top: 1.4rem;
  padding: 0.95rem 1.3rem;
  text-decoration: none;
}

.quote-card,
.letter-card,
.response-card,
.share-card {
  background: var(--panel);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.quote-card {
  padding: 2rem;
  border-radius: 2rem;
}

.quote-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-quote {
  padding: 1.4rem;
  border-radius: 1.4rem;
  background: rgba(12, 24, 48, 0.8);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mini-quote p {
  margin: 0 0 0.8rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
}

.mini-quote span {
  color: var(--muted);
  line-height: 1.7;
}

.quote-card p:first-child {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0 0 1rem;
}

.quote-card p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.two-column,
.response-layout,
.section-head {
  display: grid;
  gap: 2rem;
}

.two-column,
.response-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
}

.letter-card,
.response-card,
.share-card {
  border-radius: 1.8rem;
  padding: 2rem;
}

.letter-card p,
.section-copy,
.form-note {
  color: var(--muted);
  line-height: 1.9;
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 2rem;
}

.gallery-grid figure {
  margin: 0;
  padding: 1rem 1rem 1.3rem;
  background: rgba(255, 251, 245, 0.86);
  border-radius: 1.3rem;
  box-shadow: var(--shadow);
  transform: rotate(calc(var(--tilt, 0) * 1deg));
}

.gallery-grid figure:nth-child(1) { --tilt: -3; }
.gallery-grid figure:nth-child(2) { --tilt: 2; }
.gallery-grid figure:nth-child(3) { --tilt: -2; }
.gallery-grid figure:nth-child(4) { --tilt: 3; }

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
}

.gallery-grid figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
}

.reaction-list,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.reaction-chip {
  padding: 0.85rem 1rem;
  background: rgba(17, 32, 61, 0.92);
  color: var(--text);
  border: 1px solid rgba(141, 174, 248, 0.18);
}

.reaction-chip.is-selected,
.reaction-chip:hover,
.share-actions button:hover,
.intro-button:hover,
.scroll-link:hover,
.response-card button:hover,
.music-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(85, 52, 12, 0.18);
}

.response-card {
  display: grid;
  gap: 0.8rem;
}

.response-card input,
.response-card textarea {
  width: 100%;
  border: 1px solid rgba(141, 174, 248, 0.14);
  border-radius: 1.1rem;
  padding: 1rem;
  font: inherit;
  color: var(--text);
  background: rgba(8, 20, 42, 0.76);
}

.share-actions button {
  padding: 0.9rem 1.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes driftUp {
  from { transform: translateY(0); }
  to { transform: translateY(-120px); }
}

@keyframes glowDrift {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 900px) {
  .two-column,
  .response-layout,
  .quote-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: center;
    padding-top: 6rem;
  }
}
