﻿:root {
  --ivory: #fbf6ee;
  --cream: #f4ead8;
  --paper: #fffaf3;
  --maroon: #6e1e2c;
  --maroon-deep: #4c1420;
  --red: #8e2433;
  --gold: #b0893e;
  --gold-soft: #e6d3a4;
  --brown: #3c2918;
  --brown-soft: #5c4632;
  --line: rgba(110, 30, 44, 0.16);
  --haldi: #fbf3d4;
  --shadow: 0 18px 40px rgba(76, 20, 32, 0.08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Lora", Georgia, "Times New Roman", serif;
  --telugu: "Noto Serif Telugu", "Noto Sans Telugu", serif;
  --nav: 4.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 2.2rem); }
body {
  margin: 0;
  padding: 26px 22px 34px;
  color: var(--brown);
  background: transparent;
  font-family: var(--body);
  font-size: 1.08rem;
  line-height: 1.65;
  font-weight: 500;
}
html { background: var(--ivory); }
.field-motion {
  position: fixed;
  inset: -6%;
  z-index: 0;
  pointer-events: none;
  background:
    url("art/bg-mandala.png") center / min(1280px, 150%) no-repeat;
  opacity: 0.62;
  animation: field-breathe 32s ease-in-out infinite alternate;
}
.muggu {
  position: fixed;
  z-index: 55;
  pointer-events: none;
  background-color: var(--ivory);
  background-image: url("art/kolam-tile.svg");
}
.muggu.top, .muggu.bottom {
  left: 0;
  right: 0;
  height: 26px;
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 26px;
}
.muggu.top { top: 0; box-shadow: 0 1px 0 rgba(176, 137, 62, 0.35); }
.muggu.bottom { bottom: 0; box-shadow: 0 -1px 0 rgba(176, 137, 62, 0.35); }
.muggu-side {
  position: fixed;
  top: 26px;
  bottom: 26px;
  width: 22px;
  z-index: 55;
  overflow: hidden;
  pointer-events: none;
  background: var(--ivory);
}
.muggu-side.left { left: 0; box-shadow: 1px 0 0 rgba(176, 137, 62, 0.35); }
.muggu-side.right { right: 0; box-shadow: -1px 0 0 rgba(176, 137, 62, 0.35); }
.muggu-rot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140vh;
  height: 22px;
  transform: translate(-50%, -50%) rotate(90deg);
  background: var(--ivory) url("art/kolam-tile.svg") repeat-x center / auto 22px;
}
main { position: relative; z-index: 1; }
body.nav-lock { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--maroon); }
button, input { font: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--maroon-deep); }
.telugu { font-family: var(--telugu); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--maroon);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { top: 0.6rem; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-nav {
  position: sticky;
  top: 26px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav);
  padding: 0.6rem 6vw;
  background: rgba(251, 246, 238, 0.94);
  border-bottom: 1px solid var(--gold-soft);
  backdrop-filter: blur(10px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  font-family: var(--serif);
  color: var(--maroon-deep);
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: none;
  border-radius: 50%;
  background: #120e0c;
  box-shadow: 0 0 0 1px rgba(176, 137, 62, 0.7);
}
.brand-name { white-space: nowrap; }
.brand span { color: var(--gold); }
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.site-nav nav a {
  color: var(--brown);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav nav a[aria-current="true"] {
  color: var(--maroon);
  border-bottom-color: var(--gold);
}
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--gold);
  background: transparent;
  border-radius: 8px;
}
.burger, .burger::before, .burger::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--maroon);
  position: relative;
}
.burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 0;
}
.burger::before { top: -6px; }
.burger::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 6px;
  border: 1px solid var(--gold);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--maroon); color: var(--ivory); }
.btn-primary:hover { background: var(--maroon-deep); }
.btn-gold { background: transparent; color: var(--maroon-deep); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { background: var(--paper); color: var(--maroon); }
.icon { width: 1.05rem; height: 1.05rem; }

.menu-wrap { position: relative; }
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  min-width: 14rem;
  padding: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow);
  display: grid;
}
.menu a, .menu button {
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--maroon-deep);
  padding: 0.7rem 0.8rem;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
}
.menu a:hover, .menu button:hover { background: var(--cream); }
.menu-note, .status {
  margin-top: 0.8rem;
  color: var(--maroon);
}

.section { padding: 4.2rem 6vw 5.2rem; }
.section-band { background: rgba(255, 250, 243, 0.78); }
.wrap { max-width: 1080px; margin: 0 auto; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--serif);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}
.section-title {
  text-align: center;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 1.4rem;
}
.lede { font-size: 1.12rem; max-width: 42rem; }
.lede.center, .quiet.center { margin-inline: auto; }
.quiet { color: var(--brown-soft); margin-top: 1.2rem; }

