/* ─────────────────────────────────────────────────────────────────────────────
   RevWatch Docs — Methodology content styles
   methodology.css

   Style hooks available to frozen-v0.1 fragments. These are presentation only:
   applying `.tag-explicit` to something does not classify it — the classification
   has to be stated in the v0.1 text itself.
   ───────────────────────────────────────────────────────────────────────────── */

/* ── Index page ── */
.index-hero {
  padding-left: 40px;
  border-left: 4px solid var(--cognac);
  margin-bottom: 64px;
  animation: fadeUp 0.8s ease 0.1s both;
}
.index-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.index-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 19px;
  color: var(--cognac);
}

/* Scripture epigraph — Revelation 1:3, the verse the site is named for.
   Set as an epigraph rather than a pull-quote: it is the page's provenance, not an
   argument the page is making. */
.scripture-epigraph {
  margin: 24px 0 26px;
  padding: 20px 24px;
  background: var(--linen);
  border-left: 3px solid var(--cognac);
  max-width: 62ch;
}
.scripture-epigraph p {
  font-family: 'Lora', serif;
  font-size: 17px;
  line-height: 1.72;
  color: var(--charcoal);
}
.scripture-epigraph cite {
  display: block;
  margin-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cognac);
}

/* Homepage orientation block — authored v0.1 content, sits beneath the standfirst. */
.orientation { margin-top: 30px; max-width: 64ch; }
.orientation > * + * { margin-top: 16px; }
.orientation p { font-size: 15px; font-weight: 300; line-height: 1.85; color: var(--slate); }

/* `.lede` is shared: v0.1 uses it on the homepage orientation block and inside
   fragments, so it cannot stay scoped to .prose. */
.lede {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.65;
  color: var(--cognac);
}
.orientation .lede { font-size: 18px; }

.index-list { list-style: none; max-width: 860px; counter-reset: none; }
.index-list li { border-top: 1px solid var(--gold-rule); }
.index-list li:last-child { border-bottom: 1px solid var(--gold-rule); }
.index-list a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 8px;
  text-decoration: none;
  transition: background 0.2s ease, padding-left 0.2s ease;
}
.index-list a:hover { background: var(--cognac-dim); padding-left: 16px; }
.index-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--gold);
  flex-shrink: 0;
}
.index-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.35;
}

/* ── Section page ── */
.section-page {
  max-width: var(--measure);
  animation: fadeUp 0.7s ease 0.05s both;
}
/* Each v0.1 fragment is one <section> that authors its own <h2>. That heading is the
   page heading — the template emits no <h1> above it, because a second heading would
   either duplicate the authored wording or compete with it. So the fragment's own
   opening <h2> takes the display treatment. */
.prose > section > h2:first-child {
  font-family: 'Playfair Display', serif;
  font-size: clamp(27px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.14;
  color: var(--charcoal);
  margin: 0 0 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gold-rule);
  text-wrap: balance;
}

/* ── Prose (fragments render inside here) ── */
.prose { font-size: 16px; font-weight: 300; line-height: 1.85; color: var(--slate); }
.prose > * + * { margin-top: 22px; }
/* v0.1 fragments wrap their content in a <section>, one level below .prose. */
.prose > section > * + * { margin-top: 22px; }

.prose h2 {
  font-family: 'Playfair Display', serif;
  font-size: 25px;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
  margin-top: 52px;
}
.prose h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cognac);
  margin-top: 40px;
}
.prose strong { color: var(--charcoal); font-weight: 500; }
.prose em { font-family: 'Lora', serif; font-style: italic; }
.prose a { color: var(--cognac); text-decoration: underline; text-underline-offset: 3px; }

.prose ul, .prose ol { padding-left: 26px; }
.prose li + li { margin-top: 10px; }
.prose li::marker { color: var(--gold); }

.prose blockquote {
  padding-left: 22px;
  border-left: 2px solid var(--gold-rule);
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.7;
  color: var(--slate);
}

.prose .scripture {
  font-family: 'Lora', serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--charcoal);
  background: var(--linen);
  border-left: 3px solid var(--cognac);
  padding: 20px 24px;
}

.prose .callout {
  background: var(--ivory);
  border: 1px solid var(--gold-rule);
  border-radius: 3px;
  padding: 22px 26px;
  font-size: 15px;
}

.prose ol.process { counter-reset: step; list-style: none; padding-left: 0; }
.prose ol.process > li {
  counter-increment: step;
  position: relative;
  padding-left: 46px;
  margin-top: 18px;
}
.prose ol.process > li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--gold);
  border: 1px solid var(--gold-rule);
  border-radius: 2px;
  padding: 3px 7px;
}

