/* UI inspired by thiep-cuoi-trongcuong-thuha.live — rebuilt for Đức Tùng & Quỳnh Thảo */
:root {
  --mint: #eef6f0;
  --mint-deep: #e2efe6;
  --teal: #5fa58f;
  --teal-dark: #4a8a76;
  --ink: #2f3e36;
  --ink-soft: #5a6b62;
  --cream: #fbfcf9;
  --white: #ffffff;
  --gold: #c4a574;
  --font-script: "Great Vibes", cursive;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: Inter, "Segoe UI", sans-serif;
  --max: 920px;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--teal); color: #fff; padding: 0.75rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---------- COVER ---------- */
.cover {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: var(--mint);
  padding: 1.5rem;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
.cover.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.cover::before {
  content: "";
  position: absolute; left: 50%; top: 8%; bottom: 8%;
  width: 1px; background: rgba(95, 165, 143, 0.18);
  transform: translateX(-50%);
}
.cover__floral {
  position: absolute; width: clamp(110px, 22vw, 170px); pointer-events: none; opacity: 0.95;
}
.cover__floral--tl { top: 0; left: 0; }
.cover__floral--tr { top: 0; right: 0; transform: scaleX(-1); }
.cover__sprig {
  position: absolute; width: 40px; opacity: 0.55; pointer-events: none;
}
.cover__sprig--1 { top: 28%; left: 42%; transform: rotate(-20deg); }
.cover__sprig--2 { top: 28%; right: 42%; transform: scaleX(-1) rotate(-20deg); }
.cover__sprig--3 { bottom: 22%; left: 42%; transform: rotate(160deg); }
.cover__sprig--4 { bottom: 22%; right: 42%; transform: scaleX(-1) rotate(160deg); }

.cover__inner {
  position: relative; z-index: 1; text-align: center;
  max-width: 420px; animation: fadeUp 0.7s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.cover__names {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 9vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.cover__amp {
  display: block;
  font-size: 0.55em;
  color: var(--teal);
  margin: 0.1em 0;
}
.cover__ornament {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}
.cover__date {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}
.cover__invite {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
  min-height: 1.5em;
}
.cover__invite strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 0.25rem;
}

.btn-open {
  display: inline-flex; align-items: center; gap: 0.65rem;
  border: none; cursor: pointer;
  background: var(--teal); color: #fff;
  font-family: var(--font-sans); font-size: 0.95rem; font-weight: 500;
  padding: 0.7rem 1.4rem 0.7rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.55), 0 10px 28px rgba(95,165,143,0.28);
  transition: background 0.2s, transform 0.2s;
}
.btn-open:hover { background: var(--teal-dark); }
.btn-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-open__icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
}

/* ---------- SITE / NAV ---------- */
.site[hidden] { display: none !important; }
.topnav {
  position: fixed; top: 0; right: 0; z-index: 50;
  padding: 1rem 1.25rem;
}
.topnav nav {
  display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: flex-end;
}
.topnav a {
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  font-weight: 500;
  opacity: 0.92;
}
.topnav a:hover { opacity: 1; }
.topnav.is-solid a {
  color: var(--ink);
  text-shadow: none;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero__veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,40,32,0.35), rgba(20,40,32,0.45) 50%, rgba(20,40,32,0.55));
}
.hero__dots {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero__dots span {
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.45);
  animation: floatDot linear infinite;
}
@keyframes floatDot {
  0% { transform: translateY(20vh); opacity: 0; }
  15% { opacity: 0.6; }
  100% { transform: translateY(-30vh); opacity: 0; }
}
.hero__content { position: relative; z-index: 1; padding: 5rem 1.25rem 4rem; }
.hero__eyebrow {
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0 0 1rem;
  opacity: 0.9;
}
.hero__names {
  font-family: var(--font-script);
  font-size: clamp(3rem, 11vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}
.hero__amp { display: inline; margin: 0 0.15em; opacity: 0.9; }
.hero__date {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  opacity: 0.95;
}
.hero__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  max-width: 28ch;
  margin: 0 auto;
  opacity: 0.88;
}
.hero__scroll {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  z-index: 1; text-align: center;
  font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase;
  opacity: 0.85;
}
.hero__scroll i {
  display: block; width: 1px; height: 36px; margin: 0.5rem auto 0;
  background: rgba(255,255,255,0.7);
  animation: scrollPulse 1.6s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.6); opacity: 0.4; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 4.5rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
}
.section__eyebrow {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.section__title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4.5vw, 2.4rem);
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 1rem;
}
.section__title--light { color: #fff; }
.section__lead {
  text-align: center;
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 0 auto 2rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
}
.section__hint {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: -0.5rem 0 1.25rem;
}

/* STORY */
.story__list { display: flex; flex-direction: column; gap: 2.5rem; }
.story-card {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 720px) {
  .story-card {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .story-card:nth-child(even) .story-card__media { order: 2; }
}
.story-card__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--mint-deep);
  box-shadow: 0 12px 32px rgba(47, 62, 54, 0.1);
}
.story-card__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.story-card__meta {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.35rem;
}
.story-card__chapter {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--gold);
  margin: 0 0 0.35rem;
}
.story-card h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.story-card p { margin: 0; color: var(--ink-soft); }

