:root {
  --cream: #F6F1E7;
  --cream-alt: #EFE7D3;
  --ink: #2B2620;
  --ink-soft: #5B5347;
  --moss: #52603F;
  --moss-deep: #3A4530;
  --wine: #7C2D2D;
  --gold: #A9834F;
  --font-display: "Cormorant Garamond", serif;
  --font-body: "Lora", serif;
  --max-w: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  text-align: center;
  margin: 0 0 0.75rem;
}

.btn-ghost {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--moss);
  color: var(--moss-deep);
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
  text-decoration: none;
}
.btn-ghost:hover { background: var(--moss); color: var(--cream); }
.btn-ghost--small { font-size: 0.75rem; padding: 0.5rem 1.1rem; margin-top: 0.75rem; }

.btn-solid {
  background: var(--wine);
  color: var(--cream);
  border: none;
  font-family: var(--font-body);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease;
}
.btn-solid:hover { background: var(--moss-deep); }

/* ---------- ENVELOPE INTRO ---------- */

.envelope {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-alt);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.envelope.is-open {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope__scene {
  position: relative;
  width: min(82vw, 340px);
  aspect-ratio: 340 / 240;
  perspective: 900px;
}

.envelope__body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}

.envelope__flap {
  transform-box: fill-box;
  transform-origin: 50% 0%;
  transition: transform 0.9s cubic-bezier(.65,0,.35,1);
}
.envelope.is-opening .envelope__flap { transform: rotateX(150deg); }

.envelope__seal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 2;
  transition: transform 0.35s ease, opacity 0.4s ease;
}
.envelope__seal svg { width: 100%; height: 100%; display: block; }
.envelope__seal:hover { transform: translate(-50%, -50%) scale(1.06); }
.envelope.is-opening .envelope__seal {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.55);
  pointer-events: none;
}

.seal-blob { filter: drop-shadow(0 3px 6px rgba(0,0,0,0.3)); }
.seal-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  fill: #F6F1E7;
}
.seal-crack path {
  stroke: #F6F1E7;
  stroke-width: 1.4;
  fill: none;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.envelope.is-cracking .seal-crack path { opacity: 0.85; }

.bird {
  position: absolute;
  width: 30px;
  opacity: 0;
  z-index: 0;
}
.bird path { fill: var(--ink-soft); }
.bird--1 { top: 8%; left: 16%; }
.bird--2 { top: 2%; left: 47%; }
.bird--3 { top: 10%; left: 72%; }

@keyframes fly-away {
  0% { opacity: 0; transform: translate(0, 0) scale(0.7) rotate(0deg); }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--fly-x, 60px), -170px) scale(1) rotate(-12deg); }
}
.envelope.is-opening .bird { animation: fly-away 1.6s ease-out forwards; }
.envelope.is-opening .bird--1 { animation-delay: 0.05s; --fly-x: -80px; }
.envelope.is-opening .bird--2 { animation-delay: 0.15s; --fly-x: 6px; }
.envelope.is-opening .bird--3 { animation-delay: 0.25s; --fly-x: 84px; }

.envelope__hint {
  position: absolute;
  bottom: -2.4rem;
  left: 0; right: 0;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- REVEAL ON SCROLL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .envelope__flap { transition: none; }
  .envelope.is-opening .bird { animation: none; opacity: 0; }
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(43,38,32,0.35) 0%, rgba(43,38,32,0.55) 60%, rgba(43,38,32,0.75) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--cream);
  padding: 0 1.5rem;
}
.hero .eyebrow { color: var(--cream); opacity: 0.85; }
.hero__names {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 10vw, 4.2rem);
  margin: 0.2rem 0;
}
.hero__names .amp { font-style: italic; color: var(--gold); padding: 0 0.15em; }
.hero__date {
  font-family: var(--font-body);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  margin: 0.5rem 0 2.5rem;
}
.scroll-cue {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.scroll-cue span {
  display: block;
  width: 10px; height: 10px;
  border-right: 1.5px solid var(--cream);
  border-bottom: 1.5px solid var(--cream);
  transform: rotate(45deg);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: rotate(45deg) translate(0,0); } 50% { transform: rotate(45deg) translate(4px,4px); } }

