:root {
  --bg: #040404;
  --bg-soft: #0c0c0c;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --text: #f6f2ea;
  --muted: #d2af68;
  --line: rgba(210, 175, 104, 0.22);
  --accent: #d4af63;
  --accent-deep: #9c772f;
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
}

* {
  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, rgba(212, 175, 99, 0.1), transparent 22%),
    linear-gradient(180deg, #020202 0%, #090909 42%, #111111 100%);
  min-height: 100vh;
}

body.cover-locked {
  overflow: hidden;
}

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

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

.page-shell {
  width: min(100% - 24px, 1120px);
  margin: 0 auto;
  padding: 12px 0 48px;
}

.ribbon-cover {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px 18px;
  background:
    radial-gradient(circle at top, rgba(212, 175, 99, 0.12), transparent 22%),
    rgba(3, 3, 3, 0.98);
  transition: opacity 0.7s ease, visibility 0.7s ease, transform 0.7s ease;
}

.ribbon-cover.is-opening .ribbon-loop-left {
  transform: translate(-34px, -50%) rotate(-22deg);
}

.ribbon-cover.is-opening .ribbon-loop-right {
  transform: translate(34px, -50%) rotate(22deg);
}

.ribbon-cover.is-opening .ribbon-center {
  transform: translate(-50%, -50%) scaleX(0.3);
  opacity: 0.2;
}

.ribbon-cover.is-opening .ribbon-hint,
.ribbon-cover.is-opening .ribbon-copy,
.ribbon-cover.is-opening h2 {
  opacity: 0;
  transform: translateY(-10px);
}

.ribbon-cover.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6%);
}

.ribbon-intro {
  width: min(100%, 460px);
  padding: 34px 24px;
  border-radius: 28px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    rgba(10, 10, 10, 0.8);
  border: 1px solid rgba(212, 175, 99, 0.22);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.ribbon-eyebrow,
.ribbon-hint {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(246, 242, 234, 0.72);
}

.ribbon-eyebrow {
  font-size: 0.72rem;
}

.ribbon-intro h2 {
  margin: 14px 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.3rem, 9vw, 3.5rem);
  line-height: 1;
}

.ribbon-copy {
  margin: 16px auto 0;
  max-width: 320px;
  line-height: 1.75;
  color: rgba(246, 242, 234, 0.84);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.ribbon-knot {
  margin-top: 26px;
  position: relative;
  width: 210px;
  height: 86px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ribbon-loop,
.ribbon-center {
  position: absolute;
  top: 50%;
  transition: transform 0.45s ease, opacity 0.45s ease;
}

.ribbon-loop {
  width: 74px;
  height: 46px;
  border: 2px solid var(--accent);
  border-radius: 50px;
  transform: translateY(-50%);
  box-shadow: 0 0 18px rgba(212, 175, 99, 0.18);
}

.ribbon-loop-left {
  left: 24px;
  animation: ribbonLiftLeft 2.6s ease-in-out infinite;
}

.ribbon-loop-right {
  right: 24px;
  animation: ribbonLiftRight 2.6s ease-in-out infinite;
}

.ribbon-center {
  left: 50%;
  width: 46px;
  height: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px rgba(212, 175, 99, 0.28);
}

.ribbon-knot::before,
.ribbon-knot::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 2px;
  height: 54px;
  background: linear-gradient(180deg, rgba(212, 175, 99, 0.92), rgba(212, 175, 99, 0.15));
  transform-origin: top center;
}

.ribbon-knot::before {
  transform: translateX(-50%) rotate(16deg);
}

.ribbon-knot::after {
  transform: translateX(-50%) rotate(-16deg);
}

.ribbon-hint {
  margin-top: 18px;
  font-size: 0.68rem;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.hero,
.panel,
.story-card,
.quote-card,
.detail-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 88svh;
  padding: 20px 18px 88px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.7)),
    url("./hero-image.jpg") center 38%/cover;
}

.hero-backdrop,
.topbar,
.hero-content,
.scroll-cue {
  position: relative;
  z-index: 1;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.hero-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(30px);
}

.hero-glow-left {
  left: -70px;
  top: -100px;
  background: rgba(212, 175, 99, 0.18);
}

.hero-glow-right {
  right: -80px;
  bottom: -90px;
  background: rgba(212, 175, 99, 0.14);
}

.topbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.brand,
.hero h1,
.section-heading h2,
.story-card h2,
.quote-card p,
.detail-card h3,
.closing h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
}

.brand {
  font-size: 1.9rem;
  letter-spacing: 0.14em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.78);
}

.hero-content {
  max-width: 700px;
  padding-top: 58px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(3rem, 15vw, 6.2rem);
  line-height: 0.94;
}

.hero h1 span {
  color: var(--accent);
  font-style: italic;
}

.hero-subtitle,
.section-copy,
.story-card p,
.detail-card p {
  margin: 18px 0 0;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(246, 242, 234, 0.86);
}

.hero-button {
  margin-top: 24px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #090909;
}

