:root {
  --bg: #090a0f;
  --panel: #13151d;
  --panel-soft: #1b1e28;
  --text: #f6f0e7;
  --muted: #b8ad9c;
  --gold: #d7b46a;
  --rose: #9f4f5f;
  --line: rgba(215, 180, 106, 0.32);
  --paper: #f4eadb;
  --paper-deep: #dfc9aa;
  --ink: #2b211b;
  --classic-gold: #b88a3b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.invite-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(184, 138, 59, 0.24), transparent 22%),
    radial-gradient(circle at 82% 78%, rgba(159, 79, 95, 0.16), transparent 24%),
    linear-gradient(135deg, #2a1d19 0%, #15110f 46%, #070707 100%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.invite-screen.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.invite-card {
  position: relative;
  overflow: hidden;
  width: min(calc(100vw - 48px), 520px);
  max-width: 100%;
  min-height: 660px;
  border: 1px solid rgba(184, 138, 59, 0.68);
  border-radius: 8px;
  padding: clamp(28px, 7vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.56), transparent 30%),
    linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(226, 207, 176, 0.98));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.54), inset 0 0 0 10px rgba(255, 255, 255, 0.28);
  cursor: pointer;
  isolation: isolate;
  justify-self: center;
  margin: 0 auto;
}

.invite-card::before,
.invite-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(184, 138, 59, 0.42);
  border-radius: 8px;
  pointer-events: none;
}

.invite-card::after {
  inset: 34px;
  height: auto;
  border: 1px solid rgba(184, 138, 59, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(184, 138, 59, 0.26) 47% 53%, transparent 53%),
    linear-gradient(0deg, transparent 0 47%, rgba(184, 138, 59, 0.18) 47% 53%, transparent 53%);
  opacity: 0.28;
  z-index: -1;
}

.invite-card:hover .invite-action {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.invite-card .invite-date::before,
.invite-card .invite-date::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  margin: 0 12px 4px;
  background: var(--classic-gold);
}

.invite-date,
.section-kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.invite-date {
  color: var(--classic-gold);
}

.invite-names {
  font-family: "Allura", "Brush Script MT", cursive;
  font-size: clamp(5rem, 19vw, 8.4rem);
  line-height: 0.82;
  text-align: center;
  font-weight: 400;
  text-shadow: none;
}

.invite-line {
  width: 120px;
  height: 1px;
  background: var(--classic-gold);
  position: relative;
}

.invite-line::before,
.invite-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid var(--classic-gold);
  transform: translateY(-50%) rotate(45deg);
  background: var(--paper);
}

.invite-line::before {
  left: -18px;
}

.invite-line::after {
  right: -18px;
}

.invite-action {
  margin-top: 12px;
  border: 1px solid rgba(43, 33, 27, 0.32);
  border-radius: 999px;
  padding: 12px 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.32);
  font-weight: 700;
  transition: 0.24s ease;
}

.details-page {
  min-height: 100vh;
  background:
    url("assets/floral-corner.svg") left -70px top -55px / min(58vw, 360px) auto no-repeat,
    url("assets/floral-corner.svg") right -80px bottom 28% / min(54vw, 330px) auto no-repeat,
    radial-gradient(circle at 12% 8%, rgba(184, 138, 59, 0.1), transparent 24%),
    radial-gradient(circle at 88% 52%, rgba(200, 143, 150, 0.12), transparent 24%),
    linear-gradient(180deg, #fffaf1 0%, #f4eadb 48%, #fffaf1 100%);
  color: var(--ink);
}

.hero {
  min-height: 78svh;
  display: flex;
  align-items: center;
  padding: 74px 0 60px;
  background:
    url("assets/floral-corner.svg") left 24px top 24px / min(38vw, 240px) auto no-repeat,
    url("assets/floral-corner.svg") right 24px bottom 24px / min(38vw, 240px) auto no-repeat,
    radial-gradient(circle at 50% 16%, rgba(255, 255, 255, 0.72), transparent 30%),
    linear-gradient(145deg, rgba(255, 250, 241, 0.96), rgba(232, 213, 182, 0.86));
  text-align: center;
  position: relative;
  color: var(--ink);
  border-bottom: 1px solid rgba(184, 138, 59, 0.26);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(184, 138, 59, 0.34);
  border-radius: 8px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  max-width: 920px;
}

.hero .section-kicker {
  color: var(--classic-gold);
}

.hero h1,
.section-heading h2,
.venue-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
}

.hero h1 {
  max-width: 760px;
  margin: 12px auto;
  font-family: "Allura", "Brush Script MT", cursive;
  font-size: clamp(5.4rem, 17vw, 10.5rem);
  font-weight: 400;
  line-height: 0.82;
}

