/* =========================================================
   Leona & David — Wedding
   Change the colour palette in :root below.
   ========================================================= */
:root {
  --snow: #f7f5f0;          /* main background */
  --stone: #ece7dd;         /* gallery background */
  --ink: #1e2a2c;           /* body text */
  --muted: #6b726f;
  --line: #ddd5c7;

  --forest: #2c4438;        /* dark green */
  --pine: #3d5a4b;
  --granite: #4a5d73;
  --sunset: #c8743f;        /* accent — rope / sunset colour */
  --sunset-dark: #a65b2a;
  --peach: #f0b98d;

  --night: #1c2b3a;

  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --nav-h: 72px;

  /* small peak used in heading dividers */
  --peak: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 20'%3E%3Cpath d='M1 19 11 4l5 7 4-5 11 13z' fill='none' stroke='%23c8743f' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 20'%3E%3Cpath d='M16 18C12.5 15.5 6.5 12 6.5 7.5 6.5 5 8.5 3 11 3 13.3 3 15 4.4 16 6.4 17 4.4 18.7 3 21 3 23.5 3 25.5 5 25.5 7.5 25.5 12 19.5 15.5 16 18z' fill='none' stroke='%23c8743f' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
  --peak-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 20'%3E%3Cpath d='M1 19 11 4l5 7 4-5 11 13z' fill='none' stroke='%23f0b98d' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); font-size: .92em; }

.container { width: min(1100px, 100% - 3rem); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .9em 2.2em;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background .3s, color .3s, border-color .3s, transform .3s, box-shadow .3s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--sunset); color: #fff; box-shadow: 0 8px 24px -10px rgba(200, 116, 63, .8); }
.btn--primary:hover { background: var(--sunset-dark); }
.btn--light { color: #fff; border-color: rgba(255,255,255,.75); backdrop-filter: blur(2px); }
.btn--light:hover { background: #fff; color: var(--ink); }
.btn--outline { color: var(--forest); border-color: var(--pine); }
.btn--outline:hover { background: var(--forest); color: #fff; }
.btn--large { padding: 1.15em 3em; font-size: .9rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) clamp(1.25rem, 4vw, 3rem) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  transition: color .35s;
}
/* Frosted background lives on a pseudo-element: backdrop-filter on .nav itself would make it
   the containing block of the fixed mobile menu, squeezing the menu into the 70px bar. */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(247, 245, 240, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity .35s;
}
.nav.is-scrolled { color: var(--ink); }
.nav.is-scrolled::before { opacity: 1; }
.nav__logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  text-decoration: none;
}
.nav__logo span { font-style: italic; color: var(--sunset); }
.nav__peak {
  width: 30px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.nav__links { display: flex; align-items: center; gap: 2.2rem; }
.nav__links a {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .9;
  transition: opacity .2s, color .2s;
}
.nav__links a:hover { opacity: 1; color: var(--sunset); }
.nav__cta {
  padding: .55em 1.4em;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.nav__toggle { display: none; }

@media (max-width: 820px) {
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: none;
    border: 0;
    padding: 8px;
    color: inherit;
    cursor: pointer;
    z-index: 2;
  }
  .nav__toggle span {
    width: 26px;
    height: 1.5px;
    background: currentColor;
    transition: transform .3s;
  }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child  { transform: translateY(-4.25px) rotate(-45deg); }
  .nav.is-open { color: var(--ink); }
  .nav__logo { z-index: 2; }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    background: var(--snow);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 1rem; }
}

/* ---------- Hero (mountains) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(to bottom,
    #1c2b3a 0%,
    #34496a 28%,
    #7a6f86 52%,
    #d4917a 72%,
    #f0b98d 88%);
}
.hero__stars {
  position: absolute;
  inset: 0 0 50% 0;
  opacity: .7;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 12%, #fff, transparent),
    radial-gradient(1px 1px at 18% 30%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 27% 8%, #fff, transparent),
    radial-gradient(1px 1px at 36% 22%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 47% 5%, #fff, transparent),
    radial-gradient(1px 1px at 58% 18%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 66% 9%, #fff, transparent),
    radial-gradient(1px 1px at 74% 28%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 83% 14%, #fff, transparent),
    radial-gradient(1px 1px at 92% 6%, #fff, transparent),
    radial-gradient(1px 1px at 96% 24%, #fff, transparent),
    radial-gradient(1px 1px at 4% 34%, #fff, transparent);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 5vh) 1.5rem 0;
}
.hero__eyebrow {
  font-size: .8rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  margin-bottom: clamp(.4rem, 1.5vh, 1rem);
  color: var(--peach);
}
.hero__names {
  font-size: clamp(3.2rem, min(11vw, 13vh), 7.2rem);
  font-weight: 400;
  letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero__names .amp { font-style: italic; color: var(--peach); padding: 0 .08em; }
.hero__date {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  margin: clamp(.4rem, 1.5vh, 1rem) 0 .1rem;
}
.hero__place { font-size: .82rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }

.countdown {
  display: flex;
  justify-content: center;
  gap: clamp(.9rem, 4vw, 2.4rem);
  margin: clamp(1rem, 3vh, 1.8rem) 0 clamp(1.2rem, 3.5vh, 2.2rem);
}
.countdown div { display: flex; flex-direction: column; align-items: center; min-width: 3.4rem; }
.countdown span { font-family: var(--serif); font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1; font-weight: 400; }
.countdown small { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; opacity: .8; margin-top: .45rem; }

.hero__mountains {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  /* Fills the space under the text. Never shorter than 350/2240 of the width (the viewBox ratio),
     so "slice" only ever crops the extended sides, never the peaks or the dog. */
  flex: 1 0 max(200px, 15.7vw);
  min-height: 0;
  margin: clamp(.25rem, 1.5vh, 1rem) 0 -1px;
}
.hero__mountains .layer { will-change: transform; }
/* let the sun/moon rise above the top edge of the mountain picture (it stays behind the text, z-index 2) */
.hero__mountains { overflow: visible; }
.sun { fill: #ffe0b8; opacity: .85; }

/* ---- Sky by time of day (class set in js: hero--day / hero--dusk / hero--night) ---- */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.hero--day::before {
  opacity: 1;
  background: linear-gradient(to bottom, #2d5a88 0%, #4a7cab 32%, #7fa8cc 56%, #bcd5e6 76%, #ecdfc6 92%);
}
.hero--night::before {
  opacity: 1;
  background: linear-gradient(to bottom, #0c1520 0%, #15233a 35%, #243653 62%, #34486a 85%);
}
.hero--day .hero__stars { opacity: 0; }
.hero--night .hero__stars { opacity: 1; inset: 0 0 35% 0; }
.hero--day .sun { fill: #fff4d6; opacity: 1; }
.moon { opacity: 0; }
/* fade only when the phase changes while the page is open, not on load */
.hero.sky-ready::before, .hero.sky-ready .hero__stars, .hero.sky-ready .sun, .hero.sky-ready .moon { transition: opacity 1.2s ease; }
.moon__glow { fill: url(#moonGlow); }
.moon__disc { fill: #f3ecd6; }
.hero--night .sun { opacity: 0; }
.hero--night .moon { opacity: 1; }
.layer--far > path:first-child { fill: #7f86a3; }
.layer--far .snow { fill: #f4ece6; opacity: .9; }
.layer--mid > path:first-child { fill: #4a5d73; }
.trail {
  fill: none;
  stroke: var(--peach);
  stroke-width: 2;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .85;
}
.flag-pole { stroke: #fff; stroke-width: 2; }
.flag { fill: var(--sunset); }
.layer--forest { fill: var(--forest); }
.layer--front { fill: var(--snow); }

/* David & Leona next to the dog */
.couple__skin { fill: #e2ad86; }
.couple__arm { fill: none; stroke: #e2ad86; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.couple__sleeve { fill: none; stroke: #232b36; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.couple__suit { fill: #232b36; }
.couple__shirt { fill: #f4f2ee; }
.couple__bowtie { fill: #141414; }
.couple__dress { fill: #f7f2e8; }
.couple__sash { stroke: #e3cfa6; stroke-width: 1; }
.couple__veil { fill: #fff; opacity: .6; }
.couple__shoe { fill: #141414; }
.couple__hair--brown { fill: #5a3a24; }
.couple__hair--blonde { fill: #ecca7e; }
/* both wave at the guests every few seconds: the forearm swings around the elbow */
.couple__wave { transform-box: fill-box; transform-origin: 50% 100%; animation: wave 4s ease-in-out infinite; }
.couple__wave--leona { animation-delay: .5s; }
@keyframes wave {
  0%, 50%, 100% { transform: rotate(0); }
  10%, 30% { transform: rotate(-14deg); }
  20%, 40% { transform: rotate(14deg); }
}

/* The Passat — change --car to match the real paint */
.car { --car: #17191c; }
.car__body { fill: var(--car); }
.car__glass { fill: #5d6b78; }
.car__pillar { fill: none; stroke: var(--car); stroke-width: 2.4; }
.car__line { fill: none; stroke: rgba(255,255,255,.16); stroke-width: .6; }
.car__roofrail { fill: none; stroke: #9aa3ab; stroke-width: 1.4; stroke-linecap: round; }
.car__mirror { fill: var(--car); }
.car__head { fill: #f6e7c4; }
.car__tail { fill: #c0392b; }
.car__tyre { fill: #141414; }
.car__rim { fill: #b9c0c6; }
.car__pipe { stroke: #7d848a; stroke-width: 1.3; stroke-linecap: round; }
/* exhaust puffs drifting back and up */
.car__smoke circle {
  fill: #d9dde0;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: puff 2.4s ease-out infinite;
}
.car__smoke circle:nth-child(2) { animation-delay: .8s; }
.car__smoke circle:nth-child(3) { animation-delay: 1.6s; }
@keyframes puff {
  0% { opacity: 0; transform: translate(0, 0) scale(.4); }
  15% { opacity: .85; }
  100% { opacity: 0; transform: translate(20px, -12px) scale(3); }
}

/* ---------- Sections ---------- */
.section {
  --bg: var(--snow);
  position: relative;
  background: var(--bg);
  padding: clamp(5rem, 10vw, 8rem) 0;
}
/* mountain ridge above a section, in the section's colour */
.ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(36px, 6vw, 80px);
  pointer-events: none;
}
.ridge svg { width: 100%; height: 100%; display: block; }
.ridge path { fill: var(--bg); }

.eyebrow {
  text-align: center;
  font-size: .75rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--sunset);
  margin-bottom: .6rem;
}
.section__title { text-align: center; font-size: clamp(2.5rem, 6vw, 3.6rem); }

.divider {
  width: 150px;
  height: 20px;
  margin: 1.4rem auto 3.5rem;
  background:
    var(--peak) center / 32px 20px no-repeat,
    linear-gradient(var(--sunset), var(--sunset)) left 75% / 50px 1px no-repeat,
    linear-gradient(var(--sunset), var(--sunset)) right 75% / 50px 1px no-repeat;
}
.divider--heart { background-image: var(--heart), linear-gradient(var(--sunset), var(--sunset)), linear-gradient(var(--sunset), var(--sunset)); }
.divider--light {
  background:
    var(--peak-light) center / 32px 20px no-repeat,
    linear-gradient(var(--peach), var(--peach)) left 75% / 50px 1px no-repeat,
    linear-gradient(var(--peach), var(--peach)) right 75% / 50px 1px no-repeat;
}

/* ---------- Photo placeholders (until real photos are added) ---------- */
.ph {
  position: relative;
  background:
    url("../images/topo.svg") center / cover no-repeat,
    linear-gradient(160deg, #e3ddd0, #d6cfbf);
}
.ph::after {
  content: "Sem přijde fotka";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--muted);
}
.ph img { visibility: hidden; }

/* ---------- Our story ---------- */
.story__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.story__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 200px 200px var(--radius) var(--radius); /* arch shape */
}
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__text p { font-size: 1.06rem; }
.story__text p:first-child::first-letter {
  font-family: var(--serif);
  font-size: 3.6em;
  float: left;
  line-height: .85;
  padding: .08em .12em 0 0;
  color: var(--sunset);
}

@media (max-width: 760px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__photo { max-width: 400px; margin-inline: auto; width: 100%; }
}

/* About us */
.about {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 6rem;
  align-items: stretch;
}
.about__card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 1.8rem 2rem;
  text-align: center;
}
.about__card--together {
  background: var(--forest) url("../images/topo.svg") center / cover no-repeat;
  color: #eef0ea;
  border-color: var(--forest);
  transform: translateY(-1.25rem);
}
.about__card--together.reveal:not(.is-visible) { transform: translateY(calc(24px - 1.25rem)); }
.about__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--snow);
}
.about__card--together .about__icon { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }
.about__icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: var(--sunset);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.about__card--together .about__icon svg { stroke: var(--peach); }
.about__card h3 { font-size: 1.9rem; }
.about__tag {
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--sunset);
  margin: .3rem 0 1rem;
}
.about__card--together .about__tag { color: var(--peach); }
.about__card p:last-child { margin: 0; font-size: .97rem; }
.about__card:not(.about__card--together) p:last-child { color: var(--muted); }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .about__card--together { transform: none; order: -1; }
  .about__card--together.reveal:not(.is-visible) { transform: translateY(24px); }
}

/* Our journey — climbing route with rope and bolts */
.route__title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 6rem 0 3rem;
}
.route {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 860px;
  position: relative;
}
.route__pitch {
  position: relative;
  width: 50%;
  padding: 0 3rem 3rem 0;
  text-align: right;
}
.route__pitch:nth-child(even) {
  margin-left: 50%;
  padding: 0 0 3rem 3rem;
  text-align: left;
}
/* rope — runs from the bottom edge of this bolt to the top edge of the next one */
.route__pitch:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(.35rem + 20px);
  bottom: -.35rem;
  right: -2px;
  width: 4px;
  border-radius: 3px;
  background: repeating-linear-gradient(
    to bottom,
    var(--sunset) 0 7px,
    var(--sunset-dark) 7px 10px
  );
}
.route__pitch:nth-child(even):not(:last-child)::after { right: auto; left: -2px; }
/* last segment reaches into the summit triangle's tip (the triangle is drawn over it) */
.route__pitch:nth-last-child(2)::after { bottom: -.6rem; }
.route__pitch--summit { padding-bottom: 0; }
/* bolt / quickdraw */
.route__pitch::before {
  content: "";
  position: absolute;
  top: .35rem;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--granite);
  background: var(--snow);
}
.route__pitch:nth-child(even)::before { right: auto; left: -10px; }
/* summit */
.route__pitch--summit::before {
  width: 34px;
  height: 28px;
  top: -.1rem;
  right: -17px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--forest);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.route__pitch--summit:nth-child(even)::before { left: -17px; }
.route__label {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--sunset);
}
.route__pitch h4 { font-size: 1.55rem; margin: .25rem 0 .4rem; }
.route__pitch p { color: var(--muted); font-size: .97rem; margin: 0; }
.route__pitch--summit h4 { color: var(--forest); font-weight: 500; }

@media (max-width: 680px) {
  .route__pitch,
  .route__pitch:nth-child(even) {
    width: auto;
    margin-left: 0;
    padding: 0 0 2.5rem 2.8rem;
    text-align: left;
  }
  .route__pitch::before,
  .route__pitch:nth-child(even)::before { left: 0; right: auto; }
  .route__pitch:not(:last-child)::after,
  .route__pitch:nth-child(even):not(:last-child)::after { left: 8px; right: auto; }
  .route__pitch--summit::before,
  .route__pitch--summit:nth-child(even)::before { left: -7px; }
}

/* The dog */
.dog { fill: #141414; }
.dog__tail { fill: none; stroke: #141414; stroke-width: 5; stroke-linecap: round; }
.dog__tail-wrap { transform-box: fill-box; transform-origin: 100% 100%; }
.dog__ear { fill: #2b2b2b; }
.dog__collar { fill: none; stroke: var(--sunset); stroke-width: 3.5; stroke-linecap: round; }
.dog__eye { fill: #fff; opacity: .85; }
.dog--hero .dog__tail-wrap { animation: wag 1.6s ease-in-out infinite; }
@keyframes wag {
  0%, 100% { transform: rotate(-10deg); }
  50% { transform: rotate(12deg); }
}

/* ---------- Gallery ---------- */
.gallery {
  --bg: var(--stone);
  background: url("../images/topo.svg") center / cover no-repeat, var(--stone);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 260px;
  gap: 1rem;
}
.gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  box-shadow: 0 10px 30px -18px rgba(30, 42, 44, .5);
}
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item.ph { cursor: default; }

@media (max-width: 760px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(20, 28, 30, .93);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  cursor: zoom-out;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.4); }

/* ---------- Wedding day ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}
.card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
}
.card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--peach);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { font-size: 1.7rem; margin-bottom: .6rem; }
.card p { margin: 0; }

.schedule {
  max-width: 580px;
  margin: 5.5rem auto 0;
  text-align: center;
}
.schedule__title { font-size: clamp(2rem, 4vw, 2.4rem); margin-bottom: 2rem; }
.schedule ul { list-style: none; margin: 0; padding: 0; text-align: left; position: relative; }
.schedule li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 2rem;
  padding: .9rem 0;
  position: relative;
}
/* dashed line connecting schedule items */
.schedule li::before {
  content: "";
  position: absolute;
  left: calc(4.5rem + 1rem);
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sunset);
  transform: translate(-50%, -50%);
}
.schedule li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(4.5rem + 1rem);
  top: 50%;
  height: 100%;
  border-left: 1px dashed var(--line);
  border-left-color: #c9bfae;
}
.schedule time {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--forest);
  text-align: right;
}
.schedule span { align-self: center; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-top: 5rem;
}
.info { padding-top: 1.5rem; border-top: 2px solid var(--forest); }
.info h4 { font-size: 1.45rem; margin-bottom: .6rem; color: var(--forest); }
.info p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Gift: bank details + QR payment code */
.gift { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 1.3rem; }
.gift__details { display: flex; flex-direction: column; gap: .45rem; }
.gift__label { color: var(--muted); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
/* the whole account number is one button: click anywhere to copy */
.gift__copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  width: 100%;
  max-width: 100%;
  padding: .55rem .7rem .55rem .95rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.gift__copy:hover { border-color: var(--sunset); box-shadow: 0 2px 10px rgba(200,116,63,.15); }
.gift__copy:focus-visible { outline: 2px solid var(--sunset); outline-offset: 2px; }
.gift__account { font-weight: 500; font-size: 1rem; letter-spacing: .03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gift__icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--sunset);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gift__icon--done { display: none; stroke-width: 2.4; }
.gift__copy.is-copied { border-color: var(--pine); }
.gift__copy.is-copied .gift__icon--copy { display: none; }
.gift__copy.is-copied .gift__icon--done { display: block; stroke: var(--pine); }
/* small bubble above the field */
.gift__toast {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  padding: .2rem .6rem;
  font-size: .75rem;
  white-space: nowrap;
  color: #fff;
  background: var(--forest);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.gift__copy.is-copied .gift__toast { opacity: 1; transform: translate(-50%, 0); }
.gift__qr {
  align-self: center;
  flex: none;
  width: 150px;
  height: 150px;
  margin: 0;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.gift__qr img { width: 100%; height: 100%; }
.gift__qr.ph { padding: 0; }
.gift__qr.ph::after { content: "Sem přijde QR kód"; font-size: .9rem; text-align: center; padding: 1rem; }

.map { margin-top: 4.5rem; text-align: center; }
.map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(.35) sepia(.12);
  margin-bottom: 1.5rem;
}
.map__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- RSVP ---------- */
.rsvp {
  --bg: var(--night);
  color: #e9ece6;
  background:
    radial-gradient(1px 1px at 12% 20%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.2px 1.2px at 30% 35%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 52% 15%, rgba(255,255,255,.8), transparent),
    radial-gradient(1.3px 1.3px at 70% 30%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 88% 18%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 94% 45%, rgba(255,255,255,.6), transparent),
    radial-gradient(1px 1px at 6% 50%, rgba(255,255,255,.6), transparent),
    linear-gradient(to bottom, var(--night), #22352d);
}
.rsvp__inner { max-width: 680px; text-align: center; }
.rsvp__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 1.2rem;
  display: block;
  fill: none;
  stroke: var(--peach);
  stroke-width: 2.2;
  stroke-linecap: round;
  transform: rotate(18deg);
}
.rsvp .eyebrow { color: var(--peach); }
.rsvp__text { font-size: 1.1rem; margin-bottom: 2.5rem; }
.rsvp__text strong { color: #fff; font-weight: 500; }
.rsvp__contact { margin-top: 2.5rem; font-size: .92rem; color: #b4bdb5; }
.rsvp__contact p { margin-bottom: 1rem; }
.contacts {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}
.contacts li { display: flex; flex-direction: column; gap: .1rem; }
.contacts span { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--peach); }
.contacts a { color: #e9ece6; text-decoration: none; font-size: 1rem; white-space: nowrap; }
.contacts a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 420px) {
  .contacts { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
  padding: 3rem 1.5rem calc(3rem + env(safe-area-inset-bottom, 0px));
  text-align: center;
  background: #1a2923;
  color: var(--snow);
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__peak {
  width: 56px;
  height: 25px;
  fill: none;
  stroke: var(--sunset);
  stroke-width: 1.6;
  stroke-linejoin: round;
  margin-bottom: .6rem;
}
.footer__names { font-family: var(--serif); font-size: 2rem; margin-bottom: .2rem; }
.footer__names span { font-style: italic; color: var(--sunset); }
.footer__family { font-size: .78rem; letter-spacing: .38em; text-transform: uppercase; color: var(--peach); margin: 0 0 .9rem; }
.footer__date { color: #9fa9a2; letter-spacing: .25em; font-size: .85rem; margin: 0; }

/* ---------- Easter egg: Leona used to dance ---------- */
.egg-name { display: inline-block; }
.egg-name span { display: inline-block; }
.hero.is-dancing .egg-name span {
  animation: hop .45s ease-in-out calc(var(--i) * 70ms) 6 alternate;
}
@keyframes hop {
  to { transform: translateY(-.14em) rotate(-5deg); color: var(--peach); }
}

.dancer { opacity: 0; transition: opacity .6s; }
.dancer__body {
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: 50% 100%;
}
.note { fill: var(--peach); font-size: 20px; opacity: 0; }
.hero.is-dancing .dancer { opacity: 1; }
.hero.is-dancing .dancer__body { animation: twirl .9s ease-in-out infinite alternate; }
.hero.is-dancing .note { animation: float 1.8s ease-out infinite; }
.hero.is-dancing .note--2 { animation-delay: .6s; }
.hero.is-dancing .note--3 { animation-delay: 1.2s; }
@keyframes twirl {
  from { transform: scaleX(1) rotate(-4deg); }
  to { transform: scaleX(-1) rotate(4deg); }
}
@keyframes float {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-26px); }
}

.egg-toast {
  position: fixed;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  z-index: 150;
  padding: .7em 1.4em;
  border-radius: 999px;
  background: var(--night);
  color: var(--peach);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: opacity .4s, transform .4s;
  pointer-events: none;
}
.egg-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.about__card--together.reveal.is-visible { transform: translateY(-1.25rem); }
@media (max-width: 860px) {
  .about__card--together.reveal.is-visible { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dog__tail-wrap { animation: none !important; }
  .car__smoke { display: none; }
  .couple__wave { animation: none; }
}

/* ---------- Wedding doodles in the section margins ---------- */
.section > .container { position: relative; z-index: 1; }
.doodles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.doodle {
  --size: clamp(64px, 8vw, 120px);
  position: absolute;
  width: var(--size);
  height: var(--size);
  fill: none;
  stroke: var(--pine);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .3;
  will-change: transform;
}
.rsvp .doodle { stroke: var(--peach); opacity: .35; }
/* sit in the margin beside the 1100px container; on narrower screens peek in from the edge */
.doodle--l { left: max(-18px, calc(50% - 550px - var(--size) - 3vw)); }
.doodle--r { right: max(-18px, calc(50% - 550px - var(--size) - 3vw)); }
.doodle--t1 { top: 10%; }
.doodle--t2 { top: 32%; }
.doodle--t3 { top: 56%; }
.doodle--t4 { top: 80%; }

/* lines draw themselves when the doodle scrolls into view (pathLength set in JS) */
.doodle.js-draw * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s ease-in-out; }
.doodle.is-drawn * { stroke-dashoffset: 0; }
.doodle.is-drawn .doodle__beat { animation: beat 2.4s ease-in-out 2.4s infinite; }
.doodle.is-drawn .doodle__steam { animation: steam 3s ease-in-out 2.4s infinite; }
.doodle__steam { transform-box: fill-box; transform-origin: 50% 100%; }
.doodle__beat { transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes beat {
  0%, 40%, 100% { transform: scale(1); }
  15% { transform: scale(1.15); }
  28% { transform: scale(1.06); }
}
@keyframes steam {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: .35; transform: translateY(-3px); }
}

@media (max-width: 760px) {
  .doodle { --size: 56px; opacity: .2; }
}
@media (prefers-reduced-motion: reduce) {
  .doodle * { animation: none !important; }
}
