:root {
  --dusty-blue-bg: #dce7ef;
  --dusty-blue: #7694aa;
  --dusty-blue-deep: #4f6f88;
  --terracotta: #bf6439;
  --terracotta-deep: #994827;
  --cream: #f8f3eb;
  --ink: #344453;
  --line: #bccddb;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--dusty-blue-bg);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  line-height: 1.65;
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.top-nav-wrap {
  border-top: 4px solid var(--dusty-blue-deep);
  background: rgba(248, 243, 235, 0.9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.top-nav {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.7rem 0;
}

.top-nav a {
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.76rem;
  color: var(--dusty-blue-deep);
}

.landing {
  padding: 0 0 4.5rem;
}

.hero-floral-panel {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  min-height: 330px;
  padding: 0;
  background-color: var(--cream);
  border-bottom: 0;
  overflow: hidden;
}

.hero-floral-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/floral-bg.png");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
  opacity: 1;
}

.photo-strip {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  padding: 1rem 0 0.8rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.photo-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: scrollPhotos 86s linear infinite;
}

.photo-strip:hover .photo-track {
  animation-play-state: paused;
}

.strip-photo {
  width: clamp(240px, 26vw, 380px);
  height: clamp(220px, 24vw, 320px);
  border-radius: 0.55rem;
  object-fit: cover;
  border: 2px solid #5f7f98;
  box-shadow: 0 8px 22px rgba(63, 94, 116, 0.2);
}

@keyframes scrollPhotos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.intro {
  max-width: 760px;
  margin: 1.6rem auto 1.5rem;
  text-align: center;
}

.intro-top {
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
  max-width: none;
  padding: 0 0 0.8rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.name-block-frame {
  width: min(1400px, 96vw);
  margin: 0 auto;
}

.name-block-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  mix-blend-mode: normal;
  filter: none;
}

.intro-bottom {
  margin-top: 1.8rem;
}

.name-florals {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.6rem;
}

h1 {
  margin: 0;
  font-family: "Allura", "Great Vibes", cursive;
  font-size: clamp(3.1rem, 8vw, 6rem);
  font-weight: 400;
  color: #284a6b;
  line-height: 1;
}

.celebration-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.icon.bourbon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bf6439' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h12l-1 6a5 5 0 0 1-5 4h0a5 5 0 0 1-5-4L6 4z'/%3E%3Cpath d='M8 20h8'/%3E%3Cpath d='M12 14v6'/%3E%3C/svg%3E");
}

.icon.wine {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6f88' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10v3a5 5 0 0 1-10 0V4z'/%3E%3Cpath d='M12 12v7'/%3E%3Cpath d='M8 20h8'/%3E%3C/svg%3E");
}

.icon.champagne {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bf6439' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8v2a4 4 0 0 1-8 0V4z'/%3E%3Cpath d='M12 10v9'/%3E%3Cpath d='M9 20h6'/%3E%3Cpath d='M18 6h2'/%3E%3Cpath d='M19 5v2'/%3E%3C/svg%3E");
}

.icon.flower {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6f88' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1.4'/%3E%3Cpath d='M12 7c1.5-2.5 4.5-2.5 5.4 0 .7 1.9-.8 3.8-2.8 3.8'/%3E%3Cpath d='M17 12c2.5 1.5 2.5 4.5 0 5.4-1.9.7-3.8-.8-3.8-2.8'/%3E%3Cpath d='M12 17c-1.5 2.5-4.5 2.5-5.4 0-.7-1.9.8-3.8 2.8-3.8'/%3E%3Cpath d='M7 12c-2.5-1.5-2.5-4.5 0-5.4 1.9-.7 3.8.8 3.8 2.8'/%3E%3C/svg%3E");
}

.event-line,
.event-location,
.countdown {
  margin: 0.35rem 0;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-family: "Cormorant Garamond", serif;
}

.event-line {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #d56c43;
}

.event-location {
  font-size: 1.03rem;
}

.countdown {
  color: var(--dusty-blue-deep);
  font-weight: 700;
}

.welcome-blossom {
  margin-top: 1.15rem;
  color: #284a6b;
  font-size: 1.5rem;
}

.welcome-title {
  margin: 0.2rem 0 0.55rem;
  font-family: "Great Vibes", cursive;
  font-weight: 400;
  font-size: 2.8rem;
  color: var(--terracotta);
}

.welcome-copy {
  max-width: 64ch;
  margin: 0 auto;
  font-size: 1.02rem;
}

.subpage {
  padding: 2.2rem 0 4rem;
}

.subpage h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--dusty-blue-deep);
  font-family: "Great Vibes", "Caveat", cursive;
  font-weight: 400;
  text-align: center;
  margin: 0 0 0.45rem;
}

.prose {
  max-width: 820px;
}

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

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 4px solid var(--dusty-blue);
  border-radius: 0.9rem;
  padding: 1.2rem;
}