/* COUNTDOWN */
.countdown {
  max-width: none;
  background: linear-gradient(135deg, #4a8a76, #5fa58f 50%, #6bb59d);
  color: #fff;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.countdown .section__eyebrow { color: rgba(255,255,255,0.85); }
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 560px;
  margin: 1.5rem auto 0;
  text-align: center;
}
.countdown__num {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
}
.countdown__label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* GALLERY */
.gallery__track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.gallery__track::-webkit-scrollbar { height: 6px; }
.gallery__track::-webkit-scrollbar-thumb {
  background: rgba(95,165,143,0.45); border-radius: 99px;
}
.gallery__item {
  flex: 0 0 min(72vw, 280px);
  scroll-snap-align: start;
  border: none; padding: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  cursor: zoom-in;
  background: var(--mint-deep);
}
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__item:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* EVENT */
.event__venues {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
  .event__venues { grid-template-columns: 1fr 1fr; }
}
.venue-card {
  text-align: center;
  background: var(--white);
  border: 1px solid rgba(95,165,143,0.2);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 8px 24px rgba(47,62,54,0.05);
}
.venue-card h3 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--teal-dark);
  margin: 0 0 0.5rem;
}
.venue-card__addr {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0.35rem 0 1rem;
}
.btn-link {
  display: inline-block;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.btn-link:hover { color: var(--teal-dark); }

.event__timeline-title {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0 0 1.25rem;
}
.timeline {
  list-style: none; margin: 0 0 2rem; padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute; left: 1.1rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px; background: rgba(95,165,143,0.3);
}
.timeline__item {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.85rem;
  padding: 0.75rem 0;
  align-items: start;
}
.timeline__dot {
  width: 14px; height: 14px; margin: 0.35rem auto 0;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(95,165,143,0.2);
  position: relative; z-index: 1;
}
.timeline__time {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0;
}
.timeline__date {
  font-size: 0.8rem;
  color: var(--teal);
  margin: 0.1rem 0 0.25rem;
}
.timeline__label { margin: 0; font-weight: 500; }
.timeline__note { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--mint-deep);
  box-shadow: 0 8px 24px rgba(47,62,54,0.06);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* WISHES — open guestbook book */
.guestbook {
  --paper: #f7f1e4;
  --paper-line: rgba(95, 165, 143, 0.12);
  --ink-pen: #3d4a42;
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 0.75rem;
  max-width: 860px;
}
.guestbook__book {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 420px;
  border-radius: 6px 10px 10px 6px;
  overflow: hidden;
  box-shadow:
    0 14px 40px rgba(47, 62, 54, 0.16),
    0 2px 0 rgba(255, 255, 255, 0.4) inset;
  background: #5c4030;
  perspective: 2200px;
}
.guestbook__book.is-flipping {
  pointer-events: none;
}

/* Tờ giấy lật 3D */
.guestbook__flip {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 6;
  transform-style: preserve-3d;
  visibility: hidden;
  pointer-events: none;
}
.guestbook__flip.is-active {
  visibility: visible;
}
.guestbook__flip--next {
  left: 50%;
  transform-origin: left center;
}
.guestbook__flip--prev {
  left: 0;
  transform-origin: right center;
}
.guestbook__flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      var(--paper-line) 27px,
      var(--paper-line) 28px
    ),
    linear-gradient(180deg, #fbf6eb 0%, var(--paper) 100%);
  padding: 1.35rem 1.15rem 1.5rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.guestbook__flip-face--front {
  transform: rotateY(0deg);
}
.guestbook__flip-face--back {
  transform: rotateY(180deg);
}
.guestbook__flip--next .guestbook__flip-face--front {
  box-shadow: inset 10px 0 18px rgba(0, 0, 0, 0.06);
  padding-left: 1.5rem;
}
.guestbook__flip--next .guestbook__flip-face--back {
  box-shadow: inset -10px 0 18px rgba(0, 0, 0, 0.06);
  padding-right: 1.5rem;
}
.guestbook__flip--prev .guestbook__flip-face--front {
  box-shadow: inset -10px 0 18px rgba(0, 0, 0, 0.06);
  padding-right: 1.5rem;
}
.guestbook__flip--prev .guestbook__flip-face--back {
  box-shadow: inset 10px 0 18px rgba(0, 0, 0, 0.06);
  padding-left: 1.5rem;
}

.guestbook__book.is-flip-next .guestbook__flip--next.is-active {
  animation: bookFlipNext 0.75s cubic-bezier(0.4, 0.05, 0.2, 1) forwards;
}
.guestbook__book.is-flip-prev .guestbook__flip--prev.is-active {
  animation: bookFlipPrev 0.75s cubic-bezier(0.4, 0.05, 0.2, 1) forwards;
}

@keyframes bookFlipNext {
  0% {
    transform: rotateY(0deg);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.28);
  }
  100% {
    transform: rotateY(-180deg);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
  }
}
@keyframes bookFlipPrev {
  0% {
    transform: rotateY(0deg);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);
  }
  50% {
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.28);
  }
  100% {
    transform: rotateY(180deg);
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .guestbook__book.is-flip-next .guestbook__flip--next.is-active,
  .guestbook__book.is-flip-prev .guestbook__flip--prev.is-active {
    animation-duration: 0.01ms !important;
  }
}
.guestbook__spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 18px;
  transform: translateX(-50%);
  z-index: 2;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.22),
    rgba(255, 255, 255, 0.08) 45%,
    rgba(0, 0, 0, 0.28)
  );
  pointer-events: none;
}
.guestbook__page {
  position: relative;
  background:
    repeating-linear-gradient(
      transparent,
      transparent 27px,
      var(--paper-line) 27px,
      var(--paper-line) 28px
    ),
    linear-gradient(180deg, #fbf6eb 0%, var(--paper) 100%);
  padding: 1.35rem 1.15rem 1.5rem;
  min-height: 420px;
}
.guestbook__page--left {
  padding-right: 1.5rem;
  box-shadow: inset -10px 0 18px rgba(0, 0, 0, 0.06);
}
.guestbook__page--right {
  padding-left: 1.5rem;
  box-shadow: inset 10px 0 18px rgba(0, 0, 0, 0.06);
}
.guestbook__empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2rem;
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.6;
}
.guestbook__entry {
  padding: 0.35rem 0 0.55rem;
  border-bottom: 1px dashed rgba(92, 64, 48, 0.15);
  margin-bottom: 0.35rem;
}
.guestbook__entry:last-child { border-bottom: none; margin-bottom: 0; }
.guestbook__entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.15rem;
}
.guestbook__entry-name {
  font-family: var(--font-script);
  font-size: 1.35rem;
  color: var(--teal-dark);
  margin: 0;
  line-height: 1.2;
}
.guestbook__entry-time {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  color: #8a7a68;
  white-space: nowrap;
  font-style: italic;
}
.guestbook__entry-msg {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--ink-pen);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guestbook__nav {
  flex-shrink: 0;
  align-self: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(95, 165, 143, 0.45);
  background: #fff;
  color: var(--teal-dark);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(47, 62, 54, 0.08);
}
.guestbook__nav:hover:not(:disabled) {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.guestbook__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.guestbook__nav[hidden] { visibility: hidden; }
.guestbook__folio {
  text-align: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}
.guestbook__folio[hidden] { display: none !important; }

@media (max-width: 700px) {
  .guestbook {
    flex-direction: column;
    align-items: center;
  }
  .guestbook__book {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .guestbook__spine { display: none; }
  .guestbook__page {
    min-height: 280px;
    padding: 1.1rem 1rem;
  }
  .guestbook__page--left,
  .guestbook__page--right {
    box-shadow: none;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .guestbook__page--right {
    border-top: 1px solid rgba(92, 64, 48, 0.12);
  }
  .guestbook__nav-row {
    display: flex;
    gap: 1rem;
  }
  .guestbook {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    grid-template-areas:
      "prev book next";
    align-items: center;
  }
  .guestbook__nav--prev { grid-area: prev; }
  .guestbook__nav--next { grid-area: next; }
  .guestbook__book { grid-area: book; }
}

.wishes__form {
  background: var(--mint);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.form-field { margin-bottom: 0.85rem; }
.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid rgba(95,165,143,0.35);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%;
  border: none; cursor: pointer;
  background: var(--teal); color: #fff;
  font-family: var(--font-sans); font-weight: 500; font-size: 1rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-primary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.form-status { margin: 0.75rem 0 0; font-size: 0.92rem; min-height: 1.35em; }
.form-status.is-ok { color: var(--teal-dark); }
.form-status.is-err { color: #8b2e2e; }

/* GIFT */
.gift__grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 560px) {
  .gift__grid { grid-template-columns: 1fr 1fr; }
}
.gift__card {
  text-align: center;
  background: #fff;
  border: 1px solid rgba(95,165,143,0.2);
  border-radius: var(--radius);
  padding: 1.35rem 1rem;
  box-shadow: 0 8px 24px rgba(47,62,54,0.05);
}
.gift__card h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.85rem;
  color: var(--ink);
}
.gift__card img {
  margin: 0 auto 0.85rem;
  width: 170px; height: 170px;
  border-radius: 10px;
  background: #fff;
  padding: 0.3rem;
}
.gift__role {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--teal-dark);
  margin: 0 0 0.25rem;
}
.gift__card p { margin: 0.15rem 0; font-size: 0.92rem; word-break: break-word; }

/* THANKS */
.thanks {
  text-align: center;
  padding: 4rem 1.25rem 5rem;
  background: var(--mint);
}
.thanks h2 {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 400;
  color: var(--teal-dark);
  margin: 0 0 1rem;
}
.thanks p {
  max-width: 40ch;
  margin: 0 auto 0.65rem;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 1.08rem;
}
.thanks__names {
  font-family: var(--font-script) !important;
  font-size: 1.85rem !important;
  color: var(--ink) !important;
  margin-top: 1.5rem !important;
}
.thanks__date {
  letter-spacing: 0.12em;
  font-size: 0.9rem !important;
}

/* LIGHTBOX */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 32, 28, 0.92);
  padding: 3rem 1rem 2.5rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox__figure { margin: 0; max-width: min(960px, 100%); text-align: center; }
.lightbox__figure img {
  max-width: 100%; max-height: calc(100vh - 7rem);
  width: auto; height: auto; object-fit: contain;
  border-radius: 6px; margin: 0 auto;
}
.lightbox__caption {
  color: rgba(255,255,255,0.9);
  margin-top: 0.75rem;
  font-family: var(--font-serif);
}
.lightbox__counter {
  position: absolute; bottom: 0.85rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 0.9rem; margin: 0;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff; cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__close { top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.75rem; }
.lightbox__nav {
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; font-size: 2rem;
}
.lightbox__nav--prev { left: 0.75rem; }
.lightbox__nav--next { right: 0.75rem; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cover__inner, .hero__scroll i, .hero__dots span, .gallery__item img, .reveal {
    animation: none !important; transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}
