:root {
  color-scheme: light;
  --wine: #741e2a;
  --wine-dark: #591720;
  --gold: #a86e2f;
  --gold-light: #d8b67e;
  --paper: #fff8ed;
  --ink: #382821;
  --muted: #796257;
  --hindi: "Hind", "Noto Sans Devanagari", sans-serif;
  --display: "Yatra One", "Hind", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("assets/invitation-background-web.jpg");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: min(100%, 860px) auto;
  font-family: var(--hindi);
  font-size: 17px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  min-height: 68px;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px clamp(18px, 5vw, 58px);
  background: #fff9f0;
  border-bottom: 1px solid #d9bb8c;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--wine);
  text-decoration: none;
  font-weight: 700;
  line-height: 1.15;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 16px;
}
.brand-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 500; }
.site-nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 34px); }
.site-nav a { color: var(--wine); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover, .site-nav a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; }

.hero { padding: 22px 16px 24px; }
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 900px);
  min-height: 760px;
  margin: auto;
}
.hero-arch {
  position: absolute;
  z-index: 0;
  top: -8px;
  left: 50%;
  width: min(112vw, 700px);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  object-fit: contain;
}
.hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  margin-top: 42px;
  padding: 24px 20px 148px;
  text-align: center;
  background: rgb(255 250 242 / 82%);
  border: 1px solid rgb(178 126 63 / 55%);
}
.hero-ganesha { width: 112px; height: 112px; object-fit: contain; margin: 0 auto 2px; }
.invocation { margin: 0; color: var(--wine); font-size: 15px; letter-spacing: .04em; }
.hero-kicker { margin: 12px 0 6px; color: var(--muted); font-size: 17px; }
.hero h1 {
  display: flex;
  justify-content: center;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 11px;
  margin: 2px 0 10px;
  color: var(--wine);
  font-family: var(--display);
  font-size: clamp(38px, 8vw, 60px);
  font-weight: 400;
  line-height: 1.2;
}
.hero h1 i { display: block; flex-basis: 100%; margin-top: -7px; color: var(--muted); font: 500 14px var(--hindi); }
.hero h1 em { color: var(--gold); font: italic 18px "Playfair Display", serif; }
.hero-date { margin: 11px 0 0; color: var(--wine); font-size: clamp(20px, 4vw, 25px); font-weight: 700; }
.hero-date span { color: var(--gold); }
.hero-place { margin: 1px 0 18px; color: var(--muted); font-size: 15px; }
.primary-link, .secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 22px;
  border: 1px solid var(--wine);
  border-radius: 3px;
  color: white;
  background: var(--wine);
  font-weight: 600;
  text-decoration: none;
}
.primary-link:hover, .primary-link:focus-visible { background: var(--wine-dark); }
.hero-elephants {
  position: absolute;
  z-index: 2;
  right: 1%;
  bottom: 3px;
  left: 1%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  pointer-events: none;
}
.hero-elephants img { width: clamp(112px, 25vw, 188px); height: auto; object-fit: contain; }
.hero-elephants .elephant-mirror { transform: scaleX(-1); }

