/* ============================================================
   Amy & Vlad — wedding site
   Palette: warm ivory, sage, dusty rose, deep charcoal
   ============================================================ */

:root {
  --ivory: #fbf6ed;
  --ivory-2: #f4ead9;
  --cream: #fdfaf3;
  --peach: #f6dcc2;
  --peach-soft: #fbe8d4;
  --blush: #f5d3cf;

  --sage: #95a983;
  --sage-deep: #5e7250;
  --leaf: #7a9165;

  --rose: #e89a96;
  --rose-soft: #f0b6b2;
  --rose-deep: #c47471;

  --gold: #d4a554;
  --gold-soft: #e8c887;
  --sky: #b8d4d8;

  --ink: #2b2a26;
  --ink-soft: #5a584f;
  --line: rgba(94, 114, 80, 0.22);

  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Pinyon Script", "Apple Chancery", cursive;

  --container: 1100px;
  --container-narrow: 680px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(244, 212, 184, 0.45), transparent 70%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(232, 154, 150, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 60% at 0% 80%, rgba(149, 169, 131, 0.18), transparent 70%),
    var(--ivory);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: var(--sage-deep);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color .2s var(--ease);
}
a:hover { color: var(--rose-deep); }

img { max-width: 100%; display: block; }

/* ------------ Background cherry-blossom branches ------------ */
.bg-branch {
  position: fixed;
  width: 46vmin;
  height: 46vmin;
  pointer-events: none;
  z-index: 0;
  opacity: .8;
  filter: drop-shadow(0 4px 12px rgba(196, 116, 113, 0.10));
}
.bg-branch--tl { top: -4vmin; left: -6vmin; }
.bg-branch--br { bottom: -4vmin; right: -6vmin; transform: rotate(180deg); }


/* ------------ Layout helpers ------------ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding: 110px 0;
  position: relative;
  z-index: 1;
}
.section--story {
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(246, 220, 194, 0.5), transparent 70%),
    linear-gradient(180deg, var(--cream), var(--ivory));
}
.section--schedule {
  background:
    radial-gradient(circle at 15% 30%, rgba(232, 154, 150, 0.10), transparent 50%),
    radial-gradient(circle at 85% 70%, rgba(149, 169, 131, 0.12), transparent 50%),
    var(--ivory);
}
.section--details {
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(212, 165, 84, 0.10), transparent 70%),
    var(--cream);
}
.section--rsvp {
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(232, 154, 150, 0.18), transparent 70%),
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(212, 165, 84, 0.12), transparent 60%),
    var(--ivory-2);
}

.section__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: .02em;
  text-align: center;
  margin: 0 0 .35em;
}
.section__subtitle {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 3rem;
  font-size: 1.05rem;
}

.ornament {
  text-align: center;
  color: var(--sage);
  font-size: 1.2rem;
  letter-spacing: 1.5em;
  margin: 0 0 1.5rem 1.5em; /* offset for the letter-spacing visual centering */
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 28px;
  position: relative;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(232, 200, 135, 0.45), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 100%, rgba(240, 182, 178, 0.40), transparent 70%),
    radial-gradient(circle at 20% 30%, rgba(149, 169, 131, 0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212, 165, 84, 0.18), transparent 40%),
    linear-gradient(160deg, #fdf5e8 0%, #fbeede 40%, #fde6d9 100%);
  overflow: hidden;
}

/* Soft sun-ray glow behind the monogram */
.hero::before {
  content: "";
  position: absolute;
  top: 18%;
  left: 50%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(232, 200, 135, 0.55) 0%, rgba(232, 200, 135, 0.18) 35%, transparent 65%);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
  animation: glow 6s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { opacity: .85; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.05); }
}
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
}

/* ===== Cultural corner decorations in the hero ===== */
.hero-culture {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: .7;
  filter: drop-shadow(0 4px 12px rgba(94, 60, 50, 0.10));
}
.hero-culture--tl {
  top: 20px;
  left: 30px;
  width: clamp(140px, 18vw, 240px);
  height: auto;
}
.hero-culture--tr {
  top: 30px;
  right: 30px;
  width: clamp(150px, 20vw, 260px);
  height: auto;
  animation: sun-slow-rotate 80s linear infinite;
  transform-origin: center;
}
.hero-culture--bl {
  bottom: 30px;
  left: 20px;
  width: clamp(160px, 22vw, 300px);
  height: auto;
  opacity: .75;
}
.hero-culture--br {
  bottom: 20px;
  right: 20px;
  width: clamp(180px, 24vw, 320px);
  height: auto;
  opacity: .7;
}

