/* Modern Floral. Invitation palette (NOT the VOWORA brand palette):
   Dusty Rose #B5546B, Soft Rose #D98C9D, Blush wash #FBECE8, Sage leaf #6F846A, Rose-gold #C69C88, Deep Plum #3B2F35, Blush-ivory #FFF7F5.
   Loaded AFTER /engine/base.css, so rules here win. Art: assets/*.svg (hand-built botanical, tiny). Package-independent. */
:root {
  --color-bg: #FFF7F5;
  --color-surface: #FFFFFF;
  --color-text: #3B2F35;
  --color-accent: #B5546B;
  --font-display: 'Cormorant Garamond', 'Noto Serif Gujarati', 'Noto Serif Devanagari', Georgia, serif;
  --font-body: 'Noto Sans Gujarati', 'Cormorant Garamond', 'Noto Serif Devanagari', system-ui, sans-serif;
  /* theme-specific tokens; rose/plum/blush follow the palette so Premium colour overrides still work */
  --rose: var(--color-accent);
  --plum: var(--color-text);
  --ivory: var(--color-bg);
  --rose-soft: #D98C9D;
  --blush: #FBECE8;
  --sage: #6F846A;
  --gold: #C69C88;
  --white: #FFFFFF;
  --hair: rgba(198, 156, 136, .55);
  --art-divider: url("/themes/modern-floral/assets/divider.svg");
  --art-closing: url("/themes/modern-floral/assets/closing.svg");
  --art-grain: url("/themes/modern-floral/assets/grain.svg");
  --art-corner-tl: url("/themes/modern-floral/assets/corner-tl.svg");
  --art-corner-br: url("/themes/modern-floral/assets/corner-br.svg");
}
html { background: #F3E3E0; }
body { background: transparent; font-size: 1.0625rem; line-height: 1.85; }
h1, h2, h3 { line-height: 1.5; }                          /* Gujarati stacked conjuncts need room */
.invite, .static-fallback { background: var(--ivory); box-shadow: 0 0 50px rgba(59, 47, 53, .12); }
.static-fallback { min-height: 100dvh; color: var(--plum); background: #FFF7F5; }   /* slow network: readable plum on blush-ivory before JS boots */
.sec { padding: 3.25rem 1.5rem; }
.sec + .sec { border-top: 1px solid var(--hair); }

/* ---------- simple intro: cotton stationery screen ---------- */
.intro-simple { background: radial-gradient(90% 60% at 50% 38%, #FFFFFF 0%, var(--ivory) 62%, var(--blush) 100%); gap: 1.1rem; }
.intro-simple::before { content: ""; position: absolute; inset: 0; background: var(--art-grain); opacity: .5; pointer-events: none; }
.intro-simple > * { position: relative; }
.intro-simple .intro-art { width: min(88vw, 25rem); }
.intro-simple .intro-names { font-size: clamp(1.9rem, 8.6vw, 2.5rem); font-weight: 600; color: var(--plum); line-height: 1.4; text-wrap: balance; }

.intro-simple .intro-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.intro-simple .intro-open { min-height: 3rem; padding: .5rem 2rem; border-radius: 999px; font-family: var(--font-display); font-size: 1.15rem; margin-top: .4rem; }

/* ---------- A. hero: sunlit blush-ivory, rose-gold frame, botanical crest ---------- */
.sec-cover {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; color: var(--plum);
  padding: 2.75rem 1.75rem 3.75rem;
  background: var(--art-grain), radial-gradient(110% 60% at 50% 12%, #FFFFFF 0%, var(--ivory) 55%, var(--blush) 100%);
}
.sec-cover::before { content: ""; position: absolute; inset: .85rem; border: 1px solid var(--hair); border-radius: 2px; pointer-events: none; z-index: 0;
  background: var(--art-corner-tl) 0 0 / 4.6rem 4.6rem no-repeat, var(--art-corner-br) 100% 100% / 4.6rem 4.6rem no-repeat; }
.sec-cover > * { position: relative; z-index: 1; }
.cover-art { width: 100%; max-width: 24rem; margin: .4rem auto .2rem; }
.cover-kind { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: .05em; color: var(--rose); margin: 0; }
.cover-names { font-size: clamp(2.25rem, 10.4vw, 3.1rem); font-weight: 600; color: var(--plum); gap: 0; margin-top: .25rem; text-wrap: balance; }
.cover-names .name { display: block; }
.cover-names .amp { font-family: var(--font-display); font-size: 1.1rem; font-weight: 400; font-style: italic; color: var(--rose); line-height: 2; display: flex; align-items: center; gap: .7rem; }
.cover-names .amp::before, .cover-names .amp::after { content: ""; width: 2.2rem; height: 1px; background: var(--gold); }
.cover-date, .event-date, .event-time { font-variant-numeric: lining-nums; }
.cover-date { font-size: 1.05rem; color: var(--plum); margin: 1.1rem 0 0; }
.countdown { display: flex; justify-content: center; gap: 0; margin: 1.4rem auto 0; max-width: none; }
.cd-unit { background: transparent; border: 0; border-radius: 0; padding: 0 .9rem; min-width: 3.9rem; }
.cd-unit + .cd-unit { border-left: 1px solid var(--hair); }
.cd-num { font-size: 1.5rem; color: var(--rose); line-height: 1.5; font-weight: 600; font-variant-numeric: lining-nums tabular-nums; }
.cd-label { font-size: .72rem; color: var(--plum); opacity: .8; line-height: 1.5; }
.countdown-done { color: var(--rose); font-size: 1.1rem; }
.demo-ribbon { display: none; }   /* demo notice lives once, as quiet fine print in the closing section */

/* ---------- B. blessing + families ---------- */
.sec-blessing, .sec-families { position: relative; background: var(--art-grain), var(--ivory); }
.sec-blessing { padding: 2.75rem 1.5rem 1.5rem; }
.blessing-text { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--rose); margin: 0; text-wrap: balance; }
.sec-families { padding-top: 1.5rem; }
.sec-blessing + .sec-families { border-top: 0; }
.invitation-text { max-width: 27rem; margin: 0 auto; }
.invitation-title { font-size: 1.75rem; color: var(--plum); margin: 0; }
.invitation-title::after { content: ""; display: block; width: 15rem; height: 1.6rem; margin: .4rem auto 1rem; background: var(--art-divider) center / contain no-repeat; }
.invitation-text p { font-size: 1.06rem; color: var(--plum); margin: 0; }
.family-pair { gap: 1.25rem; margin-top: 2rem; }
.family { background: var(--white); border: 1px solid var(--hair); border-radius: 12px; padding: 1.25rem 1rem; box-shadow: 0 6px 18px rgba(59, 47, 53, .05); }
.family-title { font-size: 1.12rem; font-weight: 600; color: var(--rose); margin: 0 0 .6rem; padding-bottom: .5rem; background: linear-gradient(90deg, transparent, var(--gold), transparent) 50% 100% / 5rem 1px no-repeat; }
.family-names { list-style: none; margin: 0; padding: 0; font-size: 1.04rem; line-height: 1.8; color: var(--plum); }
.invited-by { max-width: 22rem; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--hair); }

/* ---------- C. events: crisp white stationery cards ---------- */
.sec-events { background: var(--art-grain), var(--blush); padding: 3.25rem 1.1rem; }
.event { position: relative; background: var(--white); border: 1px solid var(--hair); border-radius: 14px; padding: 2.4rem 1.35rem 1.7rem; box-shadow: 0 10px 28px rgba(59, 47, 53, .08); }
.event::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--art-corner-tl) 4px 4px / 3.8rem 3.8rem no-repeat, var(--art-corner-br) calc(100% - 4px) calc(100% - 4px) / 3.8rem 3.8rem no-repeat; }
.event > * { position: relative; }
.event + .event { margin-top: 1.5rem; }
.event-title { font-size: 1.75rem; color: var(--rose); margin: 0 0 .9rem; }
.event-date { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--plum); margin: 0; }
.event-time { font-size: 1.04rem; color: var(--plum); margin: 0 0 1.1rem; }
.event-venue { color: var(--plum); margin: 0 0 .9rem; padding-top: 1.1rem; background: linear-gradient(90deg, transparent, var(--gold), transparent) 50% 0 / 5rem 1px no-repeat; }
.event-venue strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.event-dress { display: inline-block; max-width: 100%; margin: 0 0 .6rem; padding: .3rem .9rem; border: 1px solid var(--hair); border-radius: 1rem; background: var(--blush); font-size: .9rem; line-height: 1.7; color: var(--plum); }
.event-dress .label { color: var(--rose); font-weight: 600; }
.event-schedule { margin: 1.1rem auto .4rem; max-width: 19rem; }
.schedule-title { font-size: 1.05rem; font-weight: 600; color: var(--sage); text-align: center; margin: 0 0 .35rem; }
.event-schedule li { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr); gap: .75rem; padding: .35rem 0; border-top: 1px solid rgba(198, 156, 136, .3); }
.event-schedule li:first-child { border-top: 0; }
.sch-time { color: var(--rose); font-weight: 600; font-variant-numeric: tabular-nums lining-nums; min-width: 0; }
.sch-label { color: var(--plum); }
.event-actions { margin-top: 1.4rem; align-items: center; }
.btn { font-weight: 600; border-radius: 999px; border-color: var(--rose); color: var(--rose); min-height: 3rem; font-family: var(--font-display); font-size: 1.05rem; }
.btn-primary { background: var(--rose); color: #FFFFFF; }
.btn-primary:focus-visible, .btn:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.demo-action-note { max-width: 24rem; margin: 1rem auto 0; padding: .85rem 1.1rem; background: var(--blush); border: 1px solid var(--hair); border-radius: 12px; font-size: .95rem; line-height: 1.8; color: var(--plum); text-align: center; text-wrap: pretty; }
.event > .demo-action-note { margin-bottom: 1.6rem; }   /* clears the bottom-right corner flourish when open */

/* ---------- D. photos (layout chosen by PACKAGE, theme only styles it) ---------- */
.sec-photos { background: var(--art-grain), var(--ivory); padding: 3rem 1.25rem 3.25rem; }
.photo img { display: block; width: 100%; height: auto; border: 1px solid var(--gold); padding: 6px; background: var(--white); border-radius: 2px; box-shadow: 0 8px 20px rgba(59, 47, 53, .1); }
.photo-missing { border: 1px dashed var(--gold); border-radius: 2px; background: var(--white); }
.layout-featured .photo-featured { max-width: 20rem; }
.layout-featured .photo img { padding: 10px; outline: 1px solid var(--hair); outline-offset: 5px; }
/* Standard grid: 2 columns. Odd counts (e.g. 3 photos): photo 1 spans the full row, the rest pair up, so there is never an orphan tile. */
.photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .85rem; align-items: start; }
.photo-grid:has(.photo:nth-child(odd):last-child) .photo:first-child { grid-column: 1 / -1; }
.photo-grid:has(.photo:nth-child(odd):last-child) .photo:first-child img { max-width: 20rem; margin: 0 auto; }
.photo-rail { gap: 1rem; padding: 6px 6px 1rem; align-items: start; }