.hero-copy {
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(43, 33, 27, 0.72);
  font-size: clamp(1.05rem, 3vw, 1.35rem);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta span {
  border: 1px solid rgba(184, 138, 59, 0.36);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 12px 34px rgba(43, 33, 27, 0.08);
}

.section-block {
  position: relative;
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-block::before {
  content: "";
  position: absolute;
  inset: 22px auto auto 22px;
  width: min(28vw, 150px);
  aspect-ratio: 1;
  background: url("assets/floral-corner.svg") center / contain no-repeat;
  opacity: 0.22;
  pointer-events: none;
}

.section-block > .container {
  position: relative;
  z-index: 1;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.venue-panel h2 {
  margin: 0;
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  color: var(--ink);
}

.details-page .section-kicker {
  color: var(--classic-gold);
}

.timeline {
  display: grid;
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(184, 138, 59, 0.7), transparent);
  transform: translateX(-50%);
}

.timeline-item,
.venue-panel {
  border: 1px solid rgba(184, 138, 59, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78), transparent 34%),
    linear-gradient(145deg, rgba(255, 250, 241, 0.96), rgba(242, 228, 204, 0.88));
}

.timeline-item {
  width: calc(50% - 34px);
  min-height: 132px;
  padding: 24px 26px;
  border-radius: 8px;
  text-align: left;
  position: relative;
  box-shadow: 0 18px 50px rgba(43, 33, 27, 0.1);
}

.timeline-icon {
  position: absolute;
  top: 22px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(184, 138, 59, 0.32);
  border-radius: 50%;
  background: rgba(255, 250, 241, 0.72);
  color: var(--classic-gold);
}

.timeline-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-item:nth-child(odd) {
  justify-self: start;
  text-align: right;
}

.timeline-item:nth-child(even) {
  justify-self: end;
}

.timeline-item:nth-child(odd) .timeline-icon {
  left: 22px;
}

.timeline-item:nth-child(even) .timeline-icon {
  right: 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 32px;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 3px solid #fffaf1;
  border-radius: 50%;
  background: var(--classic-gold);
  box-shadow: 0 0 0 1px rgba(184, 138, 59, 0.45), 0 8px 24px rgba(43, 33, 27, 0.16);
}

.timeline-item:nth-child(odd)::before {
  right: -43px;
}

.timeline-item:nth-child(even)::before {
  left: -43px;
}

.timeline-item::after {
  content: "";
  position: absolute;
  top: 40px;
  width: 28px;
  height: 1px;
  background: rgba(184, 138, 59, 0.5);
}

.timeline-item:nth-child(odd)::after {
  right: -28px;
}

.timeline-item:nth-child(even)::after {
  left: -28px;
}

.timeline-item time {
  display: block;
  color: var(--classic-gold);
  font-size: 1.7rem;
  font-weight: 800;
}

.timeline-item h3 {
  margin-top: 12px;
  font-size: 1.25rem;
  color: var(--ink);
}

.gallery-band {
  background:
    url("assets/floral-corner.svg") right -42px top 28px / min(42vw, 260px) auto no-repeat,
    linear-gradient(180deg, rgba(255, 250, 241, 0.92), rgba(246, 234, 216, 0.94));
  color: var(--ink);
  border-top: 1px solid rgba(184, 138, 59, 0.22);
  border-bottom: 1px solid rgba(184, 138, 59, 0.22);
}

.gallery-band .section-heading h2 {
  color: var(--ink);
}

.gallery-band .section-kicker {
  color: var(--classic-gold);
}

.carousel,
.carousel-inner,
.carousel-item,
.carousel-item img {
  border-radius: 8px;
}

.carousel {
  max-width: 1050px;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 14px);
  border: 1px solid rgba(184, 138, 59, 0.34);
  background: rgba(255, 250, 241, 0.74);
  box-shadow: 0 24px 70px rgba(43, 33, 27, 0.13);
}

.carousel-item img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(184, 138, 59, 0.22);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) sepia(1) saturate(0.4);
}

.carousel-indicators [data-bs-target] {
  background-color: var(--classic-gold);
}

.venue-panel {
  padding: clamp(26px, 5vw, 44px);
  box-shadow: 0 24px 70px rgba(43, 33, 27, 0.12);
}

.venue-panel p {
  color: rgba(43, 33, 27, 0.72);
  max-width: 520px;
}

.venue-list {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}

.venue-list span {
  display: block;
  color: var(--classic-gold);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.venue-list strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-weight: 600;
}