@keyframes sun-slow-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  /* Tuck decorations to edges on tablet/mobile so they don't crowd content */
  .hero-culture {
    opacity: .45;
  }
  .hero-culture--tl, .hero-culture--tr {
    top: 10px;
    width: 120px;
  }
  .hero-culture--bl, .hero-culture--br {
    bottom: 10px;
    width: 140px;
  }
}

@media (max-width: 560px) {
  .hero-culture {
    opacity: .35;
  }
  .hero-culture--tl, .hero-culture--tr {
    width: 80px;
  }
  .hero-culture--bl, .hero-culture--br {
    width: 100px;
  }
}

.hero__text {
  text-align: center;
  animation: rise 1.1s var(--ease) both;
}

.monogram {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 16px rgba(212, 165, 84, 0.35));
}

/* ----- Hero photo ----- */
.hero__photo {
  margin: 0;
  animation: rise 1.3s var(--ease) .2s both;
}
.hero__photo-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: visible;
  background: linear-gradient(160deg, var(--peach-soft), var(--blush));
  box-shadow:
    0 30px 60px -28px rgba(94, 60, 50, 0.35),
    0 8px 24px -14px rgba(196, 116, 113, 0.30);
}
.hero__photo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;  /* favour faces in the upper portion */
  border-radius: 4px;
  /* warm-film treatment to harmonize with the palette */
  filter: saturate(0.94) brightness(1.02) contrast(1.02);
  transition: transform 1.2s var(--ease);
}
.hero__photo-frame:hover .hero__photo-img {
  transform: scale(1.02);
}
/* subtle inner gold border line */
.hero__photo-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 165, 84, 0.5);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}
/* warm vignette overlay */
.hero__photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(246, 220, 194, 0.25) 100%),
    linear-gradient(180deg, transparent 70%, rgba(196, 116, 113, 0.12) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 4px;
  mix-blend-mode: multiply;
}

.hero__photo-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  line-height: 1.8;
}
.hero__photo-placeholder code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(94, 114, 80, 0.1);
  padding: 4px 8px;
  border-radius: 2px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--sage-deep);
  font-size: .85rem;
}
.hero__photo-frame.is-missing .hero__photo-placeholder {
  display: flex;
}

/* corner blossom accents on the photo frame */
.photo-corner {
  position: absolute;
  width: 80px;
  height: 80px;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(196, 116, 113, 0.25));
}
.photo-corner--tl { top: -28px; left: -28px; }
.photo-corner--br { bottom: -28px; right: -28px; }
.hero__eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}
.hero__names {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.6rem, 12vw, 8rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.4rem, 2vw, 1.2rem);
  flex-wrap: wrap;
}
.hero__name { font-style: italic; }
.hero__amp {
  font-family: var(--script);
  font-style: normal;
  font-size: 1.05em;
  background: linear-gradient(135deg, var(--gold) 0%, var(--rose-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
  line-height: .9;
  transform: translateY(.05em);
}
.hero__tagline {
  font-style: italic;
  color: var(--ink-soft);
  margin: 1.2rem 0 3rem;
  font-size: 1.15rem;
  letter-spacing: .02em;
}

.hero__meta {
  display: inline-flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: 1.5rem 0 2.75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 3rem;
}
.meta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
}
.meta-block__label {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.meta-block__value {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.55rem);
  font-style: italic;
  color: var(--ink);
  margin: .1rem 0;
}
.meta-divider {
  width: 1px;
  align-self: stretch;
  background: var(--line);
}

.hero__cta {
  margin-top: .5rem;
}

/* ============================================================
   AMBIENT CULTURAL MOTIFS (scattered, low-opacity, in the bg)
   ============================================================ */
.bg-culture {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.bg-culture__item {
  position: absolute;
  opacity: .28;
  filter: blur(0.3px);
}
/* The big artsy versions live in the hero now; these are subtle ambient
   accents scattered through later sections so the page stays themed as
   you scroll. */
.bg-culture__corcovado { display: none; }  /* lives in hero now */
.bg-culture__sun { display: none; }         /* lives in hero now */
.bg-culture__maple {
  width: 80px;
  height: 80px;
  top: 2400px;
  right: 30px;
  opacity: .25;
  animation: bg-leaf-drift 8s ease-in-out infinite;
}
.bg-culture__fan {
  width: 130px;
  height: 95px;
  top: 1900px;
  left: 15px;
  opacity: .20;
}
.bg-culture__palm {
  width: 90px;
  height: 200px;
  top: 1300px;
  right: -10px;
  opacity: .22;
}
.bg-culture__mountains { display: none; }   /* covered by hero now */

@keyframes bg-sun-rotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes bg-leaf-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50%      { transform: translate(-8px, 4px) rotate(8deg); }
}

@media (max-width: 720px) {
  .bg-culture__corcovado { width: 80px; height: 110px; right: 10px; }
  .bg-culture__sun       { width: 90px; height: 90px; }
  .bg-culture__maple     { width: 70px; height: 70px; right: 15px; }
  .bg-culture__fan       { width: 100px; height: 75px; left: 10px; }
  .bg-culture__palm      { width: 70px; height: 170px; }
}
.hero__scroll {
  font-family: var(--sans);
  margin-top: 3.5rem;
  color: var(--ink-soft);
  font-size: 1.2rem;
  animation: drift 2.4s ease-in-out infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  0%, 100% { transform: translateY(0); opacity: .55; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ============================================================
   STORY
   ============================================================ */
.story-photo {
  margin: 0 auto 3rem;
  max-width: 380px;
}
.story-photo__frame {
  position: relative;
  aspect-ratio: 1106 / 1500;  /* matches the Chongqing selfie */
  border-radius: 4px;
  overflow: visible;
  box-shadow:
    0 28px 50px -28px rgba(94, 60, 50, 0.35),
    0 6px 18px -10px rgba(196, 116, 113, 0.25);
}
.story-photo__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(0.92) brightness(1.02) contrast(1.02);
}
.story-photo__frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 165, 84, 0.55);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}
.story-photo__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(246, 220, 194, 0.30) 100%);
  pointer-events: none;
  z-index: 1;
  border-radius: 4px;
  mix-blend-mode: multiply;
}

