/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:          #faf6ee;
  --bg-2:        #f3ecdf;
  --paper:       #ffffff;
  --blush:       #f7e9ee;
  --ink:         #2e381d;
  --ink-soft:    #445033;
  --ink-mute:    #7c8570;
  --accent:      #a72e54;
  --accent-soft: #d98fa8;
  --accent-pale: #f0cbd7;
  --line:        rgba(46, 56, 29, 0.16);
  --shadow:      0 30px 60px -30px rgba(46, 56, 29, 0.35);

  --script: "Mrs Saint Delafield", cursive;
  --serif:  "Cormorant Garamond", "Times New Roman", serif;
  --sans:   "Jost", "Segoe UI", sans-serif;

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 78px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2 { text-wrap: balance; }
::selection { background: var(--accent-pale); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--ink); color: var(--bg);
  border-radius: 8px; font-weight: 500;
  transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.center { text-align: center; }

.eyebrow {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  letter-spacing: 0.02em;
  margin-top: 0.4rem;
}

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 0.85rem 1.9rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
  transition: background .35s var(--ease-out), color .35s var(--ease-out), transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(46,56,29,0.45);
}

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding-inline: 1.5rem;
  background: rgba(250, 246, 238, 0.72);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease-out), background .4s var(--ease-out);
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 246, 238, 0.92);
}
.nav-mark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
}
.nav-mark img { width: 34px; height: 34px; object-fit: contain; }

.nav-menu {
  display: none;
  gap: 2.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}
.nav-menu a {
  position: relative;
  padding-block: 0.3rem;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transition: right .35s var(--ease-out);
}
.nav-menu a:hover::after { right: 0; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px; height: 34px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-menu.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  padding: 1.5rem;
  background: rgba(250, 246, 238, 0.98);
  border-bottom: 1px solid var(--line);
  gap: 1.1rem;
}

/* =============================================================
   7. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 3rem;
  overflow: clip;
}

.hero-floral {
  position: absolute;
  top: -1.5rem;
  width: clamp(160px, 26vw, 340px);
  pointer-events: none;
  opacity: 0.95;
  z-index: 1;
}
.hero-floral-left { left: -2rem; }
.hero-floral-right { right: -2rem; transform: scaleX(-1); }

.hero-content { position: relative; z-index: 2; max-width: 640px; }

.hero-monogram {
  width: clamp(64px, 9vw, 96px);
  height: auto;
  margin: 0 auto 1.6rem;
  transition-delay: .08s;
}

.hero-title {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.6rem, 12vw, 7.5rem);
  line-height: 1;
  color: var(--ink);
  transition-delay: .16s;
}
.hero-title .amp {
  color: var(--accent);
  padding-inline: 0.06em;
}

.hero-flourish {
  width: clamp(140px, 18vw, 220px);
  height: 22px;
  color: var(--accent-soft);
  margin: 0.6rem auto 1.1rem;
}
.hero-flourish path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  transition: stroke-dashoffset 1.4s var(--ease-out) .5s;
}
.hero.is-ready .hero-flourish path { stroke-dashoffset: 0; }

.hero-date {
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  transition-delay: .24s;
}
.hero-place {
  margin-top: 0.25rem;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition-delay: .3s;
}

.scroll-cue {
  position: relative;
  z-index: 2;
  display: block;
  margin: 2rem auto 0;
  width: 22px; height: 36px;
  border: 1.4px solid var(--ink-mute);
  border-radius: 999px;
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
  animation: cueDrop 1.8s ease-in-out infinite;
}
@keyframes cueDrop {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { opacity: 0; }
  100% { transform: translateY(14px); opacity: 0; }
}

.hero-illustration {
  position: relative;
  z-index: 2;
  width: min(100%, 1040px);
  margin-top: 1.4rem;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-illustration img {
  width: 100%;
  will-change: transform;
}

/* =============================================================
   8. Story
   ============================================================= */