.hero {
  position: relative;
  padding: 0.2rem 6vw 3rem;
  overflow: hidden;
}
.hero-inner {
  max-width: 1080px;
  margin: 0.6rem auto 0;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
}
.toranam { width: min(100%, 1080px); height: auto; }
.om { color: var(--gold); font-size: 1.6rem; line-height: 1; }
.opening {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--maroon);
  line-height: 1.3;
}
.hero-art {
  width: auto;
  max-width: min(100%, 720px);
  max-height: min(28vh, 280px);
  object-fit: contain;
  border: 1px solid var(--gold-soft);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.hero h1 { display: grid; gap: 0.15rem; }
.who { font-size: clamp(2.3rem, 5vw, 3.8rem); line-height: 1.15; }
.ampersand {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.8rem;
}
.hero .lede { margin-top: 0.4rem; }

.curtain {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  pointer-events: none;
}
.curtain-panel {
  width: 50%;
  background:
    linear-gradient(90deg, rgba(198, 161, 90, 0.35), transparent 12%),
    var(--maroon-deep);
  animation: curtain-open 1.25s ease forwards;
}
.curtain-panel.right {
  background:
    linear-gradient(270deg, rgba(198, 161, 90, 0.35), transparent 12%),
    var(--maroon-deep);
  animation-name: curtain-open-right;
}
@keyframes curtain-open { to { transform: translateX(-105%); } }
@keyframes curtain-open-right { to { transform: translateX(105%); } }

.petals { position: absolute; inset: 0; pointer-events: none; }
.petal {
  position: absolute;
  top: -12px;
  border-radius: 70% 10% 70% 10%;
  opacity: 0.55;
  animation-name: fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.petal.rose { background: #c46a78; }
.petal.gold { background: #d7b56a; }
@keyframes fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 0; }
  12% { opacity: 0.55; }
  100% { transform: translateY(105vh) rotate(220deg); opacity: 0.15; }
}

.couple-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.person { text-align: center; }
.portrait-frame {
  background: var(--paper);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow);
  padding: 0.6rem;
  margin-bottom: 1rem;
}
.portrait-frame img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center top;
  background: #fbf6ee;
}
.person h2 { text-wrap: balance; }
.person-label {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 0.95rem;
}
.person h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 0.2rem 0; }
.parents { color: var(--brown-soft); }
.couple-heart { text-align: center; width: 180px; }
.couple-heart img { width: 150px; }
.couple-heart p {
  font-family: var(--serif);
  color: var(--maroon);
  font-size: 1.35rem;
  margin-top: 0.4rem;
}

.rangoli-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.rangoli-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.rangoli-divider svg { width: 42px; height: 42px; }

.temple-frame {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow);
  padding: 2.4rem 1.4rem 1.8rem;
  text-align: center;
}
.frame-corner { position: absolute; width: 64px; height: 64px; }
.frame-corner svg { width: 100%; height: 100%; }
.frame-corner.tl { top: 6px; left: 6px; }
.frame-corner.tr { top: 6px; right: 6px; transform: scaleX(-1); }
.frame-corner.bl { bottom: 6px; left: 6px; transform: scaleY(-1); }
.frame-corner.br { bottom: 6px; right: 6px; transform: scale(-1); }

.muhurtham-card { max-width: 680px; margin: 0 auto 1rem; }
.date-num {
  font-family: var(--serif);
  font-size: clamp(4.5rem, 10vw, 6.5rem);
  line-height: 0.9;
  color: var(--maroon);
}
.date-month {
  color: var(--gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 0 0 1.2rem;
}
.facts div { padding: 0.6rem; background: var(--ivory); }
.facts dt { color: var(--gold); font-size: 0.95rem; }
.facts dd { margin: 0.15rem 0 0; font-family: var(--serif); font-size: 1.25rem; color: var(--maroon-deep); }
.venue-block { margin-bottom: 1.2rem; }
.venue-name {
  font-family: var(--serif);
  color: var(--maroon-deep);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.location-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--maroon);
  text-decoration: none;
  cursor: pointer;
  max-width: 100%;
}
.location-text { border-bottom: 1px solid transparent; }
.location-link:hover .location-text,
.location-link:focus-visible .location-text { border-bottom-color: var(--gold); }

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 1rem;
}

.clock {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.time-cell {
  min-width: 5.2rem;
  padding: 0.7rem 0.4rem;
  background: var(--ivory);
  border: 1px solid var(--gold-soft);
}
.time-cell strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--maroon);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.time-cell span { color: var(--brown-soft); font-size: 0.95rem; }
.colon { font-family: var(--serif); color: var(--gold); font-size: 2rem; }
.today {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--maroon);
}
.reminder {
  max-width: 720px;
  margin: 2.2rem auto 0;
  text-align: center;
}
.reminder h3 { font-size: 2rem; margin-bottom: 0.5rem; }
.reminder > p { margin-bottom: 0.4rem; }

