/* Type scale
   Telugu openings: Noto Serif Telugu, 600, clamp(1.8rem, 8cqi, 2.9rem), line-height 1.45
   Names: Cormorant Garamond, 600, clamp(1.55rem, 7.4cqi, 2.9rem), line-height 1.15
   Section titles: Cormorant Garamond, 600, clamp(2.1rem, 4.5vw, 3.3rem)
   Eyebrows: Playfair Display italic, 0.78rem, letter-spacing 0.16em
   Body and addresses: Georgia, 1.125rem, line-height 1.7, color #3E2418
   Buttons: Playfair Display, 1rem
   Countdown: Cormorant Garamond, clamp(2rem, 6vw, 3.5rem)
*/

:root {
  --clay: #b83210;
  --clay-deep: #6e1c10;
  --maroon: #6e1c10;
  --ink: #3e2418;
  --ink-soft: #5a3a2c;
  --cream: #fff8f2;
  --cream-deep: #f6efe6;
  --gold: #c6a15a;
  --gold-soft: #e4c98a;
  --haldi: #e2b34a;
  --header: 74px;
  --dock: 62px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-label: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;
  --font-te: "Noto Serif Telugu", "Noto Sans Telugu", "Nirmala UI", "Gautami", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #fffdf7;
  background-image: url("../art/Template11.jpg");
  background-position: center top;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}

body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  min-width: 320px;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--maroon);
  outline-offset: 3px;
}

.site-header :focus-visible,
.hero :focus-visible,
.dock :focus-visible,
.date-card :focus-visible {
  outline-color: var(--gold-soft);
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--cream);
  color: var(--maroon);
  padding: 0.6rem 0.9rem;
  z-index: 80;
}

.skip:focus {
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header);
  padding: 0.45rem 1.25rem 1.05rem;
  background: var(--clay-deep) url("../art/kolam.svg") repeat-x bottom / auto 14px;
  color: var(--cream);
}

.site-header nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--cream);
  line-height: 1;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 2px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  background: var(--cream);
  object-fit: contain;
}

.brand em {
  font-style: italic;
  color: var(--gold-soft);
  font-weight: 500;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 0.1rem;
  font-family: var(--font-label);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  color: var(--cream);
}

.nav-links a[aria-current="true"] {
  color: var(--gold-soft);
  box-shadow: inset 0 -1px 0 var(--gold-soft);
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.nav-check:focus-visible + .nav-toggle {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}

.nav-toggle .close-label,
.menu-close {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--gold-soft);
  background: transparent;
  color: var(--cream);
  font-family: var(--font-label);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.nav-toggle > span[aria-hidden="true"],
.nav-toggle > span[aria-hidden="true"]::before,
.nav-toggle > span[aria-hidden="true"]::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--cream);
  position: relative;
}

.nav-toggle > span[aria-hidden="true"]::before,
.nav-toggle > span[aria-hidden="true"]::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle > span[aria-hidden="true"]::before {
  top: -5px;
}

.nav-toggle > span[aria-hidden="true"]::after {
  top: 5px;
}

.wrap {
  width: min(1040px, calc(100% - 1.25rem));
  margin-inline: auto;
}

.block {
  padding: 0.85rem 0 1.1rem;
  scroll-margin-top: 120px;
}

@media (max-width: 760px) {
  .block {
    scroll-margin-bottom: 84px;
  }
}

.sheet {
  background: rgba(255, 248, 242, 0.94);
  color: var(--ink);
  border: 1px solid var(--gold-soft);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(80, 16, 6, 0.16);
  padding: clamp(1.35rem, 4vw, 3rem);
}

.sheet :is(h2, h3, .person-name, .event h3) {
  text-wrap: balance;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-family: var(--font-label);
  font-style: italic;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b3a22;
}

h2,
.person-name,
.event h3,
.date-card .daynum {
  font-family: var(--font-display);
  font-weight: 600;
}

h2 {
  margin: 0 0 0.85rem;
  color: var(--maroon);
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  line-height: 1.12;
}

.center {
  text-align: center;
}

.events-heading .eyebrow {
  color: var(--clay-deep);
  font-weight: 600;
}

.events-heading h2 {
  color: var(--maroon);
  font-weight: 700;
  text-shadow: 0 1px rgba(255, 248, 242, 0.85);
}

.lede {
  margin: 0 auto 1rem;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 0.85rem 0.65rem 1.4rem;
}

.hero-card {
  position: relative;
  width: min(540px, 100%);
  margin: 0 auto;
  container-type: inline-size;
  box-shadow: 0 22px 50px rgba(70, 12, 4, 0.28);
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  background: var(--clay);
}

.hero-copy {
  position: absolute;
  inset: 34% 11% 6.5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  text-align: center;
  color: var(--cream);
  text-shadow: 0 1px 0 rgba(90, 18, 6, 0.35);
}