.story { padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.story-inner {
  max-width: 640px;
  text-align: center;
}
.divider-flourish {
  width: 120px; height: 34px;
  color: var(--accent-soft);
  margin: 0 auto 2.2rem;
}
.story-text {
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.story-cry {
  font-family: var(--script);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  color: var(--accent);
  margin: 0.6rem 0 1.4rem;
}
.story-detail {
  font-size: 1.02rem;
  color: var(--ink-mute);
  max-width: 46ch;
  margin: 0 auto 2.2rem;
}
.story-signoff {
  font-family: var(--script);
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  color: var(--ink);
}

.story-gallery {
  max-width: 1040px;
  margin: 2.6rem auto 3.2rem;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.story-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .7s var(--ease-out);
}
.story-photo-b img {
  object-position: left center;
}
.story-photo:hover img { transform: scale(1.045); }

/* =============================================================
   9. Schedule
   ============================================================= */
.schedule {
  padding-block: clamp(4rem, 9vw, 6.5rem);
  background: var(--bg-2);
  position: relative;
}
.schedule-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.6rem;
  margin-top: 3.2rem;
  position: relative;
}
.schedule-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}
.schedule-icon {
  width: clamp(72px, 9vw, 100px);
  height: auto;
  object-fit: contain;
  margin-bottom: 0.3rem;
  transition: transform .5s var(--ease-out);
}
.schedule-item:hover .schedule-icon { transform: translateY(-4px) scale(1.05); }
.schedule-time {
  font-size: 1.5rem;
  font-variant-numeric: oldstyle-nums;
  color: var(--ink);
}
.schedule-label {
  font-family: var(--script);
  font-size: 1.7rem;
  color: var(--accent);
  margin-top: -0.35rem;
}

/* =============================================================
   10. Place
   ============================================================= */
