:root {
  color-scheme: dark;
  --black: #050608;
  --panel: #0d1014;
  --text: #f1f0eb;
  --muted: #969ba3;
  --gold: #d1bd96;
  --line: rgba(213, 219, 229, .16);
  --gutter: clamp(22px, 4.4vw, 76px);
  --font: "Inter", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body { margin: 0; background: var(--black); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
button:disabled { opacity: .4; cursor: default; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; }
.reverse { transform: rotate(180deg); }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 14px; background: var(--gold); color: #08090b; z-index: 100; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
#scene-layer { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
#library-canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s; touch-action: pan-y; }
.scene-ready #library-canvas { opacity: 1; }
.scene-status { position: fixed; bottom: 18px; left: 20px; z-index: 8; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; padding: 10px 13px; background: #090b0e; border: 1px solid var(--line); max-width: calc(100vw - 40px); }
.status-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 12; min-height: 92px; padding: 0 var(--gutter); display: flex; gap: 24px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(5, 6, 8, .89); }
.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; color: var(--gold); stroke-width: 1.2; }
.brand-text { display: flex; flex-direction: column; gap: 6px; }
.brand-text strong { font-size: 10px; font-weight: 650; letter-spacing: .16em; }
.brand-text > span { font-size: 8px; letter-spacing: .21em; color: var(--muted); }
.header-links { display: flex; gap: 34px; margin-left: auto; margin-right: 32px; align-self: stretch; }
.header-link { position: relative; display: flex; align-items: center; font-size: 11px; color: var(--muted); transition: color .2s; }
.header-link:hover, .header-link.is-active { color: var(--text); }
.header-link.is-active::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--gold); }
.map-trigger { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border: 1px solid #393a3b; background: transparent; font-size: 11px; }
.map-trigger:hover { border-color: var(--gold); }
.map-trigger .icon { width: 15px; height: 15px; }
.room-count { color: var(--gold); border-left: 1px solid var(--line); padding-left: 12px; font-size: 10px; }
main { position: relative; z-index: 1; pointer-events: none; }
main a, main button { pointer-events: auto; }
.hero { min-height: max(740px, 100svh); position: relative; padding: clamp(150px, 18.4vh, 210px) 20px 175px; text-align: center; }
.hero-copy { max-width: 1480px; margin: 0 auto; animation: entrance-reveal 1.2s both; }
.welcome { display: flex; justify-content: center; align-items: center; gap: 19px; margin-bottom: 25px; color: var(--gold); font-size: 10px; font-weight: 500; letter-spacing: .37em; }
.welcome > span { height: 1px; width: 32px; background: #796c53; }
h1 { margin: 0; font-size: clamp(36px, 6.2vw, 94px); font-weight: 900; line-height: 1.04; letter-spacing: -.058em; }
.hero h1 { color: #E2B84D; }
h1 > span { display: block; white-space: nowrap; }
.hero-subtitle { margin: 26px 0 0; font-size: clamp(13px, 1.2vw, 17px); line-height: 1.75; font-weight: 400; color: #c2c4c8; letter-spacing: .015em; }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 27px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 27px; min-height: 50px; padding: 0 24px; font-size: 10px; font-weight: 650; letter-spacing: .12em; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.button-primary { background: var(--gold); color: #11100e; }
.button-primary:hover { background: #e6d3af; }
.quiet-button { background: none; border: 0; font-size: 11px; color: #c6c8cb; padding: 15px 0; }
.quiet-button span { margin-left: 12px; color: var(--gold); }
.quiet-button:hover { color: #fff; }
.hero-bottom { position: absolute; bottom: 31px; left: var(--gutter); right: var(--gutter); display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: end; }
.entrance-note { text-align: left; font-size: 8px; letter-spacing: .15em; line-height: 1.9; margin: 0; color: #b7b9bc; }
.entrance-note span { color: #747b84; }
.scroll-cue { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 13px; color: #b5b8bc; }
.scroll-cue span { font-size: 8px; letter-spacing: .2em; }
.scroll-cue .icon { height: 24px; width: 18px; color: var(--gold); }
.room-indicator { justify-self: end; display: flex; gap: 12px; align-items: flex-start; text-align: left; font-size: 14px; color: var(--gold); }
.room-indicator div > span { color: #6e7680; font-size: 11px; }
.room-indicator small { display: block; font-size: 8px; letter-spacing: .14em; color: #b7b9bc; margin-top: 9px; }
.indicator-square { border: 1px solid var(--gold); width: 7px; height: 7px; margin-top: 5px; }
.featured-section { min-height: max(760px, 100svh); display: flex; flex-direction: column; padding: 122px var(--gutter) 38px; }
.section-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; transition: opacity .25s; }
.eyebrow { font-size: 9px; font-weight: 500; letter-spacing: .18em; color: var(--gold); margin: 0 0 19px; }
.section-intro .eyebrow { display: flex; align-items: center; gap: 10px; }
.small-rule { height: 1px; width: 21px; background: var(--gold); }
.section-intro h2 { margin: 0; font-size: clamp(29px, 3.4vw, 48px); font-weight: 550; letter-spacing: -.05em; }
.section-description { color: var(--muted); font-size: 12px; margin: 13px 0 0; line-height: 1.7; }
.collection-note { font-size: 8px; line-height: 2.3; letter-spacing: .12em; text-align: right; color: #b9bec5; }
.collection-note .status-dot { margin-right: 7px; }
.collection-note small { font-size: 10px; letter-spacing: 0; color: var(--muted); }
.book-stage { flex: 1; min-height: 350px; position: relative; }
.mobile-browse { display: none; }
.book-picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; max-width: 1060px; width: 100%; margin: 0 auto; }
.book-pick { width: 100%; display: grid; grid-template-columns: 26px 1fr 18px; align-items: center; gap: 15px; padding: 17px 5px; background: rgba(5, 7, 10, .7); border: 0; border-top: 1px solid #55524b; text-align: left; transition: border-color .2s, background .2s; }
.book-pick:hover, .book-pick[aria-pressed="true"] { border-top-color: var(--gold); background: #111417; }
.book-pick .pick-number { font-size: 10px; color: var(--gold); }
.book-pick strong { display: block; font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.book-pick small { display: block; font-size: 8px; letter-spacing: .13em; color: var(--muted); }
.book-pick > .icon { width: 16px; color: var(--gold); }
.interaction-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 29px; font-size: 10px; color: #8e949d; line-height: 1.6; text-align: center; }
.gesture-icon { color: var(--gold); font-size: 16px; }
.keyboard-note { margin-left: 12px; padding-left: 20px; border-left: 1px solid var(--line); }
kbd { font: inherit; color: #c6c8cd; font-size: 9px; border: 1px solid #3a3e45; padding: 2px 4px; border-radius: 3px; margin: 0 3px; }
.site-footer { position: relative; z-index: 2; background: #06080b; border-top: 1px solid var(--line); padding: 38px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 25px; }
.footer-name { font-size: 9px; letter-spacing: .17em; color: #d2d4d7; }
.site-footer p { color: #808791; line-height: 1.8; font-size: 10px; margin: 12px 0 0; }
.footer-right { display: flex; flex-direction: column; gap: 22px; align-items: flex-end; }
.preview-tag { color: #7d858e; font-size: 8px; letter-spacing: .14em; }
.footer-right a { font-size: 11px; }
.footer-right a span { color: var(--gold); margin-left: 18px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; background: transparent; border: 1px solid var(--line); border-radius: 2px; padding: 0; }
.icon-button:hover { border-color: #9a8b70; color: var(--gold); }
.book-inspector { position: fixed; z-index: 15; right: var(--gutter); top: max(115px, 23vh); width: min(365px, 39vw); max-height: calc(100dvh - max(115px, 23vh) - 20px); overflow: auto; padding: 25px; background: rgba(11, 14, 18, .97); border: 1px solid #34373b; border-top: 2px solid var(--gold); }
.inspector-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.inspector-top > span { font-size: 8px; letter-spacing: .16em; color: #a6acb4; display: flex; gap: 9px; align-items: center; }
.inspector-top .icon-button { width: 30px; height: 30px; border: 0; }
.book-inspector .eyebrow { font-size: 8px; margin-bottom: 12px; }
.book-inspector h2 { font-size: 30px; font-weight: 550; line-height: 1.13; letter-spacing: -.045em; margin: 0; }
.book-subtitle { color: #b8bdc4; font-size: 11px; line-height: 1.7; margin: 13px 0 20px; }
.book-metadata { border-block: 1px solid var(--line); padding: 16px 0; margin: 0; }
.book-metadata > div { display: flex; justify-content: space-between; gap: 16px; font-size: 10px; line-height: 1.7; margin: 5px 0; }
.book-metadata dt { color: #808994; }
.book-metadata dd { margin: 0; text-align: right; color: #d5d8dd; }
.book-description { font-size: 11px; color: #969fa9; line-height: 1.8; margin: 20px 0; }
.pending-link { font-size: 10px; color: #b1a48b; line-height: 1.7; margin: 16px 0 25px; }
.book-inspector .button { width: 100%; margin-block: 15px; letter-spacing: .04em; }
.inspector-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.return-button { display: flex; align-items: center; gap: 8px; background: none; border: none; padding: 9px 0; font-size: 10px; }
.return-button .icon { width: 14px; height: 14px; color: var(--gold); }
.book-pagination { display: flex; align-items: center; gap: 7px; }
.book-pagination .icon-button { width: 29px; height: 32px; border: 0; }
.book-pagination .icon { width: 15px; }
.book-pagination span { white-space: nowrap; color: #a3aab3; font-size: 9px; }
.book-open .section-intro, .book-open .interaction-note { opacity: .16; }
.book-open .book-picks { opacity: .3; }
.book-open .book-picks:focus-within, .book-open .book-picks:hover { opacity: 1; }
.room-map { width: min(740px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 38px; background: #0b0e12; color: var(--text); border: 1px solid #3c3f44; border-radius: 4px; overflow: auto; }
.room-map::backdrop { background: rgba(0, 0, 0, .82); backdrop-filter: blur(7px); }
.dialog-close { position: absolute; top: 20px; right: 20px; }
.room-map > .eyebrow { padding-right: 30px; font-size: 8px; line-height: 1.7; margin-bottom: 20px; }
.room-map h2 { margin: 0; font-size: 34px; letter-spacing: -.05em; font-weight: 550; }
.map-description { color: var(--muted); font-size: 12px; margin: 12px 0 28px; line-height: 1.6; }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.room-option { display: flex; gap: 15px; align-items: center; text-align: left; min-height: 78px; background: #10141a; border: 1px solid #252b32; padding: 15px; }
.room-option:hover, .room-option.is-selected { border-color: #9a8866; background: #15191d; }
.room-option.is-current { border-color: #6d6049; }
.room-number { color: #6c747e; font-size: 10px; }
.room-option.is-current .room-number { color: var(--gold); }
.room-option strong { display: block; font-size: 9px; letter-spacing: .06em; font-weight: 550; }
.room-option small { display: block; margin-top: 8px; color: #828b95; font-size: 9px; }
.room-option.is-current small { color: var(--gold); }
.room-option .icon { width: 13px; margin-left: auto; color: #77818e; }
.room-notice { display: flex; align-items: flex-start; gap: 11px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 11px; line-height: 1.7; }
.room-notice .status-dot { margin-top: 6px; }
.room-notice small { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.noscript-note { position: fixed; z-index: 40; bottom: 20px; left: 20px; right: 20px; padding: 20px; background: #11151a; border: 1px solid var(--gold); font-size: 13px; }
.no-3d .book-stage { display: grid; place-items: center; }
.no-3d .book-stage::after { content: "Select a preview below to explore the book details."; color: var(--muted); font-size: 13px; text-align: center; }
@keyframes entrance-reveal { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1700px) { .hero { padding-top: 20vh; } }
@media (max-width: 1000px) {
  .header-links { gap: 22px; margin-right: 8px; }
  .brand-text strong { font-size: 9px; }
  .map-trigger { padding: 11px; }
  .book-picks { gap: 22px; }
  .book-inspector { right: 22px; width: 330px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 76px; gap: 12px; }
  .header-links { display: none; }
  .brand-text > span { font-size: 7px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand { gap: 9px; }
  .hero { min-height: max(700px, 100svh); padding-top: 152px; }
  h1 { font-size: 6.6vw; }
  .hero-actions { flex-direction: column; gap: 7px; margin-top: 25px; }
  .hero-subtitle { font-size: 13px; margin-top: 22px; }
  .hero-bottom { bottom: 24px; grid-template-columns: 1fr 1fr; }
  .entrance-note { display: none; }
  .scroll-cue { justify-self: start; align-items: flex-start; }
  .featured-section { padding-top: 106px; min-height: max(770px, 100svh); }
  .collection-note { display: none; }
  .section-intro .eyebrow { margin-bottom: 13px; }
  .section-intro h2 { font-size: 33px; }
  .book-stage { min-height: 365px; }
  .mobile-browse { position: absolute; bottom: 27px; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--gold); }
  .mobile-browse button { pointer-events: auto; background: rgba(5, 7, 10, .8); }
  .book-picks { gap: 12px; }
  .book-pick { grid-template-columns: 1fr; gap: 9px; padding: 13px 6px; }
  .book-pick strong { font-size: 10px; line-height: 1.5; margin-bottom: 5px; }
  .book-pick small { font-size: 6px; letter-spacing: .06em; }
  .book-pick .icon { display: none; }
  .book-pick .pick-number { font-size: 9px; }
  .interaction-note { font-size: 9px; margin-top: 19px; }
  .keyboard-note { display: none; }
  .book-inspector { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; max-height: 40dvh; padding: 17px 20px; }
  .inspector-top { margin-bottom: 7px; }
  .inspector-top > span { font-size: 7px; }
  .book-inspector .eyebrow { display: none; }
  .book-inspector h2 { font-size: 25px; }
  .book-subtitle { font-size: 10px; margin: 8px 0 13px; }
  .book-description, .book-metadata, .pending-link { display: none; }
  .inspector-actions { padding-top: 9px; }
  .book-open .section-intro, .book-open .mobile-browse { opacity: 0; pointer-events: none; }
  .book-open .mobile-browse button { pointer-events: none; }
  .book-open .book-picks, .book-open .interaction-note { visibility: hidden; }
  .site-footer { align-items: flex-start; padding-block: 30px; }
  .footer-right { align-items: flex-end; max-width: 150px; }
  .preview-tag { font-size: 7px; line-height: 1.7; text-align: right; }
  .site-footer p { font-size: 9px; }
}
@media (max-width: 480px) {
  :root { --gutter: 22px; }
  .site-header { padding-inline: 18px; min-height: 72px; }
  .brand-text strong { font-size: 8px; letter-spacing: .1em; }
  .brand-text > span { letter-spacing: .13em; font-size: 6px; }
  .map-label { font-size: 0; }
  .map-label::after { content: "Rooms"; font-size: 10px; }
  .map-trigger { gap: 7px; padding: 10px; }
  .room-count { display: none; }
  h1 { font-size: 7.4vw; letter-spacing: -.06em; }
  .hero { padding-inline: 12px; padding-top: 155px; }
  .welcome { font-size: 8px; margin-bottom: 22px; }
  .hero-subtitle { font-size: 12px; line-height: 1.8; }
  .button { min-height: 48px; }
  .room-map { padding: 29px 20px 22px; }
  .room-map h2 { font-size: 28px; }
  .room-map > .eyebrow { max-width: 230px; font-size: 7px; }
  .dialog-close { top: 13px; right: 13px; width: 32px; height: 32px; }
  .room-grid { gap: 8px; }
  .room-option { padding: 12px 10px; gap: 9px; min-height: 76px; }
  .room-option strong { font-size: 8px; line-height: 1.5; }
  .room-option small { font-size: 8px; margin-top: 5px; }
  .room-option .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Full teaching previews inside the existing book information panel only. */
.book-inspector { overscroll-behavior-y: contain; overflow-wrap: anywhere; }
.book-inspector:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.book-inspector .inspector-top { position: sticky; top: 0; z-index: 1; background: #0b0e12; }
.book-inspector .book-subtitle { font-size: 14px; line-height: 1.7; }
.book-inspector .book-metadata > div { font-size: 12px; }
.book-inspector .book-metadata dt { flex-shrink: 0; }
.book-inspector .book-metadata dd { min-width: 0; }
.book-inspector .book-description.has-teachings { display: block; font-size: 15px; line-height: 1.85; color: var(--text); }
.has-teachings p { margin: 0 0 1.1em; }
.has-teachings .preview-notice, .has-teachings .cover-note { font-size: 12px; line-height: 1.7; color: #b8bdc4; }
.has-teachings .teachings-heading { font-size: 12px; letter-spacing: .12em; margin: 28px 0 18px; }
.teaching-section { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.teaching-section h4 { font-size: 15px; font-weight: 650; line-height: 1.6; margin: 0 0 16px; }
.teaching-section .teaching-scripture { font-size: 14px; color: #d5d8dd; }
.teaching-section .teaching-label { font-size: 11px; font-weight: 650; letter-spacing: .07em; color: #b8bdc4; }
.book-inspector #amazon-link { padding: 14px 16px; font-size: 12px; line-height: 1.6; text-align: center; gap: 12px; white-space: normal; }