/* ---------- QUOTE ---------- */

.quote {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  text-align: center;
}
.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 4vw, 1.7rem);
  color: var(--moss-deep);
  line-height: 1.5;
}

/* ---------- COUNTDOWN ---------- */

.countdown {
  text-align: center;
  padding: 2rem 1.5rem 5rem;
}
.countdown__grid {
  display: flex;
  justify-content: center;
  gap: clamp(0.8rem, 4vw, 2rem);
  margin: 1.2rem 0 2rem;
}
.countdown__cell {
  display: flex;
  flex-direction: column;
  min-width: 64px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 0.9rem 0.4rem;
}
.countdown__cell span {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  color: var(--wine);
  line-height: 1;
}
.countdown__cell label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.35rem;
}

/* ---------- TIMELINE (winorośl) ---------- */

.timeline-section {
  background: var(--cream-alt);
  padding: 5rem 1.5rem;
}
.timeline {
  position: relative;
  max-width: 420px;
  margin: 2.5rem auto 0;
}
.timeline__line {
  position: absolute;
  left: 18px;
  top: 0;
  width: 2px;
  height: 0%;
  background: var(--moss);
  transition: height 1.4s ease;
}
.timeline__line.is-visible { height: 100%; }
.timeline__items { display: flex; flex-direction: column; gap: 2.2rem; }
.timeline__item { position: relative; padding-left: 46px; min-height: 32px; }
.timeline__leaf {
  position: absolute;
  left: 9px; top: 2px;
  width: 18px; height: 18px;
  background: var(--moss);
  border-radius: 60% 0 60% 0;
  box-shadow: 0 0 0 4px var(--cream-alt);
}
.timeline__time {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--wine);
}
.timeline__label {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

/* ---------- GALLERY ---------- */

.gallery { padding: 5.5rem 1.5rem; text-align: center; }
.gallery__frames {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.2rem;
  margin-top: 2rem;
}
.frame {
  margin: 0;
  background: var(--cream);
  padding: 0.6rem 0.6rem 1rem;
  border: 1px solid rgba(169,131,79,0.4);
  box-shadow: 0 6px 18px rgba(43,38,32,0.12);
  width: min(88vw, 300px);
}
.frame--one { transform: rotate(-1.5deg); }
.frame--two { transform: rotate(1.5deg); }
.frame img { width: 100%; display: block; }
.frame figcaption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ---------- LOCATION ---------- */

.location { padding: 5.5rem 1.5rem; }
.location__cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  max-width: var(--max-w);
  margin: 2rem auto;
}
.location__card {
  flex: 1 1 220px;
  max-width: 300px;
  text-align: center;
  padding: 1.8rem 1.2rem;
  border: 1px solid var(--gold);
  border-radius: 10px;
}
.location__card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--moss-deep);
  margin: 0 0 0.6rem;
}
.location__card p { margin: 0.2rem 0; font-size: 0.92rem; color: var(--ink-soft); }
.location__time { color: var(--wine) !important; font-family: var(--font-display); font-size: 1.1rem !important; }
.location__map {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  border: 1px solid var(--gold);
  overflow: hidden;
}
.location__map iframe { width: 100%; height: 320px; border: none; display: block; }

/* ---------- RSVP ---------- */

