/* =============================================================================
   Sahni Family — 75th Birthday
   Theme layer on top of Bootstrap 5.3.
   Palette and type carried over from the sahnifam.com launch page.
   ========================================================================== */

:root {
  /* Warm ivory page. Chosen over white so the gold keeps its glow — gold on
     pure white goes grey and washed out. */
  --bg-0: #faf7f0;
  --bg-1: #f5f0e5;
  --bg-2: #ffffff;

  /* Decorative gold, for fills and rules. Too pale to read as text on ivory. */
  --gold: #c9a05a;
  --gold-soft: #dcbd85;

  /* Gold for TEXT. Darkened until it passes contrast against the ivory page:
     #8a6a35 on #faf7f0 is 5.2:1 — comfortably over the 4.5:1 minimum. */
  --gold-ink: #8a6a35;
  --gold-deep: #6f5426;

  /* Warm ink rather than pure black — softer to read at length. 13.4:1. */
  --text: #2c2620;
  --muted: #6b6259;          /* 6.1:1  — fine for secondary copy */
  --faint: #797066;          /* 4.9:1  — still passes for small print */

  --accent: #5a4bc4;
  --accent-2: #c2557d;

  --line: rgba(44, 38, 32, .12);
  --line-gold: rgba(138, 106, 53, .28);
  --glass: #ffffff;
  --glass-2: #fffdf8;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(90, 74, 48, .13);
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* Type scale — sized for readers who would rather not reach for glasses. */
  --fs-body: 1.1875rem;      /* 19px */
  --fs-memoir: 1.25rem;      /* 20px */
  --fs-label: 1.0625rem;     /* 17px */
  --fs-hint: .875rem;        /* 14px */
  --fs-nav: .9375rem;        /* 15px */
}

/* ---------------------------------------------------------------- base ---- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--sans);
  font-weight: 400;              /* 300 was too thin to read on a light page */
  font-size: var(--fs-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display-serif {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .005em;
}

p { color: #453d34; font-size: var(--fs-body); }

a { color: var(--gold-ink); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--gold-deep); text-decoration: underline; }

::selection { background: rgba(201, 160, 90, .35); color: var(--text); }

.skip-link {
  position: absolute; top: 10px; left: 10px; z-index: 2000;
  background: var(--gold); color: #14100a; padding: .5rem 1rem; border-radius: 8px;
}

/* Thin gold scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: rgba(138, 106, 53, .38); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(138, 106, 53, .6); }

/* ------------------------------------------------------------ ambience ---- */

/* On ivory the aurora becomes a soft warm wash rather than a night sky —
   kept faint so it never competes with the text sitting on top of it. */
.aurora {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(201, 160, 90, .14), transparent 60%),
    radial-gradient(900px 500px at 110% 20%, rgba(194, 85, 125, .07), transparent 55%),
    linear-gradient(160deg, var(--bg-1), var(--bg-0) 70%);
}

