/* ==========================================================
   Anandhu & Karthika — Wedding Site
   Design language: "Quiet Kerala luxury"
   Ivory kasavu base · muted zari gold · burnt terracotta contrast
   (temple laterite & lamplight: copper-clay warmth with gold zari)
   ========================================================== */

:root {
  /* Palette */
  --ivory:      #FAF7EF;   /* kasavu body */
  --ivory-deep: #F3EDDD;   /* warmer ivory for cards/alt sections */
  --ink:        #33291C;   /* warm near-black for text */
  --ink-soft:   #6B5D48;   /* muted brown for secondary text */
  --gold:       #A98428;   /* zari gold — muted, never neon */
  --gold-deep:  #8C6D1F;
  --gold-pale:  #E7DAB4;
  --terracotta:     #7C3D20;   /* burnt terracotta — contrast sections */
  --terracotta-ink: #F6EBDC;   /* text on terracotta */
  --red:        #8E2A1E;   /* kumkum — used only in fine details */

  /* Type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", "Helvetica Neue", Arial, sans-serif;
  --malayalam: "Noto Serif Malayalam", serif;

  /* Spacing grid (8px base) */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px;
  --s6: 48px; --s8: 64px; --s12: 96px; --s16: 128px;

  --nav-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: 100%; width: 100%; object-fit: cover; }

ul, ol { list-style: none; }

a { color: var(--gold-deep); text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Shared type & layout ---------- */
.container {
  width: min(1120px, 100% - clamp(40px, 8vw, 96px));
  margin-inline: auto;
}
.container.narrow { width: min(760px, 100% - clamp(40px, 8vw, 96px)); }

.section { padding-block: clamp(var(--s12), 12vw, var(--s16)); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.section-head { text-align: center; margin-bottom: clamp(var(--s6), 8vw, var(--s12)); }

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin-top: var(--s2);
  color: var(--ink);
}

/* Kasavu ornamental divider: hairline — diamond — hairline */
.kasavu-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  color: var(--gold);
  margin-top: var(--s3);
}
.kasavu-divider .k-line {
  display: block;
  width: clamp(48px, 8vw, 96px);
  height: 1px;
  background: linear-gradient(to var(--dir, right), transparent, var(--gold));
}
.kasavu-divider .k-line:last-child { --dir: left; }
.kasavu-divider.small .k-line { width: clamp(32px, 5vw, 56px); }

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue-line::after { animation: none !important; }
}

/* ==========================================================
   NAVIGATION
   ========================================================== */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: clamp(var(--s3), 5vw, var(--s8));
  color: var(--ivory);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.site-nav.scrolled {
  background: rgba(250, 247, 239, 0.92);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border-bottom-color: rgba(169, 132, 40, 0.25);
}

.nav-monogram { display: inline-flex; align-items: center; }
.nav-monogram img {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 50%;
  box-shadow: 0 1px 10px rgba(20, 10, 5, 0.18);
}

.nav-links {
  display: flex;
  gap: clamp(var(--s3), 3vw, var(--s6));
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
  padding-block: var(--s1);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after { transform: scaleX(1); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: var(--s2);
  color: inherit;
}
.nav-toggle-line {
  display: block;
  width: 26px; height: 1.5px;
  background: currentColor;
  margin-block: 5px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-of-type { transform: translateY(3.3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-of-type  { transform: translateY(-3.2px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: center;
    gap: var(--s4);
    padding: var(--s6) var(--s3) var(--s8);
    background: rgba(250, 247, 239, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(169, 132, 40, 0.25);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav-links.open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a { color: var(--ink); font-size: 0.8rem; }
  .site-nav:not(.scrolled):has(.nav-links.open) { color: var(--ink); background: rgba(250, 247, 239, 0.97); }
}

/* ==========================================================
   HERO — pinned photo stage with scroll-driven name reveal
   The photo owns the first screen. Scrolling holds the photo in
   place while the names fade in over it, then the page continues.
   JS sets --hp (0→1 pin progress) and --hc (0→1 content reveal)
   on .hero-pin, and adds body.scrolly. Without JS (or with
   reduced motion) the hero is a single static screen with the
   names visible — nothing is ever lost.
   ========================================================== */
.hero { position: relative; height: 100svh; }
body.scrolly .hero { height: 190svh; }

.hero-pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ivory);
}

/* Kasavu thread under the photo where it meets the ivory page */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}

/* Photo layer — assets/hero.jpg on top of a warm fallback gradient,
   so the hero still looks composed before the photo is added.
   Slow scroll-linked zoom, like a lens breathing in. */
.hero-media {
  position: absolute;
  inset: 0;
  /* The photo is portrait; "50% 45%" keeps the couple framed in the
     horizontal band that wide screens crop out of it */
  background:
    url("assets/hero.jpg") 50% 45% / cover no-repeat,
    radial-gradient(120% 90% at 50% 20%, #A05C34 0%, #8D4A28 45%, var(--terracotta) 100%);
  transform: scale(calc(1 + 0.06 * var(--hp, 0)));
  will-change: transform;
}

/* Scroll-linked veil: the photo quiets down as the names arrive */
.hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(30, 14, 6, 0.72) 0%, rgba(30, 14, 6, 0.42) 45%, rgba(30, 14, 6, 0.72) 100%);
  opacity: calc(0.82 * var(--hp, 0));
}
/* Reduced-motion / no-JS: names sit on the photo, so keep a readable veil */
body:not(.scrolly) .hero-veil { opacity: 0.55; }

/* Static scrim: keeps the nav legible over the top of the photo */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 10, 5, 0.45) 0%, rgba(20, 10, 5, 0) 30%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + var(--s4)) var(--s3) var(--s8);
}
body.scrolly .hero-content {
  opacity: var(--hc, 0);
  transform: translateY(calc((1 - var(--hc, 0)) * 40px));
}
.hero-content .eyebrow { color: var(--gold-pale); }