.place { padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.place-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.8rem;
  align-items: start;
}
.place-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.place-info .section-title { margin-bottom: 0.5rem; }
.place-address {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.place-copy {
  color: var(--ink-mute);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 1.6rem;
}
.place-map {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.4;
}
.place-map iframe {
  width: 100%; height: 100%; border: 0;
}

/* =============================================================
   10b. Bus schedule (standalone, centered)
   ============================================================= */
.buses-section {
  padding-block: clamp(4rem, 9vw, 6rem);
  background: var(--bg-2);
  text-align: center;
}
.buses-inner {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.buses-inner .divider-flourish { margin-bottom: 1.6rem; }
.buses-inner .eyebrow { margin-bottom: 0.3rem; }
.buses-inner .section-title { margin-bottom: 2.2rem; }

.buses {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 2.6rem;
}
.buses-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  padding-block: 0.5rem;
  font-size: 1.02rem;
  text-align: center;
}
.buses-row dt {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.buses-row dd { color: var(--ink-mute); }

.bus-icon {
  width: clamp(110px, 15vw, 148px);
  height: auto;
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

/* =============================================================
   10c. Info (hotels & salons)
   ============================================================= */
.info { padding-block: clamp(4.5rem, 10vw, 7.5rem); }
.info-intro {
  max-width: 46ch;
  margin: 0.9rem auto 0;
  color: var(--ink-mute);
}
.hotels {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  max-width: 720px;
  margin: 3rem auto 0;
}
.hotel-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.hotel-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.hotel-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  margin-bottom: 1.4rem;
}

/* =============================================================
   11. Gift
   ============================================================= */
.gift {
  padding-block: clamp(4.5rem, 10vw, 7rem);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.gift-card {
  max-width: 560px;
  text-align: center;
  background: var(--paper);
  border-radius: 22px;
  padding: clamp(2.4rem, 5vw, 3.6rem) clamp(1.6rem, 5vw, 3rem);
  box-shadow: var(--shadow);
}
.gift-card .divider-flourish { margin-bottom: 1.6rem; }
.gift-text {
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
  font-style: italic;
  color: var(--ink);
}
.gift-subtext {
  margin-top: 0.5rem;
  color: var(--ink-mute);
  font-size: 1rem;
}
.gift-card .btn {
  margin-top: 1.8rem;
}
.iban-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .5s var(--ease-out), opacity .4s var(--ease-out);
}
.iban-wrap.is-open {
  max-height: 200px;
  opacity: 1;
}
.iban {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--blush);
  transition: background .35s var(--ease-out), transform .25s var(--ease-out), box-shadow .35s var(--ease-out);
}
.iban:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -18px rgba(167,46,84,0.4);
}
.iban:active { transform: translateY(0); }
.iban-number {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(0.92rem, 2vw, 1.08rem);
  letter-spacing: 0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.iban-action {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.iban.is-copied .iban-action { color: var(--ink-soft); }

/* =============================================================
   12. Footer
   ============================================================= */
.site-footer {
  padding-block: 3.2rem 3.6rem;
  text-align: center;
  background: var(--bg);
}
.footer-mark {
  width: 40px; height: 40px;
  margin: 0 auto 0.9rem;
  opacity: 0.85;
}
.footer-line {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* =============================================================
   12b. Music toggle
   ============================================================= */
.music-player-frame {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.music-toggle {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 600;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease-out), color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.music-toggle:hover {
  transform: translateY(-2px);
  color: var(--accent);
}
.music-icon {
  width: 22px;
  height: 22px;
  position: absolute;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.music-icon-pause { opacity: 0; transform: scale(0.7); }
.music-toggle[aria-pressed="true"] .music-icon-note { opacity: 0; transform: scale(0.7); }
.music-toggle[aria-pressed="true"] .music-icon-pause { opacity: 1; transform: scale(1); }

.music-toggle::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  opacity: 0;
  animation: musicPulse 2.4s ease-out infinite;
}
.music-toggle[aria-pressed="true"]::before { opacity: 1; }

@keyframes musicPulse {
  0%   { transform: scale(0.9); opacity: .55; }
  100% { transform: scale(1.35); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .music-toggle::before { animation: none; }
}

@media (min-width: 720px) {
  .music-toggle { right: 2rem; bottom: 2rem; }
}

/* =============================================================
   13. Petal field (decorative motion)
   ============================================================= */
.petal-field {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -5%;
  width: 12px;
  height: 16px;
  background: var(--accent-pale);
  border-radius: 0 100% 0 100%;
  opacity: 0.55;
  will-change: transform;
  animation: petalFall linear forwards, petalSway ease-in-out infinite;
}
@keyframes petalFall {
  to { transform: translateY(112vh); }
}
@keyframes petalSway {
  0%, 100% { margin-left: 0; }
  50%      { margin-left: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .petal-field { display: none; }
  .scroll-cue span { animation: none; }
}

/* =============================================================
   14. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .schedule-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6rem;
  }
  .hotels { grid-template-columns: 1fr 1fr; }
  .story-gallery {
    grid-template-columns: 1fr 1.25fr 1fr;
    align-items: center;
    gap: 1.4rem;
  }
  .story-photo-b { aspect-ratio: 4 / 3.4; }
  .schedule-list::before {
    content: "";
    position: absolute;
    top: 46px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: repeating-linear-gradient(to right, var(--line) 0 6px, transparent 6px 12px);
    z-index: -1;
  }

  .buses-row {
    flex-direction: row;
    justify-content: center;
    gap: 0.9rem;
    padding-block: 0.35rem;
  }
  .buses-row dt {
    min-width: 4.2rem;
    text-align: right;
    font-size: 1.02rem;
    letter-spacing: normal;
    text-transform: none;
    color: var(--ink);
  }
  .buses-row dd { text-align: left; }
}

@media (min-width: 960px) {
  .nav-menu {
    display: flex;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    flex-direction: row;
  }
  .nav-toggle { display: none; }
  .place-grid { grid-template-columns: 1.05fr 1fr; }
  .place-info {
    text-align: left;
    align-items: flex-start;
  }
  .place-copy { margin-inline: 0; }
}

@media (min-width: 1280px) {
  .hero-title { font-size: clamp(5rem, 9vw, 7.5rem); }
}
