:root {
  color-scheme: light;
  --ivory: #f7f2ea;
  --cream: #fbf8f4;
  --leaf: #6c7e65;
  --gold: #c8a461;
  --ink: #2f2b25;
  --muted: #6f685f;
  --glass: rgba(255, 255, 255, 0.78);
  --shadow: 0 24px 60px rgba(66, 54, 42, 0.18);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='none' stroke='%23d6c3a3' stroke-opacity='0.3' stroke-width='1'%3E%3Ccircle cx='90' cy='90' r='40'/%3E%3Cpath d='M10 50 C40 20 70 20 100 50'/%3E%3Cpath d='M80 140 C110 110 140 110 170 140'/%3E%3C/g%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    var(--pattern) 0 0 / 240px 240px repeat,
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(180deg, #f7f2ea 0%, #eee6dd 55%, #e6dccf 100%);
}

.botanical-invite {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.8), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.7), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.65), transparent 50%),
    linear-gradient(180deg, #f7f2ea 0%, #f2ece2 50%, #eee6dd 100%);
  position: relative;
}

.botanical-hero {
  padding: 0;
  position: relative;
  width: 100%;
}

.botanical-hero__frame {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  pointer-events: none;
}

.botanical-hero__content {
  justify-content: center !important;
}

.botanical-hero__name-wrap {
  position: absolute;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}

.botanical-hero__marry {
  position: absolute;
  top: 67%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  margin-top: 0;
  font-family: "Lora", serif;
  font-size: clamp(1.35rem, 4.8vw, 1.65rem);
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.botanical-hero__date {
  position: absolute;
  top: 71%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  margin-top: 0;
  font-family: "Lora", serif;
  font-size: clamp(0.92rem, 3vw, 1.05rem);
  letter-spacing: 0.32em;
}

/* Hide legacy "we marry" block rendered outside the botanical frame */
.botanical-hero + .__className_e19656.not-inverse {
  display: none !important;
}

.botanical-invite::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 20, 18, 0.65), rgba(24, 20, 18, 0.2)),
    linear-gradient(120deg, rgba(200, 164, 97, 0.25), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px;
  max-width: 760px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin: 0 0 12px;
}

.hero__subtitle {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.9);
}

.hero__meta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero__meta span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 18, 16, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

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

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Sections */
.section {
  padding: 32px 18px;
}

.section__header {
  text-align: center;
  margin-bottom: 20px;
}

.section__header h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 10px;
}

.section__inner,
.card,
.timeline__item,
.accordion__panel,
.gift {
  background: var(--glass);
  border-radius: 22px;
  border: 1px solid rgba(214, 195, 163, 0.5);
  box-shadow: var(--shadow);
}

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

.section--grid .card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.section--grid h2,
.section--grid .dress {
  font-family: "Cormorant Garamond", serif;
}

.section--grid .dress {
  font-size: 1.2rem;
  color: var(--gold);
}

.section--bus .accordion {
  display: grid;
  gap: 12px;
}

.accordion__toggle {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(214, 195, 163, 0.5);
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  transition: max-height 300ms ease, padding 300ms ease;
}

.accordion__panel.is-open {
  max-height: 400px;
  padding: 16px 18px;
}

.map-embed iframe {
  width: 100%;
  height: 200px;
  border: 0;
  margin-top: 10px;
}

.section--split {
  display: grid;
  gap: 18px;
}

.list {
  padding-left: 18px;
}

.pin-grid {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.pin {
  width: 32px;
  height: 32px;
  background: var(--gold);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.pin::after {
  content: "";
  width: 12px;
  height: 12px;
  background: #fff;
  position: absolute;
  border-radius: 50%;
  top: 10px;
  left: 10px;
}

.pin:hover {
  transform: rotate(-45deg) scale(1.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* RSVP envelope */
.section--rsvp {
  text-align: center;
}

.envelope {
  margin: 10px auto 12px;
  width: 160px;
  height: 110px;
  position: relative;
  border: none;
  background: transparent;
  cursor: pointer;
}

.envelope__front,
.envelope__back {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(214, 195, 163, 0.6);
  transition: transform 300ms ease;
}

.envelope__front {
  clip-path: polygon(0 0, 100% 0, 50% 60%);
}

.envelope__back {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.envelope__seal {
  position: absolute;
  inset: auto 0 10px 0;
  margin: 0 auto;
  width: 60px;
  height: 26px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
}

.envelope:hover {
  transform: translateY(-4px);
}

.section--gift .card {
  padding: 16px;
}

.album {
  display: grid;
  gap: 16px;
  align-items: center;
}

.album__info {
  display: grid;
  gap: 8px;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 10px;
}

.timeline__item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
}

/* Modal */
.modal,
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 30;
}

.modal.is-open,
.lightbox.is-open {
  display: grid;
}

.modal__overlay,
.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.6);
}

.modal__content,
.lightbox__content {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  z-index: 1;
  width: min(90vw, 480px);
}

.modal__close,
.lightbox__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal__success {
  display: none;
  text-align: center;
}

.modal__success.is-visible {
  display: block;
}

.checkmark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  margin: 0 auto 10px;
  position: relative;
}