.hero-names {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 11vw, 7.25rem);
  line-height: 1.05;
  letter-spacing: 0.015em;
  margin-block: var(--s3) var(--s2);
  text-wrap: balance;
  text-shadow: 0 2px 28px rgba(20, 10, 5, 0.45);
}
.hero-names .amp {
  font-style: italic;
  font-weight: 300;
  font-size: 0.72em;
  color: var(--gold-pale);
  position: relative;
  top: -0.04em;
}

.hero-malayalam {
  font-family: var(--malayalam);
  font-size: clamp(1rem, 3vw, 1.4rem);
  color: var(--gold-pale);
  letter-spacing: 0.06em;
  margin-bottom: var(--s3);
}

.hero-date {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: var(--s3);
  color: var(--ivory);
}

.hero .kasavu-divider { color: var(--gold-pale); }

/* Scroll cue — invites the reveal, then bows out as names arrive */
.scroll-cue {
  position: absolute;
  bottom: var(--s4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  color: var(--gold-pale);
}
body.scrolly .scroll-cue { opacity: calc(1 - var(--hp, 0) * 4); }
.scroll-cue-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(20, 10, 5, 0.5);
}
.scroll-cue-line {
  position: relative;
  width: 1px; height: 44px;
  background: rgba(231, 218, 180, 0.4);
  overflow: hidden;
}
.scroll-cue-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%; height: 50%;
  background: var(--gold);
  animation: cueDrop 2.4s var(--ease) infinite;
}
@keyframes cueDrop {
  0%   { top: -50%; }
  70%  { top: 100%; }
  100% { top: 100%; }
}

/* ==========================================================
   PHOTO FRAMES & PLACEHOLDERS
   ========================================================== */
.photo-frame {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #EFE6CE 0%, #E3D5B2 55%, #D9C79C 100%);
  outline: 1px solid rgba(169, 132, 40, 0.45);
  outline-offset: -10px;
}

/* Padippura arch treatment: gently arched top */
.photo-frame.arch { border-radius: 999px 999px 0 0 / 340px 340px 0 0; }

/* Placeholder label — hidden while the real photo shows */
.ph-label {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s3);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.img-missing .photo { display: none; }
.img-missing .ph-label { display: flex; }

/* ==========================================================
   OUR STORY
   ========================================================== */
.story-grid {
  display: grid;
  gap: clamp(var(--s6), 6vw, var(--s12));
  align-items: start;
}
@media (min-width: 900px) {
  /* Asymmetric editorial split: narrow text column, offset photos */
  .story-grid { grid-template-columns: 5fr 6fr; }
}

.story-text p + p { margin-top: var(--s3); }
.story-text p:first-child::first-letter {
  font-size: 3.1em;
  line-height: 0.85;
  float: left;
  padding-right: 0.07em;
  color: var(--gold-deep);
  font-weight: 500;
}

.story-photos {
  position: relative;
  display: grid;
  gap: var(--s4);
}
.story-photo-1 { aspect-ratio: 3 / 4; width: min(72%, 420px); }
.story-photo-2 {
  aspect-ratio: 4 / 3;
  width: min(64%, 400px);
  justify-self: end;
  margin-top: calc(-1 * clamp(var(--s6), 8vw, var(--s12)));
}
@media (max-width: 899px) {
  .story-photo-1, .story-photo-2 { width: 100%; margin-top: 0; }
}