.timeline-wrap {
  position: relative;
  max-width: 980px;
  margin: 2rem auto 0;
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.spine {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(var(--gold), var(--maroon));
}
.timeline li {
  position: relative;
  width: calc(50% - 40px);
  margin-bottom: 1.6rem;
}
.timeline li:nth-child(odd) { margin-right: auto; }
.timeline li:nth-child(even) { margin-left: auto; }
.marker {
  position: absolute;
  top: 1.2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ivory);
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  z-index: 1;
}
.timeline li:nth-child(odd) .marker { left: calc(100% + 14px); }
.timeline li:nth-child(even) .marker { left: -66px; }
.event-glyph { width: 32px; height: 32px; }
.event-card {
  background: var(--paper);
  border: 1px solid var(--gold-soft);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.15rem 1.3rem;
  text-align: left;
}
.timeline li.haldi .event-card {
  background: var(--haldi);
  border-color: #e3c56a;
}
.event-kicker { color: var(--gold); letter-spacing: 0.06em; }
.event-card h3 { font-size: 1.8rem; margin: 0.15rem 0 0.3rem; }
.event-when, .address-line, .note, .desc { margin-top: 0.35rem; }
.note { font-family: var(--serif); color: var(--maroon); }
.event-card .action-row { justify-content: flex-start; }
.event-card .location-link { align-items: flex-start; }

.venue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.venue-card {
  background: var(--paper);
  border: 1px solid var(--gold-soft);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.45rem;
  justify-items: start;
}
.venue-card h3 { font-size: 1.6rem; }
.venue-card .location-link { align-items: flex-start; }

.family-gallery {
  display: grid;
  gap: 1rem;
  align-items: stretch;
  margin: 0 auto 1.4rem;
  max-width: 980px;
}
.single-family-gallery {
  grid-template-columns: 1fr;
}
.family-figure {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center center;
  border: 1px solid var(--gold-soft);
  background: #f5efe5;
  box-shadow: var(--shadow);
}
.family-figure-center {
  height: auto;
  object-fit: contain;
  object-position: center;
}
.blessings-art, .closing-art {
  display: block;
  width: min(100%, 860px);
  margin: 0 auto 1.4rem;
  border: 1px solid var(--gold-soft);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.family-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  text-align: center;
  margin: 1.2rem 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--maroon-deep);
}

.closing { text-align: center; }
.closing .lede { margin: 0.8rem auto; }
.closing-kalash { width: 160px; margin-bottom: 0.6rem; }
.close-te {
  font-size: clamp(2rem, 5vw, 3.1rem);
  color: var(--maroon);
  line-height: 1.45;
}
.close-heading {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--maroon-deep);
  margin: 0.4rem 0 0.8rem;
}
.signoff { margin-top: 1.2rem; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.5rem; }
.sign-names { font-family: var(--serif); font-size: 1.8rem; color: var(--maroon-deep); }
.sign-parents { color: var(--brown-soft); }
.colophon {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gold-soft);
  color: var(--brown-soft);
  font-size: 1.05rem;
}
.closing .menu { left: 50%; right: auto; transform: translateX(-50%); }

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (max-width: 860px) {
  body { padding: 20px 12px 28px; }
  .muggu.top, .muggu.bottom { height: 18px; background-size: auto 18px; }
  .muggu-side { top: 18px; bottom: 18px; width: 12px; }
  .muggu-rot { height: 12px; background-size: auto 12px; }
  .site-nav { top: 18px; }
  .nav-toggle { display: grid; place-items: center; }
  .site-nav nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem 1rem 1rem;
    background: var(--ivory);
    border-bottom: 1px solid var(--gold-soft);
    max-height: calc(100vh - var(--nav));
    overflow: auto;
  }
  .site-nav nav.is-open { display: flex; }
  .site-nav nav a { padding: 0.75rem 0.2rem; font-size: 1.2rem; }
  .site-nav .menu { position: static; box-shadow: none; }
  .couple-grid, .venue-grid, .facts, .family-grid { grid-template-columns: 1fr; }
  .couple-heart { width: min(100%, 180px); margin: 0 auto; }
  .family-grid .ampersand { display: none; }
  .spine { left: 22px; transform: none; }
  .timeline li, .timeline li:nth-child(odd), .timeline li:nth-child(even) {
    width: auto;
    margin-left: 3.4rem;
    margin-right: 0;
  }
  .timeline li .marker, .timeline li:nth-child(odd) .marker, .timeline li:nth-child(even) .marker {
    left: -3.15rem;
    right: auto;
  }
  .hero-art { max-height: 250px; }
  .section { padding: 3.4rem 1.1rem; }
  .site-nav { padding-inline: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .petal, .curtain { display: none; }
  .btn { transition: none; }
  body::before, .field-motion { animation: none; }
}

@keyframes field-breathe {
  from { transform: scale(1); }
  to { transform: scale(1.07) translateY(-1.2%); }
}