/* ---------- E. RSVP band ---------- */
.sec-rsvp { background: var(--art-grain), var(--blush); padding: 3.25rem 1.5rem 3.5rem; }
.rsvp-heading { font-size: 1.75rem; color: var(--plum); margin: 0 0 1.2rem; text-wrap: balance; }
.rsvp-deadline { color: var(--plum); }
.sec-rsvp .btn-wide { min-height: 3rem; }
.sec-rsvp .demo-action-note { background: var(--white); }

/* ---------- F. closing: deep plum ---------- */
.sec-footer { position: relative; background: var(--plum); color: var(--ivory); border-top: 0;
  padding: 3.5rem 1.5rem calc(5.5rem + env(safe-area-inset-bottom, 0px)); }   /* extra bottom room: the fixed controls bar never covers the VOWORA logo */
.sec-footer > * { position: relative; }
.footer-invited { font-size: 1.02rem; color: #F3D3D7; margin: 0 auto 1.4rem; max-width: 22rem; }
.footer-invited::before, .footer-hosts::before { content: ""; display: block; width: 10rem; height: 2.45rem; margin: 0 auto .8rem; background: var(--art-closing) center / contain no-repeat; }
.footer-hosts { max-width: 22rem; margin: 0 auto 1.6rem; }
.footer-hosts-heading { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: .03em; line-height: 1.6; color: #F3D3D7; margin: 0 0 .55rem; }
.footer-hosts-list { font-size: 1.05rem; line-height: 1.75; color: var(--ivory); }
.footer-hosts--two-col { max-width: 26rem; }
.footer-hosts--two-col .footer-hosts-list { font-size: 1rem; line-height: 1.65; column-gap: .75rem; row-gap: .3rem; }
.footer-message { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.8; color: var(--ivory); margin: 0 auto 1.6rem; max-width: 20rem; }
.footer-notice { display: block; max-width: 19rem; margin: 1.8rem auto 0; padding: .9rem 0 0; border: 0; border-top: 1px solid rgba(198, 156, 136, .6); border-radius: 0; font-size: .78rem; line-height: 1.8; color: var(--ivory); opacity: .78; }
.studio-credit { display: flex; flex-direction: column; align-items: center; gap: .45rem; margin-top: 2rem; font-size: .8rem; letter-spacing: .03em; color: #F3D3D7; opacity: .95; }
.studio-credit a { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; color: inherit; }
.studio-logo { width: 7.5rem; height: auto; }
.footer-message, .invitation-title, .cover-names .name, .event-title, .footer-invited, .footer-notice, .blessing-text { text-wrap: balance; }
.invitation-text p { text-wrap: pretty; }

/* ---------- G. floating controls: frosted blush pill + rose music button ---------- */
.controls { gap: .6rem; align-items: center; }
.lang-toggle { background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--hair); box-shadow: 0 6px 18px rgba(59, 47, 53, .14); }
.lang-btn { min-height: 2.75rem; min-width: 2.75rem; padding: 0 1rem; color: var(--plum); font-weight: 600; transition: background .2s ease, color .2s ease; }
.lang-btn[aria-pressed="true"] { background: var(--rose); color: #FFFFFF; }
.fab { width: 3rem; height: 3rem; background: rgba(255, 255, 255, .92); border: 1px solid var(--hair); color: var(--rose); box-shadow: 0 6px 18px rgba(59, 47, 53, .18); transition: background .2s ease, color .2s ease; }
.fab[aria-pressed="true"] { background: var(--rose); color: #FFFFFF; border-color: var(--rose); }
/* music: labelled high-contrast pill, readable on blush and on dark plum */
.fab-music { width: auto; min-width: 3rem; min-height: 2.85rem; height: auto; padding: 0 .95rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; border: 1.5px solid var(--rose); background: rgba(255, 247, 245, .96); color: var(--rose); box-shadow: 0 6px 18px rgba(59, 47, 53, .22); font: inherit; font-size: .95rem; white-space: nowrap; }
.fab-music .fab-label { display: inline; font-weight: 700; line-height: 1; color: inherit; }
.fab-music[aria-pressed="true"] { background: var(--rose); border-color: var(--rose); color: #FFFFFF; }
.fab-music[aria-pressed="true"] .fab-label { color: #FFFFFF; }
/* language switcher on the simple intro (visible before opening) */
.intro-simple .lang-toggle { margin-top: .2rem; max-width: 100%; }
.intro-simple .lang-btn { min-height: 2.75rem; min-width: 2.75rem; }
.music-status { background: rgba(255, 255, 255, .92); border: 1px solid var(--hair); border-radius: 999px; padding: .2rem .8rem; color: var(--plum); box-shadow: 0 4px 12px rgba(59, 47, 53, .1); }

/* ---------- language typography: Gujarati is the default; English tuned separately ---------- */
html[lang="gu"] body { line-height: 1.9; }
html[lang="gu"] h1, html[lang="gu"] h2, html[lang="gu"] h3 { line-height: 1.55; }
html[lang="gu"] .cover-names { font-size: clamp(2.1rem, 9.6vw, 2.9rem); line-height: 1.5; }
html[lang="gu"] .event-title { font-size: 1.65rem; }
html[lang="en"] body { line-height: 1.7; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { line-height: 1.2; }
html[lang="en"] .cover-kind { font-size: 1.55rem; letter-spacing: .06em; line-height: 1.3; }
html[lang="en"] .cover-names { font-size: clamp(2.6rem, 12vw, 3.5rem); line-height: 1.05; }
html[lang="en"] .blessing-text { font-size: 1.55rem; line-height: 1.4; }
html[lang="en"] .invitation-title { font-size: 2.05rem; line-height: 1.2; }
html[lang="en"] .invitation-text p { font-size: 1.1rem; line-height: 1.75; }
html[lang="en"] .family-title { font-size: 1.3rem; line-height: 1.3; }
html[lang="en"] .family-names { line-height: 1.55; }
html[lang="en"] .event-title { font-size: 2.05rem; line-height: 1.15; }
html[lang="en"] .event-date { font-size: 1.3rem; line-height: 1.4; }
html[lang="en"] .event-venue strong { font-size: 1.25rem; }
html[lang="en"] .rsvp-heading { font-size: 1.95rem; line-height: 1.2; }
html[lang="en"] .footer-hosts-heading { font-size: 1.3rem; letter-spacing: .06em; line-height: 1.4; }
html[lang="en"] .footer-hosts-list { line-height: 1.55; }
html[lang="en"] .footer-hosts--two-col .footer-hosts-list { font-size: clamp(.82rem, 3.6vw, .95rem); column-gap: .65rem; row-gap: .35rem; }
html[lang="en"] .footer-hosts--two-col .footer-hosts-list li { white-space: nowrap; }
html[lang="en"] .footer-message { font-size: 1.55rem; line-height: 1.4; }
