/* Heritage Maison (design handoff), distilled. Caps only on buttons and nav. */
:root {
  --surface: #F6F0E4; --surface-story: #EFE5D2;
  --ink: #1F1A15; --ink-body: #463C33; --ink-muted: #5C5146;
  --line: #D9CDB6;
  --sindoor: #A8321C; --sindoor-deep: #8F2915; --on-sindoor: #FFF8EE; --turmeric: #F8E4BC;
  --ground-a: #E3D3B3; --ground-b: #D9B8A0; --ground-night: #2F3B4A;
  --band: #A8321C; --on-band: #FFF8EE; --pattern-line: #D6C6A6;
  --kajal: #1F1A15; --kajal-ink: #E9DFCC; --kajal-muted: #B8AC95; --kajal-line: #3A3129;
  --font-display: "Bodoni Moda", Didot, Georgia, serif;
  --font-ui: Manrope, Mukta, system-ui, sans-serif;
  --font-hindi: Mukta, "Noto Sans Devanagari", sans-serif;
  --font-hindi-display: Martel, "Noto Serif Devanagari", serif;
  --gutter: 24px; --section: 112px;
  --shadow-object: 0 18px 40px rgba(31,26,21,0.18);
  color-scheme: light;
}
/* Dark theme: follows the phone unless the reader picks one (hv-theme in localStorage, set by the sun/moon switch) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #1F1A15; --surface-story: #2A231C; --ink: #F3EADB; --ink-body: #DDD2C0; --ink-muted: #B8AC95; --line: #3A3129;
    --sindoor: #E8775B; --sindoor-deep: #F08B70; --on-sindoor: #1F1A15; --turmeric: #F3D9A4;
    --ground-a: #2E261E; --ground-b: #3A2A22; --ground-night: #26303C; --kajal: #14100C; --kajal-line: #2E2620;
    --pattern-line: #3A3129; --shadow-object: 0 18px 40px rgba(0,0,0,.5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #1F1A15; --surface-story: #2A231C; --ink: #F3EADB; --ink-body: #DDD2C0; --ink-muted: #B8AC95; --line: #3A3129;
  --sindoor: #E8775B; --sindoor-deep: #F08B70; --on-sindoor: #1F1A15; --turmeric: #F3D9A4;
  --ground-a: #2E261E; --ground-b: #3A2A22; --ground-night: #26303C; --kajal: #14100C; --kajal-line: #2E2620;
  --pattern-line: #3A3129; --shadow-object: 0 18px 40px rgba(0,0,0,.5); color-scheme: dark;
}
/* Pattern strokes follow the theme (CSS reaches into the shared <defs>) */
#pat-story g { stroke: var(--pattern-line); }
#pat-band g { stroke: var(--sindoor); } #pat-band circle { fill: var(--sindoor); }

/* Sun/moon theme switch (header) */
.thm { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s; }
.thm:hover { border-color: var(--ink); color: var(--sindoor); }
.thm .moon { display: none; }
:root[data-theme="dark"] .thm .sun { display: block; } :root[data-theme="dark"] .thm .moon { display: none; }
:root[data-theme="light"] .thm .sun { display: none; } :root[data-theme="light"] .thm .moon { display: block; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .thm .sun { display: none; } :root:not([data-theme]) .thm .moon { display: block; } }
.site-head nav:last-child { align-items: center; }
@media (max-width: 760px) { .site-head .wrap { position: relative; } .site-head .thm { position: absolute; top: 14px; right: var(--gutter); } }

/* Segmented control (two or more options, one selected) */
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); background: var(--surface); }
.seg button { min-height: 40px; min-width: 112px; padding: 8px 18px; border: 0; background: transparent; color: var(--ink-muted); font: 600 12px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: background-color .25s, color .25s; }
.seg button:lang(hi) { font: 600 17px/16px var(--font-hindi); letter-spacing: normal; text-transform: none; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--ink); color: var(--surface); }
@media (max-width: 640px) { :root { --gutter: 16px; --section: 72px; } }
* { box-sizing: border-box; }
html { background: var(--surface); scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/1.7 var(--font-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; caret-color: var(--sindoor); }
::selection { background: var(--sindoor); color: var(--on-sindoor); }
img, video { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
a { color: inherit; text-underline-offset: .28em; text-decoration-thickness: 1px; }
a:hover { color: var(--sindoor); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--sindoor); outline-offset: 3px; }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* Type. Bodoni's small optical size keeps its hairlines readable at every size. */
h1, h2, h3, .wordmark b, .faq summary, .price, .foot-brand b { font-family: var(--font-display); font-weight: 500; font-optical-sizing: none; font-variation-settings: "opsz" 11; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.06; letter-spacing: -.01em; }
h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.12; margin-bottom: 40px; }
h3 { font-size: 26px; line-height: 1.22; }
h1 em, h2 em { font-style: italic; color: var(--sindoor); }
:lang(hi) { font-family: var(--font-hindi); letter-spacing: normal; text-transform: none; }
h1 :lang(hi), h2 :lang(hi), .wordmark :lang(hi), .hi-line, .steps b { font-family: var(--font-hindi-display); }
.lede { font-size: 18px; color: var(--ink-body); max-width: 34em; }
.muted { color: var(--ink-muted); }