.blob {
  position: absolute; border-radius: 50%; filter: blur(100px); opacity: .16;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob.b1 { width: 460px; height: 460px; background: #c9a05a; top: -120px; left: -80px; }
.blob.b2 { width: 520px; height: 520px; background: #e0a9b8; bottom: -160px; right: -120px; animation-duration: 28s; }
.blob.b3 { width: 380px; height: 380px; background: #d9c08a; top: 45%; left: 55%; animation-duration: 24s; opacity: .12; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(40px, -30px) scale(1.15); }
}

/* White stars would be invisible on ivory; these are faint gold motes instead. */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.star {
  position: absolute; width: 3px; height: 3px; background: var(--gold); border-radius: 50%;
  opacity: .3; animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: .06; transform: scale(.8); }
  50%      { opacity: .32; transform: scale(1.2); }
}

main, .site-footer { position: relative; z-index: 1; }

/* ------------------------------------------------------------ navbar ------ */

.site-nav {
  padding: .9rem 0;
  background: transparent;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-nav.scrolled {
  padding: .45rem 0;
  background: rgba(250, 247, 240, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(90, 74, 48, .12);
}

.navbar-brand { display: flex; align-items: center; gap: .7rem; }

.brand-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: 0 0 42px;
  border-radius: 50%;
  border: 1px solid var(--line-gold);
  background: linear-gradient(145deg, rgba(212, 175, 122, .22), rgba(212, 175, 122, .04));
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
  color: var(--gold-ink);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--serif); font-size: 1.42rem; font-weight: 700; color: var(--text);
  white-space: nowrap;
}
.brand-sub {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink);
}

.site-nav .nav-link {
  font-size: var(--fs-nav); letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); padding: .5rem 1rem; position: relative;
  transition: color .25s var(--ease);
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--text); }
.site-nav .nav-link::after {
  content: ''; position: absolute; left: 1rem; right: 1rem; bottom: .15rem;
  height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav .nav-link:hover::after, .site-nav .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler { border: 1px solid var(--line); padding: .5rem .6rem; border-radius: 10px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(212, 175, 122, .25); }
.toggler-bar {
  display: block; width: 24px; height: 2px; background: var(--gold-ink); border-radius: 2px;
}
.toggler-bar + .toggler-bar { margin-top: 5px; }

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: .9rem; padding: 1rem; border-radius: var(--radius-sm);
    background: rgba(255, 253, 248, .98); border: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .site-nav .nav-link { padding: .65rem .25rem; }
  .site-nav .nav-link::after { left: .25rem; right: .25rem; }
  .navbar-nav .btn-gold { margin-top: .6rem; }
}

/* ------------------------------------------------------------ buttons ----- */

.btn-gold {
  --bs-btn-focus-shadow-rgb: 212, 175, 122;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border: none; color: #14100a; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; font-size: .78rem;
  padding: .78rem 1.7rem; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(212, 175, 122, .22);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s var(--ease);
}
.btn-gold:hover, .btn-gold:focus-visible {
  color: #14100a; transform: translateY(-2px); filter: brightness(1.06);
  box-shadow: 0 16px 40px rgba(212, 175, 122, .34);
}
.btn-gold.is-current { box-shadow: 0 0 0 3px rgba(212, 175, 122, .25); }

.btn-ghost {
  background: transparent; border: 1px solid var(--line-gold); color: var(--gold-ink);
  letter-spacing: .09em; text-transform: uppercase; font-size: .78rem; font-weight: 500;
  padding: .78rem 1.7rem; border-radius: 999px;
  transition: all .3s var(--ease);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: rgba(212, 175, 122, .1); border-color: var(--gold); color: var(--text);
  transform: translateY(-2px);
}

.btn-sm.btn-gold, .btn-sm.btn-ghost { padding: .55rem 1.2rem; font-size: .72rem; }

/* ------------------------------------------------------- shared bits ------ */

.section { padding: 6rem 0; position: relative; }
.section-tight { padding: 4rem 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .68rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1.1rem;
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 26px; height: 1px; background: var(--line-gold);
}
.eyebrow.eyebrow-start::before { display: none; }

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 1rem; color: var(--text);
}
.section-lede {
  color: var(--muted); font-size: 1.2rem; max-width: 660px; font-weight: 400;
}
.text-center .section-lede { margin-inline: auto; }