.rsvp { padding: 5.5rem 1.5rem; text-align: center; }
.rsvp__seal {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9c3f3f, var(--wine) 70%);
  border: none;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: transform 0.25s ease;
  margin: 1rem auto;
  display: block;
}
.rsvp__seal:hover { transform: scale(1.05); }
.rsvp__form {
  max-width: 420px;
  margin: 2rem auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.rsvp__form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.rsvp__form input,
.rsvp__form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: var(--cream);
  color: var(--ink);
}
.rsvp__radio { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.rsvp__radio legend { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.3rem; padding: 0; }
.rsvp__radio label { flex-direction: row; align-items: center; gap: 0.5rem; font-size: 0.9rem; }
.rsvp__form .btn-solid { margin-top: 0.4rem; }
.rsvp__status { font-size: 0.85rem; color: var(--moss-deep); min-height: 1.2em; }

/* ---------- FOOTER ---------- */

.footer {
  text-align: center;
  padding: 3.5rem 1.5rem 4rem;
  color: var(--ink-soft);
}
.footer__monogram {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--gold);
  margin: 0;
}
.footer__date { font-size: 0.85rem; letter-spacing: 0.1em; margin-top: 0.4rem; }

/* ---------- ELEGANCKIE DOPRACOWANIE ---------- */

:root {
  --paper: #FBF7EE;
  --sage: #D9E0CB;
  --sage-deep: #66724D;
  --rose: #C98F86;
  --rose-soft: #EAD1CB;
  --mist: #E7ECE8;
  --deep-gold: #8C6A3B;
  --shadow-soft: 0 18px 45px rgba(43, 38, 32, 0.12);
  --shadow-lift: 0 26px 60px rgba(43, 38, 32, 0.18);
}

body {
  background:
    linear-gradient(115deg, rgba(217,224,203,0.42), transparent 34%),
    linear-gradient(245deg, rgba(234,209,203,0.32), transparent 38%),
    linear-gradient(180deg, var(--cream) 0%, #F8F2E8 48%, #EEF1E8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    repeating-linear-gradient(90deg, rgba(43,38,32,0.035) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(43,38,32,0.025) 0 1px, transparent 1px 72px);
  mix-blend-mode: multiply;
}

.site {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

section {
  position: relative;
}

.ambient-petals {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.ambient-petals span {
  position: absolute;
  top: -12vh;
  left: var(--x, 50%);
  width: var(--size, 12px);
  height: calc(var(--size, 12px) * 1.65);
  border-radius: 75% 0 75% 0;
  background: linear-gradient(160deg, rgba(201,143,134,0.58), rgba(169,131,79,0.26));
  opacity: 0.42;
  transform: rotate(var(--r, 18deg));
  animation: petal-fall var(--duration, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.ambient-petals span:nth-child(1) { --x: 7%; --size: 10px; --duration: 18s; --delay: -4s; --r: 28deg; }
.ambient-petals span:nth-child(2) { --x: 18%; --size: 8px; --duration: 21s; --delay: -13s; --r: -16deg; }
.ambient-petals span:nth-child(3) { --x: 33%; --size: 13px; --duration: 19s; --delay: -9s; --r: 38deg; }
.ambient-petals span:nth-child(4) { --x: 48%; --size: 9px; --duration: 24s; --delay: -17s; --r: -30deg; }
.ambient-petals span:nth-child(5) { --x: 63%; --size: 11px; --duration: 20s; --delay: -6s; --r: 20deg; }
.ambient-petals span:nth-child(6) { --x: 78%; --size: 8px; --duration: 23s; --delay: -15s; --r: -22deg; }
.ambient-petals span:nth-child(7) { --x: 90%; --size: 12px; --duration: 22s; --delay: -2s; --r: 34deg; }
.ambient-petals span:nth-child(8) { --x: 55%; --size: 7px; --duration: 26s; --delay: -21s; --r: -12deg; }

@keyframes petal-fall {
  0% { transform: translate3d(0, -12vh, 0) rotate(var(--r, 18deg)); opacity: 0; }
  12% { opacity: 0.42; }
  50% { transform: translate3d(42px, 52vh, 0) rotate(calc(var(--r, 18deg) + 170deg)); }
  100% { transform: translate3d(-34px, 112vh, 0) rotate(calc(var(--r, 18deg) + 340deg)); opacity: 0; }
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--sage-deep);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: clamp(32px, 8vw, 72px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169,131,79,0.78), transparent);
}

.section-title {
  max-width: 680px;
  margin: 0.25rem auto 0;
  padding: 0 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.08;
  color: var(--moss-deep);
}

.btn-ghost,
.btn-solid {
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  box-shadow: 0 10px 26px rgba(43,38,32,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-ghost::after,
.btn-solid::after {
  content: "";
  position: absolute;
  inset: -120% -70%;
  background: linear-gradient(110deg, transparent 44%, rgba(255,255,255,0.35) 50%, transparent 56%);
  transform: translateX(-70%);
  transition: transform 0.75s ease;
}

.btn-ghost:hover,
.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(43,38,32,0.15);
}

.btn-ghost:hover::after,
.btn-solid:hover::after {
  transform: translateX(70%);
}

.btn-ghost:focus-visible,
.btn-solid:focus-visible,
.scroll-cue:focus-visible,
.rsvp__seal:focus-visible,
.envelope__seal:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 4px;
}

.envelope {
  background:
    linear-gradient(135deg, rgba(217,224,203,0.7), transparent 36%),
    linear-gradient(225deg, rgba(234,209,203,0.56), transparent 42%),
    var(--cream-alt);
}

.envelope::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(169,131,79,0.25);
  pointer-events: none;
}

.envelope__scene {
  filter: drop-shadow(0 22px 28px rgba(43,38,32,0.18));
  animation: envelope-breathe 4.8s ease-in-out infinite;
}

.envelope__body {
  filter: drop-shadow(0 12px 18px rgba(43,38,32,0.12));
}

.envelope__seal::after {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(124,45,45,0.44);
  animation: seal-pulse 2.6s ease-in-out infinite;
}

.envelope__hint {
  animation: hint-pulse 2.8s ease-in-out infinite;
}

@keyframes envelope-breathe {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-8px) rotate(0.4deg); }
}