.te {
  margin: 0;
  font-family: var(--font-te);
  font-weight: 600;
  font-size: clamp(1.8rem, 8cqi, 2.9rem);
  line-height: 1.45;
  color: var(--cream);
}

.hero-kicker {
  margin: 0;
  font-family: var(--font-label);
  font-style: italic;
  font-size: clamp(0.72rem, 3.1cqi, 0.95rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffe7c8;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 7.4cqi, 2.9rem);
  line-height: 1.12;
  color: var(--cream);
}

.hero .amp {
  font-style: italic;
  font-weight: 500;
  font-size: 0.72em;
  color: #f3d7a0;
  line-height: 1;
}

.hero-blessing {
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-body);
  font-size: clamp(0.92rem, 3.5cqi, 1.08rem);
  line-height: 1.45;
  color: var(--cream);
}

.btn,
.cal summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: var(--maroon);
  color: var(--cream);
  font-family: var(--font-label);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}

.btn:hover,
.cal summary:hover {
  background: #54160c;
}

.btn-cream {
  background: var(--cream);
  color: var(--maroon);
}

.btn-cream:hover {
  background: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--maroon);
}

.btn-ghost:hover {
  background: rgba(110, 28, 16, 0.06);
}

.hero .btn {
  text-shadow: none;
}

.petals span {
  position: absolute;
  top: -12%;
  width: 11px;
  height: 16px;
  border-radius: 80% 0 80% 0;
  background: #f4c7c2;
  opacity: 0.9;
  animation: fall linear infinite;
}

