/* ============================================
   Design tokens — off-white / sage with gold accents
   ============================================ */
:root {
  --bg:           #F3F1E3;  /* off-white, leaning sage */
  --panel:        #EAE7D3;  /* card / panel background */
  --panel-deep:   #E1DEC5;  /* slightly deeper panel (inputs) */
  --line:         #CFC9A9;  /* borders */
  --gold:         #A9801F;  /* primary gold — headings, accents */
  --gold-bright:  #C79A3A;  /* hover / brighter gold */
  --gold-deep:    #8A6A1E;  /* small gold text needing more contrast */
  --ink:          #46422C;  /* primary body/heading text */
  --ink-soft:     #6B6650;  /* secondary text */
  --sage:         #7C8560;  /* sage accent for dividers */
  --ember:        #C06B36;  /* diya flame */

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Poppins', sans-serif;

  --max-width: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(169,128,31,0.05), transparent 40%),
    radial-gradient(circle at 85% 90%, rgba(124,133,96,0.06), transparent 40%);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

a { color: inherit; }

/* ============================================
   Twinkling diyas (decorative top strip)
   ============================================ */
.twinkle-diyas {
  /* full-bleed container that anchors an inner strip to the site's max width */
  width: 100%;
  display: block;
  padding: 18px 0 6px;
  /* space between diyas and the page content/card below */
  margin-bottom: clamp(12px, 3vw, 40px);
}

/* inner strip is constrained to the page max width and aligns with the main/card */
.twinkle-diyas .twinkle-inner {
  display: flex;
  align-items: center;
  padding: 0 24px;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  gap: clamp(8px, 2.2vw, 40px);
  justify-content: center; /* default for narrow screens */
}
/* Spread diyas more on medium and large viewports */
@media (min-width: 560px) and (max-width: 979px) {
  .twinkle-diyas .twinkle-inner { justify-content: space-evenly; gap: clamp(12px, 2.4vw, 48px); padding: 0 16px; }
}
@media (min-width: 980px) {
  .twinkle-diyas .twinkle-inner { justify-content: space-between; gap: clamp(16px, 1.8vw, 56px); padding: 0 24px; }
}
.twinkle-diyas .diya {
  font-size: 22px;
  line-height: 1;
  opacity: 0.5;
  filter: drop-shadow(0 0 3px rgba(169,128,31,0.35));
  animation: twinkle 3.4s ease-in-out infinite;
}
.twinkle-diyas .diya:nth-child(1) { animation-delay: 0s; }
.twinkle-diyas .diya:nth-child(2) { animation-delay: 0.5s; }
.twinkle-diyas .diya:nth-child(3) { animation-delay: 1s; }
.twinkle-diyas .diya:nth-child(4) { animation-delay: 1.5s; }
.twinkle-diyas .diya:nth-child(5) { animation-delay: 0.8s; }
.twinkle-diyas .diya:nth-child(6) { animation-delay: 2s; }
.twinkle-diyas .diya:nth-child(7) { animation-delay: 1.2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ============================================
   Hero / Arch card
   ============================================ */
main { max-width: var(--max-width); margin: 0 auto; padding: 0 24px 60px; }

html { scroll-snap-type: y proximity; }

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 40px;
  min-height: auto; /* allow the card to size naturally so scaled content isn't clipped */
  scroll-snap-align: start;
}

.arch-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 260px 260px 24px 24px;
  padding: 72px 40px 48px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(70,66,44,0.12);
  margin: 0 auto; /* ensure card centers when not inside a flex container */
}

/* Invitation-card variant — used for the homepage hero only */
.arch-card.card-invitation {
  border-radius: 18px;
  border: 1px solid var(--gold);
  /* responsive padding: reduce on small screens but allow expansion on large */
  padding: clamp(28px, 4.5vw, 56px) clamp(18px, 3.5vw, 36px) clamp(20px, 4vw, 44px);
  box-shadow: 0 24px 50px rgba(70,66,44,0.14), 0 8px 24px rgba(169,128,31,0.15);
  max-width: 680px;
  margin: 0 auto;
}
.arch-card.card-invitation::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  pointer-events: none;
}
.card-accent {
  position: absolute;
  width: 46px;
  height: auto;
  opacity: 0.85;
  z-index: 1;
}
.card-accent.top-left { top: 20px; left: 20px; transform: scaleX(-1) rotate(-8deg); }
.card-accent.top-right { top: 20px; right: 20px; transform: rotate(-8deg); }

