:root {
  color-scheme: dark;
  --ink: #f3e8cc;
  --muted: #c2b29a;
  --quiet: #aa987f;
  --night: #150e0a;
  --panel: #1d1510;
  --peach: #f2bca5;
  --gold: #d3a35b;
  --ember: #db4735;
  --line: rgba(242, 188, 165, 0.2);
  --wash: rgba(242, 188, 165, 0.055);
  --display: "Instrument Serif", "Times New Roman", serif;
  --body: Spectral, Georgia, serif;
  --telugu: "Noto Serif Telugu", "Telugu Sangam MN", "Nirmala UI", serif;
  --om: "Noto Serif Devanagari", "Kohinoor Devanagari", serif;
  --om-offset: 6px;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --gutter: clamp(24px, 4vw, 96px);
  --header-height: 68px;
  --header-offset: calc(var(--header-height) + 1px);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 24px);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1rem/1.65 var(--body);
  text-rendering: optimizeLegibility;
}
::selection { background: var(--peach); color: #341911; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 5px; }
[hidden] { display: none !important; }
[lang="te"] { font-family: var(--telugu); }
a { color: var(--peach); text-decoration: none; }
a:hover { color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(3rem, 6vw, 5.25rem); line-height: 1.03; letter-spacing: -0.027em; }
h2 { font-size: clamp(2.25rem, 4vw, 3.4rem); line-height: 1.07; letter-spacing: -0.021em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: calc(100% - var(--gutter) * 2);
  margin-inline: auto;
}
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 12px;
  background: var(--ink);
  color: #3c2118;
  padding: 8px 12px;
  border-radius: 5px;
}
.eyebrow {
  color: var(--gold);
  font: 500 0.66rem/1.5 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 100vmax;
  padding: 9px 22px;
  font: 500 0.92rem/1.4 var(--body);
  white-space: nowrap;
  transition: background-color 180ms, color 180ms, border-color 180ms;
}
.button-peach { color: #65261a; background: var(--peach); }
.button-peach:hover { color: #512017; background: #ffe1cb; }
.button-red { color: #fff6e4; background: #aa2f22; }
.button-red:hover { color: #fff6e4; background: #c13a2c; }
.button-outline, .button-secondary { border-color: var(--line); color: var(--ink); background: transparent; }
.button-outline:hover, .button-secondary:hover { border-color: var(--peach); background: var(--wash); }
.button-group { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

.site-header {
  position: sticky;
  z-index: 8;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(21, 14, 10, 0.92);
  backdrop-filter: blur(15px);
}
.header-inner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) 44px;
  min-height: var(--header-height);
  align-items: center;
  gap: 12px 24px;
}
.wordmark {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--ink);
  font: 400 1.45rem/1.1 var(--display);
  white-space: nowrap;
}
.wordmark-om {
  position: relative;
  top: var(--om-offset);
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #de5840;
  font: 400 1.6875rem/1 var(--om);
}
.wordmark:hover { color: var(--peach); }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px clamp(15px, 2vw, 28px); }
.nav-links > a:not(.button) { display: inline-flex; min-height: 40px; align-items: center; color: var(--muted); font-size: 0.91rem; }
.nav-links > a:not(.button):hover { color: var(--peach); }
.nav-links > a[aria-current="location"] { color: var(--peach); }
.nav-links > a[aria-current="page"] { border-color: var(--peach); }
.nav-short-label { display: none; }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  background: var(--wash);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--peach); }
.theme-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .theme-moon, [data-theme="light"] .theme-toggle .theme-sun { display: none; }
[data-theme="light"] .theme-toggle .theme-moon { display: block; }

