/* ======================================================================
   God's Fugitive — prologue.css
   Reading stylesheet, standalone. Loaded only on prologue.html.
   Fonts: Cormorant Garamond + Source Sans 3 (via Google Fonts in HTML)
   ====================================================================== */

:root {
  color-scheme: dark;
  --off-black:  #0A0A0A;
  --oxblood:    #7A1F1F;
  --bone:       #F4EFE6;
  --soft-tan:   #C7BBA0;
  --fd:         'Cormorant Garamond', Cambria, Georgia, serif;
  --fb:         'Source Sans 3', Calibri, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--fb);
  font-size: 18px;
  line-height: 1.6;
  background: var(--off-black);
  color: var(--bone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.bot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.skip-nav {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--oxblood);
  color: var(--bone);
  font: 500 12px/1 var(--fb);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: top .2s;
}
.skip-nav:focus { top: 8px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ── HEADER ─────────────────────────────────────────────────────────── */
.prologue-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 60px;
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(199,187,160,.1);
}
.prologue-back {
  font: 500 10px/1 var(--fb);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(244,239,230,.5);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.prologue-back:hover { color: var(--bone); }
.prologue-header__title {
  font: italic 400 12px/1.55 var(--fb);
  color: rgba(244,239,230,.4);
  text-align: right;
}

/* ── READING CONTAINER ──────────────────────────────────────────────── */
.prologue-page {
  max-width: 38rem;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
}

/* ── CHAPTER TITLE BLOCK ────────────────────────────────────────────── */
.chapter-title {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(199,187,160,.25);
}
.chapter-eyebrow {
  font: 500 0.85rem/1 var(--fb);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 1rem;
}
.chapter-name {
  font: 500 clamp(2.5rem, 6vw, 4rem)/1.1 var(--fd);
  color: var(--bone);
  margin-bottom: 1.5rem;
}
.chapter-source {
  font: 400 0.85rem/1 var(--fb);
  letter-spacing: .1em;
  color: rgba(244,239,230,.4);
}

/* ── PROLOGUE BODY TEXT ─────────────────────────────────────────────── */
.prologue-body {
  font: 400 1.2rem/1.75 var(--fd);
  color: var(--bone);
}
.prologue-body p { margin-bottom: 1.35rem; }
.prologue-body p:last-child { margin-bottom: 0; }
.prologue-body em { font-style: italic; }

/* Drop cap on the opening line */
.prologue-body > p:first-of-type::first-letter {
  font: 500 3.5rem/.85 var(--fd);
  float: left;
  margin: 0.05em 0.15em -0.1em 0;
  color: var(--oxblood);
}

/* ── TIMESTAMPS ─────────────────────────────────────────────────────── */
.timestamp {
  font: 600 0.9rem/1 var(--fb);
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin: 3rem 0 2rem;
  display: block;
}

/* ── SCENE BREAK ────────────────────────────────────────────────────── */
.scene-break {
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.5rem auto;
}
.scene-break::before {
  content: "\B7 \A0 \A0 \B7 \A0 \A0 \B7";
  color: var(--oxblood);
  font-size: 1.25rem;
  opacity: .7;
}

/* ── RADIO CHATTER ──────────────────────────────────────────────────── */
.radio {
  font: 500 1.05rem/1.5 var(--fb);
  letter-spacing: .04em;
  color: rgba(244,239,230,.85);
  margin: 1.5rem 0;
}

/* ── DIVIDER BEFORE OFFER ───────────────────────────────────────────── */
.oxblood-rule {
  border: none;
  height: 1px;
  background: var(--oxblood);
  width: 4rem;
  margin: 5rem auto 3rem;
}

/* ── AFTER-PROLOGUE OFFER ───────────────────────────────────────────── */
.after-prologue { text-align: center; margin-bottom: 3rem; }
.after-text {
  font: italic 400 1.15rem/1.5 var(--fd);
  color: var(--bone);
  max-width: 30rem;
  margin: 0 auto 1rem;
}
.after-text + .after-text { margin-bottom: 2.5rem; }

/* ── EMAIL FORM ─────────────────────────────────────────────────────── */
.gate-form {
  background: rgba(244,239,230,.04);
  border: 1px solid rgba(199,187,160,.4);
  border-left: 3px solid var(--oxblood);
  padding: 2rem;
  margin-bottom: 4rem;
}
.gate-form form { display: flex; flex-direction: column; gap: 1rem; }
.gate-form input[type="email"] {
  width: 100%;
  padding: .9rem 1rem;
  font: 400 1rem/1 var(--fb);
  background: var(--off-black);
  border: 1px solid rgba(199,187,160,.4);
  color: var(--bone);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s;
}
.gate-form input[type="email"]:focus { border-color: var(--bone); }
.gate-form input[type="email"]::placeholder { color: rgba(244,239,230,.35); }
.gate-form button[type="submit"] {
  background: var(--oxblood);
  border: 1px solid var(--oxblood);
  color: var(--bone);
  font: 500 1rem/1 var(--fb);
  letter-spacing: .05em;
  padding: .9rem 1.5rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: background .2s, border-color .2s, color .2s;
}
.gate-form button[type="submit"]:hover {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--off-black);
}
.gate-form button[type="submit"]:disabled {
  opacity: .6;
  cursor: default;
}
.gate-form-help {
  font: 400 0.85rem/1.6 var(--fb);
  color: rgba(244,239,230,.45);
  margin-top: .75rem;
}
.form-msg {
  font: italic 400 0.85rem/1.5 var(--fb);
  color: rgba(244,239,230,.55);
  margin-top: .5rem;
  min-height: 1.4em;
  display: block;
}
.form-msg--success { color: #4D9A5E; }
.form-msg--error   { color: #C0412E; }

/* ── BACK TO TOP ────────────────────────────────────────────────────── */
#top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--oxblood);
  border: none;
  color: var(--bone);
  font-size: 17px;
  cursor: pointer;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  touch-action: manipulation;
  transition: opacity .3s, background .2s;
}
#top-btn.on { opacity: 1; pointer-events: auto; }
#top-btn:hover { background: #5A1515; }

/* ── FOOTER ─────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(199,187,160,.18);
  padding: 2rem 0;
  text-align: center;
  font: 400 0.85rem/1.8 var(--fb);
  color: rgba(244,239,230,.4);
}
.site-footer a {
  color: rgba(244,239,230,.4);
  text-decoration: none;
  border-bottom: 1px solid rgba(199,187,160,.25);
  transition: color .2s;
}
.site-footer a:hover { color: var(--bone); }

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .prologue-header { padding: 14px 24px; }
  .prologue-header__title { display: none; }
  .prologue-page { padding: 3.5rem 1.5rem 5rem; }
  .gate-form { padding: 1.5rem; }
  #top-btn { bottom: 20px; right: 20px; }
}
@media (max-width: 480px) {
  .prologue-header { padding: 12px 16px; }
  .prologue-page { padding: 2.5rem 1.25rem 4rem; }
  body { font-size: 17px; }
  .prologue-body { font-size: 1.1rem; }
  #top-btn { bottom: 16px; right: 16px; width: 40px; height: 40px; }
}