.arch-card .crest {

  width: 54px;
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 1px 1px rgba(70,66,44,0.15));
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 28px;
}

.names {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35em;
  flex-wrap: nowrap;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  margin: 0;
  line-height: 1.1;
}
.names.small { font-size: clamp(34px, 7vw, 46px); letter-spacing: 0.12em; }
.names .name-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.names .name {
  display: inline-block;
  font-size: clamp(32px, 6.8vw, 50px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6f1d2b;
}
.names .name-details {
  margin-top: 6px;
  font-size: clamp(13.2px, 2.28vw, 16.8px);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #7a2a35;
  line-height: 1.35;
}
.names .amp {
  display: inline-block;
  font-family: 'Alex Brush', cursive;
  font-style: normal;
  font-weight: 600;
  font-size: 0.85em;
  letter-spacing: 0;
  color: var(--gold);
  margin: 0 0.16em;
}

@media (max-width: 480px) {
  .names {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .names .amp {
    display: inline-block;
    margin: 0.15rem 0;
  }

  .names .name {
    font-size: clamp(28px, 8vw, 38px);
  }

  .names .name-details {
    font-size: clamp(10px, 3vw, 12px);
    margin-top: 4px;
  }
}

.tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(14px, 2.2vw, 18px);
  color: var(--ink);
  margin: 30px 0;
}

.details { margin: 32px 0 8px; }
.details .venue { margin: 0 0 6px; font-weight: 400; color: var(--ink); }
.details .date { margin: 0; color: var(--gold-deep); font-weight: 500; letter-spacing: 0.5px; }

.cta {
  display: inline-block;
  margin-top: 32px;
  padding: 14px 44px;
  background: var(--gold);
  color: #FBF9F0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease;
}
.cta:hover { background: var(--gold-bright); transform: translateY(-2px); }
.cta:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

.cta-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-deep);
}
.cta-outline:hover { background: var(--gold); color: #FBF9F0; }
.venue-map-link { display: block; width: fit-content; margin: 32px auto 0; }

/* Helper: scale visual size by 25% for selected blocks (homepage use) */
.scale-125 {
  transform: scale(1.25);
  transform-origin: top center;
  display: block;
  will-change: transform;
}

/* Larger padding variant for the invitation card to simulate a 1.25× visual increase
   without using transforms (so document flow grows and following content isn't overlapped) */
.arch-card.card-invitation.enlarge-above {
  padding: calc(1.25 * clamp(28px, 4.5vw, 56px)) calc(1.25 * clamp(18px, 3.5vw, 36px)) calc(1.25 * clamp(20px, 4vw, 44px));
}

/* ============================================
   Countdown
   ============================================ */
.countdown-section { text-align: center; padding: 56px 0 20px; }

.section-eyebrow {
  font-size: 12px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 36px);
  color: var(--gold);
  margin: 0 0 40px;
  font-weight: 600;
}
.section-title { display: flex; flex-direction: column; align-items: center; }
.section-title .dev {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 0.5em;
  color: var(--sage);
  letter-spacing: 0.5px;
  margin: 6px 0 0;
  opacity: 0.9;
}

.countdown { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.count-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  min-width: 84px;
}
.count-block .num {
  display: block;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  color: var(--gold);
}
.count-block .label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* ============================================
   Story teaser (home page)
   ============================================ */
.story-teaser { padding: 20px 0 64px; text-align: center; }
.story-teaser-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.story-photo {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
}
.story-teaser p.story-copy { max-width: 480px; margin: 0 auto; font-size: 15px; color: var(--ink-soft); }