/* Timeline */
.timeline {
  display: grid;
  gap: var(--s6);
  margin-top: clamp(var(--s8), 10vw, var(--s12));
  counter-reset: milestone;
}
@media (min-width: 720px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
}

.timeline-item {
  position: relative;
  text-align: center;
  padding-top: var(--s4);
}
.timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px;
  border: 1px solid var(--gold);
  background: var(--ivory);
}
/* thin gold connectors between milestones */
.timeline-item::before,
.timeline-item::after {
  content: "";
  position: absolute;
  top: 4px;
  height: 1px;
  width: calc(50% - 18px);
  background: linear-gradient(to right, transparent, rgba(169, 132, 40, 0.5));
}
.timeline-item::before { left: 0; }
.timeline-item::after {
  right: 0;
  background: linear-gradient(to left, transparent, rgba(169, 132, 40, 0.5));
}
@media (min-width: 720px) {
  .timeline-item:first-child::before,
  .timeline-item:last-child::after { display: none; }
}
@media (max-width: 719px) {
  .timeline-item::before, .timeline-item::after { display: none; }
}

.timeline-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  margin-top: var(--s1);
}
.timeline-text { font-size: 1rem; color: var(--ink-soft); margin-top: 4px; }

/* ==========================================================
   THE COUPLE
   ========================================================== */
.couple { background: var(--ivory-deep); }

.couple-grid {
  display: grid;
  gap: clamp(var(--s6), 6vw, var(--s12));
}
@media (min-width: 720px) {
  .couple-grid { grid-template-columns: 1fr 1fr; }
}

.couple-card { text-align: center; }
.couple-card .photo-frame {
  aspect-ratio: 3 / 4;
  width: min(100%, 380px);
  margin-inline: auto;
}
.couple-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-top: var(--s4);
}
.couple-line {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: var(--s1);
}
.couple-bio {
  max-width: 42ch;
  margin: var(--s3) auto 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ==========================================================
   OUR FAMILIES — burnt terracotta contrast section
   ========================================================== */
.families {
  background: var(--terracotta);
  color: var(--terracotta-ink);
}
.families .eyebrow { color: var(--gold-pale); }
.families .section-title { color: var(--terracotta-ink); }
.families .kasavu-divider { color: var(--gold-pale); }
.families .kasavu-divider .k-line { background: linear-gradient(to var(--dir, right), transparent, var(--gold-pale)); }

.families-grid {
  display: grid;
  gap: clamp(var(--s6), 6vw, var(--s8));
}
@media (min-width: 760px) {
  .families-grid { grid-template-columns: 1fr 1fr; }
}

.family-card { text-align: center; }
.family-card .photo-frame {
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, #8F4F2C 0%, #854626 60%, #7C3F21 100%);
  outline-color: rgba(231, 218, 180, 0.5);
  border-radius: 260px 260px 0 0 / 180px 180px 0 0;
}
.family-card .ph-label { color: var(--gold-pale); }
.family-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-top: var(--s4);
}
.family-place {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-pale);
  margin-top: var(--s1);
}

/* ==========================================================
   GALLERY — masonry via CSS columns + custom lightbox
   ========================================================== */
.gallery-grid {
  columns: 1;
  column-gap: var(--s3);
}
@media (min-width: 560px)  { .gallery-grid { columns: 2; } }
@media (min-width: 960px)  { .gallery-grid { columns: 3; } }

.gallery-item {
  position: relative;
  overflow: hidden;
  break-inside: avoid;
  margin-bottom: var(--s3);
  cursor: zoom-in;
  background: linear-gradient(150deg, #EFE6CE 0%, #E3D5B2 55%, #D9C79C 100%);
  outline: 1px solid rgba(169, 132, 40, 0.35);
  outline-offset: -8px;
}
.ratio-portrait  { aspect-ratio: 3 / 4; }
.ratio-landscape { aspect-ratio: 4 / 3; }
.ratio-square    { aspect-ratio: 1; }

.gallery-item .photo {
  transition: transform 1.4s var(--ease);
}
/* Gold caption reveal + slow zoom on hover (pointer devices only) */
.gallery-item::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s4) var(--s2) var(--s2);
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--gold-pale);
  background: linear-gradient(to top, rgba(70, 32, 16, 0.75), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .gallery-item:hover .photo { transform: scale(1.06); }
  .gallery-item:hover::after { opacity: 1; transform: none; }
}
.gallery-item.img-missing::after { display: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 20, 14, 0.94);
  padding: var(--s6) var(--s3);
}
.lightbox[hidden] { display: none; }