/* Buttons: the one place for engraved caps (never on Devanagari) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 28px; font: 600 12px/16px var(--font-ui); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; transition: background-color .2s, color .2s; }
.btn :lang(hi), .btn:lang(hi) { font: 600 17px/1.2 var(--font-hindi); letter-spacing: normal; text-transform: none; }
.btn-primary { background: var(--sindoor); color: var(--on-sindoor); }
.btn-primary:hover { background: var(--sindoor-deep); color: var(--on-sindoor); }
.btn-secondary { border-color: var(--ink); color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--surface); }
.btn-ink { background: var(--ink); color: var(--surface); }
.btn-ink:hover { background: var(--ink); color: var(--surface); opacity: .88; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* Patterns: tone on tone, always under content */
.pat { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.lotus-band { display: block; width: 100%; height: 40px; opacity: .45; }

/* Announcement + header */
.announce { display: block; padding: 10px var(--gutter); background: var(--ink); color: var(--surface); text-align: center; font: 500 14px/1.5 var(--font-ui); text-decoration: none; }
.announce:hover { color: var(--turmeric); }
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 20px; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.site-head nav:last-child { justify-content: flex-end; }
.site-head nav a { font: 600 12px/1.4 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding-block: 6px; }
.wordmark { display: flex; align-items: center; text-decoration: none; }
.wordmark img { display: block; height: 54px; width: auto; }
.wm-d { display: none !important; }
:root[data-theme="dark"] .wm-l { display: none !important; } :root[data-theme="dark"] .wm-d { display: block !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wm-l { display: none !important; } :root:not([data-theme="light"]) .wm-d { display: block !important; } }
.foot-wm { display: block; height: 64px; width: auto; max-width: 100%; object-fit: contain; align-self: flex-start; }
@media (max-width: 760px) { .wordmark img { height: 46px; } }
.wordmark b { font-size: 28px; line-height: 1; letter-spacing: .14em; margin-right: -.14em; padding-top: .3em; }
/* The bindu over the centre V: the wordmark's one ornament (drop it wherever the mark is shown) */
.wordmark .v { position: relative; }
.wordmark .v::before { content: ""; position: absolute; left: calc(50% - .07em); top: -.12em; width: .17em; height: .17em; margin-left: -.085em; border-radius: 50%; background: var(--sindoor); }
.wordmark [lang="hi"] { font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--sindoor); }
@media (max-width: 760px) {
  .site-head .wrap { grid-template-columns: 1fr; justify-items: center; padding-block: 16px; gap: 10px; }
  .site-head nav, .site-head nav:last-child { justify-content: center; gap: 4px 20px; }
  .site-head nav:first-child { order: 2; } .site-head nav:last-child { order: 3; }
  .wordmark b { font-size: 24px; }
}
@media (max-width: 420px) { /* eight menu items in two rows of four on phones */
  .site-head nav, .site-head nav:last-child { gap: 4px 12px; }
  .site-head nav a { font-size: 11px; letter-spacing: .1em; }
}

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 64px; align-items: center; padding-block: 48px 56px; }
.hero h1 { font-size: clamp(40px, 4.6vw, 68px); }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hi-line { font-size: 21px; font-weight: 600; line-height: 1.5; color: var(--sindoor); }
.hero .actions { margin-top: 8px; }
/* The arch never fills the whole first screen: the next section always peeks in */
.arch { position: relative; aspect-ratio: 4 / 5; height: min(600px, calc(100svh - 260px)); min-height: 380px; width: auto; max-width: 100%; justify-self: center; padding: 14px 14px 0; background: var(--band); border-radius: 320px 320px 0 0; overflow: hidden; }
.arch > .pat { opacity: .3; }
.arch-in { position: relative; z-index: 1; height: 100%; border-radius: 320px 320px 0 0; overflow: hidden; }
.arch-in img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (max-width: 640px) { .hero { padding-block: 40px 64px; gap: 48px; } }