.gold-text {
  background: linear-gradient(120deg, var(--gold-deep) 10%, var(--gold-ink) 50%, #a8813f 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.divider-ornament {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  color: var(--gold-ink); margin: 2.5rem 0; opacity: .8;
}
.divider-ornament::before, .divider-ornament::after {
  content: ''; height: 1px; width: min(120px, 22vw);
  background: linear-gradient(90deg, transparent, var(--line-gold), transparent);
}

.glass {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--radius); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .blob, .star { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------ hero -------- */

.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 8rem 0 5rem; text-align: center; position: relative;
}

.invite-card {
  max-width: 860px; margin-inline: auto; padding: clamp(2.2rem, 5vw, 4rem) clamp(1.4rem, 4vw, 3.5rem);
  border-radius: 28px; background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  animation: rise 1s var(--ease) both;
}
.invite-card::before {
  content: ''; position: absolute; inset: 12px; border-radius: 20px;
  border: 1px solid var(--line-gold); opacity: .45; pointer-events: none;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

.badge-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-ink); border: 1px solid var(--line-gold);
  padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.badge-pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(212, 175, 122, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(212, 175, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 122, 0); }
}

.hero-age {
  font-family: var(--serif); font-weight: 700; line-height: .9;
  font-size: clamp(5.5rem, 20vw, 11rem); margin-bottom: .2rem;
  letter-spacing: -.02em;
}
.hero-age-sub {
  font-size: .7rem; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: 1.6rem;
}
.hero-name {
  font-family: var(--serif); font-size: clamp(2.2rem, 6.5vw, 3.8rem);
  font-weight: 600; margin-bottom: .5rem; color: var(--text);
}
.hero-sub {
  font-family: var(--serif); font-style: italic; font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: var(--muted); margin-bottom: 2rem;
}

.event-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 0;
  margin: 0 0 2.2rem; padding: 1.3rem 0; border-block: 1px solid var(--line);
}
.event-meta > div {
  flex: 1 1 190px; padding: 0 1rem; position: relative;
}
.event-meta > div + div::before {
  content: ''; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: var(--line);
}
.event-meta .lbl {
  font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink);
  display: block; margin-bottom: .35rem;
}
.event-meta .val { font-family: var(--serif); font-size: 1.08rem; color: var(--text); line-height: 1.35; }

/* Countdown */
.countdown { display: flex; justify-content: center; gap: .65rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.countdown .unit {
  min-width: 80px; padding: .95rem .5rem; border-radius: 16px;
  background: var(--glass-2); border: 1px solid var(--line);
}
.countdown .num {
  font-family: var(--serif); font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--gold-ink); line-height: 1.1;
}
.countdown .lbl {
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .3rem;
}
.countdown.is-done .num { color: var(--gold-ink); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  color: var(--faint); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
}
.scroll-cue span.line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, var(--line-gold), transparent);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* --------------------------------------------------- milestones rail ------ */

.rail-wrap { position: relative; }
.rail {
  display: flex; gap: 1rem; overflow-x: auto; padding: .5rem .25rem 1.6rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.rail::-webkit-scrollbar { height: 5px; }
.rail::-webkit-scrollbar-thumb { background: rgba(212, 175, 122, .35); border-radius: 4px; }

.rail-item {
  flex: 0 0 auto; scroll-snap-align: start; width: 178px; padding: 1.3rem 1.1rem;
  border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
}
.rail-item:hover {
  transform: translateY(-6px); border-color: var(--line-gold); background: var(--glass-2);
}
.rail-item i { color: var(--gold-ink); font-size: 1.15rem; }
.rail-item .yr {
  font-family: var(--serif); font-size: 1.75rem; font-weight: 700; color: var(--text);
  margin: .35rem 0 .2rem;
}
.rail-item .lb { font-size: .78rem; color: var(--muted); line-height: 1.45; }

/* ----------------------------------------------------------- timeline ----- */

.timeline { position: relative; padding: 1rem 0; }
.timeline::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 27px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-gold) 8%, var(--line-gold) 92%, transparent);
}

.tl-item { position: relative; padding-left: 74px; margin-bottom: 3.5rem; }
.tl-item:last-child { margin-bottom: 0; }

