/* K&S wedding invitation · cinematic burgundy edition.
   Intentionally loaded last: older invitation styles remain available for rollback. */
:root {
  --night: #17080e;
  --night2: #210910;
  --maroon: #591222;
  --wine: #772033;
  --gold: #e2b976;
  --ivory: #f9e9cf;
  --muted: #d1af9c;
  --line: rgba(224, 185, 118, .42);
}
html { scroll-padding-top: 24px; }
body { overflow-x: clip; background: #210911; }
.site-header { width: min(1360px, calc(100% - 72px)); padding-top: 25px; }
.site-header nav { gap: clamp(18px, 3vw, 35px); }
.site-header nav a { color: #dec5a8; font-size: 11px; letter-spacing: .17em; }
.language-toggle { min-height: 42px; padding-inline: 15px; border-color: rgba(224,185,118,.6); background: rgba(28,7,14,.55); }

/* Let normal document flow determine the hero height so the monogram can never touch its divider. */
.hero {
  min-height: max(920px, 100svh);
  padding: clamp(160px, 18svh, 205px) 24px 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(224,185,118,.7);
  background:
    radial-gradient(ellipse 52% 50% at 50% 41%, rgba(133,21,42,.72) 0%, rgba(105,18,35,.33) 58%, transparent 100%),
    radial-gradient(ellipse 50% 58% at 6% 76%, rgba(124,22,38,.35), transparent 72%),
    radial-gradient(ellipse 45% 40% at 96% 12%, rgba(92,16,30,.39), transparent 75%),
    linear-gradient(110deg, #1b0a11 0%, #390b17 46%, #17070d 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(30deg, transparent 7%, rgba(167,42,65,.2) 18%, transparent 30%),
    linear-gradient(154deg, transparent 7%, rgba(161,36,61,.21) 20%, transparent 32%),
    linear-gradient(28deg, transparent 69%, rgba(209,74,88,.09) 79%, transparent 89%),
    radial-gradient(ellipse at 49% 46%, transparent 30%, rgba(12,4,7,.52) 100%);
  opacity: .94;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 115px;
  background: linear-gradient(to bottom, transparent, rgba(20,6,12,.58));
  pointer-events: none;
}
.hero .toran, .hero .hero-temple, .hero .lamp { display: none !important; }
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(960px, 100%);
  margin-inline: auto;
  padding: 0 16px;
  text-align: center;
}
.hero .eyebrow { color: #dfb8a3; font-size: 11px; letter-spacing: .3em; }
.hero .ornament { margin: 25px auto 35px; }
.hero .ornament span { width: min(100px, 15vw); }
.hero-monogram {
  display: block;
  width: clamp(230px, 32vw, 410px);
  max-width: calc(100vw - 80px);
  margin: 0 auto 28px;
  flex-shrink: 0;
}
.hero .couple-names {
  max-width: 850px;
  margin: 18px auto 0;
  font-size: clamp(39px, 5vw, 67px);
  line-height: 1.05;
}
.hero-message {
  max-width: 590px;
  margin: 25px auto 25px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.7;
}
.hero .scroll-link { margin-top: 8px; color: #dfb8a3; }
.moon { z-index: 1; right: 16%; top: 29%; width: clamp(34px, 4vw, 57px); background: #f5d79b; }

/* The three ceremonies read as individual invitations, not a table. */
.welcome {
  position: relative;
  padding: 95px max(30px, 5vw) 95px;
  background:
    radial-gradient(ellipse 57% 35% at 50% 15%, rgba(120,22,41,.35), transparent),
    linear-gradient(180deg,#290b15 0%,#3b0e1c 52%,#270a13 100%);
}
.welcome::before { content: '❀'; display: block; color: var(--gold); font-size: 23px; line-height: 1; margin-bottom: 20px; }
.welcome h2 {
  margin: 0 auto;
  color: var(--gold);
  font-size: clamp(44px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: -.038em;
}
.welcome h2 em { color: #f5d7a5; }
.event-schedule {
  width: min(1250px,100%);
  margin: 55px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  border: 0;
  text-align: center;
}
.schedule-event, .schedule-event + .schedule-event {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  min-height: 400px;
  padding: 36px 24px 30px;
  border: 1px solid rgba(224,185,118,.62);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(111,30,44,.26), rgba(28,7,15,.49));
  box-shadow: inset 0 0 0 5px rgba(224,185,118,.035), 0 14px 34px rgba(10,2,6,.13);
}
.schedule-event::before {
  content: '✧';
  display: block;
  margin-bottom: 20px;
  color: var(--gold);
  font-size: 25px;
  line-height: 1;
}
.schedule-event .event-name { color: #fbe4bc; font-size: clamp(28px, 2.7vw, 37px); line-height: 1.1; }
.schedule-event .event-meta {
  margin: 17px 0 17px;
  color: #e2c7b5;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: .09em;
}
.schedule-event .event-venue:not(.event-venue--compact) {
  position: relative;
  margin: 12px 0 6px;
  padding-top: 18px;
  color: #f8e6cb;
  font-size: 16px;
  line-height: 1.5;
}
.schedule-event .event-venue:not(.event-venue--compact)::before {
  content: '✦';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 10px;
}
.schedule-event .event-venue--compact { margin: 0 0 18px; font-size: 12px; line-height: 1.6; }
.schedule-event .directions-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: auto;
  padding: 10px 23px;
  border: 1px solid rgba(224,185,118,.77);
  border-radius: 999px;
  color: #f5ca84;
  background: rgba(24,6,11,.3);
  font-size: 10px;
  line-height: 1.3;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.schedule-event .directions-link:hover { color: #220b13; background: var(--gold); }
.muhurtham-countdown {
  width: min(1250px,100%);
  margin-top: 24px;
  border-radius: 18px;
  background: radial-gradient(ellipse at 50% 10%,rgba(136,33,53,.26),transparent 80%),rgba(26,6,13,.45);
}
.countdown-eyebrow { font: 400 clamp(23px, 2.5vw, 32px)/1.2 Georgia, serif; color: #f7dba9; letter-spacing: 0; text-transform: none; }
.countdown-unit strong { color: #fce8c8; }

/* Recompose the story with the real couple's landscape photo on the left. */
.story-editorial {
  padding: clamp(70px, 8vw, 122px) max(24px, 5vw);
  border-top: 1px solid rgba(224,185,118,.3);
  color: var(--ivory);
  background:
    radial-gradient(ellipse 48% 47% at 18% 43%,rgba(142,46,57,.38),transparent 85%),
    linear-gradient(115deg,#350b18,#4b1524 52%,#260915);
}
.story-composition {
  grid-template-columns: minmax(0,1.22fr) minmax(0,.85fr);
  grid-template-rows: minmax(0,auto) minmax(0,1fr);
  grid-template-areas: 'photo heading' 'photo intro';
  align-items: center;
  column-gap: clamp(35px, 5.5vw, 90px);
  width: min(1230px,100%);
}
.story-engagement-photo {
  grid-area: photo;
  justify-self: start;
  width: 100%;
  border: 1px solid rgba(224,185,118,.8);
  border-radius: clamp(82px, 12vw, 185px) clamp(82px, 12vw, 185px) 16px 16px;
  background: #32121b;
  box-shadow: 0 25px 70px rgba(16,3,7,.28);
}
.story-engagement-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 45%; }
.story-editorial-header { grid-area: heading; align-self: end; padding: 0 0 14px; }
.story-editorial-header::before {
  content: 'OUR STORY';
  display: block;
  margin-bottom: 23px;
  color: var(--gold);
  font: 600 10px/1.3 system-ui,sans-serif;
  letter-spacing: .24em;
}
html[lang='ta'] .story-editorial-header::before { content: 'எங்கள் கதை'; }
.story-editorial-header h2 { color: #f5dcad; font-size: clamp(38px,4vw,60px); line-height: 1.08; }
.story-editorial-header::after { background: var(--gold); }
.story-intro { grid-area: intro; align-self: start; max-width: 46ch; margin: 8px 0 0; color: #f0d8c6; font-size: clamp(17px,1.55vw,20px); line-height: 1.85; }
footer {
  position: relative;
  padding: 66px 20px 82px;
  border-top: 1px solid rgba(224,185,118,.5);
  background: radial-gradient(ellipse at 50% 16%,rgba(100,20,37,.45),transparent 65%),#210a12;
}
footer p { color: #e1c5aa; letter-spacing: .14em; text-transform: none; }
footer::after { content:'✦'; display:block; margin-top:22px; color:var(--gold); font-size:10px; }

@media(max-width: 900px) {
  .event-schedule { grid-template-columns: 1fr; max-width: 600px; gap: 16px; }
  .schedule-event, .schedule-event + .schedule-event { min-height: 0; padding: 34px 26px; border: 1px solid rgba(224,185,118,.62); }
  .schedule-event .directions-link { margin-top: 22px; }
  .story-composition { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas:'heading' 'photo' 'intro'; gap: 0; }
  .story-editorial-header { padding-bottom: 28px; }
  .story-engagement-photo { max-width: 680px; justify-self: center; }
  .story-intro { max-width: 680px; justify-self: center; margin-top: 30px; }
}
@media(max-width: 760px) {
  .site-header { width: calc(100% - 32px); padding-top: 14px; }
  .hero { min-height: 0; padding: 170px 15px 86px; }
  .hero-copy { padding: 0 8px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .18em; }
  .hero .ornament { margin: 21px auto 23px; }
  .hero-monogram { width: clamp(205px, 61vw, 315px); max-width: 100%; margin-bottom: 26px; }
  .hero .couple-names { font-size: clamp(34px, 10vw, 54px); max-width: 100%; }
  .hero .couple-names .couple-name { white-space: normal; overflow-wrap: anywhere; }
  .hero-message { margin: 24px auto; font-size: 16px; }
  .moon { width: 30px; right: 9%; top: 24%; }
  .welcome { padding: 70px 20px 80px; }
  .welcome h2 { font-size: clamp(40px,10vw,58px); }
  .event-schedule { margin-top: 42px; }
  .muhurtham-countdown { margin-top: 22px; }
  .story-editorial { padding: 72px 20px 84px; }
  .story-editorial-header h2 { font-size: clamp(35px,10vw,48px); }
  .story-engagement-photo { border-radius: 105px 105px 14px 14px; }
  .story-intro { font-size: 17px; line-height: 1.8; }
}
@media(max-width: 360px) {
  .hero { padding-top: 158px; }
  .hero-monogram { width: min(70vw,260px); }
  .hero .couple-names { font-size: 32px; }
  .schedule-event { padding-inline: 15px; }
}
@media(prefers-reduced-motion:reduce) {
  .moon { animation: none; }
}

/* V2 fidelity pass: single typographic system, hand-drawn silk and florals,
   accurate event styling and closing invitation. No italic type. */
:root {
  --display-font: Georgia, "Times New Roman", serif;
  --ui-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --tamil-font: "Tamil Sangam MN", "Noto Serif Tamil", "Nirmala UI", serif;
}
body { font-family: var(--display-font); }
h1, h2, .event-name, .countdown-eyebrow, .countdown-unit strong,
.story-intro, .invitation-closing h2, .invitation-closing .closing-names {
  font-family: var(--display-font);
  font-style: normal;
}
em, .couple-joiner, .invitation-closing em { font-style: normal !important; }
.eyebrow, .event-meta, .event-venue--compact, .directions-link,
.scroll-link, .language-toggle, .site-header nav a,
.countdown-unit span, .countdown-date, .closing-date {
  font-family: var(--ui-font);
}
/* Keep Tamil script in consistent, appropriate fonts rather than mixing
   Latin system UI with fallback glyphs from unrelated Tamil fonts. */
html[lang="ta"] body,
html[lang="ta"] h1, html[lang="ta"] h2,
html[lang="ta"] .couple-names, html[lang="ta"] .couple-joiner,
html[lang="ta"] .event-name, html[lang="ta"] .event-venue,
html[lang="ta"] .story-intro, html[lang="ta"] .countdown-eyebrow,
html[lang="ta"] .invitation-closing h2, html[lang="ta"] .closing-names {
  font-family: var(--tamil-font);
  font-style: normal;
}
html[lang="ta"] .eyebrow, html[lang="ta"] .event-meta,
html[lang="ta"] .directions-link, html[lang="ta"] nav a,
html[lang="ta"] .closing-date, html[lang="ta"] .countdown-date,
html[lang="ta"] .countdown-unit span, html[lang="ta"] .story-editorial-header::before {
  font-family: var(--tamil-font);
  letter-spacing: 0;
  text-transform: none;
}
/* Draped burgundy silk with unobtrusive golden flower outlines. */
.hero {
  min-height: max(900px, 100svh);
  padding-bottom: clamp(110px, 12svh, 150px);
  background: radial-gradient(ellipse 55% 50% at 49% 44%, #731829 0%, #4b0f1f 43%, #210911 87%, #13060c 100%);
}
.hero::before {
  background: url("assets/hero-fabric.svg") center / cover no-repeat;
  opacity: 1;
}
.hero::after { background: linear-gradient(to bottom, transparent 0%, rgba(24,6,12,.44) 100%); }
.hero .ornament { margin-bottom: 31px; }
.hero-monogram {
  width: clamp(235px, 31vw, 418px);
  margin-bottom: clamp(35px, 5vw, 58px);
}
.hero .couple-names {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(9px,1.4vw,20px);
  max-width: 1020px;
  margin: 0 auto;
  color: #f6dcaa;
  font: 500 clamp(15px, 1.5vw, 21px)/1.55 var(--display-font);
  text-transform: uppercase;
  letter-spacing: .15em;
  text-shadow: 0 0 14px rgba(224,185,118,.12);
}
.hero .couple-names .couple-name { white-space: nowrap; }
.hero .couple-names .couple-joiner {
  font: 400 clamp(13px, 1.1vw, 17px)/1.3 var(--display-font);
  letter-spacing: .05em;
  text-transform: none;
  color: var(--gold);
}
.hero-message { margin: 25px auto 22px; }
.hero .scroll-link { margin-top: 10px; }
html[lang="ta"] .hero .couple-names {
  font-family: var(--tamil-font);
  letter-spacing: 0;
  text-transform: none;
  font-size: clamp(17px,1.65vw,22px);
  line-height: 1.8;
}
html[lang="ta"] .hero .couple-names .couple-joiner { font-family: var(--tamil-font); }
/* Layered floral detail and golden light carried through the entire invitation. */
.welcome, .story-editorial, .invitation-closing { isolation: isolate; overflow: hidden; }
.welcome {
  border-bottom: 1px solid rgba(224,185,118,.34);
  background:
    radial-gradient(circle at 4% 10%, rgba(236,150,84,.14) 0, transparent 7%),
    radial-gradient(circle at 93% 57%, rgba(236,150,84,.12) 0, transparent 10%),
    radial-gradient(ellipse 55% 70% at 50% 18%, rgba(133,32,52,.47), transparent 76%),
    linear-gradient(180deg,#250910 0%, #490e1e 57%,#23070f 100%);
}
.welcome::after, .story-editorial::before, .invitation-closing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    url("assets/floral-corner.svg") left bottom / min(33vw,400px) auto no-repeat,
    url("assets/floral-corner.svg") right top / min(29vw,350px) auto no-repeat;
  opacity: .5;
}
.welcome::before { margin-bottom: 15px; }
.welcome h2 { font-family: var(--display-font); font-weight: 400; }
.event-schedule { gap: 18px; }
.schedule-event, .schedule-event + .schedule-event {
  border-radius: 14px;
  min-height: 404px;
  padding: 33px clamp(20px, 2.25vw, 34px) 28px;
  background: linear-gradient(145deg, rgba(100,22,40,.38), rgba(20,5,12,.48));
  box-shadow: inset 0 0 0 5px rgba(224,185,118,.025), 0 13px 34px rgba(8,1,6,.2);
}
.schedule-event::before { display: none; }
.event-icon {
  flex: none;
  display: block;
  width: 37px;
  height: 37px;
  margin: 0 auto 19px;
  color: #e7bc77;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.schedule-event .event-meta { margin-top: 19px; }
.schedule-event .event-name { font-family: var(--display-font); }
.schedule-event .directions-link { font-weight: 600; }
html[lang="ta"] .schedule-event .event-name { font-family: var(--tamil-font); }
/* Four discrete responsive countdown tiles, as in the approved layout. */
.muhurtham-countdown {
  padding: 31px 26px 36px;
  border-radius: 16px;
}
.countdown-eyebrow { font-size: clamp(24px,2.5vw,34px); }
.countdown-thread { display: none; }
.countdown-values {
  width: min(650px,100%);
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: clamp(8px,2vw,19px);
}
.countdown-values > i { display: none; }
.countdown-unit {
  min-width: 0;
  padding: 20px 8px 17px;
  border: 1px solid rgba(224,185,118,.4);
  border-radius: 10px;
  background: rgba(32,7,17,.4);
  gap: 13px;
}
.countdown-unit strong { line-height: 1; font-size: clamp(30px,4vw,51px); }
.countdown-unit span { letter-spacing: .15em; }
/* Use the supplied, unmodified landscape photograph; never substitute faces. */
.story-editorial {
  background:
    radial-gradient(circle at 89% 19%,rgba(229,156,90,.13),transparent 15%),
    radial-gradient(ellipse 53% 59% at 14% 35%,rgba(148,45,59,.36),transparent 80%),
    linear-gradient(115deg,#2e0914,#491222 52%,#250811);
}
.story-editorial::before { opacity: .43; }
.story-engagement-photo { border-radius: clamp(65px,9vw,125px) clamp(65px,9vw,125px) 12px 12px; }
.story-engagement-photo img { aspect-ratio: 3/2; object-fit: contain; }
.story-editorial-header::before { font-family: var(--ui-font); }
.story-intro { font-family: var(--display-font); }
/* Closing invitation: copy/date/venue details translated in the same script. */
.invitation-closing {
  position: relative;
  padding: clamp(75px,8vw,115px) 24px;
  text-align: center;
  border-top: 1px solid rgba(224,185,118,.67);
  border-bottom: 1px solid rgba(224,185,118,.67);
  background: radial-gradient(ellipse 58% 65% at 50% 40%,rgba(127,30,46,.57),transparent 82%),#250910;
}
.invitation-closing::before { opacity: .62; }
.invitation-closing > * { position: relative; z-index: 1; }
.closing-ornament { display: block; margin: 0 auto 20px; color: var(--gold); font-size: 27px; }
.invitation-closing h2 {
  max-width: 860px;
  margin: 0 auto 20px;
  color: #f8d9a6;
  font-size: clamp(35px,4.5vw,62px);
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 400;
}
.closing-copy { max-width: 650px; margin: 0 auto; color: #efcfb9; font-size: clamp(16px,1.6vw,20px); line-height: 1.8; }
.closing-rule { width: 180px; height: 1px; background: linear-gradient(90deg, transparent,var(--gold),transparent); margin: 28px auto 24px; }
.closing-date { margin: 0 0 11px; color: #e6be83; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.closing-names { margin: 0; color: #f8e4c6; font-size: clamp(18px,2.1vw,25px); line-height: 1.6; }
html[lang="ta"] .invitation-closing h2 { font-size: clamp(29px,5vw,50px); letter-spacing: 0; line-height: 1.45; }
html[lang="ta"] .closing-copy { font-family: var(--tamil-font); line-height: 1.85; }
footer { border-top: 0; }
@media(max-width:900px) {
  .schedule-event, .schedule-event + .schedule-event { min-height: 0; }
}
@media(max-width:760px) {
  .hero { min-height: 0; padding: 168px 15px 105px; }
  .hero-monogram { width: min(70vw,310px); margin-bottom: 32px; }
  .hero .couple-names { flex-direction: column; gap: 5px; font-size: clamp(17px,4.2vw,22px); letter-spacing: .10em; }
  .hero .couple-names .couple-joiner { font-size: 14px; }
  .hero .couple-names .couple-name { white-space: normal; overflow-wrap: normal; }
  .welcome::after, .story-editorial::before, .invitation-closing::before { background-size: 220px auto, 180px auto; }
  .event-icon { margin-bottom: 17px; }
  .muhurtham-countdown { padding: 27px 14px 27px; }
  .countdown-values { gap: 8px; }
  .countdown-unit { padding: 16px 4px 14px; gap: 10px; }
  .countdown-unit strong { font-size: clamp(24px,7vw,36px); }
  .countdown-unit span { font-size: 8px; letter-spacing: .04em; }
  .closing-date { line-height: 1.8; }
}
@media(max-width:360px) {
  .hero { padding-top: 160px; }
  .hero .couple-names { font-size: 17px; }
  .countdown-unit { padding-left: 2px; padding-right: 2px; }
}
html[lang="ta"] .story-editorial-header h2 { font-family: var(--tamil-font); }

/* Remove redundant editorial labels and repeat sign-offs. */
.story-editorial-header::before { display: none; }
.invitation-closing { padding-block: clamp(64px, 7vw, 94px); }
.invitation-closing h2 { margin-bottom: 0; }
.invitation-closing .closing-rule { margin: 26px auto 18px; }
footer { padding: 38px 20px 45px; }
footer .footer-mark { width: 100px; margin: 0 auto; }
footer::after { display: none; }
@media (max-width: 760px) {
  .invitation-closing { padding-block: 60px; }
  footer .footer-mark { width: 90px; }
}