/* Sections */
.section { padding-block: var(--section); }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; }

/* Films: carousels fed by /api/videos (the channel's latest uploads) */
.rail { margin-top: 8px; }
.rail + .rail { margin-top: 56px; }
.rail-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.rail-head h3 { font-size: 24px; }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 400 18px/1 var(--font-ui); cursor: pointer; transition: background-color .2s, color .2s; }
.rail-nav button:hover:not(:disabled) { background: var(--ink); color: var(--surface); }
.rail-nav button:disabled { opacity: .3; cursor: default; }
.track { list-style: none; margin: 0; padding: 0 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 72px) / 4)); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-x: contain; }
.track.tall { grid-auto-columns: minmax(150px, calc((100% - 120px) / 6)); gap: 24px; }
.track > li { scroll-snap-align: start; }
.track:empty { display: none; }
@media (max-width: 640px) { .track { grid-auto-columns: 78%; gap: 16px; } .track.tall { grid-auto-columns: 44%; gap: 12px; } .rail-nav { display: none; } }
.vcard { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.tall .thumb { aspect-ratio: 9 / 16; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.vcard:hover .thumb img { transform: scale(1.04); }
.play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; border: 1px solid var(--turmeric); background: rgba(31,26,21,.5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23F8E4BC'/%3E%3C/svg%3E") center / 22px no-repeat; }
.tall .play { width: 40px; height: 40px; margin: -20px 0 0 -20px; background-size: 18px; }
.vt { font: 500 16px/1.45 var(--font-ui); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tall .vt { font-size: 15px; }
.vcard:hover .vt { color: var(--sindoor); }
.rail-foot { margin-top: 14px; font-size: 15px; }

/* Video modal: plays on the page; suggests the next video in the same row */
.vmodal { width: min(100% - 32px, 1000px); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: var(--kajal); color: var(--kajal-ink); overflow: auto; }
.vmodal.is-short { width: min(100% - 32px, 760px); }
.vmodal::backdrop { background: rgba(20,16,12,.82); }
.vmodal[open] { animation: vm-in .32s cubic-bezier(.2,.7,.2,1); }
@keyframes vm-in { from { opacity: 0; transform: translateY(12px); } }
.vm-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px 14px 20px; }
.vm-title { margin: 0; font: 500 16px/1.4 var(--font-ui); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vm-close { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--kajal-line); background: transparent; color: var(--kajal-ink); font: 300 26px/1 var(--font-ui); cursor: pointer; }
.vm-close:hover { border-color: var(--turmeric); color: var(--turmeric); }
.vm-body { display: grid; gap: 20px; padding: 0 20px 20px; }
.is-short .vm-body { grid-template-columns: minmax(0, 340px) 1fr; align-items: start; }
.vm-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.is-short .vm-frame { aspect-ratio: 9 / 16; max-height: calc(100dvh - 140px); }
.vm-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vm-next { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--kajal-line); color: var(--kajal-ink); text-decoration: none; background: transparent; cursor: pointer; text-align: left; font: inherit; transition: border-color .3s, background-color .3s; }
.is-short .vm-next { grid-template-columns: 96px 1fr; }
.vm-next:hover, .vm-next.ended { border-color: var(--turmeric); background: rgba(243,217,164,.08); }
.vm-next img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.is-short .vm-next img { aspect-ratio: 9 / 16; }
.vm-next small { display: block; margin-bottom: 4px; font: 600 12px/1.4 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--turmeric); }
.vm-next span { font: 500 15px/1.45 var(--font-ui); }
.vm-end { margin: 0; font-size: 15px; color: var(--kajal-muted); }
.vm-end a { color: var(--turmeric); }
@media (max-width: 640px) {
  .vmodal, .vmodal.is-short { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; }
  .is-short .vm-body { grid-template-columns: 1fr; }
  .is-short .vm-frame { width: min(100%, calc((100dvh - 230px) * 9 / 16)); margin-inline: auto; }
  .vm-next { grid-template-columns: 120px 1fr; }
}

/* Philosophy on the lotus field */
.field { position: relative; overflow: hidden; background: var(--surface-story); }
.field > .pat { opacity: .4; }
.field .wrap { position: relative; z-index: 1; }
.field-head { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.field-head h2 { max-width: 18em; }
.field-head .plus { font-family: var(--font-ui); font-weight: 300; font-style: normal; color: var(--ink-muted); }
.tenets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px 48px; margin-top: 16px; }
.tenets article { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--ink); }
.tenets p { color: var(--ink-body); }