/* ── Provenance chips ── */
.tag {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
  border: 1px solid;
  vertical-align: middle;
  white-space: nowrap;
}
.tag-explicit { color: var(--botanical); border-color: rgba(46,56,43,0.35); background: rgba(46,56,43,0.07); }
.tag-inferred { color: var(--gold);     border-color: var(--gold-rule);      background: var(--gold-light); }
.tag-derived  { color: var(--cognac);   border-color: rgba(140,74,47,0.35);  background: var(--cognac-dim); }

/* ── Epistemic chain rail ── */
.epistemic-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--gold-rule);
  border-radius: 3px;
  overflow: hidden;
  background: var(--ivory);
}
.epistemic-chain > * {
  flex: 1 1 140px;
  padding: 16px 18px;
  border-right: 1px solid var(--gold-rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.epistemic-chain > *:last-child { border-right: 0; }

/* ── Pager ── */
.pager {
  max-width: var(--measure);
  margin-top: 72px;
  padding-top: 28px;
  border-top: 1px solid var(--gold-rule);
  display: flex;
  justify-content: space-between;
  gap: 32px;
}
.pager a {
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--charcoal);
  max-width: 46%;
  transition: color 0.2s ease;
}
.pager a:hover { color: var(--cognac); }
.pager-next { text-align: right; }
.pager a span {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 400;
}

@media (max-width: 900px) {
  .index-hero { padding-left: 22px; }
  .pager { flex-direction: column; gap: 24px; }
  .pager a { max-width: 100%; }
  .pager-next { text-align: left; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   Section art

   Celestial drawings behind three section openers, in the same hairline idiom as
   REVEAL's line-field overlays. They sit behind the heading only, never behind
   running text — the argument is the product, and it has to stay legible.

   Each drawing is matched to the section's actual claim rather than to the topic
   of prophecy generally:
     · signal space          — a star chart is a preregistered reference frame
     · prospective ledger    — phases recorded in order, before any outcome
     · correspondence        — independent paths crossing; the crossing is drawn,
                               and nothing is asserted about what it means
   ───────────────────────────────────────────────────────────────────────────── */
.section-page { position: relative; }
.section-page > * { position: relative; z-index: 1; }

.section-page::before {
  content: '';
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-image: var(--section-art, none);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: contain;
  top: var(--section-art-top, -40px);
  right: var(--section-art-right, -70px);
  width: var(--section-art-w, 330px);
  height: var(--section-art-h, 240px);
}

body.sec-signal-space {
  --section-art: url('/img/celestial-reference-frame.svg');
  --section-art-w: 340px;
  --section-art-h: 250px;
}
body.sec-prospective-ledger {
  --section-art: url('/img/lunar-phase-sequence.svg');
  --section-art-w: 360px;
  --section-art-h: 124px;
  --section-art-top: -6px;
  --section-art-right: -50px;
}
body.sec-correspondence-vs-fulfillment {
  --section-art: url('/img/conjunction-rings.svg');
  --section-art-w: 290px;
  --section-art-h: 235px;
  --section-art-top: -30px;
}

/* Below the rail breakpoint the measure widens to the full column and the art
   would sit under the heading text, so it comes out entirely. */
@media (max-width: 1240px) {
  .section-page::before { display: none; }
}


/* ─────────────────────────────────────────────────────────────────────────────
   Legal pages

   Site content, not methodology, and styled to read that way: no section art, no
   rail, tighter measure. They author their own <h1> — unlike v0.1 fragments, whose
   wording is frozen and whose heading level is not mine to change.
   ───────────────────────────────────────────────────────────────────────────── */
.prose > section > h1:first-child {
  font-family: 'Playfair Display', serif;
  font-size: clamp(27px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.14;
  color: var(--charcoal);
  margin: 0 0 36px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--gold-rule);
  text-wrap: balance;
}

.legal-page .prose { font-size: 15px; }
.legal-page .prose h2 { font-size: 21px; margin-top: 44px; }
.legal-page .prose h3 { margin-top: 28px; }
.legal-page .section-page::before,
body.is-legal .section-page::before { display: none; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 10px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--gold-rule);
  vertical-align: top;
}
.legal-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.legal-meta {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--gold-rule);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 2;
  color: var(--slate);
}

/* ── Status notice ──
   Says what exists today, as distinct from what v0.1 specifies. Sits outside the
   verbatim fragment so frozen wording is never touched. */
.status-notice {
  margin: 0 0 34px;
  padding: 16px 20px;
  background: var(--linen);
  border-left: 3px solid var(--gold);
  max-width: var(--measure);
}
.status-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.status-notice p:not(.status-label) {
  font-size: 14px;
  line-height: 1.75;
  color: var(--slate);
}
.status-notice strong { color: var(--charcoal); font-weight: 500; }

/* Index marker for a section describing something not yet live. */
.index-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-rule);
  border-radius: 2px;
  padding: 3px 7px;
  margin-left: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}
