:root {
  --invitation-cream: #faf6ec;
  --invitation-wine: #651438;
  --invitation-plum: #32102c;
  --invitation-gold: #c6a15e;
  --event-height: 472px;
  --event-padding: 32px;
  --event-radius: 28px;
  --event-shadow: 0 14px 22px -13px #24182630, 0 34px 48px -24px #24182640;
  --event-motion-curve: cubic-bezier(.2, .75, .2, 1);
  --site-header-height: 98px;
}

/* The open invitation and its original Telugu artwork retain their existing layout. */
body { background-color: var(--invitation-cream); }
html { scroll-padding-top: calc(var(--site-header-height) + 12px); }
body > header { background: #faf7f1; height: var(--site-header-height); min-height: var(--site-header-height); padding-block: 6px; }
.invitation-ambient { top: var(--site-header-height); }
#home.hero { background: radial-gradient(ellipse at 48% 30%, #fffef8 0%, #fcf5e7 56%, #f0e3cb 100%); }
#home .hero-border { display: none; }
#home .hero-intro { color: #725845; }
#home .button.gold { background: linear-gradient(125deg, #e4c17d, #f1d59d 50%, #d5af68); color: #4c2d27; box-shadow: 0 7px 16px -10px #764a2866; }

#celebrations.celebrations { overflow: visible; background: linear-gradient(180deg, #f3eddf, #faf7ee 26%, #f2eadc); }
#celebrations > .section-heading { margin-bottom: 88px; }
#celebrations .event-grid { grid-auto-rows: 1fr; gap: 76px 32px; perspective: none; }
#celebrations .event-grid > .event-card {
  --event-ink: #fff4e4;
  --event-muted: #f0dfc7;
  --event-label: #edce94;
  --event-divider: #f5dfb938;
  --event-number-surface: #f5deb614;
  --event-number-ink: #efdbb6;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: var(--event-height);
  padding: 0;
  overflow: visible;
  border: 0 !important;
  border-radius: var(--event-radius);
  background: transparent;
  color: var(--event-ink);
  box-shadow: var(--event-shadow) !important;
  transform-style: preserve-3d;
  transform: perspective(1600px) rotateX(calc(1.5deg + var(--card-tilt-x, 0deg))) rotateY(calc(-2deg + var(--card-tilt-y, 0deg))) rotateZ(-.2deg);
  transition: transform 600ms var(--event-motion-curve);
}

#celebrations .event-card > .card-surface {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  background: var(--event-surface);
  pointer-events: none;
}

#celebrations .event-card:nth-child(1) {
  --event-surface: radial-gradient(ellipse at 98% 0%, #efb77b1f, transparent 44%), linear-gradient(130deg, #852043 0%, #651438 48%, #32102c 100%);
}

#celebrations .event-card:nth-child(2) {
  --event-surface: radial-gradient(ellipse at 94% 0%, #fff3ba80, transparent 50%), linear-gradient(130deg, #f3ce6a 0%, #e8b947 53%, #ce9630 100%);
  --event-ink: #4f2d14;
  --event-muted: #5c371b;
  --event-label: #65411e;
  --event-divider: #80562645;
  --event-number-surface: #70461912;
  --event-number-ink: #694018;
}

#celebrations .event-card:nth-child(3) {
  --event-surface: radial-gradient(ellipse at 96% 0%, #c8db9e1c, transparent 46%), linear-gradient(130deg, #235a43 0%, #164831 50%, #0c3028 100%);
  --event-ink: #fff5df;
  --event-muted: #e7e4ca;
  --event-label: #e4c581;
  --event-divider: #e5d29b38;
}

#celebrations .event-card:nth-child(4) {
  --event-surface: radial-gradient(ellipse at 97% 0%, #edba6c1f, transparent 45%), linear-gradient(130deg, #9b303d 0%, #812033 50%, #51132b 100%);
  --event-ink: #fff4df;
  --event-muted: #f4e0c5;
  --event-label: #f0ce88;
}

#celebrations .event-card > .event-crest {
  position: absolute;
  z-index: 3;
  top: -43px;
  right: -10px;
  width: min(210px, 43%);
  height: auto;
  transform: translateZ(24px) rotate(2deg);
  filter: drop-shadow(0 9px 7px #24182042);
  pointer-events: none;
}

#celebrations .event-card > .card-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  min-height: var(--event-height);
  padding: var(--event-padding);
  color: var(--event-ink);
}