.petals span:nth-child(1) { left: 6%; animation-duration: 13s; animation-delay: -2s; background: #f7d3a1; }
.petals span:nth-child(2) { left: 18%; animation-duration: 11s; animation-delay: -6s; }
.petals span:nth-child(3) { left: 78%; animation-duration: 14s; animation-delay: -3s; background: #f7d3a1; }
.petals span:nth-child(4) { left: 90%; animation-duration: 12s; animation-delay: -8s; }
.petals span:nth-child(5) { left: 48%; animation-duration: 15s; animation-delay: -11s; width: 8px; height: 12px; }
.petals span:nth-child(6) { left: 32%; animation-duration: 16s; animation-delay: -4s; background: #f8dce0; }

@keyframes fall {
  0% { transform: translateY(-10%) rotate(0deg); opacity: 0; }
  12% { opacity: 0.85; }
  100% { transform: translateY(110vh) rotate(200deg); opacity: 0; }
}

.curtain {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  pointer-events: none;
  animation: curtain-gone 0.01s linear 3s forwards;
}

.curtain-panel {
  flex: 1;
  background: var(--clay);
}

.curtain-panel.left {
  animation: part-left 1s ease 1.15s forwards;
  box-shadow: inset -10px 0 0 rgba(255, 243, 234, 0.85);
}

.curtain-panel.right {
  animation: part-right 1s ease 1.15s forwards;
  box-shadow: inset 10px 0 0 rgba(255, 243, 234, 0.85);
}

.curtain-word {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font-family: var(--font-te);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 600;
  color: var(--cream);
  animation: word 1.7s ease forwards;
}

@keyframes part-left { to { transform: translateX(-105%); } }
@keyframes part-right { to { transform: translateX(105%); } }
@keyframes word {
  0% { opacity: 0; }
  18% { opacity: 1; }
  68% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes curtain-gone { to { visibility: hidden; } }

.couple-grid {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.person {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  max-width: 26rem;
}

.portrait {
  width: min(100%, 280px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 18%;
  border: 3px solid var(--gold);
  border-radius: 140px 140px 16px 16px;
  background: var(--clay);
}

.portrait-groom {
  transform: scaleX(-1);
  object-position: center 12%;
}

.person-name {
  margin: 0.15rem 0;
  color: var(--maroon);
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  line-height: 1.15;
  text-align: center;
}

.parents {
  margin: 0;
  max-width: 34ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #4a3026;
  text-align: center;
}

.union {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.2rem;
  color: var(--maroon);
}

.union .om {
  font-family: var(--font-te);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold);
}

.union svg {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.muhurtham-grid {
  display: grid;
  gap: 1.35rem;
  align-items: center;
}

.date-card {
  background: var(--maroon);
  color: var(--cream);
  border: 1px solid var(--gold-soft);
  box-shadow: inset 0 0 0 5px rgba(228, 201, 138, 0.28);
  border-radius: 16px;
  padding: 1.3rem 1rem 1.15rem;
  text-align: center;
}

.date-card .eyebrow,
.date-card .when-label {
  color: var(--gold-soft);
}

.date-card .daynum {
  margin: 0;
  font-size: clamp(4.5rem, 12vw, 6.5rem);
  line-height: 0.85;
  color: var(--cream);
}

.date-card .month,
.date-card .weekday {
  margin: 0.15rem 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.date-card .clock {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: #f3d7a0;
}

.facts {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.facts div {
  display: grid;
  gap: 0.1rem;
}

.facts dt {
  font-family: var(--font-label);
  font-style: italic;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b3a22;
}

.facts dd {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

.place {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin: 0 0 0.25rem;
  font-size: 1.15rem;
}

.icon {
  flex: 0 0 auto;
  margin-top: 0.28rem;
  color: var(--maroon);
}

.address,
.map-link {
  overflow-wrap: anywhere;
}

.map-link {
  color: var(--maroon);
  font-size: 0.98rem;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.cal {
  position: relative;
}

.cal summary {
  list-style: none;
}

.cal summary::-webkit-details-marker {
  display: none;
}

@media (max-width: 760px) {
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actions .btn,
  .actions .cal,
  .actions .cal summary {
    width: 100%;
  }
}

.cal-menu {
  position: absolute;
  z-index: 5;
  left: 0;
  top: calc(100% + 0.35rem);
  min-width: 220px;
  display: grid;
  padding: 0.4rem;
  background: #fff;
  border: 1px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(80, 16, 6, 0.16);
}

.cal-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  color: var(--maroon);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: 4px;
}

.cal-menu a:hover {
  background: var(--cream-deep);
}

.note {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.count-frame {
  position: relative;
  margin: 1.8rem 0.35rem 0;
  padding: clamp(1.2rem, 3vw, 2.3rem) clamp(1.5rem, 4vw, 3.2rem);
  border: 1px solid var(--gold);
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 12px 28px rgba(80, 16, 6, 0.12);
}

.frame-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--gold);
  border-style: solid;
  pointer-events: none;
}

.frame-corner-tl {
  top: 12px;
  left: 12px;
  border-width: 1px 0 0 1px;
  border-radius: 24px 0 0;
}

.frame-corner-tr {
  top: 12px;
  right: 12px;
  border-width: 1px 1px 0 0;
  border-radius: 0 24px 0 0;
}

.frame-corner-bl {
  bottom: 12px;
  left: 12px;
  border-width: 0 0 1px 1px;
  border-radius: 0 0 0 24px;
}

.frame-corner-br {
  right: 12px;
  bottom: 12px;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 24px;
}

.counter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 0.4rem;
  align-items: start;
}

.unit {
  min-width: 0;
  text-align: center;
}

.unit strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 8vw, 3.6rem);
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  color: var(--maroon);
}

.unit span {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b3a22;
}

.colon {
  display: none;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--gold);
  padding-top: 0.15rem;
}

.date-lock {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.countdown-counter {
  grid-template-columns: repeat(7, minmax(0, auto));
  justify-content: center;
  align-items: center;
  gap: clamp(0.3rem, 1.4vw, 1rem);
}

.countdown-counter .unit {
  display: grid;
  align-content: center;
  min-width: clamp(68px, 9vw, 104px);
  min-height: clamp(76px, 9vw, 102px);
  padding: 0.45rem 0.6rem;
  border: 1px solid rgba(198, 161, 90, 0.58);
  background: rgba(250, 246, 237, 0.9);
}

.countdown-counter .unit strong {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

.countdown-counter .unit span {
  margin-top: 0;
  font-size: clamp(0.68rem, 1.1vw, 0.82rem);
  letter-spacing: 0.02em;
  text-transform: none;
}

.countdown-counter .colon {
  display: block;
  padding: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
}

.countdown-finished {
  margin: 2rem 0 0;
  color: var(--maroon);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 600;
}

@media (min-width: 760px) {
  .counter {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.2fr) auto minmax(0, 1.2fr);
    gap: 0.2rem;
  }

  .countdown-counter {
    grid-template-columns: repeat(7, auto);
    gap: clamp(0.3rem, 1.4vw, 1rem);
  }

  .date-lock {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }

  .colon {
    display: block;
  }

  .unit strong {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
  }
}

@media (max-width: 560px) {
  .countdown-counter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .countdown-counter .colon {
    display: none;
  }

  .countdown-counter .unit {
    min-width: 0;
    min-height: 74px;
  }
}

.today {
  margin: 0.4rem 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.2;
  color: var(--maroon);
}

.reminder {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(198, 161, 90, 0.45);
}

.reminder h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  color: var(--maroon);
}

.reminder blockquote {
  margin: 0.8rem 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--gold);
  background: #fff;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.6;
}

.status {
  min-height: 1.4em;
  margin: 0.7rem 0 0;
  color: var(--ink);
  font-size: 1rem;
}

.timeline {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.tl-item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.75rem;
  align-items: start;
}

.tl-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--cream);
  color: var(--maroon);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--clay);
}

