@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 560;
  font-display: swap;
  src: url('../fonts/fraunces-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Literata';
  font-style: italic;
  font-weight: 460;
  font-display: swap;
  src: url('../fonts/literata-latin-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Literata';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/literata-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/outfit-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Tiro Devanagari Hindi';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/tiro-devanagari.woff2') format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}

:root {
  --paper: #f3ead9;
  --paper-deep: #e7dcc6;
  --card: #fffaf2;
  --ink: #24160f;
  --ink-soft: #5a4536;
  --maroon: #7c2232;
  --maroon-deep: #4a121c;
  --saffron: #d86b1c;
  --gold: #a87a32;
  --gold-bright: #e8cb90;
  --indigo: #171e33;
  --indigo-2: #101628;
  --leaf: #245443;
  --line: rgba(36, 22, 15, 0.14);
  --shadow: 0 18px 50px rgba(55, 24, 10, 0.12);
  --serif: "Fraunces", "Tiro Devanagari Hindi", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --text: "Literata", "Tiro Devanagari Hindi", Palatino, Georgia, serif;
  --deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --wrap: 1120px;
  --wide: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(216, 107, 28, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f1e4 0%, var(--paper) 240px);
  font-family: var(--text);
  font-size: 1.075rem;
  line-height: 1.7;
  font-weight: 460;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.18;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
  mix-blend-mode: multiply;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--maroon); text-underline-offset: 0.18em; }

a:hover { color: var(--saffron); }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

::selection { background: #e8cb90; color: var(--ink); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold-bright);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  z-index: 100;
}

.skip:focus { top: 1rem; }

.wrap { width: min(var(--wrap), calc(100% - 2rem)); margin-inline: auto; }
.wrap-wide { width: min(var(--wide), calc(100% - 2rem)); margin-inline: auto; }

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon);
  margin: 0 0 0.6rem;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 650; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); margin: 0; }
h2 { font-size: clamp(2rem, 4vw, 3.3rem); margin: 0 0 0.7rem; }
h3 { font-size: 1.45rem; margin: 0 0 0.4rem; }

.deva { font-family: var(--deva); font-weight: 400; letter-spacing: 0; line-height: 1.25; }

p { margin: 0 0 1rem; }
.lede { font-size: 1.22rem; color: var(--ink-soft); max-width: 42rem; }

