@font-face { font-family: "Tiro Devanagari Hindi"; src: url("/fonts/TiroDevanagariHindi-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Mukta"; src: url("/fonts/Mukta-Regular.ttf"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mukta"; src: url("/fonts/Mukta-SemiBold.ttf"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/CormorantGaramond[wght].ttf"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/CormorantGaramond-Italic[wght].ttf"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --cream: #fbf6ee; --paper: #fffdf8; --ink: #2a1a0f; --muted: #7d6553; --line: #ecdfcb;
  --saffron: #e8730c; --maroon: #6d1a0b; --gold: #f4c26b;
  --serif-hi: "Tiro Devanagari Hindi", serif; --serif-en: "Cormorant Garamond", Georgia, serif;
  --sans: "Mukta", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 48px); background: rgba(251, 246, 238, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.bar.scrolled { border-color: var(--line); }
.bar .brand { font-family: var(--serif-hi); font-size: 22px; text-decoration: none; display: flex; gap: 10px; align-items: center; }
.bar .brand .mark { color: var(--saffron); font-size: 20px; }
.bar nav { display: flex; gap: 22px; font-size: 16px; }
.bar nav a { text-decoration: none; color: var(--muted); }
.bar nav a:hover { color: var(--ink); }
.bar.on-hero { background: transparent; color: #fff8ec; }
.bar.on-hero nav a { color: rgba(255, 244, 222, .85); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; margin-top: -64px; padding: 140px clamp(18px, 5vw, 64px) 110px;
  color: #fff8ec;
  background:
    radial-gradient(circle at 78% 30%, rgba(255, 228, 160, .55), transparent 38%),
    radial-gradient(ellipse at 0% 100%, rgba(80, 10, 4, .8), transparent 60%),
    linear-gradient(160deg, #f59a3c 0%, #d9580f 40%, #9c2f0c 72%, #5a1408 100%);
}
.hero .mandala { position: absolute; right: -14vw; top: 50%; width: min(1100px, 95vw); transform: translateY(-50%); opacity: .14; animation: turn 240s linear infinite; pointer-events: none; }
@keyframes turn { to { transform: translateY(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hero .mandala { animation: none; } }
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-family: var(--serif-hi); font-weight: 400; font-size: clamp(44px, 6.4vw, 86px); line-height: 1.15; margin: 0 0 14px; text-shadow: 0 2px 30px rgba(80, 20, 0, .35); }
.hero h1 .en { display: block; font-family: var(--serif-en); font-style: italic; font-size: .52em; opacity: .9; margin-top: 6px; }
.hero p.tag { font-size: clamp(18px, 1.9vw, 22px); max-width: 30em; opacity: .92; margin: 0 0 30px; }
.hero .cta { display: inline-flex; gap: 10px; align-items: center; background: #fff8ec; color: var(--maroon); padding: 14px 26px; border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: 0 10px 30px rgba(60, 10, 0, .3); }
.hero .cta:hover { transform: translateY(-1px); }
.hero .feature { position: relative; justify-self: center; width: min(440px, 100%); cursor: zoom-in; }
.hero .feature img { border-radius: 18px; box-shadow: 0 30px 80px rgba(50, 8, 0, .5), 0 0 0 1px rgba(255, 255, 255, .15); transform: rotate(2deg); transition: transform .4s; }
.hero .feature:hover img { transform: rotate(0deg) scale(1.01); }
.hero .feature::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border-radius: 18px; border: 1px solid rgba(255, 236, 190, .45); transform: rotate(-3deg); }

/* ---------- sections ---------- */
section.block { max-width: 1240px; margin: 0 auto; padding: 84px clamp(18px, 4vw, 48px) 20px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.sec-head h2 { margin: 0; font-family: var(--serif-en); font-weight: 500; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; }
.sec-head h2 .hi { font-family: var(--serif-hi); font-size: .7em; color: var(--muted); margin-left: 10px; font-weight: 400; }
.sec-head small { color: var(--muted); }

/* masonry of slides */
.wall { columns: 4 260px; column-gap: 22px; }
.tile { break-inside: avoid; margin: 0 0 22px; position: relative; cursor: zoom-in; border-radius: 14px; overflow: hidden; background: #eadcc6;
  box-shadow: 0 1px 2px rgba(60, 30, 0, .08), 0 8px 24px rgba(60, 30, 0, .08); transition: transform .25s, box-shadow .25s; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(60, 30, 0, .1), 0 18px 40px rgba(60, 30, 0, .16); }
.tile img { width: 100%; height: auto; }
.tile .from { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; font-size: 13px; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .2s; }
.tile:hover .from { opacity: 1; }

/* discourse cards */
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.disc { text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s, transform .2s; }
.disc:hover { border-color: #e2b77f; transform: translateY(-2px); }
.disc .stack { position: relative; height: 210px; }
.disc .stack img { position: absolute; top: 0; height: 200px; width: auto; max-width: 70%; object-fit: cover; border-radius: 10px; box-shadow: 0 8px 20px rgba(60, 30, 0, .18); }
.disc .stack img:nth-child(1) { left: 0; z-index: 3; }
.disc .stack img:nth-child(2) { left: 22%; top: 6px; z-index: 2; transform: rotate(3deg); filter: brightness(.96); }
.disc .stack img:nth-child(3) { left: 42%; top: 12px; z-index: 1; transform: rotate(6deg); filter: brightness(.9); }
.disc h3 { margin: 0; font-family: var(--serif-hi); font-weight: 400; font-size: 23px; line-height: 1.4; }
.disc .meta { color: var(--muted); font-size: 15px; display: flex; justify-content: space-between; }

.empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 20px; }
.empty .om { font-size: 40px; color: var(--saffron); display: block; margin-bottom: 8px; }

/* ---------- discourse page ---------- */
.d-head { max-width: 900px; margin: 0 auto; padding: 60px clamp(18px, 4vw, 48px) 10px; text-align: center; }
.d-head .back { font-size: 15px; color: var(--muted); text-decoration: none; }
.d-head h1 { font-family: var(--serif-hi); font-weight: 400; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.3; margin: 18px 0 8px; }
.d-head .date { color: var(--muted); letter-spacing: .08em; text-transform: uppercase; font-size: 14px; }
.ornament { width: 160px; margin: 24px auto 0; color: var(--saffron); }
.reading { max-width: 760px; margin: 0 auto; padding: 20px clamp(18px, 4vw, 48px) 40px; }
.reading details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 6px 28px; }
.reading summary { cursor: pointer; padding: 16px 0; font-family: var(--serif-en); font-size: 26px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.reading summary::after { content: "+"; color: var(--saffron); font-size: 30px; font-family: var(--sans); }
.reading details[open] summary::after { content: "–"; }
.reading .text p { font-family: var(--serif-hi); font-size: 20px; line-height: 1.95; margin: 0 0 1.1em; }
.reading .text p:lang(en) { font-family: var(--serif-en); font-size: 22px; line-height: 1.6; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(24, 12, 4, .92); display: grid; grid-template-rows: 1fr auto; padding: 24px; }
.lb .stage { display: grid; place-items: center; min-height: 0; }
.lb .stage img { max-height: calc(100vh - 170px); max-width: min(100%, 1100px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb .tools { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding-top: 16px; align-items: center; }
.lb .tools a, .lb .tools button { font: inherit; font-size: 16px; border: 0; border-radius: 999px; padding: 10px 20px; background: rgba(255, 248, 236, .12); color: #fff8ec; text-decoration: none; cursor: pointer; }
.lb .tools .primary { background: var(--saffron); }
.lb .tools a:hover, .lb .tools button:hover { background: rgba(255, 248, 236, .22); }
.lb .tools .primary:hover { background: #c95f05; }
.lb .close, .lb .nav { position: absolute; border: 0; background: rgba(255, 248, 236, .1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; }
.lb .close { top: 18px; right: 18px; }
.lb .nav.prev { left: 18px; top: 50%; } .lb .nav.next { right: 18px; top: 50%; }
.lb .src { color: rgba(255, 244, 222, .7); font-size: 14px; width: 100%; text-align: center; margin-top: 4px; }

footer.foot { margin-top: 90px; padding: 46px 20px 60px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); font-size: 15px; }
footer.foot .attr { font-family: var(--serif-hi); font-size: 22px; color: var(--ink); margin-bottom: 6px; }
footer.foot a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { padding: 110px 20px 70px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero .feature { width: min(360px, 88%); }
  .bar nav { gap: 14px; font-size: 15px; }
  .wall { columns: 2 150px; column-gap: 12px; } .tile { margin-bottom: 12px; border-radius: 10px; }
  .lb { padding: 10px; } .lb .nav { display: none; }
}