.home-page { isolation: isolate; }
.home-page .site-header {
  background: rgb(21 14 10 / var(--nav-alpha, 0.35));
  border-color: rgb(242 188 165 / var(--nav-border-alpha, 0.08));
}
.home-halo {
  position: fixed;
  z-index: -1;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
}
.home-halo::before {
  position: absolute;
  width: 120vh;
  aspect-ratio: 1;
  background: radial-gradient(circle closest-side, rgb(216 64 46 / 0.28), rgb(192 138 46 / 0.12) 40%, transparent 68%);
  opacity: var(--halo-opacity, 0.395);
  transform: scale(var(--halo-scale, 0.62));
  content: "";
}
.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  height: 3px;
  background: rgba(242, 188, 165, 0.11);
  pointer-events: none;
}
.page-progress > div {
  width: 100%;
  height: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, #c08a2e, #da4634);
}
.rail {
  --om-y: calc(var(--header-height) / 2 + var(--om-offset));
  --om-scale: 1;
  --gap-start: calc(var(--om-y) - 20px);
  --gap-end: calc(var(--om-y) + 20px);
  position: fixed;
  z-index: 10;
  inset-block: 0;
  left: var(--rail-x, calc(var(--gutter) - 30px));
  width: 1px;
  pointer-events: none;
}
.rail-track {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(242 188 165 / 0.14), rgb(216 64 46 / 0.85) var(--gap-start),
    transparent var(--gap-start) var(--gap-end), rgb(242 188 165 / 0.16) var(--gap-end));
}
.rail-trail {
  position: absolute;
  top: 0;
  left: -1px;
  width: 3px;
  height: 120px;
  border-radius: 3px;
  background: linear-gradient(to bottom, transparent, rgb(255 196 120 / 0.55) 60%, rgb(216 64 46 / 0.9));
  opacity: var(--trail-opacity, 0);
  transform: translateY(calc(var(--gap-start) - 120px));
}
.rail-om {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transform: translate(-50%, calc(var(--om-y) - 50%)) scale(var(--om-scale));
  color: var(--om-color, #de5840);
  font-family: var(--om);
  font-size: 1.6875rem;
  line-height: 1;
  text-shadow: var(--om-shadow, 0 0 23px rgb(216 64 46 / 0.39), 0 0 9px rgb(255 214 138 / 0.28));
}
.rail-om::before {
  position: absolute;
  width: 54px;
  aspect-ratio: 1;
  background: radial-gradient(circle closest-side, rgb(255 196 120 / 0.5), rgb(216 64 46 / 0.3) 42%, transparent 72%);
  opacity: var(--glow-opacity, 0.5);
  transform: scale(var(--glow-scale, 1.6));
  animation: om-pulse 3.6s ease-in-out infinite;
  content: "";
}
.rail-om > span { position: relative; }
.rail[data-rest] .rail-om::before { opacity: 0.28; animation: none; }
@keyframes om-pulse { 50% { scale: 1.14; } }
.rail ol { position: absolute; inset: 0; }
.rail li a {
  display: grid;
  position: absolute;
  z-index: 1;
  top: var(--station-y, var(--station-default));
  left: 50%;
  place-items: center;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.rail li a::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--station-color, #d8402e);
  opacity: var(--station-opacity, 0.38);
  box-shadow: var(--station-shadow, none);
}
.rail li a span {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 29px;
  transform: translateY(-50%);
  padding: 5px 6px;
  border-radius: 4px;
  background: var(--night);
  opacity: 0;
  white-space: nowrap;
  color: var(--peach);
  font: 500 0.62rem/1.3 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 250ms ease;
}
.rail li a[data-near]:not(:hover, :focus-visible) span {
  left: calc(50% + 12px);
  padding: 0;
  background: none;
  opacity: 1;
  writing-mode: vertical-rl;
  transform: translateY(calc(-100% - 13px));
}
.rail li a:is(:hover, :focus-visible) { z-index: 3; }
.rail li a:is(:hover, :focus-visible) span { opacity: 1; }

.hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-offset));
  place-items: center;
  padding: clamp(32px, 8svh, 96px) var(--gutter) clamp(80px, 12svh, 132px);
  text-align: center;
  background: radial-gradient(ellipse at 50% 42%, rgba(76, 37, 25, 0.12), transparent 63%);
}
.hero-inner { width: min(100%, 880px); }
.hero-inner > * { animation: hero-arrive 720ms cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.hero-inner > h1 { animation-delay: 50ms; }
.hero-inner > .hero-copy { animation-delay: 110ms; }
.hero-inner > .hero-search { animation-delay: 170ms; }
.hero-inner > .hero-index { animation-delay: 220ms; }
.hero-inner > .hero-stats { animation-delay: 270ms; }
@keyframes hero-arrive {
  from { opacity: 0; transform: translateY(18px); }
}
.hero-copy {
  max-width: 48ch;
  margin: 21px auto 28px;
  color: var(--muted);
  font-size: clamp(1.03rem, 2vw, 1.16rem);
  line-height: 1.75;
  text-wrap: pretty;
}
.hero-search {
  display: flex;
  width: min(100%, 560px);
  margin-inline: auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  padding: 6px 6px 6px 20px;
  background: var(--wash);
  box-shadow: 0 26px 50px -38px #6b1f16;
}
.hero-search:focus-within { border-color: var(--peach); }
.search-icon {
  position: relative;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}
.search-icon::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 1px;
  right: -3px;
  bottom: -1px;
  background: var(--gold);
  transform: rotate(45deg);
}
.hero-search input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 5px 1px;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
}
.hero-search input::placeholder { color: var(--quiet); opacity: 1; }
.hero-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 13px;
  margin-top: 21px;
  padding: 7px 18px;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  background: var(--wash);
  color: var(--peach);
  font-size: 0.9rem;
}
.hero-index:hover { border-color: var(--peach); }
.hero-stats {
  display: flex;
  width: min(100%, 600px);
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px clamp(22px, 4vw, 54px);
  margin: 38px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats > div { display: flex; flex-direction: column-reverse; min-width: 50px; }
.hero-stats dd { margin: 0 0 4px; color: var(--peach); font: 400 2.12rem/1 var(--display); }
.hero-nudge {
  position: absolute;
  bottom: 22px;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: var(--peach);
  font-size: 0.58rem;
  animation: hero-nudge 2.4s ease-in-out infinite;
}
.hero-nudge::after { content: ""; width: 1px; height: 23px; background: linear-gradient(var(--gold), transparent); }
@keyframes hero-nudge {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; transform: translateY(8px); }
}