.lb-stage {
  max-width: min(1020px, 92vw);
  width: 100%;
  text-align: center;
}
.lb-media {
  max-height: 78vh;
  display: flex;
  justify-content: center;
}
.lb-media img {
  width: auto;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
}
.lb-media .lb-placeholder {
  width: min(560px, 86vw);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #EFE6CE, #D9C79C);
  outline: 1px solid rgba(169, 132, 40, 0.5);
  outline-offset: -10px;
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.lb-caption {
  margin-top: var(--s3);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-pale);
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  z-index: 1;
  background: none;
  border: 1px solid rgba(231, 218, 180, 0.35);
  border-radius: 50%;
  width: 46px; height: 46px;
  color: var(--gold-pale);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { border-color: var(--gold-pale); color: #fff; }
.lb-close { top: var(--s3); right: var(--s3); }
.lb-prev  { left: var(--s2); top: 50%; transform: translateY(-50%); }
.lb-next  { right: var(--s2); top: 50%; transform: translateY(-50%); }

/* ==========================================================
   WEDDING DETAILS — invitation cards
   ========================================================== */
.invite-card {
  position: relative;
  background: var(--ivory-deep);
  border: 1px solid rgba(169, 132, 40, 0.55);
  outline: 1px solid rgba(169, 132, 40, 0.3);
  outline-offset: 6px;
  padding: clamp(var(--s6), 8vw, var(--s12)) clamp(var(--s3), 6vw, var(--s8));
  text-align: center;
  margin-inline: 7px;  /* room for the offset outline */
}
.invite-card.secondary { margin-top: clamp(var(--s6), 8vw, var(--s8)); }

.lamp { color: var(--gold); margin-bottom: var(--s3); }

.invite-intro {
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-style: italic;
  line-height: 1.75;
}
.invite-intro.small-intro { font-size: 1.1rem; margin-top: var(--s2); }

.invite-rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: var(--s4) auto;
}

.invite-facts {
  display: grid;
  gap: var(--s4);
  margin-block: var(--s4);
}
.invite-facts dd {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 500;
  margin-top: var(--s1);
}
.invite-address {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-soft);
  margin-top: 4px;
}

.btn-gold {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--gold);
  padding: var(--s2) var(--s4);
  margin-top: var(--s2);
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn-gold:hover, .btn-gold:focus-visible {
  background: var(--gold);
  color: var(--ivory);
}

.map-placeholder {
  margin-top: clamp(var(--s6), 8vw, var(--s8));
  aspect-ratio: 16 / 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  border: 1px dashed rgba(169, 132, 40, 0.5);
  color: var(--ink-soft);
  font-style: italic;
}
/* When the real Google Maps iframe replaces the placeholder */
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================
   COUNTDOWN — quiet burnt terracotta band
   ========================================================== */
.countdown {
  background: var(--terracotta);
  color: var(--terracotta-ink);
  text-align: center;
  padding-block: clamp(var(--s8), 10vw, var(--s12));
}
.countdown .eyebrow { color: var(--gold-pale); }

.countdown-grid[hidden] { display: none; }

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--s3), 6vw, var(--s8));
  margin-top: var(--s6);
}
.count-unit { display: grid; gap: var(--s1); min-width: 72px; }
.count-num {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: 1;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}
.count-sep {
  width: 1px;
  height: clamp(40px, 8vw, 64px);
  background: rgba(231, 218, 180, 0.35);
}
.countdown-fallback {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 3vw, 1.3rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-top: var(--s4);
  color: var(--ivory);
}
.countdown-fallback[hidden] { display: none; }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  background: var(--ivory);
  text-align: center;
  padding-top: clamp(var(--s8), 10vw, var(--s12));
}
.footer-monogram {
  display: block;
  width: 76px;
  height: 76px;
  margin-inline: auto;
  border-radius: 50%;
}
.footer-names {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-top: var(--s2);
}
.footer-blessing {
  font-style: italic;
  color: var(--ink-soft);
  margin-top: var(--s2);
}
.footer-fine {
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: var(--s6);
  padding-bottom: var(--s4);
}

/* Kasavu border strip: ivory ground, twin gold zari bands, kumkum thread */
.kasavu-strip {
  height: 14px;
  background:
    linear-gradient(to bottom,
      var(--gold) 0 3px,
      var(--ivory-deep) 3px 5px,
      var(--gold) 5px 10px,
      var(--red) 10px 11px,
      var(--gold-deep) 11px 14px);
}