/* Shelf: Books / Greetings tabs */
.tabs { display: inline-flex; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 56px 32px; }
.shelf[hidden] { display: none; }
.item { display: flex; flex-direction: column; }
.stage { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--ground-a); overflow: hidden; container-type: inline-size; }
.stage.b { background: var(--ground-b); }
.stage.night { background: var(--ground-night); }
/* Every cover and card is drawn at the same height, so the shelf lines up */
.stage img { height: 92cqw; width: auto; max-width: 84cqw; object-fit: contain; box-shadow: var(--shadow-object); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.stage:hover img { transform: translateY(-6px); }
.item h3 { margin-top: 22px; font-size: 24px; }
.item h3 a { text-decoration: none; }
.item .spec { margin-top: 6px; font-size: 14px; color: var(--ink-muted); }
.item .desc { margin-top: 12px; font-size: 16px; color: var(--ink-body); }
.buy { display: flex; align-items: center; gap: 20px; margin-top: auto; padding-top: 22px; }
.price { font-size: 30px; line-height: 1; min-width: 2.6em; }
.buy .btn { flex: 1; }
.sample { margin-top: 12px; font-size: 14px; color: var(--ink-muted); }
.shelf-note { grid-column: 1 / -1; font-size: 14px; color: var(--ink-muted); }

/* Aashirvaad on sindoor */
.sindoor { position: relative; overflow: hidden; background: var(--band); color: var(--on-band); }
.sindoor > .pat { opacity: .12; }
.sindoor .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 340px); gap: 64px; align-items: start; }
@media (max-width: 860px) { .sindoor .wrap { grid-template-columns: 1fr; gap: 48px; } .film-col { width: min(100%, 320px); margin-inline: auto; } }
.sindoor h2 { margin-bottom: 0; }
.aash-copy { display: flex; flex-direction: column; gap: 28px; }
.aash-copy .lede { color: var(--on-band); font-size: 19px; }
.en { display: block; margin-top: 6px; font: 400 15px/1.6 var(--font-ui); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255,248,238,.35); }
.steps li:last-child { border-bottom: 1px solid rgba(255,248,238,.35); }
.steps b { font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--turmeric); }
.steps p { font-size: 18px; line-height: 1.5; }
.deities { font-size: 18px; }
.offer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.offer .price { font-size: 52px; }
.offer small { display: block; font-size: 16px; font-weight: 500; color: var(--turmeric); }
.offer small [lang="en"] { font-family: var(--font-ui); }
.sindoor a:not(.btn) { color: var(--on-band); }
.sindoor a:not(.btn):hover { color: var(--turmeric); }
.aash-more { font-size: 15px; }
.film-col figure { margin: 0; padding: 12px; background: var(--surface); }
.film-col video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--ink); }
.film-col figcaption { padding: 10px 2px 0; font-size: 14px; color: var(--ink-muted); }
.pick { display: flex; gap: 8px; margin-top: 12px; }
.pick button { flex: 1; min-height: 44px; font: 500 17px/1 var(--font-hindi); color: var(--on-band); background: transparent; border: 1px solid rgba(255,248,238,.5); cursor: pointer; transition: background-color .2s, color .2s; }
.pick button:hover { background: rgba(255,248,238,.12); }
.pick button[aria-pressed="true"] { background: #FFF8EE; color: #A8321C; border-color: #FFF8EE; }

/* FAQ */
.faq { max-width: 52em; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 22px 0; font-size: 22px; line-height: 1.35; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 26px/1 var(--font-ui); color: var(--sindoor); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--sindoor); }
.faq details p { padding-bottom: 24px; max-width: 46em; color: var(--ink-body); }

/* Footer */
.foot { background: var(--kajal); color: var(--kajal-ink); }
.foot .lotus-band { opacity: .5; }
.foot .wrap { display: flex; flex-direction: column; gap: 56px; padding-block: 72px 36px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }
.foot-brand b { font-size: clamp(28px, 3.6vw, 40px); line-height: 1; letter-spacing: .22em; }
.foot-brand p { font-size: 15px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 32px 64px; font-size: 15px; line-height: 2.1; }
.foot-cols div { display: flex; flex-direction: column; }
.foot-cols span { font-weight: 600; color: var(--turmeric); }
.foot a { color: var(--kajal-ink); text-decoration: none; }
.foot a:hover { color: var(--turmeric); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--kajal-line); font-size: 13px; color: var(--kajal-muted); }

@media (prefers-reduced-motion: reduce) { *, *::after { transition: none !important; } html { scroll-behavior: auto; } }