.story__lead {
  text-align: center;
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  font-weight: 300;
  margin: 0 0 2rem;
}
.story__signature {
  text-align: center;
  font-family: var(--script);
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--sage-deep) 0%, var(--rose-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  line-height: 1;
}

/* ============================================================
   SCHEDULE
   ============================================================ */
.schedule {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 2rem;
}
.schedule__card {
  background: linear-gradient(160deg, #fdfaf3 0%, #fbf3e6 100%);
  border: 1px solid var(--line);
  padding: 2.75rem 2rem;
  text-align: center;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.schedule__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sage), var(--gold), var(--rose));
  opacity: .55;
}
.schedule__card--accent {
  background: linear-gradient(160deg, #fdf3e8 0%, #fbe4d4 100%);
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -28px rgba(196, 116, 113, 0.35);
}
.schedule__card--accent::before { opacity: .9; height: 4px; }
.schedule__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px -22px rgba(94, 114, 80, 0.30);
}
.schedule__card--accent:hover {
  transform: translateY(-14px);
}
.schedule__time {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: .02em;
  color: var(--rose-deep);
  margin: 0 0 .75rem;
}
.schedule__title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: 2.2rem;
  margin: 0 0 .25rem;
}
.schedule__venue {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 .35rem;
}
.schedule__address {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--sage-deep);
  margin: 0 0 1.1rem;
}

/* ---- When & where banner ----------------------------------- */
.venue-banner {
  background: var(--sage-deep);
  color: var(--ivory);
  text-align: center;
  padding: 3rem 1.5rem 2.75rem;
}
.venue-banner__label {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 .4rem;
}
.venue-banner__time {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
}
.venue-banner__place {
  display: block;
  color: inherit;
  text-decoration: none;
  margin: 0 0 1.4rem;
}
.venue-banner__venue {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: .02em;
  margin-bottom: .3rem;
}
.venue-banner__address {
  display: block;
  font-family: var(--sans);
  font-size: clamp(.9rem, 2vw, 1.05rem);
  letter-spacing: .06em;
  text-decoration: underline;
  text-decoration-color: rgba(251, 246, 237, .45);
  text-underline-offset: 4px;
}
.venue-banner__place:hover .venue-banner__address {
  text-decoration-color: var(--ivory);
}
.venue-banner__dinner {
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .04em;
  color: rgba(251, 246, 237, .85);
  margin: 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(251, 246, 237, .25);
  display: inline-block;
}
.venue-banner__dinner a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(251, 246, 237, .45);
  text-underline-offset: 3px;
}
.venue-banner__dinner a:hover {
  text-decoration-color: var(--ivory);
}
.schedule__detail {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.5rem;
}
.schedule__map {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  border-bottom: none;
  color: var(--sage-deep);
}
.schedule__map:hover { color: var(--rose-deep); }