.hero-button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(212, 175, 99, 0.95));
  animation: pulseLine 1.7s ease-in-out infinite;
}

main {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.panel,
.story-card,
.quote-card,
.detail-card,
.closing {
  padding: 22px 18px;
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(10px);
}

.section-heading h2 {
  font-size: clamp(2rem, 9vw, 3.45rem);
  line-height: 1.02;
}

.story-grid {
  display: grid;
  gap: 18px;
}

.story-card {
  background:
    linear-gradient(180deg, rgba(212, 175, 99, 0.04), rgba(255, 255, 255, 0.03)),
    var(--panel-strong);
}

.quote-reference {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.single-invitation-card {
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
}

.invitation-verse {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.12;
}

.invitation-message {
  max-width: 760px;
  margin: 20px auto 0;
  font-size: 1.02rem;
  line-height: 1.9;
  color: rgba(246, 242, 234, 0.86);
}

.ribbon-divider {
  position: relative;
  height: 58px;
  margin-top: 18px;
  overflow: hidden;
}

.ribbon-divider::before,
.ribbon-divider::after {
  content: "";
  position: absolute;
  left: -10%;
  width: 120%;
  border-radius: 50%;
}

.ribbon-divider::before {
  top: 16px;
  height: 26px;
  border-top: 1.5px solid rgba(212, 175, 99, 0.72);
}

.ribbon-divider::after {
  bottom: 10px;
  height: 22px;
  border-bottom: 1.5px solid rgba(212, 175, 99, 0.4);
}

.single-detail {
  margin-top: 14px;
}

.detail-quote {
  margin: 0 0 18px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 5vw, 2.2rem);
  line-height: 1.2;
  color: rgba(246, 242, 234, 0.94);
}

.detail-card h3 {
  font-size: 1.9rem;
}

.detail-card strong {
  color: var(--accent);
  font-weight: 600;
}

.schedule-notes {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 99, 0.18);
}

.schedule-notes p {
  margin: 10px 0 0;
  line-height: 1.8;
  color: rgba(246, 242, 234, 0.86);
}

.map-button {
  margin-top: 22px;
}

.calendar-section {
  overflow: hidden;
  position: relative;
}

.calendar-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 4, 4, 0.52), rgba(4, 4, 4, 0.72)),
    url("./calendar-bg.jpg") center 30%/cover;
  filter: blur(0.6px);
  transform: scale(1.01);
  opacity: 0.5;
}

.calendar-section > * {
  position: relative;
  z-index: 1;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.calendar-head,
.calendar-day {
  min-height: 48px;
  display: grid;
  place-items: center;
  text-align: center;
}

.calendar-head {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.calendar-day {
  position: relative;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 99, 0.08);
  font-size: 0.94rem;
}

.calendar-day.is-empty {
  background: transparent;
  border-color: transparent;
}

.calendar-day.is-highlighted {
  color: var(--accent);
  font-weight: 700;
}

.calendar-day.is-highlighted::before,
.calendar-day.is-highlighted::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 24px;
  height: 36px;
  border: 2px solid var(--accent);
  border-bottom: none;
  border-radius: 22px 22px 0 0;
}

.calendar-day.is-highlighted::before {
  left: calc(50% - 21px);
  transform: rotate(-45deg);
  transform-origin: bottom right;
}

.calendar-day.is-highlighted::after {
  right: calc(50% - 21px);
  transform: rotate(45deg);
  transform-origin: bottom left;
}

.gallery-section {
  overflow: hidden;
}

.photo-strip {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.photo-strip::-webkit-scrollbar {
  display: none;
}

.photo-slide {
  flex: 0 0 100%;
  min-height: 360px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  scroll-snap-align: center;
  background: #111;
}

.closing {
  text-align: center;
}

.site-footer {
  padding: 22px 0 8px;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: rgba(246, 242, 234, 0.7);
}

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

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

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

@keyframes pulseLine {
  0%, 100% { opacity: 0.45; transform: scaleY(0.84); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes ribbonLiftLeft {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translate(-4px, -54%); }
}

@keyframes ribbonLiftRight {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translate(4px, -54%); }
}

@media (min-width: 768px) {
  .page-shell {
    width: min(100% - 40px, 1120px);
    padding-top: 20px;
    padding-bottom: 72px;
  }

  .hero {
    min-height: 92svh;
    padding: 28px 28px 92px;
    border-radius: 34px;
  }

  .topbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .nav-links {
    gap: 24px;
    font-size: 0.84rem;
  }

  .hero-content {
    padding-top: 72px;
  }

  .panel,
  .story-card,
  .quote-card,
  .detail-card,
  .closing {
    padding: 34px;
    border-radius: 28px;
  }

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

  .calendar-grid {
    gap: 12px;
  }

  .calendar-head,
  .calendar-day {
    min-height: 64px;
  }

  .photo-slide {
    flex-basis: min(72vw, 520px);
    min-height: 460px;
  }

  .ribbon-intro {
    padding: 42px 32px;
  }
}