.section { padding-block: clamp(64px, 9vw, 116px); }
.section-featured { padding-top: 0; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 30px;
}
.section-heading .eyebrow, .page-intro .eyebrow, .shelf-teaser .eyebrow { margin-bottom: 10px; }
.section-note { max-width: 36ch; color: var(--muted); }
.category-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
}
.category-cards a {
  display: block;
  height: 100%;
  padding: 12px 8px 15px;
  border-top: 2px solid var(--ember);
  color: var(--ink);
  transition: background-color 180ms, border-color 180ms;
}
.category-cards a:hover { border-color: var(--peach); background: var(--wash); }
.category-name { display: block; margin-bottom: 4px; font: 400 clamp(1.46rem, 2.4vw, 2rem)/1.12 var(--display); }

.text-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 48px);
}
.text-item a {
  display: flex;
  height: 100%;
  align-items: baseline;
  gap: 11px;
  padding: 15px 7px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 180ms;
}
.text-item a:hover { background: var(--wash); }
.text-item-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.text-item-title { display: block; font-size: 1.125rem; line-height: 1.5; }
.text-item-title [lang="te"] { line-height: 1.65; }
.text-item-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 0.85rem; }
.text-number, .text-item-action { flex: 0 0 auto; color: var(--peach); font: 500 0.64rem/1.5 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; }
.text-number { min-width: 1.45em; color: var(--gold); }

