:root {
  --bg: #182229;
  --ink: #f0ece2;
  --muted: #9aa8ae;
  --accent: #d9a86a;      /* warm stone */
  --mist: #7fa8b8;        /* dawn mist blue */
  --callout-bg: #20303a;
  --callout-border: #3a4e5a;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.7;
}

main { max-width: 680px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }

/* Cover */
.cover {
  text-align: center;
  padding: 6rem 1.5rem;
  background:
    linear-gradient(rgba(24, 34, 41, .45), rgba(24, 34, 41, .75)),
    url("../assets/hero-crossing.png") center / cover no-repeat;
  border-radius: 4px;
  margin-bottom: 2rem;
}
.cover-kicker { color: var(--mist); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.cover-title { font-size: 3rem; margin: .5rem 0; font-weight: normal; letter-spacing: .02em; }
.cover-sub { color: var(--muted); font-style: italic; font-size: 1.2rem; }
.cover-progress { color: var(--muted); font-size: .9rem; margin-top: 1.5rem; }
.sponsor { text-align: center; color: var(--muted); font-size: .8rem; margin: 0 0 1.5rem; }

/* Realm section (cover, below hero) */
.realms {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--callout-border);
}
.realms-text { flex: 1; }
.realms-kicker { color: var(--mist); letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; }
.realms-title { font-size: 1.8rem; font-weight: normal; margin: .4rem 0 1rem; }
.realms-list { list-style: none; margin: 0; padding: 0; }
.realms-list li { margin: .5rem 0; font-size: 1.05rem; }
.realms-list .realm-name { color: var(--accent); margin-right: .6rem; }
.realms-note { color: var(--muted); font-style: italic; font-size: .95rem; margin-top: 1.2rem; }
.realms-circles { flex-shrink: 0; }

/* Responsive: phone/tablet */
@media (max-width: 768px) {
  main { padding: 2rem 1rem 3rem; }
  .cover { padding: 3.5rem 1.25rem; }
  .cover-title { font-size: 2.1rem; }
  .cover-sub { font-size: 1.05rem; }
  .chapter-stage { font-size: 1.7rem; }
  .chapter-body p { font-size: 1rem; }
  .realms { flex-direction: column; gap: 1.5rem; }
  .realms-circles svg { width: 220px; height: 220px; }
}

/* Chapters */
.chapter-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: .3rem; }
.chapter-number { color: var(--mist); font-size: 3.2rem; font-weight: normal; line-height: 1; }
.chapter-stage { font-size: 2.2rem; font-weight: normal; margin: 0; }

/* Chapter hero banner (Promise / Red Sea) */
.chapter-hero {
  background:
    linear-gradient(rgba(24, 34, 41, .5), rgba(24, 34, 41, .82)),
    url("../assets/moses-red-sea.jpg") center 30% / cover no-repeat;
  border-radius: 4px;
  padding: 3.5rem 1.5rem 2rem;
  margin-bottom: 2rem;
}
.chapter-hero .chapter-realm { margin-bottom: 0; }
.chapter-realm { color: var(--muted); font-size: .9rem; margin-bottom: 2.5rem; }
.chapter-subheading {
  color: var(--mist);
  font-size: 1.3rem;
  font-weight: normal;
  margin: 2.5rem 0 1rem;
}
.chapter-body p { margin: 0 0 1.4rem; font-size: 1.08rem; }