/* ============================================================
   DETAILS
   ============================================================ */
.details { margin: 0; }
.details__row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.details__row:last-child { border-bottom: none; }
.details__row dt {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--sage-deep);
  padding-top: .25rem;
}
.details__row dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.field { display: flex; flex-direction: column; }
.field label,
.field legend {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 .65rem;
}
.field__optional { text-transform: none; letter-spacing: .05em; font-style: italic; }
.field__hint {
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--ink-soft);
  margin: .5rem 0 0;
  font-style: italic;
}
.field input,
.field textarea {
  font-family: var(--serif);
  font-size: 1.1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: .65rem .25rem;
  color: var(--ink);
  outline: none;
  transition: border-color .25s var(--ease);
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--sage-deep);
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}

.field--radio { border: none; padding: 0; margin: 0; }
.field--radio legend { padding: 0; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-right: 1.8rem;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
}
.radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--sage-deep);
  border-radius: 50%;
  margin: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.radio input::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage-deep);
  transform: scale(0);
  transition: transform .2s var(--ease);
}
.radio input:checked::after { transform: scale(1); }

.rsvp__error {
  color: var(--rose-deep);
  font-family: var(--sans);
  font-size: .9rem;
  margin: 0;
}
.rsvp__submit {
  justify-self: center;
  margin-top: 1rem;
}

/* ------------ Buttons ------------ */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  padding: 1.05rem 2.6rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.btn:hover {
  background: var(--ink);
  color: var(--ivory);
  transform: translateY(-1px);
}
.btn--solid {
  background: var(--ink);
  color: var(--ivory);
}
.btn--solid:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--ivory);
}
.btn--ghost {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--ivory);
}