.home-page [data-scroll-light] {
  --light-shadow: 0 0 calc(44px * var(--local-light, 0)) -8px rgb(216 64 46 / calc(0.5 * var(--local-light, 0)));
  box-shadow: var(--light-shadow);
}
.home-page [data-scroll-light=""] { border-color: rgb(242 188 165 / calc(0.2 + 0.3 * var(--local-light, 0))); }
.home-page [data-scroll-light="glow"] {
  box-shadow: var(--light-shadow), inset 0 70px 70px -70px rgb(242 188 165 / calc(0.22 * var(--local-light, 0)));
}
.ember-panel {
  border-block: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, rgba(132, 49, 32, 0.24), transparent 75%), #1c110d;
}
.home-page .ember-panel {
  background: radial-gradient(ellipse at 50% 0%, rgb(132 49 32 / 0.24), transparent 75%), rgb(28 17 13 / 0.72);
}
.festival-list { position: relative; margin-left: 9px; padding-left: 27px; border-left: 1px solid var(--line); }
.festival-list li { position: relative; }
.festival-list li::before { position: absolute; content: ""; left: -32px; top: 28px; width: 9px; height: 9px; border: 1px solid var(--ember); border-radius: 50%; background: var(--night); }
.festival-list a {
  display: flex;
  align-items: baseline;
  gap: 15px;
  justify-content: space-between;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.festival-list a:hover { background: var(--wash); }
.festival-list a > span:nth-last-child(2) { flex: 1; }
.festival-list strong, .festival-list small { display: block; }
.festival-list strong { font-size: 1.16rem; font-weight: 500; }
.festival-list small { color: var(--muted); }
.festival-label { color: var(--peach); font: 400 1.75rem/1 var(--display); }

.search-section { border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 35%, rgba(82, 37, 24, 0.18), transparent 78%); }
.finder { border: 1px solid var(--line); border-radius: 12px; background: var(--wash); }
.finder-query { padding: 15px clamp(14px, 2.2vw, 26px); border-bottom: 1px solid var(--line); }
.finder-search { margin-inline: 0; }
.filters, .chip-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filters { padding: 15px clamp(14px, 2.2vw, 26px); border-bottom: 1px solid var(--line); }
.filter-label { margin-right: 7px; }
.finder-form-filter select {
  width: min(100%, 16rem);
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
}
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 100vmax;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.3;
}
.chip:hover { border-color: var(--peach); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { border-color: var(--peach); background: var(--peach); color: #65261a; }
.chip:disabled { cursor: default; opacity: 0.55; }
.filters .chip { min-height: 44px; }
.finder-content { padding: 15px clamp(14px, 2.2vw, 26px) 23px; }
.result-status { min-height: 1.5em; color: var(--peach); }
.finder-all { display: inline-block; margin-top: 17px; font-size: 0.92rem; }
.search-more { display: flex; margin: 20px auto 0; }
.shelf-resume {
  display: flex;
  max-width: 650px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--wash);
  color: var(--ink);
}
.shelf-resume:hover { border-color: var(--peach); }
.shelf-resume-title { display: block; margin-top: 4px; font-size: 1.05rem; overflow-wrap: anywhere; }
.shelf-resume-arrow { flex: none; color: var(--peach); }

.shelf-teaser { text-align: center; }
.shelf-teaser h2 { margin-inline: auto; text-wrap: balance; }
.shelf-teaser p:not(.eyebrow) { max-width: 42ch; margin: 14px auto 25px; color: var(--muted); font-size: 1.1rem; }

.site-footer { padding-block: 53px; border-top: 1px solid var(--line); background: #100a07; }
.footer-inner { display: grid; grid-template-columns: 1.45fr 1fr 0.7fr; gap: 26px 45px; }
.footer-om { display: inline-block; margin-right: 8px; color: var(--ember); font-size: 1.3rem; }
.footer-brand p { margin-top: 9px; max-width: 26ch; color: var(--quiet); font-size: 0.89rem; }
.footer-inner nav { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.footer-inner nav .eyebrow { margin-bottom: 7px; }
.footer-inner nav a { color: var(--muted); font-size: 0.88rem; }
.footer-inner nav a:hover { color: var(--peach); }

.inner-page { padding-block: 62px 100px; min-height: 56vh; }
.page-intro { max-width: 860px; margin-bottom: 31px; }
.page-intro h1 { font-size: clamp(2.75rem, 5.25vw, 4.45rem); overflow-wrap: anywhere; }
.intro-copy { max-width: 58ch; margin-top: 15px; color: var(--muted); font-size: 1.1rem; overflow-wrap: anywhere; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 27px; color: var(--quiet); font-size: 0.9rem; }
.category-telugu { margin: -12px 0 24px; color: var(--peach); font-size: 1.04rem; }
.form-jump { margin-top: 16px; }
.form-jump summary { width: fit-content; min-height: 44px; align-content: center; color: var(--peach); cursor: pointer; }
.form-jump .chip-row { padding-top: 4px; }
.collection-group { margin-top: clamp(40px, 6vw, 75px); }
.collection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px 22px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.collection-heading h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); }
.empty-copy { margin-top: 15px; color: var(--muted); }
.standard-content .prose { max-width: 65ch; }
.prose p { margin: 14px 0; white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); }
.prose h2 { margin-top: 32px; font-size: clamp(1.65rem, 3vw, 2rem); }
.prose :is(ul, ol) { margin: 14px 0; padding-inline-start: 1.5em; color: var(--muted); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.6em; }
.prose a { text-decoration: underline; text-underline-offset: 0.25em; }
.product-photo { display: block; max-width: min(100%, 32rem); max-height: 32rem; object-fit: contain; }