.card h3 {
  margin-top: 0;
  color: var(--terracotta);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
}

.registry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.registry-page {
  text-align: center;
}

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

.faq-page {
  max-width: 880px;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  background: #fdfaf4;
  border: 1px solid rgba(188, 205, 219, 0.95);
  border-left: 5px solid #d56c43;
  border-radius: 0.7rem;
  box-shadow: 0 12px 26px rgba(63, 94, 116, 0.11);
  overflow: hidden;
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1rem 3rem 1rem 1.15rem;
  color: var(--dusty-blue-deep);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.2;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid rgba(79, 111, 136, 0.38);
  border-radius: 50%;
  color: #d56c43;
  font-family: "Manrope", sans-serif;
  font-size: 1.15rem;
  line-height: 1.45rem;
  text-align: center;
  transform: translateY(-50%);
}

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

.faq-item p {
  margin: 0;
  padding: 0 1.15rem 1rem;
}

.faq-item p + p {
  padding-top: 0.2rem;
}

.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--white);
  padding: 0.75rem 1.35rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn.secondary {
  background: transparent;
  color: var(--dusty-blue-deep);
  border: 1px solid var(--dusty-blue);
}

.rsvp-form {
  display: grid;
  gap: 0.55rem;
  max-width: 520px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea,
.gate-card input {
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  padding: 0.7rem;
  font: inherit;
  background: var(--white);
}

.form-msg,
.gate-error {
  min-height: 1.25rem;
  color: var(--terracotta-deep);
  font-weight: 600;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(220, 231, 239, 0.97);
}

.password-gate.hidden {
  display: none;
}

.gate-card {
  width: min(420px, 100%);
  padding: 1.4rem;
  border-radius: 0.9rem;
  background: var(--cream);
  border: 1px solid var(--line);
  display: grid;
  gap: 0.65rem;
}

.gate-card h2 {
  margin: 0;
  font-family: "Great Vibes", cursive;
  font-size: 2.6rem;
  color: var(--dusty-blue-deep);
  font-weight: 400;
}

@media (max-width: 860px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .name-florals {
    grid-template-columns: 1fr;
  }

  .celebration-icons {
    font-size: 1.1rem;
  }

  .hero-floral-panel {
    min-height: 235px;
  }

  .hero-floral-panel::before {
    background-size: cover;
    background-position: top center;
  }

  .photo-strip {
    padding-top: 0.6rem;
  }

  .strip-photo {
    width: 78vw;
    max-width: 340px;
    height: 220px;
  }
}

.scrapbook {
  max-width: 1060px;
}

.scrapbook h1 {
  margin-bottom: 0.45rem;
}

.story-title-floral {
  display: block;
  width: min(560px, 78vw);
  margin: 0 auto 2rem;
}

.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2.4rem;
}

.story-row.right .snapframe {
  order: 2;
}

.story-row.right .story-copy {
  order: 1;
}

.snapframe {
  position: relative;
  background: #fdfaf4;
  border: 1px solid #d7d0c8;
  border-radius: 0.55rem;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
  padding: 0.75rem 0.75rem 1.1rem;
  transform: rotate(-0.9deg);
}

.story-row.right .snapframe {
  transform: rotate(0.9deg);
}

.snapframe img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 0.35rem;
  display: block;
}

.snapframe img.portrait {
  object-fit: cover;
  object-position: center;
}

.snapframe figcaption {
  margin-top: 0.65rem;
  font-family: "Dancing Script", "Great Vibes", cursive;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.22;
  color: #d56c43;
}

.snapframe::before,
.snapframe::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 55%, #244464 0 58%, #142f4d 59% 100%);
  border: 1px solid rgba(12, 33, 54, 0.62);
  border-radius: 50%;
  box-shadow: 0 3px 7px rgba(28, 42, 54, 0.28);
}

.snapframe::after {
  display: none;
}

.tape-a::before { top: -10px; left: 50%; transform: translateX(-50%); }
.tape-b::before { top: -10px; left: 50%; transform: translateX(-50%); }
.tape-c::before { top: -10px; left: 50%; transform: translateX(-50%); }
.tape-d::before { top: -10px; left: 50%; transform: translateX(-50%); }

.story-copy {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0.25rem 0.7rem;
  font-family: "Manrope", sans-serif;
  color: #35506c;
}

.story-copy p {
  margin-top: 0;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.75;
}

.story-copy p:last-child {
  margin-bottom: 0;
}

.story-floral-panel {
  margin-top: 3rem;
  margin-bottom: -2.5rem;
  min-height: 260px;
}

@media (max-width: 900px) {
  .story-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .story-row.right .snapframe,
  .story-row.right .story-copy {
    order: initial;
  }

  .snapframe {
    transform: none;
  }

  .story-row.right .snapframe {
    transform: none;
  }
}