/* "More from Seth" red lozenge boxes */
.more-box {
  background: rgba(139, 30, 30, .12);
  border-left: 3px solid #b32424;
  border-radius: 3px;
  padding: 14px 18px;
  margin: 0 0 22px;
}
.more-box .more-label {
  color: #d9534f;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  margin: 0 0 4px;
  font-family: sans-serif;
}
.more-box .more-title { color: var(--ink); font-style: italic; font-size: 17px; margin: 0 0 8px; }
.more-box .more-title a { color: inherit; text-decoration: none; border-bottom: 1px solid #b32424; }
.more-box .more-title a:hover { color: #d9534f; }
.more-box .more-quote { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.more-box .more-meta { color: var(--muted); font-size: 13px; margin: 0; font-family: sans-serif; }
.more-box .more-meta a { color: #7fa8b8; text-decoration: none; }
.more-box .more-meta a:hover { text-decoration: underline; }

/* Settings dropdown */
.settings {
  position: fixed;
  top: 12px;
  right: 14px;
  z-index: 50;
  font-family: sans-serif;
}
.settings-btn {
  background: var(--callout-bg);
  border: 1px solid var(--callout-border);
  color: var(--muted);
  font-size: 12px;
  padding: .4rem .7rem;
  border-radius: 3px;
  cursor: pointer;
}
.settings-btn:hover { color: var(--mist); border-color: var(--mist); }
.settings-menu {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 6px;
  background: var(--callout-bg);
  border: 1px solid var(--callout-border);
  border-radius: 4px;
  padding: .6rem .8rem;
  min-width: 230px;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.settings-menu.open { display: block; }
.settings-menu label {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  font-size: 13px;
  padding: .35rem 0;
  cursor: pointer;
  white-space: nowrap;
}
.settings-menu input[type="checkbox"] { accent-color: var(--accent); }
.settings-menu .swatch { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.settings-menu .swatch.seth { background: #b32424; }
.settings-menu .swatch.peterson { background: #e0862a; }
.settings-menu .swatch.shearman { background: #4f8a4f; }

/* Sherman (green) variant of the more-box */
.more-box.shearman {
  background: rgba(79, 138, 79, .10);
  border-left-color: #4f8a4f;
}
.more-box.shearman .more-label { color: #4f8a4f; }
.more-box.shearman .more-title a { border-bottom-color: #4f8a4f; }
.more-box.shearman .more-title a:hover { color: #4f8a4f; }
.settings-shares { border-top: 1px solid var(--callout-border); margin-top: .5rem; padding-top: .5rem; }
.settings-shares .shares-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 10px;
  margin: 0 0 .25rem;
}
.settings-shares .share-email { color: var(--ink); font-size: 12px; padding: .15rem 0; }
.settings-shares .share-email .share-when { color: var(--muted); font-size: 10px; margin-left: .4rem; }
.settings-shares .shares-empty { color: var(--muted); font-size: 11px; font-style: italic; }

/* Peterson (orange) variant of the more-box */
.more-box.peterson {
  background: rgba(224, 134, 42, .10);
  border-left-color: #e0862a;
}
.more-box.peterson .more-label { color: #e0862a; }
.more-box.peterson .more-title a { border-bottom-color: #e0862a; }
.more-box.peterson .more-title a:hover { color: #e0862a; }
.more-box.peterson .more-meta a { color: #7fa8b8; }

/* Scene illustrations */
.scene-illustration { text-align: center; margin: 2rem 0; }
.scene-illustration img { max-width: 100%; }

/* Golden scripture box */
.callout-scripture {
  background: rgba(217, 168, 106, .12);
  border-left: 3px solid var(--accent);
}
.callout-scripture .scripture-ref {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .72rem;
  margin: 0 0 .35rem;
  font-family: sans-serif;
}
.callout-scripture .scripture-text { margin: 0; font-style: italic; font-size: 1.05rem; }

/* Realm ladder graphic (section 05) */
.realm-ladder { text-align: center; margin: 2rem 0; }
.realm-ladder svg { max-width: 100%; height: auto; }

/* Share callout (Introduction) */
.callout-share { border-left-color: var(--mist); }

/* Chapter circles (within-section nav) */
.chapter-circles { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 2rem; align-items: center; }
.chapter-circles .cc-label { color: var(--muted); font-size: .8rem; margin-right: .4rem; font-family: sans-serif; }
.chapter-circles button {
  width: 2.1rem; height: 2.1rem;
  border-radius: 50%;
  border: 1px solid var(--callout-border);
  background: transparent;
  color: var(--muted);
  font-family: sans-serif;
  font-size: .8rem;
  cursor: pointer;
  padding: 0;
}
.chapter-circles button:hover { border-color: var(--mist); color: var(--mist); }
.chapter-circles button.current { border-color: var(--accent); color: var(--accent); cursor: default; }

.answer-actions { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; }
.commit-btn { font-size: .8rem; padding: .3rem .9rem; font-family: sans-serif; }
.commit-btn.committed { color: #4f8a4f; border-color: #4f8a4f; }
.obscure-btn { font-size: .8rem; padding: .3rem .9rem; font-family: sans-serif; }
.answer-input.obscured {
  color: transparent;
  text-shadow: 0 0 8px rgba(240,236,226,.55);
}

/* Golden question — final callout of the book */
.callout-golden {
  border: 2px solid #c9a227;
  background: linear-gradient(135deg, rgba(201,162,39,.12), rgba(201,162,39,.04));
  box-shadow: 0 0 18px rgba(201,162,39,.25);
}
.callout-golden .callout-label { color: #a07d14; }

/* Yellow banner: unanswered previous chapter */
.prev-chapter-banner {
  background: #f5d547;
  color: #333;
  border-radius: 4px;
  padding: 1rem 1.2rem;
  margin: 0 0 2rem;
}
.prev-chapter-banner .banner-text {
  margin: 0 0 .7rem;
  font-style: italic;
  font-size: 1.05rem;
}
.prev-chapter-banner .btn { color: #333; border-color: #333; }
.prev-chapter-banner .btn:hover { color: #000; border-color: #000; background: rgba(0,0,0,.05); }

/* Section nav squares */
.section-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 2rem; }
.section-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem; height: 2.1rem;
  border: 1px solid var(--callout-border);
  border-radius: 3px;
  color: var(--muted);
  text-decoration: none;
  font-family: sans-serif;
  font-size: .85rem;
}
.section-nav a:hover { border-color: var(--mist); color: var(--mist); }
.section-nav a.current { border-color: var(--accent); color: var(--accent); pointer-events: none; }

/* Question callouts */
.callout {
  background: var(--callout-bg);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 2rem 0;
}
.callout-label { color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; margin: 0 0 .35rem; }
.callout-text { margin: 0; font-style: italic; font-size: 1.1rem; }

/* Answer input inside callouts */
.answer-input {
  display: block;
  width: 100%;
  margin-top: .8rem;
  background: var(--bg);
  border: 1px solid var(--callout-border);
  border-radius: 2px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  padding: .55rem .8rem;
}
.answer-input:focus { outline: none; border-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: inherit;
  font-size: .95rem;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--callout-border);
  padding: .6rem 1.3rem;
  cursor: pointer;
  border-radius: 2px;
}
.btn:hover { border-color: var(--mist); color: var(--mist); }
.btn-primary { border-color: var(--accent); color: var(--accent); }
.btn-primary:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn-link { border: none; color: var(--muted); text-decoration: underline; padding: .6rem .5rem; }
.chapter-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 2.5rem 0 1rem; flex-wrap: wrap; }

/* Footer */
.token-footer {
  text-align: center;
  color: var(--muted);
  font-size: .75rem;
  padding: 1rem;
  border-top: 1px solid var(--callout-border);
  font-family: sans-serif;
}