#celebrations .event-card .event-top { display: flex; justify-content: space-between; align-items: center; min-height: 68px; margin-bottom: 18px; }
#celebrations .event-card .event-top > svg { display: none; }
#celebrations .event-card .event-number { display: inline-grid; place-items: center; width: 36px; height: 32px; padding: 0; border-radius: 20px; background: var(--event-number-surface); color: var(--event-number-ink); font-family: var(--sans); font-size: 12px; line-height: 1; letter-spacing: .02em; }
#celebrations .event-card .event-date { margin: 0 0 12px; color: var(--event-muted); font-family: var(--sans); font-size: 14px; line-height: 1.65; }
#celebrations .event-card h3 { margin: 0; max-width: 100%; color: var(--event-ink); font-family: var(--serif); font-size: 42px; font-weight: 400; line-height: 1.08; letter-spacing: -.018em; overflow-wrap: normal; font-optical-sizing: auto; }
#celebrations .event-card h3 .title-line { display: block; }
#celebrations .event-card .event-time { margin: 20px 0 0; color: var(--event-ink); font-family: var(--sans); font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: 0; }
#celebrations .event-card .event-description { margin: 10px 0 28px; color: var(--event-muted); font-family: var(--sans); font-size: 15px; font-weight: 400; line-height: 1.7; }
#celebrations .event-card .ceremony-art { display: none; }
#celebrations .event-card .event-attire { margin: auto 0 0; padding-top: 17px; min-height: 68px; border-top: 1px solid var(--event-divider); color: var(--event-ink); font-family: var(--sans); font-size: 14px; line-height: 1.65; }
#celebrations .event-card .event-attire > span { display: block; margin-bottom: 5px; color: var(--event-label); font-size: 10px; line-height: 1.6; letter-spacing: .11em; text-transform: uppercase; opacity: 1; }

#celebrations .event-card.full-card-active { animation: event-card-float 8s cubic-bezier(.45, 0, .55, 1) infinite; }
#celebrations .event-card:nth-child(2) { animation-delay: -2s; }
#celebrations .event-card:nth-child(3) { animation-delay: -4s; }
#celebrations .event-card:nth-child(4) { animation-delay: -6s; }

.venue-section { background: linear-gradient(180deg, #f2eadc, #faf6ec); }
.venue-section .venue-inner { background: linear-gradient(115deg, #e8ce91, #f8e9bc 53%, #e6c58b); box-shadow: 0 12px 24px -20px #60451d4d; }
#stay.stay-section { background: linear-gradient(180deg, #faf6ec, #f5eedf); }
#stay .stay-group { background: linear-gradient(135deg, #fffaf0, #f0e4c9); box-shadow: 0 12px 24px -24px #694a294d; }
#stay .hotel-card { background: linear-gradient(135deg, #fffcf5, #f2e8d5); }
#stay .homes-card { background: linear-gradient(135deg, #faf1e1, #eedcbd); }
#stay .stay-accordion > summary { color: #642d3e; }
#rsvp.rsvp-section { background: radial-gradient(ellipse at 50% 0, #782d48, #571733 56%, #3a102a 100%); }
#rsvp > .section-heading h2 { color: var(--invitation-cream); }
#rsvp > .section-heading .eyebrow { color: #edce94; }
#rsvp > .section-heading .rsvp-intro { color: #f0dfc7; }
body > footer { background: linear-gradient(180deg, #3a102a, #290c22 90%); }
body > footer::before { background: #3a102a; }

@keyframes event-card-float {
  0%, 100% { translate: 0 2px; }
  50% { translate: 0 -2px; }
}

@media (max-width: 800px) and (min-width: 701px) {
  #celebrations .event-card h3 { font-size: 34px; }
  #celebrations .event-card > .card-copy { padding: 26px; }
  #celebrations .event-card .event-description { font-size: 14px; }
}

@media (max-width: 700px) {
  :root { --event-height: 470px; --event-padding: 26px; --event-radius: 24px; }
  #celebrations.celebrations { padding-inline: 20px; }
  #celebrations > .section-heading { margin-bottom: 77px; }
  #celebrations .event-grid { gap: 72px; }
  #celebrations .event-card > .event-crest { top: -35px; right: -7px; width: min(195px, 43%); transform: translateZ(18px) rotate(2deg); }
  #celebrations .event-card .event-top { min-height: 78px; }
  #celebrations .event-card h3 { font-size: 34px; line-height: 1.1; }
  #celebrations .event-card .event-description, #celebrations .event-card .event-attire { font-size: 14px; }
  #celebrations .event-card .event-attire > span { font-size: 11px; }
}

@media (max-width: 380px) {
  :root { --event-padding: 24px; }
  #celebrations .event-card h3 { font-size: 31px; }
}

@media (pointer: coarse) {
  #celebrations .event-grid > .event-card { transform: perspective(1600px) rotateX(.75deg) rotateY(-1deg); transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  #celebrations .event-grid > .event-card { animation: none; translate: none; transform: none; transition: none; }
}

/* Approved textile S/R artwork uses a single cached transparent asset. */
body > header .monogram { display: inline-flex; align-items: center; justify-content: center; min-width: 98px; min-height: 84px; padding: 0; line-height: 1; }
body > header .monogram img { display: block; width: 98px; height: 84px; object-fit: contain; }
body > footer .footer-monogram { display: block; width: 148px; height: 148px; margin: 0 auto 20px; object-fit: contain; }
body > header .monogram img, body > footer .footer-monogram { filter: saturate(1.22) contrast(1.08) brightness(1.08); }
@media (max-width: 700px) {
  :root { --site-header-height: 90px; }
  body > header .monogram { min-width: 88px; min-height: 76px; }
  body > header .monogram img { width: 88px; height: 76px; }
}
@media (max-width: 380px) {
  :root { --site-header-height: 84px; }
  body > header .monogram { min-width: 76px; min-height: 70px; }
  body > header .monogram img { width: 76px; height: 70px; }
}
