:root {
  color-scheme: light;
  --paper: #f9f7f0;
  --ink: #312932;
  --muted: #605963;
  --rule: #d7d0c4;
  --accent: #963e2c;
  --ui: Inter, "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --serif: "Iowan Old Style", Charter, "Palatino Linotype", Palatino, Georgia, serif;
  --gutter: clamp(20px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .23em; }
button, select { font: inherit; color: inherit; }
button, select, a { touch-action: manipulation; }
[hidden], .symbols { display: none !important; }
:focus-visible { outline: 3px solid #9a462c; outline-offset: 4px; }
.wrap { width: min(100% - 2 * var(--gutter), 1232px); margin-inline: auto; }
.skip { position: fixed; inset: 8px auto auto 8px; z-index: 20; padding: 10px 18px; background: white; color: var(--ink); transform: translateY(-160%); }
.skip:focus { transform: none; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.masthead { position: sticky; inset-block-start: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top { min-height: 72px; display: flex; align-items: center; gap: clamp(16px, 3vw, 46px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 600 30px/1 var(--serif); letter-spacing: -.025em; }
.brand img, .brand svg { display: block; flex-shrink: 0; }
.top .brand { margin-inline-end: auto; }
.nav-links { display: flex; align-items: center; gap: 29px; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: 14px; }
.nav-links a:hover { text-decoration: underline; }
.nav-action, .button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; padding: 0 18px; border-radius: 10px; font-size: 14px; font-weight: 650; line-height: 1.2; text-decoration: none; }
.nav-action { border: 1px solid #a69b9c; }
.button { min-height: 50px; padding-inline: 21px; color: #fffaf3; background: var(--accent); box-shadow: inset 0 1px 0 #ffffff28, 0 2px 3px #44281f18; }
.button.secondary-action { color: var(--ink); background: transparent; border: 1px solid #a69b9c; box-shadow: none; }
.sticky-action { min-height: 44px; }
.action-short { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5.2vw, 90px); padding-block: clamp(52px, 5.8vw, 84px); }
.kicker, label[for="question"], .source h3 { display: flex; align-items: center; gap: 11px; margin: 0; color: var(--accent); font: 700 11px/1.5 var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.rule { display: inline-block; width: 29px; height: 1px; background: currentColor; }
h1, h2, .feature-quote, blockquote, .book-title { font-family: var(--serif); font-weight: 400; }
h1, h2 { margin: 0; text-wrap: balance; }
h1 { margin-block: 24px 21px; font-size: clamp(68px, 7.35vw, 112px); letter-spacing: -.063em; line-height: .96; }
h1 em, h2 em { font-weight: 400; color: #784b43; }
.lead { max-width: 33em; margin: 0; color: #534b51; font-size: clamp(16px, 1.23vw, 19px); line-height: 1.62; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 23px; margin-block-start: 29px; }
.text-link { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.fine { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.fine .icon { width: 15px; color: var(--accent); }
.sample-jump { margin-top: 6px; }
.print { min-width: 0; margin: 0; color: #fff5e3; }
.landscape { position: relative; overflow: hidden; border-radius: 50% 50% 0 0 / 62% 62% 0 0; }
.landscape::after { content: ""; position: absolute; inset: 5px 5px 0; border: 1px solid #f5d6ad66; border-bottom: 0; border-radius: inherit; pointer-events: none; }
.landscape img { display: block; width: 100%; height: auto; }
.landscape canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.print figcaption { background: #2a2433; border-radius: 0 0 12px 12px; }
.passage-link { padding: clamp(15px, 1.9vw, 28px) clamp(18px, 2.2vw, 32px); display: flex; gap: 12px; align-items: center; justify-content: space-between; text-decoration: none; }
.passage-arrow { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid #e3c9b95c; border-radius: 50%; }
.passage-arrow .icon { width: 15px; }
.passage-link { border-radius: inherit; }
.passage-link:focus-visible { outline-offset: -5px; outline-color: #f5cd9f; }
.feature-text { min-width: 0; display: grid; gap: 5px; }
.feature-quote { font-size: clamp(19px, 2vw, 30px); letter-spacing: -.03em; line-height: 1.2; }
.feature-source { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font: 500 12px/1.6 var(--ui); color: #e3c9b9; }
.feature-source .icon { width: 15px; height: 15px; }
.feature-source .read-reference { text-decoration: underline; text-underline-offset: 3px; }
.feature-source .source-divider { opacity: .7; }
.library { border-block: 1px solid var(--rule); background: #f0ede4; padding-block: clamp(36px, 4vw, 60px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-block-end: 22px; }
.section-head .kicker { margin-bottom: 5px; }
h2 { font-size: clamp(38px, 4.1vw, 62px); letter-spacing: -.05em; line-height: 1.07; }
.section-head h2 { font-size: clamp(33px, 3.2vw, 47px); }
.section-head > p { margin: 0 0 3px; color: var(--muted); font-size: 15px; }
.books { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(6px, .75vw, 12px); }
.volume {
  --crown: clamp(44px, 4.7vw, 64px);
  position: relative;
  display: grid;
  grid-template-rows: var(--crown) auto 1fr;
  justify-items: center;
  min-height: clamp(145px, 12vw, 174px);
  padding: 0 9px 19px;
  border: 1px solid #0002;
  border-radius: 50% 50% 0 0 / var(--crown) var(--crown) 0 0;
  color: var(--cover-ink);
  background: var(--cover);
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s;
}
.volume::before { content: ""; position: absolute; inset: 5px; border: 1px solid currentColor; border-radius: 50% 50% 0 0 / calc(var(--crown) - 5px) calc(var(--crown) - 5px) 0 0; opacity: .31; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .volume:hover { transform: translateY(-3px); box-shadow: 0 5px 9px #38241a1c; }
  .button:hover { background: #803422; }
  .button.secondary-action:hover { background: #efece4; }
  .button.pale:hover { background: #fff7eb; }
  .nav-action:hover { border-color: var(--ink); background: #efece4; }
  .passage-link:hover .passage-arrow { background: #ffffff14; transform: translateX(2px); }
}
.volume:focus-visible { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--accent); }
.button, .nav-action, .passage-arrow { transition: background-color .16s, border-color .16s, transform .2s cubic-bezier(.2,.8,.2,1); }
.button:active, .nav-action:active, .volume:active { transform: translateY(1px) scale(.98); }
.button:active { background: #753020; }
.button.secondary-action:active { background: #e9e4da; }
.button.pale:active { background: #e8d8c0; }
.nav-action:active { background: #e9e4da; }
.passage-link:active .passage-arrow { background: #ffffff22; }
.tradition { grid-row: 2; font-size: 10px; font-weight: 650; letter-spacing: .015em; }
.book-title { grid-row: 3; margin-top: 5px; font-size: clamp(18px, 1.68vw, 26px); line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.dharma .book-title { font-size: clamp(16px, 1.38vw, 21px); }
.volume-icon { grid-row: 1; align-self: center; width: 35px; height: 29px; margin-top: 7px; fill: none; stroke: currentColor; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.bible { --cover: #574253; --cover-ink: #fff2dd; }
.tanakh { --cover: #cbd1bd; --cover-ink: #2f4035; }
.quran { --cover: #355451; --cover-ink: #f3ead2; }
.gita { --cover: #cd946f; --cover-ink: #392c28; }
.dharma { --cover: #dbc993; --cover-ink: #413725; }
.tao { --cover: #8fa4a0; --cover-ink: #152622; }
.analects { --cover: #c6b5c3; --cover-ink: #392e3c; }
.sample, .notebook-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 98px); align-items: start; }
.sample { padding-block: clamp(55px, 7.4vw, 112px); }
.sample-intro { padding-block-start: 12px; }
.sample-intro h2, .notebook h2 { margin-block: 19px 21px; }
.sample-intro > p:not(.kicker), .notes-copy > p { max-width: 32em; margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted); }
.sample-intro .sample-note { margin-top: 18px !important; font-size: 13px !important; }
.demo-card { padding: clamp(20px, 3vw, 42px); min-width: 0; background: #fffdf8; border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 5px 16px -12px #352a32; }
.demo-ref { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; color: var(--accent); font-size: 13px; font-weight: 650; }
.demo-ref span { margin-inline-start: auto; color: var(--muted); font-size: 11px; font-weight: 500; }
.demo-card blockquote { margin: 15px 0 24px; font-size: clamp(23px, 2vw, 32px); line-height: 1.35; letter-spacing: -.025em; }
.question { border-block-start: 1px solid var(--rule); padding-block-start: 20px; }
.question select { display: block; width: 100%; min-height: 46px; margin-top: 7px; padding: 7px 8px; border: 1px solid #b5aba0; border-radius: 8px; background: #faf7f0; font-size: 16px; }
#answer { color: #4a4249; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
#answer p { margin: 14px 0 0; }
#answer ul { padding-inline-start: 1.4em; }
.citation { color: var(--accent); font-weight: 650; white-space: nowrap; text-decoration-thickness: 1px; }
.lens { margin-top: 12px; padding-inline-start: 12px; border-inline-start: 2px solid var(--rule); }
.lens strong { display: block; }
.source { margin-block-start: 20px; padding: 14px 16px; background: #f0ece2; border-inline-start: 2px solid var(--accent); }
.source-top { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.source-top button { border: 0; background: transparent; width: 44px; height: 44px; font-size: 23px; cursor: pointer; }
.source p { font: 17px/1.55 var(--serif); margin: 8px 0; }
.source sup { margin-inline-end: 4px; font: 600 10px var(--ui); color: var(--accent); }
.source .selected { color: var(--ink); background: #f5d6ab; }
.notebook { color: #fff7eb; background: #332b39; }
.notebook-inner { align-items: center; padding-block: clamp(50px, 6vw, 88px); }
.notebook .kicker, .notebook h2 em { color: #e4b7a3; }
.notebook h2 { margin-bottom: 0; }
.notes-copy > p { color: #f0e2d9; margin-bottom: 20px; }
.button.pale { color: #332b39; background: #f6e8d5; }
.privacy-link { display: block; width: fit-content; padding-block: 13px; font-size: 13px; color: #e4cbbd; }
.notebook :focus-visible { outline-color: #fff0c8; }
@media (min-width: 1500px) { .hero { gap: 84px; } }
@media (max-width: 1000px) {
  .books { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .volume { min-height: 118px; }
  .volume-icon { width: 29px; height: 23px; }
}
@media (max-width: 780px) {
  .top { min-height: 62px; }
  .nav-links { gap: 17px; }
  .hero { gap: 24px; }
  h1 { font-size: clamp(49px, 7.8vw, 66px); }
  .hero-actions { gap: 6px 15px; }
  .feature-source { font-size: 11px; }
  .feature-quote { font-size: 20px; }
}
@media (max-width: 650px) {
  .nav-links { display: none; }
  .top { min-height: 59px; gap: 8px; }
  .brand { font-size: 26px; gap: 9px; }
  .brand img, .brand svg { width: 32px; height: 32px; }
  .nav-action, .sticky-action { min-height: 44px; font-size: 13px; gap: 6px; padding-inline: 12px; }
  .sticky-action .action-full { display: none; }
  .sticky-action .action-short { display: inline; }
  .hero, .sample, .notebook-inner { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 34px 32px; gap: 27px; }
  h1 { font-size: clamp(60px, 13.3vw, 82px); margin-block: 16px 14px; }
  .lead { line-height: 1.5; }
  .hero-actions { display: grid; justify-items: start; max-width: 22rem; margin-top: 20px; gap: 4px; }
  .hero-actions #hero-action { width: 100%; }
  .hero-actions .secondary-action { min-height: 44px; margin-inline-start: -8px; padding-inline: 8px; border: 0; text-decoration: underline; text-underline-offset: .2em; }
  .fine { margin-top: 9px; }
  .feature-quote { font-size: clamp(20px, 5vw, 27px); }
  .section-head { align-items: start; flex-direction: column; gap: 5px; margin-block-end: 18px; }
  .books { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-title { font-size: clamp(18px, 4.5vw, 23px); }
  .dharma .book-title { font-size: clamp(18px, 4.5vw, 23px); }
  .sample-intro { padding-top: 0; }
  .sample-intro h2, .notebook h2 { margin-block: 11px 15px; }
  .sample-intro .sample-note { margin-top: 10px !important; }
  .notebook-inner { gap: 7px; }
  }
@media (max-width: 365px) {
  :root { --gutter: 16px; }
  .hero-actions .button { padding-inline: 12px; font-size: 13px; }
  .hero-actions { gap: 6px 10px; }
  .passage-link { padding-inline: 12px; gap: 6px; }
  .passage-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .volume:hover, .volume:active, .button:active, .nav-action:active, .passage-link:hover .passage-arrow { transform: none; }
  #print-light { visibility: hidden; }
}
@media (forced-colors: active) { .button, .volume { border: 1px solid ButtonText; } }

/* Chapter guides and legal pages share the masthead and paper colours. */
:root { --card: #f0ede4; --mut: var(--muted); --line: var(--rule); --bg: var(--paper); --rubric: var(--accent); }
.top .logo { display: inline-flex; gap: 7px; align-items: center; margin-inline-end: auto; font: 600 25px/1 var(--serif); text-decoration: none; }
.logo .mark { width: auto; height: 30px; }
.cta { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 17px; background: var(--ink); color: var(--paper); border-radius: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
@media (prefers-reduced-motion: no-preference) {
  .cta { transition: transform .14s ease; }
  @media (hover: hover) and (pointer: fine) { .cta:hover { transform: translateY(-1px); } }
  .cta:active { transform: scale(.99); }
}
.cta.rub { background: var(--accent); }
.eyebrow { font: 650 12px/1.5 var(--ui); color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.ctx h1, .p h1, main.wrap > .hero h1 { font-size: clamp(35px, 6vw, 52px); }
.ctx, .p { overflow-wrap: anywhere; }
.ctx h2, .p h2 { line-height: 1.25; letter-spacing: -.025em; }
main.wrap > .hero { display: block; max-width: 40em; }
.lede { max-width: 36em; color: var(--muted); font-size: 17px; }

.chapter-numbers { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .75rem; }
.chapter-numbers a { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--rule); border-radius: .5rem; font-variant-numeric: tabular-nums; }

/* Site footer: brand + pitch, three link columns, language row, legal base. */
.site-footer { margin-top: 0; border-top: 1px solid var(--rule); padding-block: 56px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { font-size: 30px; }
.footer-about p { max-width: 34ch; margin: 16px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.footer-cta { font-size: 14px; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col h2 { margin: 0 0 10px; font: 600 12px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-col a, .footer-langs a { min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; font-size: 15px; color: var(--ink); }
.footer-col a:hover, .footer-langs a:hover { color: var(--accent); text-decoration: underline; }
.footer-langs { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--rule); }
.footer-langs nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; }
.footer-langs span { font: 600 12px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-langs a { font-size: 14px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.footer-base p { margin: 0; }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer { padding-block: 40px 24px; }
  .site-footer .brand { font-size: 26px; gap: 9px; }
  .footer-langs nav { gap: 2px 18px; }
}