.tl-node {
  position: absolute; left: 0; top: 2px; width: 55px; height: 55px; border-radius: 50%;
  display: grid; place-items: center; z-index: 2;
  background: var(--bg-1); border: 1px solid var(--line-gold);
  color: var(--gold-ink); font-size: 1.25rem;
  box-shadow: 0 0 0 8px rgba(250, 247, 240, .92);
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.tl-item:hover .tl-node {
  transform: scale(1.08);
  background: linear-gradient(145deg, rgba(212, 175, 122, .3), rgba(212, 175, 122, .06));
  color: var(--gold-ink);
}

.tl-card {
  padding: 1.9rem clamp(1.2rem, 3vw, 2.2rem); border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .4s var(--ease), transform .4s var(--ease), background .4s var(--ease);
}
.tl-card:hover { border-color: var(--line-gold); transform: translateY(-4px); background: var(--glass-2); }

.tl-era {
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink);
  display: block; margin-bottom: .5rem;
}
.tl-chapter {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint);
  display: block; margin-bottom: .35rem;
}
.tl-title { font-size: clamp(1.5rem, 3.4vw, 2.05rem); margin-bottom: .5rem; color: var(--text); }
.tl-lede {
  font-family: var(--serif); font-style: italic; font-size: 1.13rem;
  color: var(--gold-ink); margin-bottom: 1.4rem;
}
/* The memoir itself — the longest reading on the site, so the largest type. */
.tl-body p { margin-bottom: 1.15rem; font-size: var(--fs-memoir); line-height: 1.85; }
.tl-body p:last-child { margin-bottom: 0; }
.tl-body p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.1rem; line-height: .82; font-weight: 600;
  color: var(--gold-ink); float: left; padding: .12em .12em 0 0;
}

/* Collapsed long chapters */
.tl-body.collapsible { position: relative; max-height: 340px; overflow: hidden; transition: max-height .7s var(--ease); }
.tl-body.collapsible::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 120px;
  background: linear-gradient(180deg, transparent, rgba(250, 247, 240, .97));
  transition: opacity .4s var(--ease);
}
.tl-body.collapsible.open { max-height: 6000px; }
.tl-body.collapsible.open::after { opacity: 0; }

.read-more {
  margin-top: 1.1rem; background: none; border: none; padding: 0;
  color: var(--gold-ink); font-size: .88rem; letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
}
.read-more:hover { color: var(--gold-ink); }
.read-more i { transition: transform .35s var(--ease); }
.read-more.open i { transform: rotate(180deg); }

.pull-quote {
  margin: 1.6rem 0 0; padding: 1.2rem 0 .2rem 1.4rem;
  border-left: 2px solid var(--line-gold);
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.6;
  color: var(--gold-ink);
}

/* ------------------------------------------------------ quote banner ------ */

.quote-banner { text-align: center; max-width: 860px; margin-inline: auto; }
.quote-banner .mark {
  font-family: var(--serif); font-size: 4.5rem; line-height: .6; color: var(--gold-ink); opacity: .45;
}
.quote-banner blockquote {
  font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 2.1rem); font-style: italic;
  line-height: 1.5; color: var(--text); margin: 1rem 0 1.2rem;
}
.quote-banner cite {
  font-style: normal; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-ink);
}

/* -------------------------------------------------------- value cards ----- */

.value-card {
  height: 100%; padding: 1.9rem 1.5rem; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--line); text-align: center;
  transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.value-card:hover { transform: translateY(-6px); border-color: var(--line-gold); background: var(--glass-2); }
.value-card .ic {
  width: 54px; height: 54px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(212, 175, 122, .2), rgba(212, 175, 122, .04));
  border: 1px solid var(--line-gold); color: var(--gold-ink); font-size: 1.3rem;
}
.value-card h4 { font-size: 1.3rem; margin-bottom: .5rem; }
.value-card p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------ gallery ----- */

.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-bottom: 3rem; }
.filter-chip {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  padding: .55rem 1.25rem; border-radius: 999px;
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  cursor: pointer; transition: all .3s var(--ease);
}
.filter-chip:hover { color: var(--text); border-color: var(--line-gold); }
.filter-chip.active {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: transparent; color: #14100a; font-weight: 600;
}
.filter-chip .n { opacity: .65; margin-left: .35rem; font-size: .68rem; }