.content-panel {
  width: min(calc(100% - 32px), 850px);
  margin: 22px auto;
  padding: clamp(28px, 6vw, 64px);
  background: rgb(255 250 242 / 92%);
  border: 1px solid #d4b47d;
}
.welcome { text-align: center; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.welcome h2, .section-heading h2, .baraat-section h2, .site-footer h2 {
  margin: 0 0 12px;
  color: var(--wine);
  font-family: var(--display);
  font-size: clamp(30px, 6vw, 45px);
  font-weight: 400;
  line-height: 1.25;
}
.welcome-copy { max-width: 660px; margin: 0 auto; font-size: 18px; }
.family-intro {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  max-width: 740px;
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid #d9bb8c;
}
.family-intro div { display: grid; gap: 7px; color: var(--wine); }
.family-intro div strong { font-size: 18px; }
.family-intro div span { color: var(--muted); font-size: 14px; }
.family-intro > p { margin: 0; color: var(--gold); white-space: nowrap; }

.countdown-section { padding: 10px 16px; }
.countdown-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  width: min(100%, 850px);
  margin: auto;
  padding: 34px clamp(22px, 6vw, 56px);
  color: #fff8ee;
  background: var(--wine);
  border: 1px solid var(--gold-light);
}
.countdown-panel .eyebrow { color: #f1cb8f; }
.countdown-panel h2 { margin: 0; font-family: var(--display); font-size: clamp(26px, 4vw, 38px); font-weight: 400; }
.countdown-note { margin: 2px 0 0; color: #f2dfc7; }
.timer { display: flex; gap: 8px; }
.timer div {
  display: grid;
  place-items: center;
  align-content: center;
  width: clamp(62px, 8vw, 82px);
  min-height: 76px;
  border: 1px solid #d7b67d;
  text-align: center;
}
.timer b { font: 600 28px/1.1 "Playfair Display", serif; }
.timer span { color: #f2dfc7; font-size: 12px; }

.program { padding-bottom: 34px; }
.section-heading { margin-bottom: 26px; text-align: center; }
.section-heading > p:last-child { margin: 0; color: var(--muted); }
.event-list { display: grid; gap: 10px; max-width: 690px; margin: 0 auto; padding: 0; list-style: none; }
.event {
  display: grid;
  grid-template-columns: 77px 1fr;
  align-items: center;
  gap: 15px;
  min-height: 86px;
  padding: 12px 16px;
  background: #fffaf2;
  border: 1px solid #d8bd91;
}
.event-highlight { background: #f7e8ce; border-color: #c28b46; }
.event-date {
  display: grid;
  justify-items: center;
  align-content: center;
  padding-right: 13px;
  color: var(--wine);
  border-right: 1px solid #d8bd91;
  line-height: 1.25;
  text-decoration: none;
}
.event-date span, .event-date small { color: var(--muted); font-size: 12px; }
.event-date b { font: 500 27px/1.1 "Playfair Display", serif; }
.event-info h3 { margin: 0; color: var(--wine); font-size: 18px; line-height: 1.3; }
.event-info p { margin: 2px 0; color: var(--ink); }
.event-info small { color: var(--muted); font-size: 12px; }
.source-note { max-width: 690px; margin: 18px auto 0; color: var(--muted); font-size: 13px; text-align: center; }
.mandap-figure { margin: 34px auto 0; text-align: center; }
.mandap-figure img { width: min(100%, 720px); height: auto; margin: auto; }
.mandap-figure figcaption { margin-top: 7px; color: var(--wine); font-family: var(--display); font-size: 22px; }

.baraat-section { max-width: 850px; }
.baraat-section h2 { font-size: clamp(28px, 5vw, 40px); }
.baraat-section > p:not(.eyebrow) { max-width: 680px; margin: 0; font-size: 18px; }
.baraat-time {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  padding: 15px 18px;
  color: var(--wine);
  background: #f7e8ce;
  border-left: 3px solid var(--gold);
}
.baraat-time span { font-weight: 700; }

.venue-card {
  display: grid;
  justify-items: center;
  gap: 8px;
  max-width: 620px;
  margin: auto;
  padding: 24px;
  background: #fffaf2;
  border: 1px solid #d8bd91;
  text-align: center;
}
.venue-address h3 { margin: 0; color: var(--wine); font-size: 24px; }
.venue-address p { margin: 4px 0 18px; }
.secondary-link { color: var(--wine); background: transparent; }
.secondary-link:hover, .secondary-link:focus-visible { color: white; background: var(--wine); }

.preshak { text-align: center; }
.preshak-list { display: grid; gap: 8px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 22px 32px; color: var(--wine); background: #fffaf2; border: 1px solid #d8bd91; list-style: none; font-size: 19px; }
.preshak-list small { color: var(--muted); font-size: 14px; }
.preshak-address { margin: 20px 0 12px; color: var(--muted); }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.contact-links a { min-height: 42px; padding: 7px 14px; border: 1px solid #c99b5f; color: var(--wine); text-decoration: none; font-weight: 600; }

.site-footer {
  padding: 44px 18px 25px;
  color: var(--ink);
  text-align: center;
}
.site-footer > img { width: 98px; height: 98px; margin: 0 auto 7px; object-fit: contain; }
.site-footer h2 { margin-bottom: 7px; }
.site-footer > p:not(.invocation):not(.attributions) { margin: 0 0 12px; color: var(--muted); }
.site-footer > strong { display: block; color: var(--wine); font-family: var(--display); font-size: 25px; font-weight: 400; }
.site-footer > strong span { color: var(--gold); font: italic 16px "Playfair Display", serif; }
.site-footer > small { display: block; margin-top: 4px; color: var(--muted); }
.attributions { margin: 28px 0 0; color: var(--muted); font-size: 12px; }
.attributions a { color: var(--wine); }

@media (max-width: 700px) {
  html { scroll-padding-top: 64px; }
  body { font-size: 16px; }
  .site-header { min-height: 62px; padding: 7px 15px; }
  .brand-mark { width: 34px; height: 34px; }
  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 9px;
    border: 0;
    background: transparent;
  }
  .menu-toggle span { width: 24px; height: 2px; background: var(--wine); }
  .site-nav {
    display: none;
    position: absolute;
    top: 61px;
    right: 0;
    left: 0;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 14px;
    background: #fff9f0;
    border-bottom: 1px solid #d9bb8c;
  }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 10px 4px; border-top: 1px solid #eadcc5; }
  .hero { padding: 10px 10px 16px; }
  .hero-stage { min-height: 720px; }
  .hero-arch { top: 5px; width: min(126vw, 560px); }
  .hero-copy {
    width: min(100%, 520px);
    margin-top: 28px;
    padding: 24px 12px 138px;
    background: rgb(255 250 242 / 82%);
  }
  .hero-ganesha { width: 96px; height: 96px; }
  .hero-kicker { margin-top: 8px; font-size: 15px; }
  .hero h1 { gap: 4px 8px; font-size: clamp(34px, 9vw, 48px); }
  .hero h1 i { font-size: 12px; }
  .hero-date { font-size: 20px; }
  .hero-place { font-size: 13px; }
  .hero-elephants { right: 0; left: 0; bottom: 2px; }
  .hero-elephants img { width: clamp(100px, 28vw, 145px); }
  .content-panel { width: min(calc(100% - 22px), 620px); margin: 13px auto; padding: 28px 17px; }
  .welcome-copy { font-size: 17px; }
  .family-intro { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; padding-top: 18px; }
  .family-intro > p { white-space: normal; }
  .family-intro div span { font-size: 13px; }
  .countdown-section { padding: 6px 11px; }
  .countdown-panel { flex-direction: column; gap: 18px; padding: 24px 12px; text-align: center; }
  .timer { gap: 5px; width: 100%; justify-content: center; }
  .timer div { width: min(22vw, 75px); min-height: 70px; }
  .timer b { font-size: 24px; }
  .timer span { font-size: 11px; }
  .section-heading { margin-bottom: 19px; }
  .event-list { gap: 8px; }
  .event { grid-template-columns: 65px minmax(0, 1fr); gap: 11px; min-height: 76px; padding: 10px; }
  .event-info h3 { font-size: 16px; }
  .event-info p { font-size: 14px; }
  .event-date { padding-right: 9px; }
  .event-date b { font-size: 24px; }
  .event-date span, .event-date small { font-size: 11px; }
  .source-note { font-size: 12px; }
  .mandap-figure { margin-top: 25px; }
  .mandap-figure figcaption { font-size: 20px; }
  .baraat-section > p:not(.eyebrow) { font-size: 17px; }
  .baraat-time { display: grid; gap: 2px; }
  .venue-card { padding: 20px 12px; }
  .preshak-list { padding: 18px 15px; font-size: 18px; }
  .site-footer { padding-top: 35px; }
}

@media (max-width: 360px) {
  .hero-stage { min-height: 690px; }
  .hero-copy { padding-right: 8px; padding-left: 8px; }
  .hero h1 { font-size: 32px; }
  .event { grid-template-columns: 58px minmax(0, 1fr); gap: 8px; }
  .event-info h3 { font-size: 15px; }
}
