/* Bible — same notebook shell as Ideas / Log, dark via spacexai-dark.css */
:root {
  --paper: #ffffff;
  --desk: #f3f1ec;
  --ink: #2c2620;
  --ink-soft: #5c564e;
  --muted: #8a847a;
  --gold: #e6c36a;
  --sans: "Nunito", system-ui, -apple-system, sans-serif;
  --tap: 48px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
}
body { min-height: 100vh; }
.desk { max-width: 720px; margin: 0 auto; padding: 28px 14px 64px; }
.store-back { margin: 0 0 10px 8px; font-size: 0.92rem; }
.store-back a {
  color: var(--ink-soft);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}
.notebook {
  position: relative;
  background: var(--paper);
  border-radius: 12px;
  padding: 28px 22px 28px 36px;
  box-shadow: 0 0 0 1px #efece6;
  overflow: hidden;
}
.binding {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 18px;
  background: repeating-linear-gradient(180deg, #1a1d21 0 12px, #121416 12px 16px, #2f3336 16px 17px);
}
.spread-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 12px 10px;
  border-bottom: 1px solid #efece6;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-sticker {
  width: 96px; height: 64px; object-fit: contain; flex-shrink: 0;
  background: #fff; border: 1.5px solid #efece6; border-radius: 14px;
}
.eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
h1 { margin: 2px 0 0; font-size: clamp(2.4rem, 7vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.place { margin: 6px 0 0; color: var(--muted); font-size: 1.05rem; }
.zone-line { margin: 12px 8px 0; font-size: 0.92rem; color: var(--muted); }
.life-auth { margin: 12px 8px 0; }
.section-label {
  margin: 22px 8px 8px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.question-form { display: grid; gap: 10px; margin: 0 8px; }
.question-form label { font-size: 0.95rem; font-weight: 700; }
textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px solid #2f3336;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  resize: vertical;
}
.btn-sticker, .btn-tiny {
  min-height: var(--tap);
  padding: 0 16px;
  border: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.btn-sticker { justify-self: start; border-radius: 999px; }
.btn-tiny {
  background: transparent;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-width: auto;
  padding-left: 0;
}
.question-list { display: grid; gap: 10px; margin: 14px 8px 0; }
.question {
  padding: 12px 0;
  border-bottom: 1px solid #2f3336;
}
.question-text { margin: 0 0 4px; white-space: pre-wrap; }
.empty { margin: 0; color: var(--muted); }
.reading-list { list-style: none; margin: 0 8px; padding: 0; display: grid; gap: 14px; }
.reading { padding-bottom: 12px; border-bottom: 1px solid #2f3336; }
.reading-title { margin: 0; }
.reading-ref { font-weight: 800; }
.reading-label { color: var(--ink-soft); }
.reading-links { margin: 6px 0 0; }
.reading-links a { color: inherit; font-weight: 700; }
.colophon {
  margin: 22px 8px 0;
  padding-top: 12px;
  border-top: 1px solid #2f3336;
  color: var(--muted);
  font-size: 0.86rem;
}
textarea:focus, button:focus-visible, a:focus-visible {
  outline: 3px solid #c5a572;
  outline-offset: 2px;
}
[hidden] { display: none !important; }

.why-david { margin: 18px 8px 0; }
.why-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 4px 16px 4px 4px;
  border: 1px solid #2f3336;
  border-radius: 999px;
  background: #16181c;
  color: inherit;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}
.why-chip img {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
  object-position: center 22%;
  flex: 0 0 auto;
  background: #0b0c0e;
}
.why-chip[aria-expanded="true"] { border-color: rgba(29, 155, 240, 0.55); }
.reading-panel { margin-top: 14px; }
.reading-panel[hidden] { display: none !important; }
.ask-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 30;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #1d9bf0, #7c5cff);
  color: #fff;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(29, 155, 240, 0.35);
  cursor: pointer;
  touch-action: manipulation;
}
.ask-fab[hidden] { display: none !important; }
.question-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
}
.question-sheet[hidden] { display: none !important; }
.question-sheet .question-form {
  width: min(640px, 100%);
  margin: 0;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  background: #121416;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
}
.sheet-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sheet-bar h2 { margin: 0; font-size: 1.15rem; }
.question-list { margin-bottom: 72px; }