.masonry { column-count: 3; column-gap: 1.1rem; }
@media (max-width: 991.98px) { .masonry { column-count: 2; } }
@media (max-width: 575.98px)  { .masonry { column-count: 1; } }

.photo {
  break-inside: avoid; margin-bottom: 1.1rem; position: relative; display: block; width: 100%;
  border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line);
  background: var(--bg-2); cursor: zoom-in; padding: 0;
  transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease);
}
.photo:hover { transform: translateY(-5px); border-color: var(--line-gold); box-shadow: 0 18px 40px rgba(90, 74, 48, .18); }
.photo img { width: 100%; height: auto; display: block; transition: transform .7s var(--ease), filter .45s var(--ease); }
.photo:hover img { transform: scale(1.05); }

.photo-cap {
  position: absolute; inset: auto 0 0 0; padding: 2.6rem 1rem .9rem; text-align: left;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 18, .92));
  opacity: 0; transform: translateY(10px); transition: all .4s var(--ease);
}
.photo:hover .photo-cap { opacity: 1; transform: none; }
.photo-cap .t { font-family: var(--serif); font-size: 1.15rem; color: #fdfbf7; }
.photo-cap .a { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); }

.photo.is-hidden { display: none; }

/* Empty album placeholder */
.album-empty {
  break-inside: avoid; margin-bottom: 1.1rem; border-radius: var(--radius-sm);
  border: 1px dashed var(--line-gold); background: rgba(212, 175, 122, .04);
  padding: 2.4rem 1.4rem; text-align: center;
}
.album-empty i { font-size: 1.7rem; color: var(--gold-ink); opacity: .7; }
.album-empty .t { font-family: var(--serif); font-size: 1.2rem; margin: .7rem 0 .3rem; color: var(--text); }
.album-empty .s { font-size: .84rem; color: var(--muted); margin: 0; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 1080; display: none;
  background: rgba(28, 24, 20, .96); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 3.5rem 1rem 5rem;
}
.lightbox.open { display: flex; animation: fadeIn .3s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox img {
  max-width: min(1100px, 94vw); max-height: 78vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); object-fit: contain;
}
.lb-caption {
  position: absolute; left: 0; right: 0; bottom: 1.6rem; text-align: center;
  font-family: var(--serif); font-size: 1.25rem; color: #fdfbf7; padding: 0 1rem;
}
.lb-caption small {
  display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-soft); margin-top: .3rem;
}
.lb-btn {
  position: absolute; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  color: #fdfbf7; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.2rem; cursor: pointer;
  transition: all .3s var(--ease);
}
.lb-btn:hover { background: rgba(212, 175, 122, .22); border-color: var(--line-gold); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev  { left: 1.2rem;  top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.06); }

/* --------------------------------------------------------------- RSVP ----- */

.rsvp-shell {
  border-radius: 26px; overflow: hidden; border: 1px solid var(--line);
  background: var(--glass); backdrop-filter: blur(14px); box-shadow: var(--shadow);
}

.rsvp-aside {
  padding: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(165deg, rgba(212, 175, 122, .12), rgba(123, 108, 246, .08) 60%, transparent);
  border-right: 1px solid var(--line);
  height: 100%;
}
@media (max-width: 991.98px) { .rsvp-aside { border-right: none; border-bottom: 1px solid var(--line); } }

.detail-row { display: flex; gap: .95rem; padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.detail-row:last-child { border-bottom: none; }
.detail-row i { color: var(--gold-ink); font-size: 1.05rem; margin-top: .2rem; }
.detail-row .k {
  font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-ink); display: block;
}
.detail-row .v { font-family: var(--serif); font-size: 1.06rem; color: var(--text); line-height: 1.4; }

.rsvp-form { padding: clamp(2rem, 4vw, 3rem); }

