:root {
  /* palette — refined ivory + olive, from the print set */
  --paper:      #f5f1e8;
  --paper-tl:   #f5f1e8e6;   /* translucent for the nav scrim */
  --ink:        #33302a;
  --ink-2:      #4a463d;
  --ink-3:      #6f695c;
  --muted:      #8b8474;
  --faint:      #a89f8d;
  --line:       #e2dccd;     /* hairlines / borders */
  --circle:     #cfc7b6;     /* circle strokes */
  --accent:     #5A651B;
  --band:       rgba(0,0,0,0.02);
  --card:       rgba(255,255,255,0.35);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", system-ui, -apple-system, sans-serif;

  --sect-y: clamp(3.5rem, 9vw, 7rem);
  --sect-x: clamp(1.25rem, 6vw, 2rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: rgba(90,101,27,0.14); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ─────────────────────────  NAV  ───────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--paper-tl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.topbar.is-visible { transform: translateY(0); opacity: 1; }

.topbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1.25rem, 5vw, 4rem);
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--circle);
  border-radius: 50%;
  flex-shrink: 0;
}
.nav-badge img { width: 58%; height: 58%; display: block; }

.lang { display: flex; gap: 0.85rem; flex-shrink: 0; }
.lang-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.45;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.lang-btn:hover { opacity: 0.8; }
.lang-btn.is-active { color: var(--accent); opacity: 1; }

.nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem clamp(1rem, 4vw, 2.4rem);
  padding: 0 clamp(1.25rem, 5vw, 4rem) 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav a { opacity: 0.7; transition: opacity 0.2s ease; }
.nav a:hover { opacity: 1; }

/* ────────────────────  CURTAIN HERO  ──────────────────── */
.curtain-wrapper { height: 200vh; position: relative; z-index: 1; }

.curtain-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--paper);
}

.curtain {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  will-change: transform;
}
.curtain-left  { left: 0; }
.curtain-right { left: 50%; }

.curtain-frame {
  position: absolute;
  top: 0; left: 0;
  width: 200%;
  height: 100%;
  pointer-events: none;
  transform: translateZ(0);
}
.curtain-frame svg { width: 100%; height: 100%; display: block; }
.curtain-right .curtain-frame { left: -100%; }

/* hero content, revealed as the curtains part */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(1.25rem, 6vw, 4rem);
  background: var(--paper);
  opacity: 0;
  will-change: opacity;
}

.hero-monogram {
  width: clamp(112px, 26vw, 172px);
  height: auto;
  margin-bottom: clamp(1.25rem, 3.5vw, 2.25rem);
}

.hero-name {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  font-size: clamp(3rem, 12vw, 8.5rem);
  letter-spacing: -0.005em;
}

.hero-amp {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.9rem, 6.5vw, 4rem);
  color: var(--accent);
  line-height: 1.2;
  margin: 0.05em 0;
}

.hero-invite {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  font-size: 0.74rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 1.25rem;
}
.rule-bar    { width: clamp(2rem, 8vw, 4rem); height: 1px; background: var(--circle); }
.rule-diamond{ width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); }

/* ── Opening note ── */
.intro {
  text-align: center;
  padding: clamp(3.5rem, 9vw, 6.5rem) var(--sect-x);
  scroll-margin-top: 6rem;
}
.intro-divider {
  justify-content: center;
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
}
.intro-divider--end {
  margin: clamp(1.75rem, 4vw, 2.5rem) auto 0;
}
.intro-text {
  max-width: 34ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.hero-date {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2.1rem);
  font-weight: 500;
}
.hero-city {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* scroll cue, pinned to the viewport bottom */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1.5rem, 5vh, 3rem);
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  pointer-events: none;
}
.cue-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  padding-left: 0.3em; /* offset trailing letter-spacing so text sits centered */
  text-transform: uppercase;
  color: var(--ink);
  /* soft paper halo lifts the text off the busy line-art (no pill) */
  text-shadow: 0 0 10px var(--paper), 0 0 10px var(--paper);
}
.cue-chevron {
  width: 14px; height: 14px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  filter: drop-shadow(0 0 6px var(--paper));
  animation: scrollBounce 1.7s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0);   opacity: 0.9; }
  50%      { transform: rotate(45deg) translate(4px, 4px); opacity: 0.35; }
}

/* ─────────────────────  SECTIONS  ───────────────────── */
/* clear the fixed two-tier nav when jumping to an anchor */
.section { padding: var(--sect-y) var(--sect-x); scroll-margin-top: 6rem; }
.section--narrow { max-width: 720px; margin: 0 auto; }
.section--tight  { max-width: 640px; margin: 0 auto; text-align: center; }

.section--band {
  padding: 0;
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--sect-y) var(--sect-x);
}
.section-inner--narrow { max-width: 560px; text-align: center; }