@keyframes seal-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.2; }
  50% { transform: scale(1.28); opacity: 0; }
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.64; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.reveal {
  transform: translateY(28px) scale(0.985);
  filter: blur(5px);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  filter: blur(0);
}

.hero {
  min-height: 92svh;
  border-bottom: 1px solid rgba(169,131,79,0.28);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 1.2rem;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(246,241,231,0.22);
}

.hero::after {
  inset: auto 1.2rem 1.2rem;
  height: 34%;
  border-top: none;
  background: linear-gradient(180deg, transparent, rgba(43,38,32,0.22));
}

.hero__img {
  filter: saturate(0.96) contrast(1.05);
  animation: hero-drift 24s ease-in-out infinite alternate;
}

.hero__overlay {
  background:
    radial-gradient(circle at 50% 30%, rgba(246,241,231,0.08), transparent 32%),
    linear-gradient(180deg, rgba(43,38,32,0.24) 0%, rgba(43,38,32,0.56) 58%, rgba(43,38,32,0.84) 100%);
}

.hero__content {
  z-index: 2;
  max-width: 860px;
  padding: 0 1.5rem 2.4rem;
  text-shadow: 0 3px 18px rgba(0,0,0,0.34);
}

.hero__content::before,
.hero__content::after {
  content: "";
  display: block;
  width: min(220px, 46vw);
  height: 1px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(90deg, transparent, rgba(246,241,231,0.76), transparent);
}

.hero__content::after {
  margin: 1.35rem auto 0;
}

.hero__names {
  font-size: clamp(3.1rem, 11vw, 6.8rem);
  line-height: 0.92;
}

.hero__names .amp {
  text-shadow: 0 0 28px rgba(169,131,79,0.6);
}

.hero__date {
  margin-bottom: 1.1rem;
}

.hero__details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto 1.8rem;
}

.hero__details span {
  border: 1px solid rgba(246,241,231,0.42);
  background: rgba(43,38,32,0.24);
  backdrop-filter: blur(10px);
  color: var(--cream);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.48rem 0.72rem;
}