:root:has(.reader) {
  --reader-toolbar-top: var(--header-offset);
  scroll-padding-top: calc(var(--reader-toolbar-top) + 84px);
}
.reader {
  --reader-width: min(calc(100% - var(--gutter) * 2), 752px);
  --reader-inset: clamp(14px, 4vw, 36px);
}
.reader-banner {
  background: radial-gradient(ellipse at 50% 0%, rgba(132, 49, 32, 0.24), transparent 75%);
}
.reader-intro, .reader-article, .related { width: var(--reader-width); margin-inline: auto; }
.reader-intro { padding: 15px var(--reader-inset) 24px; text-align: left; }
.reader-back { min-height: 44px; gap: 7px; padding-inline: 0; border-color: transparent; background: none; color: var(--peach); }
.reader-back:hover { border-color: transparent; background: none; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.reader-form { margin-top: 8px; }
.reader-intro h1 { margin-top: 5px; font-size: clamp(1.95rem, 3.9vw, 3.15rem); line-height: 1.2; overflow-wrap: anywhere; }
.reader-intro h1 [lang="te"] { font-size: 0.83em; line-height: 1.43; letter-spacing: 0; }
.reader-title-secondary { display: block; margin-top: 5px; color: var(--muted); font: 400 clamp(1rem, 2vw, 1.2rem)/1.4 var(--body); letter-spacing: 0; }
.reader-article { padding-bottom: 48px; }
.reader-toolbar {
  position: sticky;
  top: var(--reader-toolbar-top);
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 8px;
  padding: 7px var(--reader-inset);
  border: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: #241913;
}
.reader-controls { display: flex; align-items: center; gap: 4px; }
.reader-controls-label { margin-right: 8px; }
.reader-controls .chip { min-width: 44px; min-height: 44px; padding-inline: 5px; }
.reader-save { min-height: 44px; padding-inline: 14px; }
.reader-save[aria-pressed="true"] { border-color: var(--peach); color: var(--peach); background: var(--wash); }
.reader-status { grid-column: 1 / -1; color: var(--muted); font-size: 0.88rem; }
.reader-status:not(:empty) { margin-top: 3px; }
.reader-text {
  padding: clamp(16px, 3vw, 28px) var(--reader-inset);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: var(--panel);
  font-size: var(--reader-size, 1.375rem);
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.reader-text p { white-space: pre-line; text-wrap: pretty; }
.reader-text p + p { margin-top: 1.05em; }
.reader-verse-end { display: inline-block; max-inline-size: 100%; }
.reader-references { margin-top: 28px; padding-top: 17px; border-top: 1px solid var(--line); }
.reader-references .eyebrow { margin-bottom: 8px; }
.related { padding: 0 0 73px; }
.related h2 { margin-bottom: 15px; font-size: clamp(1.9rem, 3vw, 2.65rem); }

@media (min-width: 681px) {
  :root { --gutter: clamp(70px, 4vw, 112px); }
  .site-header .wordmark-om {
    position: absolute;
    top: calc(50% + var(--om-offset));
    left: -30px;
    transform: translate(-50%, -50%);
  }
  .home-page .site-header .wordmark-om { visibility: hidden; }
}
@media (max-width: 960px) {
  :root { --header-height: 112px; }
  .header-inner { grid-template-columns: minmax(0, 1fr) 44px; gap: 6px 12px; padding-block: 10px; }
  .header-inner > .wordmark { grid-column: 1; grid-row: 1; justify-self: start; }
  .theme-toggle { grid-column: 2; grid-row: 1; }
  .nav-links { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
}
@media (max-width: 850px) {
  .category-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  :root { --header-height: 112px; }
  .rail { display: none; }
  .nav-links { gap: 6px 13px; }
  .nav-links > a:not(.button) { font-size: 0.82rem; }
  .nav-links .button { min-height: 40px; padding: 5px 11px; font-size: 0.8rem; }
  .hero { padding-block: 42px 87px; min-height: calc(100svh - var(--header-offset)); }
  .hero-search { padding-left: 13px; gap: 8px; }
  .hero-search .button { padding-inline: 15px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .text-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .inner-page { padding-block: 42px 76px; }
  :root:has(.reader) { --reader-toolbar-top: 0px; }
  body:has(.reader) .site-header { position: relative; }
  .reader { --reader-width: calc(100% - 24px); --reader-inset: 12px; }
  .reader-intro { padding-block: 6px 17px; }
}
@media (min-width: 681px) and (max-height: 800px) {
  .hero { padding-block: 32px 72px; }
  .hero h1 { font-size: clamp(2.75rem, 7svh, 5.25rem); }
  .hero-copy { margin-block: 16px 22px; }
  .hero-stats { margin-top: 28px; padding-top: 18px; }
}
@media (max-width: 420px) {
  .category-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .nav-links { column-gap: 10px; }
  .nav-full-label { display: none; }
  .nav-short-label { display: inline; }
  .hero-search input { font-size: 0.94rem; }
  .hero-search .button { padding-inline: 11px; }
  .reader-controls-label { display: none; }
}
@media (max-width: 360px) {
  .nav-links { column-gap: 7px; }
  .nav-links > a:not(.button), .nav-links .button { font-size: 0.76rem; }
  .nav-links .button { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .rail-om::before, .hero-nudge, .hero-inner > * { animation: none; }
}