/* ------------ Success state ------------ */
.rsvp-success {
  text-align: center;
  margin-top: 2.5rem;
  animation: rise .8s var(--ease) both;
}
.rsvp-success__title {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin: 0 0 1rem;
}
.rsvp-success__body {
  max-width: 520px;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.rsvp-success__email {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: 3rem 28px 4rem;
  font-family: var(--sans);
  font-size: .82rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--ivory);
  position: relative;
  z-index: 1;
}
.footer__small {
  margin-top: .8rem;
  letter-spacing: .15em;
  text-transform: none;
  font-size: .85rem;
}
.footer__love {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--ink-soft);
  margin: 1.2rem 0 0;
}
.footer__love span {
  font-style: normal;
  font-family: var(--script);
  font-size: 1.5rem;
  background: linear-gradient(135deg, var(--sage-deep) 0%, var(--rose-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 .1rem;
}

/* Maple leaves bob gently in the water */
.maple-leaf {
  transform-origin: center;
  animation: leaf-bob 6s ease-in-out infinite;
}
.maple-leaf:nth-of-type(2) { animation-duration: 7s; animation-delay: -2s; }
.maple-leaf:nth-of-type(3) { animation-duration: 8s; animation-delay: -4s; }
@keyframes leaf-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* Argentinean Sun of May gentle glow */
.sun-of-may {
  transform-origin: center;
  animation: sun-pulse 4s ease-in-out infinite;
}
@keyframes sun-pulse {
  0%, 100% { opacity: .75; }
  50%      { opacity: .95; }
}

/* Southern Cross twinkle */
.southern-cross polygon {
  animation: twinkle 3s ease-in-out infinite;
}
.southern-cross polygon:nth-child(2) { animation-delay: -.6s; }
.southern-cross polygon:nth-child(3) { animation-delay: -1.2s; }
.southern-cross polygon:nth-child(4) { animation-delay: -1.8s; }
.southern-cross polygon:nth-child(5) { animation-delay: -2.4s; }
@keyframes twinkle {
  0%, 100% { opacity: .9; }
  50%      { opacity: .4; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .schedule__card--accent { transform: none; }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero__photo { order: -1; }
  .hero__photo-frame { max-width: 360px; }
}

@media (max-width: 720px) {
  body { font-size: 17px; }

  .section { padding: 80px 0; }

  .hero { min-height: auto; padding: 50px 20px 70px; }
  .hero__photo-frame { max-width: 320px; }
  .photo-corner { width: 60px; height: 60px; }
  .photo-corner--tl { top: -20px; left: -20px; }
  .photo-corner--br { bottom: -20px; right: -20px; }
  .hero__meta {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 0 2rem;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
  }
  .meta-divider {
    width: 60px;
    height: 1px;
  }

  .schedule {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .schedule__card { padding: 2.25rem 1.75rem; }
  .schedule__card--accent { transform: none; }
  .schedule__card--accent:hover { transform: translateY(-6px); }
  .schedule__title { font-size: 1.85rem; }

  .details__row {
    grid-template-columns: 1fr;
    gap: .35rem;
    padding: 1.25rem 0;
  }

  .container, .container--narrow { padding: 0 22px; }

  .radio { margin-right: 1rem; }

  .bg-branch { width: 60vmin; height: 60vmin; opacity: .4; }
  .monogram { width: 70px; height: 70px; margin-bottom: 1.5rem; }
  .couple { width: 220px; margin-bottom: 2rem; }

  .ornament { letter-spacing: 1em; margin-left: 1em; }
}

@media (max-width: 380px) {
  .hero__names { gap: .25rem; }
  .btn { padding: .95rem 1.8rem; font-size: .72rem; }
}

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

/* ============================================================
   FALLING SAKURA PETALS (site-wide)
   ============================================================ */
.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.petal {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 16px;
  background: radial-gradient(ellipse at 30% 30%, #f4c7c3 0%, #e89a96 60%, #c47471 100%);
  border-radius: 70% 30% 70% 30% / 50% 50% 50% 50%;
  opacity: .75;
  filter: drop-shadow(0 2px 3px rgba(196, 116, 113, 0.2));
  animation: petal-fall linear infinite;
}
.petal:nth-child(1)  { left:  5%; animation-duration: 14s; animation-delay: -1s;  transform: scale(1); }
.petal:nth-child(2)  { left: 12%; animation-duration: 18s; animation-delay: -5s;  transform: scale(0.7); opacity: .55; }
.petal:nth-child(3)  { left: 22%; animation-duration: 12s; animation-delay: -8s;  transform: scale(0.9); }
.petal:nth-child(4)  { left: 32%; animation-duration: 16s; animation-delay: -3s;  transform: scale(0.6); opacity: .5; }
.petal:nth-child(5)  { left: 42%; animation-duration: 20s; animation-delay: -11s; transform: scale(1.1); }
.petal:nth-child(6)  { left: 52%; animation-duration: 13s; animation-delay: -6s;  transform: scale(0.8); }
.petal:nth-child(7)  { left: 62%; animation-duration: 17s; animation-delay: -2s;  transform: scale(0.7); opacity: .6; }
.petal:nth-child(8)  { left: 72%; animation-duration: 15s; animation-delay: -9s;  transform: scale(1);   }
.petal:nth-child(9)  { left: 82%; animation-duration: 19s; animation-delay: -4s;  transform: scale(0.8); opacity: .55; }
.petal:nth-child(10) { left: 90%; animation-duration: 14s; animation-delay: -7s;  transform: scale(0.9); }
.petal:nth-child(11) { left: 28%; animation-duration: 22s; animation-delay: -13s; transform: scale(0.6); opacity: .45; }
.petal:nth-child(12) { left: 67%; animation-duration: 21s; animation-delay: -10s; transform: scale(1.1); opacity: .65; }

@keyframes petal-fall {
  0%   { transform: translate(0, -20px) rotate(0deg); }
  25%  { transform: translate(-30px, 25vh) rotate(90deg); }
  50%  { transform: translate(20px, 50vh) rotate(180deg); }
  75%  { transform: translate(-20px, 75vh) rotate(270deg); }
  100% { transform: translate(0, 105vh) rotate(360deg); }
}

/* ============================================================
   NITOBE GARDEN BAND
   ============================================================ */
.garden {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--cream) 100%);
  text-align: center;
}

/* Hanging Chinese lanterns above the garden */
.lanterns {
  width: 100%;
  height: 90px;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: linear-gradient(180deg, var(--ivory) 0%, rgba(253, 230, 217, 0.6) 100%);
}
.lanterns svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(161, 58, 44, 0.25));
}
.lantern {
  transform-origin: 0 0;
  animation: lantern-sway 4s ease-in-out infinite;
}
.lantern[style*="--i:1"], .lantern[style*="--i:3"], .lantern[style*="--i:5"] {
  animation-direction: reverse;
  animation-duration: 5s;
}
@keyframes lantern-sway {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}
.garden__scene {
  display: block;
  width: 100%;
  height: clamp(220px, 32vw, 340px);
  border-top: 1px solid rgba(94, 114, 80, 0.12);
  border-bottom: 1px solid rgba(94, 114, 80, 0.12);
}
.garden__caption {
  font-family: var(--script);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  background: linear-gradient(135deg, var(--sage-deep) 0%, var(--rose-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 1.5rem 0 2rem;
  line-height: 1;
}
.garden__caption span {
  font-family: var(--serif);
  color: var(--ink-soft);
  -webkit-text-fill-color: var(--ink-soft);
  margin: 0 .8rem;
  font-size: .8em;
  opacity: .55;
}

/* Animate the koi swimming */
.koi {
  animation: koi-swim 18s linear infinite;
}
.koi--1 { animation-delay: -2s; }
.koi--2 { animation: koi-swim-2 22s linear infinite; animation-delay: -7s; }

@keyframes koi-swim {
  0%   { transform: translate(-30px, 235px) rotate(0deg); }
  25%  { transform: translate(350px, 250px) rotate(8deg); }
  50%  { transform: translate(700px, 240px) rotate(0deg); }
  75%  { transform: translate(950px, 255px) rotate(-8deg); }
  100% { transform: translate(1240px, 240px) rotate(0deg); }
}
@keyframes koi-swim-2 {
  0%   { transform: translate(1230px, 245px) rotate(180deg); }
  50%  { transform: translate(600px, 255px) rotate(192deg); }
  100% { transform: translate(-30px, 248px) rotate(180deg); }
}

/* ============================================================
   GAME — flappy pittie
   ============================================================ */
.section--game {
  background:
    radial-gradient(ellipse 60% 60% at 50% 100%, rgba(212, 165, 84, 0.12), transparent 70%),
    var(--cream);
  text-align: center;
}
.game__hint {
  display: block;
  margin-top: .5rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.game__hint kbd {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  background: rgba(94, 114, 80, 0.12);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: .8rem;
  color: var(--ink);
  text-transform: none;
}

.game-wrap {
  position: relative;
  width: 360px;
  max-width: 100%;
  margin: 2.5rem auto 0;
  aspect-ratio: 360 / 520;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -28px rgba(94, 60, 50, 0.4),
    0 8px 24px -14px rgba(196, 116, 113, 0.30);
  border: 2px solid rgba(212, 165, 84, 0.5);
}
#flappyCanvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
  cursor: pointer;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(43, 42, 38, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity .3s var(--ease);
  cursor: pointer;
  z-index: 2;
}
.game-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.game-overlay__inner {
  text-align: center;
  color: #fff;
  animation: rise .5s var(--ease);
  padding: 1.5rem 2rem;
}
.game-overlay__title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  margin: 0 0 .5rem;
}
.game-overlay__sub {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin: 0;
  opacity: .9;
}

/* End-of-game celebration banner */
.game-overlay__inner--end {
  animation: end-rise .6s var(--ease);
  max-width: 320px;
}
.game-overlay__inner--end .game-overlay__title {
  font-size: 2.6rem;
  font-style: italic;
  margin: 0 0 .6rem;
  letter-spacing: -.01em;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.game-overlay__inner--end.is-win .game-overlay__title {
  background: linear-gradient(135deg, #ffe88a 0%, #d4a554 50%, #f0b6b2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(212, 165, 84, 0.5));
  font-size: 3rem;
}
.game-overlay__kicker {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .4em;
  text-transform: uppercase;
  color: #d4a554;
  margin: 0 0 .8rem;
  opacity: .95;
}
.is-win .game-overlay__kicker {
  color: #ffd86a;
}
.game-overlay__score {
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  opacity: .85;
}
.game-overlay__score strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
}
.game-overlay__msg {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  margin: 0 0 1.4rem;
  opacity: .95;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}
.game-overlay__cta {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  margin: 0;
  padding: .65rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  display: inline-block;
  transition: all .2s var(--ease);
}
.game-overlay:hover .game-overlay__cta {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.85);
}
.game-overlay__ribbon {
  display: block;
  width: 220px;
  height: 28px;
  margin: 1.2rem auto 0;
  filter: drop-shadow(0 4px 8px rgba(212, 165, 84, 0.5));
  animation: ribbon-pop .6s var(--ease) .3s both;
}

@keyframes end-rise {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ribbon-pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

.game-score {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  z-index: 1;
  pointer-events: none;
}
.game-score__value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.game-score__best {
  font-size: .7rem;
}

/* ============================================================
   GARDEN MAZE
   ============================================================ */
.section--maze {
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(149, 169, 131, 0.18), transparent 70%),
    var(--cream);
  text-align: center;
}
.maze-wrap {
  position: relative;
  width: 360px;
  max-width: 100%;
  margin: 2.5rem auto 0;
  aspect-ratio: 360 / 504;
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -28px rgba(94, 60, 50, 0.4),
    0 8px 24px -14px rgba(94, 114, 80, 0.32);
  border: 2px solid rgba(149, 169, 131, 0.55);
}
#mazeCanvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
  cursor: pointer;
}

.maze-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  z-index: 1;
  pointer-events: none;
}
.maze-hud__value {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  letter-spacing: 0;
  text-transform: none;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.maze-hud__best {
  font-size: .7rem;
}

/* On-screen d-pad for touch (and a fallback for desktop) */
.maze-dpad {
  display: grid;
  grid-template-columns: repeat(3, 56px);
  grid-template-rows: repeat(2, 56px);
  gap: 6px;
  justify-content: center;
  margin: 1.4rem auto 0;
  max-width: 100%;
}
.maze-dpad__btn {
  appearance: none;
  border: 1px solid rgba(149, 169, 131, 0.55);
  background: rgba(255, 255, 255, 0.6);
  color: var(--sage-deep);
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform .08s var(--ease), background .15s var(--ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: manipulation;
}
.maze-dpad__btn:hover {
  background: rgba(149, 169, 131, 0.18);
}
.maze-dpad__btn:active {
  transform: scale(0.94);
  background: rgba(149, 169, 131, 0.30);
}
.maze-dpad__btn--up    { grid-column: 2; grid-row: 1; }
.maze-dpad__btn--left  { grid-column: 1; grid-row: 2; }
.maze-dpad__btn--down  { grid-column: 2; grid-row: 2; }
.maze-dpad__btn--right { grid-column: 3; grid-row: 2; }

/* ============================================================
   RSVP CTA + MODAL
   ============================================================ */
.rsvp-cta {
  margin-top: 2.5rem;
  text-align: center;
}
.rsvp-cta .btn { min-width: 220px; }

.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.rsvp-modal[hidden] { display: none; }

.rsvp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 42, 38, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: rsvp-fade .25s var(--ease);
}
.rsvp-modal__card {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  background: var(--ivory, #fffaf0);
  border-radius: 10px;
  padding: 2.5rem 2rem 2rem;
  box-shadow:
    0 40px 80px -20px rgba(43, 42, 38, 0.55),
    0 12px 28px -10px rgba(94, 60, 50, 0.35);
  animation: rsvp-pop .3s var(--ease);
}
.rsvp-modal__close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  padding: .25rem .55rem;
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.rsvp-modal__close:hover {
  background: rgba(43, 42, 38, 0.08);
  color: var(--ink);
}
.rsvp-modal__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: .02em;
  text-align: center;
  margin: 0 0 .35em;
}
.rsvp-modal__subtitle {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
  font-size: 1rem;
}

@keyframes rsvp-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes rsvp-pop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Body scroll lock when modal is open */
body.rsvp-modal-open { overflow: hidden; }

/* ---- Readable form overrides inside the modal ---- */
.rsvp--modal { gap: 1.25rem; margin-top: 0; }

.rsvp--modal .field label,
.rsvp--modal .field legend {
  font-family: var(--sans);
  font-size: .95rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 .5rem;
}
.rsvp--modal .field input,
.rsvp--modal .field textarea {
  font-family: var(--sans);
  font-size: 1.05rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .75rem .9rem;
  color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.rsvp--modal .field input:focus,
.rsvp--modal .field textarea:focus {
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(94, 114, 80, 0.18);
}
.rsvp--modal .field__hint {
  font-size: .85rem;
  font-style: normal;
  color: var(--ink-soft);
  margin: .4rem 0 0;
}
.rsvp--modal .radio {
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  padding: .35rem 0;
}
.rsvp--modal .rsvp__error {
  font-size: 1rem;
  background: rgba(196, 77, 60, 0.08);
  border-left: 3px solid var(--rose-deep, #c44d3c);
  padding: .65rem .85rem;
  border-radius: 4px;
}
.rsvp--modal .rsvp__submit {
  width: 100%;
  margin-top: .5rem;
  letter-spacing: .2em;
  padding: 1rem 1.5rem;
}

/* Success state inside the modal */
.rsvp-modal__card .rsvp-success { margin-top: 0; }
.rsvp-modal__card .rsvp-success__body {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}


/* ============================================================
   Language toggle
   ============================================================ */
.lang-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 60;
  display: flex;
  gap: 2px;
  background: rgba(251, 246, 237, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  backdrop-filter: blur(6px);
}
.lang-toggle button {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .08em;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  padding: .35rem .7rem;
  border-radius: 999px;
  cursor: pointer;
}
.lang-toggle button.is-active {
  background: var(--sage-deep);
  color: var(--ivory);
}

/* ============================================================
   Hero countdown
   ============================================================ */
.hero__countdown {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--rose-deep);
  letter-spacing: .04em;
  margin: .4rem 0 0;
}

/* ============================================================
   Maze leaderboard
   ============================================================ */
.maze-board {
  max-width: 420px;
  margin: 2.5rem auto 0;
  text-align: center;
}
.maze-board__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 0 0 .2rem;
}
.maze-board__hint {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.maze-board__list {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  counter-reset: rank;
}
.maze-board__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .45rem .2rem;
  border-bottom: 1px solid var(--line);
  counter-increment: rank;
}
.maze-board__list li::before {
  content: counter(rank) ".";
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  min-width: 1.4rem;
  text-align: right;
}
.maze-board__name {
  flex: 1;
  text-align: left;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.maze-board__score {
  font-family: var(--sans);
  font-size: .8rem;
  color: var(--sage-deep);
  white-space: nowrap;
}
.maze-board__form {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}
.maze-board__form input {
  font-family: var(--sans);
  font-size: .9rem;
  padding: .6rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  flex: 1 1 140px;
}
.maze-board__status {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--sage-deep);
  min-height: 1.2em;
  margin: .6rem 0 0;
}

/* ============================================================
   Photo wall page
   ============================================================ */
.photos-page {
  background: var(--ivory);
  min-height: 100vh;
}
.photos-hero {
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
}
.photos-hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  margin: 0 0 .4rem;
  color: var(--ink);
}
.photos-hero__sub {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0 0 1rem;
}
.photos-hero__back {
  font-family: var(--sans);
  font-size: .8rem;
  letter-spacing: .06em;
}
.photos-hero__back a { color: var(--sage-deep); text-decoration: none; }
.photos-hero__back a:hover { text-decoration: underline; }
.photos-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}
.photos-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.8rem 1.6rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  text-align: center;
}
.photos-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  margin: 0 0 .35rem;
}
.photos-card__hint {
  font-family: var(--sans);
  font-size: .85rem;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
  line-height: 1.6;
}
.photos-card form,
.photos-upload__row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}
.photos-card input[type="text"] {
  font-family: var(--sans);
  font-size: .95rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  flex: 1 1 180px;
}
.photos-upload__btn { cursor: pointer; }
.photos-progress {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  font-family: var(--sans);
  font-size: .82rem;
  color: var(--ink-soft);
  text-align: left;
}
.photos-progress li { padding: .2rem 0; }
.photos-card--admin {
  background: #fdf3df;
  font-family: var(--sans);
  font-size: .85rem;
}
.photos-card--admin p { margin: 0; }
.photos-grid {
  columns: 3 240px;
  column-gap: .9rem;
  margin-top: 2rem;
}
.photos-grid__item {
  break-inside: avoid;
  margin: 0 0 .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: .45rem .45rem .35rem;
  box-shadow: 0 2px 8px rgba(43, 42, 38, 0.06);
}
.photos-grid__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.photos-grid__item figcaption {
  font-family: var(--serif);
  font-style: italic;
  font-size: .85rem;
  color: var(--ink-soft);
  padding: .35rem .15rem 0;
  text-align: center;
}

/* ---- Invitation PDF download under the RSVP button ---------- */
.rsvp-cta__download {
  margin: 1.4rem 0 0;
  text-align: center;
}
.rsvp-cta__download a {
  font-family: var(--sans);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.rsvp-cta__download a:hover {
  color: var(--rose-deep);
  border-color: var(--rose-deep);
}
.rsvp-cta__download--hero {
  margin-top: 1rem;
}
.rsvp-cta__download--hero a {
  font-size: .72rem;
}