.checkmark::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 24px;
  border: solid var(--gold);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  top: 8px;
  left: 18px;
  animation: draw 600ms ease forwards;
}

/* Lightbox */
.lightbox__content {
  width: min(90vw, 900px);
  background: #000;
}

.lightbox__content img {
  width: 100%;
  height: auto;
  display: block;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 2rem;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.lightbox__nav[data-prev] {
  left: 8px;
}

.lightbox__nav[data-next] {
  right: 8px;
}

/* Scroll animations */
[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  text-align: center;
  padding: 28px 18px 40px;
  color: var(--muted);
}

@media (min-width: 600px) {
  .section--grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .album {
    grid-template-columns: 180px 1fr;
  }
}

@media (min-width: 1024px) {
  .hero__content {
    padding: 40px;
  }

  .section {
    padding: 48px 24px;
  }
}

@keyframes draw {
  to {
    opacity: 1;
  }
}

/* Hide theme palette button/list */
.pointer-events-none.fixed.bottom-16.z-30.w-full {
  display: none !important;
}

/* DG cover restyle */
.dg-cover {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(180deg, #f7f1e8 0%, #e9dfd1 100%);
  padding: 28px 20px 32px;
  box-sizing: border-box;
}

.dg-cover::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(214, 200, 179, 0.5);
  pointer-events: none;
}

.dg-cover__prompt-wrap {
  top: 4%;
  bottom: auto;
  height: auto;
  padding: 18px 0 0;
}

.dg-cover__prompt {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: min(86%, 320px);
  text-align: center;
  color: #6f6860;
  font-family: "Lora", "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.dg-cover__prompt .text:first-child {
  font-size: 1.05rem;
}

.dg-cover__prompt .text:last-child {
  font-size: 0.95rem;
  font-style: italic;
  color: #8a8278;
}

.dg-cover .invitation {
  background: linear-gradient(160deg, #fdfaf6, #efe5d7) !important;
  border-color: #e4d8c7 !important;
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6);
}

.dg-cover__envelope {
  box-shadow:
    0 18px 40px rgba(78, 66, 52, 0.18),
    inset 0 10px 20px rgba(120, 105, 88, 0.08) !important;
}

.dg-cover__names {
  color: #6f7a72 !important;
}

.dg-cover__names .font-airthay {
  font-family: "Great Vibes", "Brush Script MT", cursive !important;
  font-size: clamp(2.6rem, 8vw, 3.6rem);
  letter-spacing: 0.04em;
}

.dg-cover__names .__className_485d34 {
  font-family: "Lora", "Times New Roman", serif !important;
  font-size: 1.6rem;
  color: #7f7a73;
}

.dg-cover__seal img {
  border-radius: 999px;
  box-shadow: 0 0 20px rgba(236, 215, 170, 0.65), 0 12px 24px rgba(106, 86, 60, 0.25);
  transition: transform 200ms ease, box-shadow 300ms ease;
}

.dg-cover__seal::before,
.dg-cover__seal::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 248, 232, 0.85);
  box-shadow: 0 0 14px rgba(255, 238, 200, 0.85);
  opacity: 0.8;
}

.dg-cover__seal::before {
  width: 8px;
  height: 8px;
  right: -10px;
  top: 20px;
}

.dg-cover__seal::after {
  width: 6px;
  height: 6px;
  left: -12px;
  top: 32px;
  opacity: 0.6;
}

@media (hover: hover) {
  .dg-cover__seal img:hover {
    transform: scale(1.03);
    box-shadow: 0 0 26px rgba(246, 226, 186, 0.8), 0 14px 26px rgba(106, 86, 60, 0.3);
  }
}