.tl-icon svg {
  width: 28px;
  height: 28px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--gold-soft);
}

.event h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--maroon);
  line-height: 1.1;
}

.event-time {
  margin: 0 0 0.2rem;
  font-family: var(--font-label);
  font-style: italic;
  color: #6b3a22;
  font-size: 1rem;
}

.event p {
  margin: 0.35rem 0;
}

.event-haldi {
  background:
    radial-gradient(circle at 0 0, rgba(242, 193, 68, 0.5), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(214, 148, 42, 0.28), transparent 28%),
    #fff3d4;
  border-color: #d7a63a;
}

.venue-grid,
.home-venue {
  display: grid;
  gap: 1rem;
}

.map-frame {
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  overflow: hidden;
  min-height: 240px;
  background: var(--cream-deep);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.feet {
  width: min(100%, 800px);
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  border: 3px solid var(--gold);
  display: block;
  margin: 0 auto 1rem;
  background: var(--cream);
}

.family-lines {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 1.08rem;
  line-height: 1.55;
}

.painting img {
  width: min(100%, 680px);
  height: auto;
  display: block;
  margin: 0 auto 1.15rem;
  border-radius: 12px;
  border: 3px solid var(--gold);
  background: var(--clay);
}

.closing-te {
  display: block;
  font-family: var(--font-te);
  font-weight: 600;
  font-size: clamp(1.8rem, 5vw, 2.7rem);
  line-height: 1.55;
  color: var(--maroon);
}

.closing-en {
  display: block;
  margin-top: 0.35rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.signoff {
  margin: 1.2rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--maroon);
}

.signoff strong {
  font-weight: 600;
}

.share {
  margin-top: 1.4rem;
}

.site-footer {
  padding: 0.4rem 1rem 1.4rem;
  text-align: center;
  color: var(--maroon);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.dock {
  display: none;
}

.noscript {
  width: min(1040px, calc(100% - 1.25rem));
  margin: 0.8rem auto;
  padding: 0.8rem 1rem;
  background: var(--cream);
  color: var(--ink);
  border-radius: 8px;
}

@media (min-width: 800px) {
  .wrap {
    width: min(1040px, calc(100% - 4rem));
  }

  .couple-grid {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem 1.5rem;
  }

  .muhurtham-grid {
    grid-template-columns: minmax(240px, 0.8fr) 1.2fr;
  }

  .venue-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .timeline::before {
    left: 50%;
  }

  .tl-item {
    grid-template-columns: 1fr 64px 1fr;
    gap: 1rem;
  }

  .tl-icon {
    grid-column: 2;
    grid-row: 1;
    margin-inline: auto;
  }

  .tl-item .event {
    grid-column: 1;
    grid-row: 1;
  }

  .tl-item:nth-child(even) .event {
    grid-column: 3;
  }
}

@media (max-width: 1000px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
  }

  .nav-check:checked + .nav-toggle .open-label {
    display: none;
  }

  .nav-check:checked + .nav-toggle .close-label {
    display: inline;
  }

  .nav-check:checked ~ nav .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: fixed;
    z-index: 35;
    inset: var(--header) 0 0 0;
    width: 100%;
    margin: 0;
    padding: 0.75rem 0 1.5rem;
    background: var(--cream);
    color: var(--maroon);
    overflow: auto;
    gap: 0;
  }

  .nav-check:checked ~ nav .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(198, 161, 90, 0.45);
  }

  .nav-check:checked ~ nav .menu-close {
    display: flex;
    justify-content: center;
  }

  .menu-close label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    font-family: var(--font-label);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8a5a2a;
    cursor: pointer;
  }

  .nav-check:checked ~ nav .nav-links a {
    width: 100%;
    min-height: 56px;
    color: var(--maroon);
    font-family: var(--font-display);
    font-size: 1.65rem;
    letter-spacing: 0;
    text-align: center;
  }
}

@media (max-width: 760px) {
  .dock {
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: var(--dock);
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--clay-deep);
    border-top: 1px solid var(--gold-soft);
  }

  .dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.35rem 0.2rem;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    color: var(--cream);
    font-family: var(--font-label);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    line-height: 1;
  }

  .dock a[aria-current="true"] {
    color: var(--gold-soft);
  }

  body {
    padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom));
  }

  .nav-check:checked ~ nav .nav-links {
    bottom: var(--dock);
  }

  .site-footer {
    padding-bottom: 0.8rem;
  }

  .cal-menu {
    position: static;
    min-width: 0;
    margin-top: 0.4rem;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .curtain { display: none; }
  .petals { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: rise 0.7s ease both;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .dock,
  .petals,
  .curtain,
  .actions,
  .share {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    padding: 0;
  }

  .sheet,
  .hero-card {
    box-shadow: none;
  }
}