/* Placeholder photo box — swap for a real <img> once photos are added */
.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--panel);
  border: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
  padding: 16px;
}
.photo-placeholder .icon { font-size: 28px; opacity: 0.6; }
.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   Schedule
   ============================================ */
.schedule { padding: 64px 0; text-align: center; }

.event-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 480px;
  text-align: left;
  border-left: 1px solid var(--line);
}

.event {
  position: relative;
  padding: 4px 0 36px 32px;
}
.event:last-child { padding-bottom: 4px; }

.event-mark {
  position: absolute;
  left: -6px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px var(--bg);
}

.event-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 4px;
}
.event-when { margin: 0; color: var(--gold-deep); font-size: 14px; letter-spacing: 0.5px; }
.event-where { margin: 4px 0 8px; font-size: 14px; color: var(--ink); opacity: 0.9; }
.event-note { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ============================================
   Travel / info grids (reused on venue + events pages)
   ============================================ */
.travel { padding: 20px 0 64px; text-align: center; }

.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: left;
}
.travel-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}
.travel-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 10px;
}
.travel-card p:last-child { margin: 0; font-size: 14px; color: var(--ink-soft); }

.venue-link { display: block; margin: 28px auto 0; width: fit-content; }

/* ============================================
   Closing / PS
   ============================================ */
.closing { text-align: center; padding: 40px 0 20px; }
.closing p { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--ink); margin: 0 0 8px; }

.ps-note { text-align: center; padding: 8px 0 40px; }
.ps-note p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
}
.ps-label {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--gold-deep);
  margin-right: 6px;
}

/* ============================================
   Footer
   ============================================ */
footer {
  text-align: center;
  padding: 40px 24px 50px;
  color: var(--gold-deep);
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.footer-mark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 30px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6f1d2b;
  margin: 0 0 10px;
}
.footer-initials { display: inline-block; }
.footer-amp {
  display: inline-block;
  font-family: 'Alex Brush', cursive;
  font-size: 0.9em;
  color: var(--gold);
  margin: 0 0.18em;
}
.footer-meta { margin: 0 0 16px; }
.footer-meta .footer-date { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--ink); margin: 0; }
.footer-meta .footer-location { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-deep); margin: 4px 0 0; }

.footer-om { width: 56px; height: auto; margin: 6px auto 18px; display: block; opacity: 0.9; }

.footer-links {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 6px;
}
.footer-links a { text-decoration: underline; text-underline-offset: 3px; color: var(--gold-deep); }
.footer-links a:hover { color: var(--gold); }

.footer-credit {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  opacity: 0.75;
  margin-top: 22px;
}

/* ============================================
   RSVP form
   ============================================ */
.rsvp-main { padding-top: 10px; }
.rsvp-card { max-width: 520px; padding: 60px 36px 44px; border-radius: 220px 220px 24px 24px; }

.rsvp-form { text-align: left; margin-top: 24px; display: flex; flex-direction: column; gap: 6px; }

.rsvp-form label {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 18px 0 6px;
}
.rsvp-form label:first-of-type { margin-top: 0; }

.rsvp-form input[type="text"],
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: #FBF9F0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
}
.rsvp-form input::placeholder,
.rsvp-form textarea::placeholder {
  color: rgba(70,66,44,0.45);
  opacity: 1; /* ensure consistent placeholder visibility across browsers */
}
.rsvp-form input[type="text"]:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.rsvp-form textarea { resize: vertical; }

.attend-fieldset { border: none; padding: 0; margin: 18px 0 0; }
.attend-fieldset legend {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 10px;
  padding: 0;
}

.radio-row { display: flex; gap: 12px; flex-wrap: wrap; }
.radio-pill {
  flex: 1;
  min-width: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.radio-pill:has(input:checked) {
  border-color: var(--gold);
  background: rgba(169,128,31,0.1);
  color: var(--gold-deep);
}
.radio-pill input { accent-color: var(--gold); }

.checkbox-col { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--ink); }
.checkbox-row[hidden] { display: none; }
.checkbox-row input { accent-color: var(--gold); width: 16px; height: 16px; }

.submit-btn { width: 100%; margin-top: 30px; border: none; cursor: pointer; }