.section-head { text-align: center; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-num {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.05;
}
.section-lede {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.body-text {
  font-size: 0.98rem;
  color: var(--ink-3);
  line-height: 1.65;
  max-width: 46ch;
  margin: 0 auto;
}
.body-text--wide { max-width: 42ch; font-size: 1.02rem; }

.note {
  font-size: 0.82rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 1.25rem;
}
.note--center { max-width: 46ch; margin: 1rem auto 0; }

/* ── Programme timeline ── */
.event {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: baseline;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.event-time {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  text-align: right;
  color: var(--accent);
}
.event-name {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 500;
  line-height: 1.15;
}
.event-desc { margin-top: 0.35rem; font-size: 0.92rem; color: var(--ink-3); }

.after-card {
  margin-top: 2.25rem;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  text-align: center;
  border: 1px solid var(--line);
  background: var(--card);
}
.after-label {
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.after-venue {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 500;
}
.after-time {
  margin-top: 0.4rem;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--accent);
}
.after-addr {
  margin-top: 0.2rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--ink-3);
}

/* ── Travel ── */
.venue-name  { font-family: var(--serif); font-size: clamp(1.4rem, 4vw, 1.8rem); }
.venue-addr  { margin-top: 0.25rem; font-size: 0.95rem; color: var(--ink-3); }

.travel-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 6vw, 4rem);
}
.col-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.col-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.col-text + .col-text { margin-top: 1rem; }

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.bullet-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55rem;
  width: 4px; height: 4px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ── Dress ── */
.dress-label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.dress-value {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  margin-bottom: 1.75rem;
}
.section--tight .body-text { margin-bottom: 1rem; }
.section--tight .btn { margin-top: 1.75rem; }

/* ── Gifts ── */
.section-inner--narrow .body-text { margin-bottom: 2rem; }
.gifts-or { margin-top: 1.5rem; font-size: 0.9rem; color: var(--muted); }
.inline-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
}

/* ── RSVP ── */
.rsvp { text-align: center; }
.rsvp-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  margin-bottom: 1.5rem;
}
.rsvp .body-text { margin-bottom: 2.25rem; }
.closing {
  margin: 2.75rem auto 0;
  max-width: 40ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--ink-2);
  line-height: 1.35;
}

/* ─────────────────────  BUTTONS  ───────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn--outline {
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--solid {
  padding: 0.95rem 2.3rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.17em;
}
.btn--solid:hover { opacity: 0.88; }
.section-head .btn { margin-top: 1.5rem; }

/* ─────────────────────  FOOTER  ───────────────────── */
.footer {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) 1.5rem clamp(3.5rem, 8vw, 5rem);
  border-top: 1px solid var(--line);
}
.footer-inner { position: relative; z-index: 1; }

.footer-mark {
  width: 3rem;
  height: 3rem;
  padding: 0.55rem;
  border: 1px solid var(--circle);
  border-radius: 50%;
}
.footer-names {
  margin-top: 1.25rem;
  font-family: var(--serif);
  font-size: 1.5rem;
}
.footer-meta {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-cd-label {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--faint);
}

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3rem);
}
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.cd-num {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 2.9rem);
  line-height: 1;
  color: var(--accent);
}
.cd-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Footer botanicals ── */
.footer-flora { position: absolute; inset: 0; pointer-events: none; }
.flora {
  position: absolute;
  width: auto;
  transform-origin: bottom center;
  filter: brightness(0.6) saturate(1.1);
}
.flora-tulip {
  bottom: -2%; left: clamp(-6px, 1vw, 24px);
  height: clamp(90px, 15vw, 170px);
  opacity: 0.4; --r: 6deg; transform: rotate(6deg);
  animation: floraSway 8.5s ease-in-out infinite;
}
.flora-tulips {
  bottom: -4%; right: clamp(-10px, 1vw, 24px);
  height: clamp(110px, 18vw, 195px);
  opacity: 0.4; --r: -5deg; transform: rotate(-5deg);
  animation: floraSway 10.5s ease-in-out infinite;
  animation-delay: -3.2s;
}
.flora-leaves {
  bottom: -5%; left: 17%;
  height: clamp(60px, 9vw, 105px);
  opacity: 0.32; transform: rotate(8deg);
}
.flora-open {
  bottom: -3%; right: 22%;
  height: clamp(72px, 11vw, 130px);
  opacity: 0.32; transform: rotate(-6deg);
}
@keyframes floraSway {
  0%, 100% { transform: rotate(calc(var(--r, 0deg) - 0.9deg)); }
  50%      { transform: rotate(calc(var(--r, 0deg) + 0.9deg)); }
}

/* ─────────────────  REDUCED MOTION  ───────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flora { animation: none !important; }
  .scroll-cue { display: none !important; }
  .cue-chevron { animation: none !important; }
}