.form-label {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: .5rem; font-weight: 500;
}
.form-label .req { color: var(--accent-2); }

.form-control, .form-select {
  background: #ffffff; border: 1px solid rgba(44, 38, 32, .18);
  color: var(--text); border-radius: 12px; padding: .8rem 1rem;
  font-size: var(--fs-label); font-weight: 400;
  transition: border-color .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.form-control::placeholder { color: #8f8578; }
.form-control:focus, .form-select:focus {
  background: #ffffff; border-color: var(--gold-ink);
  color: var(--text); box-shadow: 0 0 0 3px rgba(212, 175, 122, .16);
}
.form-select option { background: var(--bg-1); color: var(--text); }

.form-control.is-invalid, .form-select.is-invalid {
  border-color: #f67ca3; background-image: none;
}
.invalid-feedback { color: #b3243c; font-size: .95rem; }

/* Attendance choice */
.choice-group { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice label {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  padding: 1.1rem .8rem; border-radius: 14px; text-align: center; cursor: pointer;
  background: #ffffff; border: 1px solid rgba(44, 38, 32, .16);
  transition: all .3s var(--ease); width: 100%;
}
.choice label i { font-size: 1.3rem; color: var(--gold-ink); }
.choice label .t { font-family: var(--serif); font-size: 1.1rem; color: var(--text); }
.choice label .s { font-size: .72rem; color: var(--muted); }
.choice input:checked + label {
  border-color: var(--gold); background: rgba(212, 175, 122, .12);
  box-shadow: 0 0 0 3px rgba(212, 175, 122, .12);
}
.choice input:focus-visible + label { box-shadow: 0 0 0 3px rgba(212, 175, 122, .3); }

.form-check-input {
  background-color: #ffffff; border-color: var(--gold-ink);
  width: 1.15em; height: 1.15em; margin-top: .2em;
}
.form-check-input:checked { background-color: var(--gold); border-color: var(--gold); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(212, 175, 122, .2); border-color: var(--gold); }
.form-check-label { font-size: var(--fs-label); color: #453d34; }

.form-hint { font-size: var(--fs-hint); color: var(--faint); margin-top: .4rem; }

/* Guest list — one row per claimed seat, name beside meal */
.guest-row {
  display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem;
}
.guest-row .form-control { flex: 1 1 auto; min-width: 0; }
.guest-row .form-select  { flex: 0 0 11rem; }

.guest-num {
  display: grid; place-items: center; flex: 0 0 30px;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-gold);
  background: rgba(212, 175, 122, .08);
  font-size: .78rem; color: var(--gold-ink);
}

.guest-name-you {
  flex: 1 1 auto; min-width: 0;
  padding: .5rem .9rem;
  border: 1px dashed var(--line-gold); border-radius: 12px;
  background: rgba(212, 175, 122, .05);
  color: var(--gold-ink); font-size: .93rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (max-width: 575.98px) {
  .guest-row { flex-wrap: wrap; }
  .guest-row .form-select { flex: 1 1 100%; margin-left: calc(30px + .6rem); }
}

/* Guest breakdown inside the admin table */
.guest-list-admin {
  list-style: decimal; margin: 0; padding-left: 1.2rem;
  font-size: .86rem; min-width: 15rem;
}
.guest-list-admin li { margin-bottom: .15rem; }
.guest-list-admin .meal {
  color: var(--gold-ink); font-size: .78rem;
  border-left: 1px solid var(--line-gold); margin-left: .45rem; padding-left: .45rem;
}
.guest-list-admin .meal.none { color: var(--faint); font-style: italic; }

.pending-dot {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px;
  margin-left: .35rem; padding: 0 .32rem; border-radius: 9px;
  background: var(--gold); color: #14140f;
  font-size: .68rem; font-weight: 700; line-height: 1;
}

/* ------------------------------------------------------- guest book ------- */

.wish-wall { display: grid; gap: 1rem; }

.wish {
  position: relative; margin: 0;
  padding: 1.6rem 1.4rem 1.2rem;
  border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(160deg, #ffffff, #fffdf7);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.wish:hover { border-color: var(--line-gold); transform: translateY(-2px); }

.wish-mark {
  position: absolute; top: .7rem; left: 1.1rem;
  font-size: 1.5rem; color: var(--gold-ink); opacity: .3;
}

.wish blockquote {
  margin: 0 0 .9rem; padding-left: 1.6rem;
  font-family: var(--serif); font-size: 1.06rem; line-height: 1.75;
  color: #3a332b;
}

.wish figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem;
  padding-left: 1.6rem; padding-top: .6rem;
  border-top: 1px solid var(--line);
}
.wish .who   { font-weight: 600; color: var(--gold-ink); font-size: 1.05rem; }
.wish .where { font-size: .9rem; color: var(--muted); }
.wish .when  { font-size: .85rem; color: var(--faint); margin-left: auto; }

@media (min-width: 992px) {
  .wish-wall { grid-template-columns: repeat(2, 1fr); }
}

/* Moderation rows */
.gb-row {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.gb-row:last-child { border-bottom: 0; padding-bottom: 0; }
.gb-body { flex: 1 1 auto; min-width: 0; }
.gb-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .55rem; margin-bottom: .35rem; }
.gb-meta { font-size: .76rem; color: var(--faint); }
a.gb-meta:hover { color: var(--gold-ink); }
.gb-text { margin: 0; font-size: 1rem; color: #453d34; white-space: pre-wrap; }
.gb-actions { flex: 0 0 auto; display: flex; align-items: center; gap: .4rem; }

@media (max-width: 575.98px) {
  .gb-row { flex-direction: column; }
  .gb-actions { align-self: flex-end; }
}

/* ------------------------------------------------- admin photo manager ---- */

.album-tabs { display: flex; flex-wrap: wrap; gap: .5rem; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; padding: 2.2rem 1rem; cursor: pointer; text-align: center;
  border: 1px dashed var(--line-gold); border-radius: 16px;
  background: rgba(212, 175, 122, .04);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.dropzone:hover, .dropzone.over { background: rgba(212, 175, 122, .1); border-color: var(--gold); }
.dropzone.busy { opacity: .6; pointer-events: none; }
.dropzone i { font-size: 1.8rem; color: var(--gold-ink); }
.dropzone .dz-title { font-family: var(--serif); font-size: 1.05rem; color: var(--text); }
.dropzone .dz-sub { font-size: .78rem; color: var(--faint); }

.pick-list:not(:empty) { margin-top: 1rem; display: grid; gap: .6rem; }
.pick-row {
  display: flex; align-items: center; gap: .8rem;
  padding: .6rem; border: 1px solid var(--line); border-radius: 14px;
  background: #ffffff;
}
.pick-row img {
  width: 62px; height: 62px; flex: 0 0 62px;
  object-fit: cover; border-radius: 10px;
}
.pick-body { flex: 1 1 auto; min-width: 0; }
.pick-meta { font-size: .72rem; color: var(--faint); margin-top: .3rem; }

.manage-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.manage-item {
  margin: 0; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; background: #ffffff;
}
.manage-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.manage-item figcaption { display: flex; align-items: center; gap: .3rem; padding: .5rem; }
.recaption-form { display: flex; align-items: center; gap: .3rem; flex: 1 1 auto; min-width: 0; }
.recaption-form input {
  flex: 1 1 auto; min-width: 0;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  color: var(--text); font-size: .8rem; padding: .3rem .4rem;
}
.recaption-form input:focus {
  outline: none; border-color: var(--line-gold); background: rgba(212, 175, 122, .06);
}

.icon-btn {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-size: .82rem; cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.icon-btn:hover { color: var(--gold-ink); border-color: var(--line-gold); }
.icon-btn.danger:hover { color: #e88; border-color: rgba(238, 136, 136, .4); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Alerts */
.alert-soft {
  border-radius: 14px; border: 1px solid var(--line-gold);
  background: rgba(212, 175, 122, .09); color: var(--text); padding: 1rem 1.2rem;
}
.alert-soft.err { border-color: rgba(246, 124, 163, .4); background: rgba(246, 124, 163, .09); }

/* Thank-you */
.thanks { text-align: center; max-width: 640px; margin-inline: auto; padding: 1rem 0; }
.thanks .seal {
  width: 92px; height: 92px; margin: 0 auto 1.6rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-gold); color: var(--gold-ink); font-size: 2.4rem;
  background: linear-gradient(145deg, rgba(212, 175, 122, .22), rgba(212, 175, 122, .03));
  animation: pop .6s var(--ease) both;
}
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }

/* ---------------------------------------------------------- CTA strip ----- */

.cta-strip {
  border-radius: 26px; padding: clamp(2.4rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem); text-align: center;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(212, 175, 122, .16), transparent 70%),
    var(--glass);
  border: 1px solid var(--line-gold);
}

/* ------------------------------------------------------------- footer ----- */

.site-footer {
  margin-top: 4rem; padding: 4rem 0 1.6rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .55));
  border-top: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.footer-tagline { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: .95rem; }
.footer-note { font-size: .9rem; color: var(--muted); max-width: 380px; }

.footer-heading {
  font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .6rem; font-size: .9rem; color: var(--muted); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold-ink); }
.footer-links i { color: var(--gold-ink); margin-right: .4rem; }

.socials { display: flex; gap: .6rem; margin-top: 1.3rem; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--muted); transition: all .3s var(--ease);
}
.socials a:hover {
  border-color: var(--line-gold); color: var(--gold-ink); transform: translateY(-3px);
  background: rgba(212, 175, 122, .08);
}

.footer-bottom {
  margin-top: 2.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between;
  font-size: .8rem; color: var(--faint);
}
.footer-bottom i { color: var(--accent-2); }

/* Back to top */
.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 900;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #ffffff; border: 1px solid var(--line-gold); color: var(--gold-ink);
  backdrop-filter: blur(10px); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(212, 175, 122, .18); }

/* --------------------------------------------------------------- admin ---- */

.admin-table { --bs-table-color: var(--text); font-size: .88rem; }
.admin-table thead th {
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-ink); border-bottom: 1px solid var(--line-gold); font-weight: 500;
  background: transparent; white-space: nowrap;
}
.admin-table tbody td {
  border-bottom: 1px solid var(--line); color: #453d34;
  background: transparent; vertical-align: top;
}
.stat-card { padding: 1.3rem 1.4rem; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--line); }
.stat-card .n { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--gold-ink); line-height: 1; }
.stat-card .k { font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }

.pill-yes, .pill-no {
  font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .22rem .6rem; border-radius: 999px; white-space: nowrap;
}
.pill-yes { background: rgba(212, 175, 122, .16); color: var(--gold-ink); border: 1px solid var(--line-gold); }
.pill-no  { background: rgba(246, 124, 163, .12); color: #f6a7c1; border: 1px solid rgba(246, 124, 163, .3); }

/* --------------------------------------------------------- responsive ----- */

@media (max-width: 767.98px) {
  .section { padding: 4rem 0; }
  .timeline::before { left: 19px; }
  .tl-item { padding-left: 56px; }
  .tl-node { width: 40px; height: 40px; font-size: 1rem; box-shadow: 0 0 0 6px rgba(250, 247, 240, .92); }
  .tl-body p:first-of-type::first-letter { font-size: 2.6rem; }
  .event-meta > div + div::before { display: none; }
  .event-meta > div { flex: 1 1 100%; padding: .55rem 0; }
  .lb-prev { left: .4rem; } .lb-next { right: .4rem; }
  .lightbox { padding: 4rem .5rem 5rem; }
}