.scroll-cue {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(246,241,231,0.5);
  border-radius: 50%;
  background: rgba(43,38,32,0.18);
  backdrop-filter: blur(8px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.scroll-cue:hover {
  transform: translateY(-3px);
  background: rgba(246,241,231,0.16);
}

.scroll-cue span {
  margin: 0 auto;
}

@keyframes hero-drift {
  0% { transform: scale(1.03) translate3d(-0.8%, -0.4%, 0); }
  100% { transform: scale(1.1) translate3d(0.8%, 0.6%, 0); }
}

.quote {
  padding: 6rem 1.5rem;
}

.quote::before,
.quote::after {
  content: "";
  display: block;
  width: min(560px, 78vw);
  height: 1px;
  margin: 0 auto 2.2rem;
  background: linear-gradient(90deg, transparent, rgba(124,45,45,0.3), rgba(169,131,79,0.7), rgba(124,45,45,0.3), transparent);
}

.quote::after {
  margin: 2.2rem auto 0;
}

.quote p {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(1.55rem, 4vw, 2.2rem);
}

.quote p::before,
.quote p::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-color: rgba(169,131,79,0.45);
  border-style: solid;
}

.quote p::before {
  top: -1rem;
  left: -0.4rem;
  border-width: 1px 0 0 1px;
}

.quote p::after {
  right: -0.4rem;
  bottom: -1rem;
  border-width: 0 1px 1px 0;
}

.countdown {
  padding: 3rem 1.5rem 6rem;
}

.countdown__note {
  max-width: 560px;
  margin: 1.2rem auto 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

.countdown__grid {
  gap: clamp(0.75rem, 2.8vw, 1.4rem);
}

.countdown__cell {
  position: relative;
  min-width: clamp(72px, 15vw, 118px);
  overflow: hidden;
  border: 1px solid rgba(169,131,79,0.42);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(251,247,238,0.92), rgba(239,231,211,0.72));
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.countdown__cell::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--moss));
}

.countdown__cell:hover {
  transform: translateY(-5px);
  border-color: rgba(124,45,45,0.45);
  box-shadow: var(--shadow-lift);
}

.countdown__cell span {
  display: inline-block;
}

.countdown__cell span.is-ticking {
  animation: tick-pop 0.42s ease;
}

@keyframes tick-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.12); color: var(--moss-deep); }
  100% { transform: scale(1); }
}

.timeline-section {
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(217,224,203,0.52), transparent 42%),
    linear-gradient(180deg, #EFE7D3, #F7F0E2);
}

.timeline-section::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(169,131,79,0.2);
  pointer-events: none;
}

.timeline {
  max-width: 560px;
}

.timeline__line {
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--moss), var(--gold), var(--wine));
  box-shadow: 0 0 0 5px rgba(82,96,63,0.08);
}

.timeline__items {
  gap: 1.35rem;
}

.timeline__item {
  padding: 1.1rem 1.2rem 1.1rem 58px;
  border: 1px solid rgba(169,131,79,0.28);
  border-radius: 8px;
  background: rgba(251,247,238,0.58);
  box-shadow: 0 12px 28px rgba(43,38,32,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.timeline__item:hover {
  transform: translateX(6px);
  background: rgba(251,247,238,0.82);
  box-shadow: var(--shadow-soft);
}

.timeline__leaf {
  left: 10px;
  top: 1.35rem;
  background: linear-gradient(135deg, var(--moss), var(--sage-deep));
  transform: rotate(-18deg) scale(0.9);
}

.timeline__item.is-visible .timeline__leaf {
  animation: leaf-pop 0.72s cubic-bezier(.2,.9,.3,1.25) both;
}

.timeline__time {
  font-size: 1.35rem;
}

.timeline__label {
  margin-top: 0.1rem;
  line-height: 1.55;
}

@keyframes leaf-pop {
  0% { transform: rotate(-42deg) scale(0.2); opacity: 0; }
  70% { transform: rotate(-10deg) scale(1.12); opacity: 1; }
  100% { transform: rotate(-18deg) scale(1); opacity: 1; }
}

.gallery {
  padding: 6rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(251,247,238,0.18), rgba(231,236,232,0.44)),
    var(--cream);
}

.gallery__frames {
  align-items: center;
}

.frame {
  position: relative;
  border-radius: 6px;
  border-color: rgba(169,131,79,0.34);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 18px;
  background: rgba(246,241,231,0.72);
  border: 1px solid rgba(169,131,79,0.22);
  box-shadow: 0 4px 12px rgba(43,38,32,0.08);
  z-index: 2;
}

.frame::before {
  top: -10px;
  left: 22px;
  transform: rotate(-8deg);
}

.frame::after {
  right: 22px;
  bottom: 34px;
  transform: rotate(7deg);
}

.frame:hover {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: var(--shadow-lift);
}

.frame img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.frame:hover img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.03);
}