.form-status {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
  color: var(--gold-deep);
}
.form-status.error { color: #B24B32; }

.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
}

/* ============================================
   Our Story page
   ============================================ */
.story-page-header { text-align: center; padding: 10px 0 20px; }
.story-page-header p.story-intro { max-width: 520px; margin: 20px auto 0; color: var(--ink-soft); font-size: 15px; }

/* Make the story intro stand out similar to the Hindi subheading */
.story-intro {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  color: var(--sage);
  letter-spacing: 0.6px;
  text-align: center;
  margin: 18px auto 28px;
  max-width: 720px;
  opacity: 0.95;
}

.story-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin: 36px 0 8px;
}
.story-gallery .story-photo { aspect-ratio: unset; max-width: none; height: 100%; overflow: hidden; }

/* Larger screens: force a 4-column collage and vary photo spans for an unequal, side-by-side layout */
@media (min-width: 980px) {
  .story-gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px; /* base row height (double previous base) */
    gap: 16px;
  }
  .story-gallery .story-photo { height: 100%; }
  /* Collage arrangement (adjust spans to create unequal sizes) */
  .story-gallery .story-photo:nth-child(1) { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .story-gallery .story-photo:nth-child(2) { grid-column: 3 / span 2; grid-row: 1 / span 1; }
  .story-gallery .story-photo:nth-child(3) { grid-column: 3 / span 1; grid-row: 2 / span 1; }
  .story-gallery .story-photo:nth-child(4) { grid-column: 4 / span 1; grid-row: 2 / span 1; }
}

/* Ensure images fill their grid cells */
.story-gallery .story-photo .story-image,
.story-gallery .story-photo .photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.story-chapters { margin-top: 20px; }
.story-chapter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.story-chapter:first-child { border-top: none; }
@media (min-width: 620px) {
  .story-chapter { grid-template-columns: 1fr 1.2fr; text-align: left; }
  .story-chapter.reverse { grid-template-columns: 1.2fr 1fr; }
  .story-chapter.reverse .story-photo { order: 2; }
}

/* Timeline images: preserve original aspect ratio, avoid cropping, and limit height
   so images never expand to match long text columns. */
.story-chapter .story-photo {
  max-width: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px; /* consistent rounded corners */
  overflow: hidden; /* keep rounded corners visually consistent */
  width: 100%;
  max-width: 420px; /* limit photo width so tall images can shrink instead of being cropped */
  max-height: 360px; /* prevent photos from matching long text height */
  background: var(--panel);
}
.story-chapter .story-photo .story-image,
.story-chapter .story-photo .photo-placeholder {
  width: auto;           /* allow width to shrink to preserve aspect ratio */
  max-width: 100%;
  height: auto;
  max-height: 360px;    /* constrain height without cropping */
  object-fit: contain;
  display: block;
}
.story-chapter-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 10px;
}
.story-chapter p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ============================================
   Detailed Events page (access-gated)
   ============================================ */
.access-locked {
  text-align: center;
  max-width: 480px;
  margin: 40px auto;
  padding: 40px 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.access-locked p { color: var(--ink-soft); font-size: 15px; margin: 0 0 0; }
.access-locked .lock-icon { font-size: 30px; margin-bottom: 14px; display: block; }

.event-detail {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px 30px;
  margin-bottom: 24px;
}
.event-detail[hidden] { display: none; }
.event-detail-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 4px;
}
.event-detail-when { color: var(--gold-deep); font-size: 14px; margin: 0 0 20px; }
.event-detail p.event-detail-desc { color: var(--ink); font-size: 15px; margin: 0 0 20px; }

.outfit-box {
  background: #FBF9F0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}
.outfit-box .outfit-title {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 8px;
}
.outfit-box p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 560px) {
  .arch-card { padding: 32px 18px 28px; border-radius: 160px 160px 20px 20px; }
  .rsvp-card { border-radius: 140px 140px 20px 20px; }
  .countdown { gap: 10px; }
  .count-block { min-width: 68px; padding: 14px 10px; }
  .count-block .num { font-size: 26px; }
}