.muted { color: var(--ink-soft); }
.small { font-family: var(--sans); font-size: 0.86rem; letter-spacing: 0.01em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(243, 234, 217, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
}

.brand strong { display: block; font-family: var(--serif); font-size: 1.05rem; line-height: 1.1; }
.brand span { display: block; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 650;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
}

.nav {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  flex-wrap: wrap;
  width: min(var(--wrap), calc(100% - 2rem));
  margin: 0 auto 0.35rem;
}

.nav a {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="true"] { background: var(--maroon); color: #fffaf2; }

/* Hero */
.hero {
  position: relative;
  color: #f6efe2;
  background:
    radial-gradient(circle at 8% 10%, rgba(216, 107, 28, 0.35), transparent 32%),
    radial-gradient(circle at 92% 90%, rgba(232, 203, 144, 0.16), transparent 28%),
    linear-gradient(160deg, #3a1422 0%, #1a2238 46%, #10131d 100%);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 18px;
  background:
    radial-gradient(circle at 10px 10px, #e8cb90 2px, transparent 2.5px) 0 0 / 22px 18px,
    linear-gradient(#7c2232, #7c2232);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 4.2rem 0 4.6rem;
}

.hero .kicker { color: var(--gold-bright); }
.hero h1 { color: #fffaf2; }
.hero .english-name {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 560;
  margin: 0.35rem 0 1rem;
  color: var(--gold-bright);
}
.hero .lede { color: #eadfce; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.8rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 650;
  border: 1px solid transparent;
}

.btn-gold { background: var(--gold-bright); color: var(--maroon-deep); }
.btn-gold:hover { background: #fff; color: var(--maroon-deep); }
.btn-ghost { border-color: rgba(232, 203, 144, 0.6); color: #fffaf2; background: transparent; }
.btn-ghost:hover { background: rgba(255, 250, 242, 0.1); color: #fff; }

.chant {
  margin-top: 1.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(232, 203, 144, 0.28);
  font-family: var(--deva);
  font-size: 1.25rem;
  color: var(--gold-bright);
}

.museum {
  background:
    linear-gradient(180deg, rgba(255, 250, 242, 0.04), rgba(255, 250, 242, 0.02)),
    repeating-linear-gradient(90deg, rgba(232, 203, 144, 0.05) 0 12px, transparent 12px 24px);
  border: 1px solid rgba(232, 203, 144, 0.35);
  border-radius: 1.4rem;
  padding: 1rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.museum-frame {
  background: #f7f1e4;
  border-radius: 1rem;
  padding: 0.8rem;
}

.museum-frame img { width: 100%; border-radius: 0.5rem; }

.museum figcaption,
.shot figcaption {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.45;
  padding: 0.7rem 0.3rem 0.2rem;
  color: #eadfce;
}

.pair {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 0.8rem;
  margin-top: 0.8rem;
  align-items: center;
}

.pair img {
  width: 92px;
  height: 128px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.4rem;
  border: 3px solid var(--gold-bright);
}

.pair p { margin: 0; font-family: var(--sans); font-size: 0.82rem; color: #eadfce; line-height: 1.45; }

/* Sections */
section { padding: 4.5rem 0; }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head p:last-child { margin-bottom: 0; }

.band {
  background: var(--maroon);
  color: #fffaf2;
  padding: 0.85rem 0;
}
.band p { margin: 0; font-family: var(--deva); text-align: center; font-size: clamp(1.05rem, 2vw, 1.35rem); }

.plain {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--saffron);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow);
}
.plain strong { font-family: var(--sans); font-weight: 650; }

.path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.path a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 250, 242, 0.65);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  min-height: 100%;
}
.path a:hover { border-color: var(--saffron); transform: translateY(-2px); }
.path em { display: block; font-family: var(--sans); font-style: normal; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--maroon); margin-bottom: 0.3rem; }
.path strong { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 0.25rem; }
.path span { display: block; color: var(--ink-soft); font-size: 0.95rem; }

.facts {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.facts th, .facts td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.facts th {
  width: 28%;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--maroon);
  background: #f8f0e2;
}
.facts tr:last-child th,
.facts tr:last-child td { border-bottom: 0; }

.five {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.five article {
  background: var(--indigo);
  color: #f6efe2;
  border-radius: 1rem;
  padding: 1rem;
  min-height: 100%;
}
.five span {
  font-family: var(--deva);
  color: var(--gold-bright);
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.4rem;
}
.five p { margin: 0; font-size: 0.98rem; }

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 981px) {
  .split aside {
    position: sticky;
    top: 5.2rem;
    align-self: start;
    max-height: calc(100vh - 6.4rem);
    overflow: auto;
    padding-right: 0.3rem;
  }
}

.chapter { margin: 0 0 2.2rem; max-width: 70ch; }
.chapter h3 { font-size: 1.7rem; }
.drop::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 3.4rem;
  line-height: 0.8;
  padding-right: 0.45rem;
  color: var(--maroon);
  font-weight: 650;
}

.road {
  list-style: none;
  margin: 0;
  padding: 0.3rem 0 0 0;
  border-left: 2px solid var(--gold);
}
.road li { position: relative; padding: 0 0 1.35rem 1.3rem; }
.road li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 0 4px var(--paper);
}
.road time {
  font-family: var(--sans);
  font-weight: 650;
  color: var(--maroon);
  font-size: 0.9rem;
}
.road h3 { font-size: 1.15rem; margin: 0.1rem 0 0.25rem; }
.road p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

.pull {
  margin: 2rem 0;
  padding: 1.4rem 1.4rem 1.2rem;
  background: var(--indigo);
  color: #f6efe2;
  border-radius: 1.2rem;
}
.pull p {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.3;
  font-weight: 560;
  margin: 0 0 0.6rem;
}
.pull cite { font-family: var(--sans); font-style: normal; color: var(--gold-bright); font-size: 0.9rem; }

.note {
  background: #fff4df;
  border: 1px dashed var(--gold);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  color: var(--ink);
}
.note h3 { font-size: 1.15rem; }
.note ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.note li { margin: 0.35rem 0; }

/* Philosophy */
.ink-section {
  background:
    radial-gradient(circle at 100% 0, rgba(216, 107, 28, 0.2), transparent 30%),
    linear-gradient(180deg, var(--indigo) 0%, var(--indigo-2) 100%);
  color: #f6efe2;
}
.ink-section .kicker { color: var(--gold-bright); }
.ink-section .lede,
.ink-section .muted { color: #ddd0bf; }
.ink-section a { color: var(--gold-bright); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin: 1.4rem 0 0.4rem; }
.pillars article {
  border: 1px solid rgba(232, 203, 144, 0.28);
  border-radius: 1rem;
  padding: 1.1rem 1rem 0.9rem;
  background: rgba(255, 250, 242, 0.04);
}
.pillars h3 { color: var(--gold-bright); font-size: 1.3rem; }
.pillars p { margin: 0; color: #eadfce; }

.sutras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.sutra {
  background: var(--card);
  color: var(--ink);
  border-radius: 1rem;
  padding: 1rem 1rem 0.85rem;
  border-top: 5px solid var(--saffron);
  box-shadow: var(--shadow);
}
.sutra .n {
  font-family: var(--deva);
  color: var(--maroon);
  font-size: 1.35rem;
}
.sutra h3 { margin-top: 0.15rem; }
.sutra .mr { font-family: var(--deva); color: var(--leaf); margin-bottom: 0.35rem; }
.sutra p:last-child { margin: 0; color: var(--ink-soft); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.panel {
  background: rgba(255, 250, 242, 0.05);
  border: 1px solid rgba(232, 203, 144, 0.25);
  border-radius: 1rem;
  padding: 1.1rem 1.15rem;
}
.panel h3 { color: var(--gold-bright); }
.panel li { margin: 0.4rem 0; }

.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
.quote {
  margin: 0;
  padding: 1rem 1.05rem;
  background: var(--card);
  color: var(--ink);
  border-radius: 1rem;
}
.quote p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.35; margin: 0 0 0.55rem; }
.quote .mr { font-family: var(--deva); font-size: 1.15rem; color: var(--maroon); }
.quote figcaption { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-soft); }

/* Day */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  background: var(--card);
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
}
.steps b {
  font-family: var(--deva);
  font-size: 1.5rem;
  color: var(--maroon);
  line-height: 1;
  min-width: 2rem;
}
.steps h3 { font-size: 1.2rem; margin: 0 0 0.2rem; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Works */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.place {
  background: var(--card);
  border-radius: 1rem;
  padding: 1rem 1.05rem 0.8rem;
  border: 1px solid var(--line);
}
.place h3 { font-size: 1.2rem; }
.place p { margin: 0; color: var(--ink-soft); }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.people article {
  background: #fffaf2;
  border-radius: 1rem;
  padding: 1rem;
  border-bottom: 4px solid var(--leaf);
}
.people h3 { font-size: 1.2rem; }
.people p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* Books */
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 1rem; }
.filters button,
.lb-nav {
  font-family: var(--sans);
  font-weight: 650;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  min-height: 2.5rem;
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--maroon); color: #fffaf2; border-color: var(--maroon); }

.shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
.book {
  display: grid;
  grid-template-columns: 10px 1fr;
  background: var(--card);
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 100%;
}
.book i { display: block; background: var(--maroon); }
.book.en i { background: var(--indigo); }
.book.hi i { background: var(--saffron); }
.book.mr i { background: var(--leaf); }
.book div { padding: 0.9rem 1rem 0.85rem; }
.book h3 { font-size: 1.12rem; }
.book p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.25rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.8rem;
}
.shot {
  margin: 0;
  background: rgba(255, 250, 242, 0.04);
  border: 1px solid rgba(232, 203, 144, 0.22);
  border-radius: 1rem;
  overflow: hidden;
  grid-column: span 4;
}
.shot.wide { grid-column: span 6; }
.shot.feature { grid-column: span 6; }
.shot button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0c101a;
  cursor: zoom-in;
}
.shot img { width: 100%; height: 280px; object-fit: cover; object-position: center top; }
.shot.feature img { height: 420px; object-position: center; }
.shot.portrait img { object-position: center top; height: 360px; }
.shot figcaption { padding: 0.75rem 0.9rem 0.9rem; }
.shot figcaption strong { display: block; color: #fffaf2; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 0.2rem; }
.shot figcaption span { color: #ddd0bf; }

dialog#lightbox {
  width: min(980px, calc(100vw - 1.5rem));
  max-height: calc(100vh - 1.5rem);
  border: 0;
  border-radius: 1rem;
  padding: 0.8rem;
  background: #141821;
  color: #f6efe2;
}
dialog#lightbox::backdrop { background: rgba(12, 8, 6, 0.78); }
#lb-img { width: 100%; max-height: 72vh; object-fit: contain; background: #000; border-radius: 0.5rem; }
#lb-cap { font-family: var(--sans); font-size: 0.92rem; margin: 0.7rem 0.2rem 0.3rem; color: #eadfce; }
.lb-bar { display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.6rem; }
.lb-nav { background: #fffaf2; }

/* Legacy, glossary, faq */
.legacy-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 1rem; align-items: start; }
.legacy-grid img { border-radius: 1rem; width: 100%; height: 100%; max-height: 460px; object-fit: cover; }

.glossary, .faq { display: grid; gap: 0.65rem; }
.glossary { grid-template-columns: 1fr 1fr; }
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
}
summary { cursor: pointer; font-family: var(--serif); font-weight: 650; font-size: 1.12rem; }
details p { margin: 0.55rem 0 0.2rem; color: var(--ink-soft); }
.term b { font-family: var(--deva); font-weight: 400; color: var(--maroon); }

.sources ol { padding-left: 1.2rem; }
.sources li { margin: 0.45rem 0; }
.sources a { word-break: break-word; }

footer.site {
  background: var(--maroon-deep);
  color: #f6efe2;
  padding: 2rem 0 2.4rem;
}
footer.site a { color: var(--gold-bright); }
footer.site p { margin: 0.3rem 0; }
.foot-row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: end; }

.is-hidden { display: none !important; }

@media (max-width: 980px) {
  .hero-grid, .split, .legacy-grid, .two, .quotes, .sutras, .shelf, .places { grid-template-columns: 1fr; }
  .path, .five, .pillars, .people, .glossary { grid-template-columns: 1fr 1fr; }
  .shot, .shot.wide, .shot.feature { grid-column: span 6; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fffaf2;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0.8rem; }
}

@media (max-width: 680px) {
  section { padding: 3.2rem 0; }
  .path, .five, .pillars, .people, .glossary, .shot, .shot.wide, .shot.feature { grid-template-columns: 1fr; grid-column: auto; }
  .shot, .shot.wide, .shot.feature { grid-column: auto; }
  .gallery-grid { grid-template-columns: 1fr; }
  .facts th { width: 38%; }
  .shot img, .shot.feature img, .shot.portrait img { height: 240px; }
  .pair { grid-template-columns: 78px 1fr; }
  .hero-grid { padding: 2.6rem 0 3rem; }
}

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

@media print {
  body::before, .site-header, .hero-actions, .filters, .lb-bar, footer.site { display: none !important; }
  .hero, .ink-section, .five article, .pull { background: white !important; color: black !important; }
  a { color: black; }
  section { break-inside: avoid; }
}


.header-tools { display: flex; align-items: center; gap: 0.55rem; }
.langs { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.langs a {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 650;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  min-height: 2.2rem;
  display: inline-flex;
  align-items: center;
}
.langs a[aria-current="true"],
.langs a:hover { background: var(--maroon); color: #fffaf2; border-color: var(--maroon); }
.fallback {
  margin: 0;
  background: #fff4df;
  color: var(--ink);
  text-align: center;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--gold);
}
.page-wrap { padding: 3rem 0 4rem; }
.page-wrap h1 { font-size: clamp(2rem, 4vw, 3rem); }
.listen { font-family: var(--sans); font-weight: 650; }