.frame figcaption {
  font-size: 1rem;
}

.location {
  padding: 6rem 1.5rem;
  background:
    linear-gradient(130deg, rgba(234,209,203,0.32), transparent 38%),
    linear-gradient(180deg, rgba(251,247,238,0.72), rgba(239,231,211,0.55));
}

.location__cards {
  max-width: 820px;
}

.location__card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(169,131,79,0.4);
  border-radius: 8px;
  background: rgba(251,247,238,0.78);
  box-shadow: var(--shadow-soft);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.location__card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--moss), var(--gold), var(--rose));
}

.location__card:hover {
  transform: translateY(-6px);
  border-color: rgba(124,45,45,0.42);
  box-shadow: var(--shadow-lift);
}

.location__card h3 {
  font-size: 1.55rem;
}

.location__note {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
  line-height: 1.7;
}

.location__map {
  border-radius: 8px;
  border-color: rgba(169,131,79,0.36);
  box-shadow: var(--shadow-soft);
}

.rsvp {
  padding: 6rem 1.5rem;
  background:
    linear-gradient(180deg, rgba(217,224,203,0.36), rgba(251,247,238,0.88)),
    var(--cream);
}

.rsvp > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.rsvp__seal {
  width: 108px;
  height: 108px;
  box-shadow: 0 14px 34px rgba(124,45,45,0.28);
  animation: wax-glow 3.6s ease-in-out infinite;
}

.rsvp__seal:hover {
  transform: translateY(-3px) scale(1.05);
}

@keyframes wax-glow {
  0%, 100% { box-shadow: 0 14px 34px rgba(124,45,45,0.25); }
  50% { box-shadow: 0 20px 42px rgba(124,45,45,0.38); }
}

.rsvp__form {
  padding: 1.45rem;
  border: 1px solid rgba(169,131,79,0.34);
  border-radius: 8px;
  background: rgba(251,247,238,0.86);
  box-shadow: var(--shadow-soft);
}

.rsvp__form.is-open {
  animation: form-unfurl 0.46s ease both;
}

@keyframes form-unfurl {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.rsvp__form input,
.rsvp__form textarea {
  border-color: rgba(169,131,79,0.55);
  background: rgba(255,252,246,0.86);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rsvp__form input:focus,
.rsvp__form textarea:focus {
  outline: none;
  border-color: var(--wine);
  background: #fffaf1;
  box-shadow: 0 0 0 4px rgba(201,143,134,0.18);
}

.footer {
  position: relative;
  background: linear-gradient(180deg, rgba(239,231,211,0), rgba(217,224,203,0.56));
}

.footer__monogram {
  font-size: 2.25rem;
  text-shadow: 0 10px 22px rgba(169,131,79,0.18);
}

@media (max-width: 720px) {
  .hero {
    min-height: 92svh;
  }

  .hero::before,
  .hero::after,
  .timeline-section::before,
  .envelope::before {
    inset: 0.7rem;
  }

  .hero__details {
    gap: 0.45rem;
  }

  .hero__details span {
    font-size: 0.68rem;
    padding: 0.4rem 0.56rem;
  }

  .countdown__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .timeline {
    max-width: 100%;
  }

  .timeline__item {
    padding-right: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .ambient-petals {
    display: none;
  }
}