.btn-gold {
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  color: var(--paper);
  background: var(--ink);
  font-weight: 800;
}

.btn-gold:hover {
  background: var(--classic-gold);
  color: #fffaf1;
}

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.venue-grid img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(184, 138, 59, 0.34);
  box-shadow: 0 18px 50px rgba(43, 33, 27, 0.14);
}

@media (max-width: 991.98px) {
  .details-page {
    background-size: 310px auto, 260px auto, auto, auto, auto;
  }
}

@media (max-width: 575.98px) {
  .invite-screen {
    padding: 16px;
  }

  .invite-card {
    width: min(100%, 390px);
    min-height: 560px;
    padding: 28px 22px;
  }

  .invite-card::before {
    inset: 12px;
  }

  .invite-card::after {
    inset: 24px;
  }

  .invite-card .invite-date::before,
  .invite-card .invite-date::after {
    width: 24px;
    margin: 0 8px 4px;
  }

  .invite-date {
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .invite-names {
    font-size: clamp(4.4rem, 22vw, 6rem);
  }

  .details-page {
    height: 100svh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    background:
      url("assets/floral-corner.svg") left -82px top -54px / 250px auto no-repeat,
      linear-gradient(180deg, #fffaf1 0%, #f4eadb 48%, #fffaf1 100%);
  }

  .hero {
    height: 100svh;
    min-height: 100svh;
    padding: 56px 18px 44px;
    scroll-snap-align: start;
    background:
      url("assets/floral-corner.svg") left -54px top -28px / 190px auto no-repeat,
      url("assets/floral-corner.svg") right -60px bottom -34px / 190px auto no-repeat,
      linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(236, 219, 190, 0.94));
  }

  .hero::after {
    inset: 14px;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 22vw, 5.9rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-meta {
    gap: 8px;
    margin-top: 22px;
  }

  .hero-meta span {
    width: 100%;
    max-width: 260px;
    padding: 9px 14px;
    font-size: 0.92rem;
  }

  .section-block {
    height: 100svh;
    min-height: 100svh;
    padding: 38px 0;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
  }

  .section-block::before {
    width: 112px;
    opacity: 0.16;
  }

  .section-heading {
    margin-bottom: 22px;
    padding: 0 8px;
  }

  .section-heading h2,
  .venue-panel h2 {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .gallery-band {
    min-height: 100svh;
  }

  .venue-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .timeline-item {
    width: min(100%, 310px);
    min-height: 104px;
    padding: 46px 16px 16px;
    justify-self: center;
    text-align: center;
    background:
      linear-gradient(rgba(255, 250, 241, 0.86), rgba(255, 250, 241, 0.86)),
      radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.78), transparent 34%),
      linear-gradient(145deg, rgba(255, 250, 241, 0.96), rgba(242, 228, 204, 0.88));
  }

  .timeline {
    width: min(100%, 380px);
    margin-left: auto;
    margin-right: auto;
    gap: 14px;
  }

  .timeline::before {
    left: 50%;
  }

  .timeline-item:nth-child(odd) {
    justify-self: center;
    text-align: center;
  }

  .timeline-item:nth-child(even) {
    justify-self: center;
    text-align: center;
  }

  .timeline-item:nth-child(odd)::before {
    left: 50%;
    right: auto;
    top: -10px;
    transform: translateX(-50%);
  }

  .timeline-item:nth-child(even)::before {
    left: 50%;
    right: auto;
    top: -10px;
    transform: translateX(-50%);
  }

  .timeline-item:nth-child(odd)::after {
    display: none;
  }

  .timeline-item:nth-child(even)::after {
    display: none;
  }

  .timeline-item:nth-child(odd) .timeline-icon {
    left: 50%;
    right: auto;
    top: 13px;
    transform: translateX(-50%);
  }

  .timeline-item:nth-child(even) .timeline-icon {
    left: 50%;
    right: auto;
    top: 13px;
    transform: translateX(-50%);
  }

  .timeline-icon {
    width: 34px;
    height: 34px;
  }

  .timeline-icon svg {
    width: 19px;
    height: 19px;
  }

  .timeline-item time {
    font-size: 1.45rem;
  }

  .timeline-item h3 {
    margin-top: 6px;
    font-size: 1.05rem;
  }

  .carousel-item img {
    aspect-ratio: 2.5 / 3.2;
  }

  .venue-panel {
    padding: 22px 18px;
  }

  .venue-panel p {
    margin-bottom: 12px;
    font-size: 0.95rem;
  }

  .venue-list {
    gap: 12px;
    margin: 18px 0;
  }

  .venue-grid img {
    min-height: 116px;
    max-height: 138px;
  }
}
