/* ==========================================================
   SOLARIS — shared styles
   No images, no icons. Colour, type, space and pacing only.
   Each page sets a "mood" on <body data-mood="…"> which shifts
   the palette: dawn (mission), stone (history), ember (Paul),
   slate (authority), still (guide).
   ========================================================== */

:root {
  --ink: #f3efe6;
  --ink-soft: rgba(243, 239, 230, 0.72);
  --ink-faint: rgba(243, 239, 230, 0.45);
  --line: rgba(243, 239, 230, 0.14);
  --bg-1: #0d0f1c;
  --bg-2: #1a1630;
  --glow: #e9b65a;
  --glow-soft: rgba(233, 182, 90, 0.16);
  --accent: #e9b65a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --measure: 38rem;
}

body[data-mood="dawn"]  { --bg-1:#0c0e1d; --bg-2:#2a1c33; --glow:#f0b65e; --accent:#f0b65e; --glow-soft:rgba(240,182,94,.18); }
body[data-mood="stone"] { --bg-1:#111316; --bg-2:#1e2228; --glow:#9fb3c8; --accent:#c9b48a; --glow-soft:rgba(159,179,200,.12); }
body[data-mood="ember"] { --bg-1:#140f0e; --bg-2:#2a1915; --glow:#d9824f; --accent:#e3a072; --glow-soft:rgba(217,130,79,.14); }
body[data-mood="slate"] { --bg-1:#0e1214; --bg-2:#1b2427; --glow:#7fa7a0; --accent:#a9c7bf; --glow-soft:rgba(127,167,160,.13); }
body[data-mood="still"] { --bg-1:#0a0d18; --bg-2:#141a2e; --glow:#a8b8ff; --accent:#c8b6ff; --glow-soft:rgba(168,184,255,.14); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  background-color: var(--bg-2);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, var(--glow-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 100%);
}

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--accent); color: var(--bg-1); }

/* ---------- top navigation (text only) ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem clamp(1.25rem, 4vw, 3rem);
  font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  background: linear-gradient(180deg, rgba(10,10,20,.78), rgba(10,10,20,0));
  backdrop-filter: blur(6px);
}
.nav .mark { color: var(--ink); text-decoration: none; letter-spacing: 0.32em; font-weight: 600; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; }
.nav a { color: var(--ink-soft); text-decoration: none; padding: 0.3rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- layout ---------- */
main { padding: 0 clamp(1.25rem, 5vw, 3rem) 6rem; }
.wrap { max-width: var(--measure); margin: 0 auto; }

.hero {
  min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 52rem; margin: 0 auto; padding: 4rem 0;
}
.eyebrow {
  font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.5rem;
}
h1, h2, h3 { font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); margin: 0 0 1.75rem; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 1.25rem; }
h3 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; color: var(--accent); }
.lede { font-size: clamp(1.2rem, 2.2vw, 1.45rem); color: var(--ink-soft); max-width: 36rem; margin: 0; }
.glow-word {
  background: linear-gradient(100deg, var(--ink) 0%, var(--glow) 50%, var(--ink) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s ease-in-out infinite;
}
@keyframes sheen { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

.scroll-cue {
  margin-top: 3.5rem; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--ink-faint);
}
.scroll-cue::after {
  content: ""; display: block; width: 1px; height: 3.5rem; margin-top: 1rem;
  background: linear-gradient(var(--accent), transparent);
  animation: drip 2.4s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

section.block { padding: 5rem 0; border-top: 1px solid var(--line); }
section.block:first-of-type { border-top: 0; }
p { margin: 0 0 1.25rem; }
.soft { color: var(--ink-soft); }

/* one idea, large — a "breath" between sections */
.breath {
  min-height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 4rem 0;
}
.breath p {
  font-size: clamp(1.6rem, 4.2vw, 2.8rem); line-height: 1.3; max-width: 44rem; margin: 0;
}
.breath small { display: block; margin-top: 1.25rem; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); }

/* scripture / source quotation */
blockquote {
  margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 2px solid var(--accent);
  font-size: 1.3rem; line-height: 1.5; font-style: italic;
}
blockquote cite { display: block; margin-top: 0.6rem; font-style: normal; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* reflection pause — invites the reader to answer inwardly */
.pause {
  margin: 3rem 0; padding: 2rem 2rem 1.5rem;
  border: 1px solid var(--line); border-radius: 2px;
  background: linear-gradient(135deg, var(--glow-soft), transparent 65%);
}
.pause .label { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
.pause p { font-size: 1.3rem; line-height: 1.45; margin-bottom: 0.75rem; }

/* two-column contrast (e.g. the vision vs Paul) */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin: 2.5rem 0; border: 1px solid var(--line); }
.contrast > div { background: var(--bg-1); padding: 1.5rem 1.4rem; }
.contrast .head { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.6rem; }
.contrast .col-a .head { color: var(--accent); }
.contrast p { font-size: 1.02rem; margin: 0; }
.contrast .ref { display: block; margin-top: 0.5rem; font-family: var(--sans); font-size: 0.75rem; color: var(--ink-faint); letter-spacing: 0.06em; }
@media (max-width: 640px) { .contrast { grid-template-columns: 1fr; } }

/* numbered principles without icons */
.principles { counter-reset: p; list-style: none; padding: 0; margin: 2rem 0; }
.principles li { counter-increment: p; position: relative; padding: 0 0 2rem 3.5rem; }
.principles li::before {
  content: counter(p, upper-roman); position: absolute; left: 0; top: 0.1rem;
  font-size: 1rem; color: var(--accent); letter-spacing: 0.1em; width: 2.5rem;
}
.principles strong { display: block; font-weight: 400; font-size: 1.3rem; margin-bottom: 0.25rem; }

/* cards for the History hub */
.doors { display: grid; gap: 1.25rem; margin: 3rem 0; }
.door {
  display: block; padding: 2.25rem 2rem; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); position: relative; overflow: hidden;
  transition: border-color .4s ease, transform .4s ease;
}
.door::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease;
  background: linear-gradient(120deg, var(--door-tint, var(--glow-soft)), transparent 70%);
}
.door:hover, .door:focus-visible { border-color: var(--accent); transform: translateY(-2px); }
.door:hover::before, .door:focus-visible::before { opacity: 1; }
.door > * { position: relative; }
.door .num { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--accent); }
.door h2 { margin: 0.6rem 0 0.6rem; font-size: 1.9rem; }
.door p { margin: 0; color: var(--ink-soft); }
.door .go { display: inline-block; margin-top: 1.25rem; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }

/* text-only timeline */
.timeline { list-style: none; margin: 2.5rem 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 0.6rem; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.timeline li.key::before { background: var(--accent); box-shadow: 0 0 0 5px var(--glow-soft); }
.timeline .when { display: block; font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.timeline p { margin: 0.2rem 0 0; font-size: 1.02rem; color: var(--ink-soft); }

/* note box (fairness / scope) */
.note {
  font-family: var(--sans); font-size: 0.92rem; line-height: 1.6; color: var(--ink-soft);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.25rem 0; margin: 2.5rem 0;
}
.note strong { color: var(--ink); font-weight: 600; }

/* next-page invitation */
.onward { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); font-family: var(--sans); }
.onward a { display: inline-block; font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; padding: 1rem 1.6rem; border: 1px solid var(--accent); color: var(--ink); transition: background .3s ease, color .3s ease; }
.onward a:hover { background: var(--accent); color: var(--bg-1); }
.onward .alt { border-color: var(--line); margin-left: 0.75rem; }

/* sources */
.sources { font-family: var(--sans); font-size: 0.82rem; color: var(--ink-faint); line-height: 1.6; }
.sources h3 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-soft); }
.sources ol { padding-left: 1.2rem; }

footer {
  padding: 3rem clamp(1.25rem, 5vw, 3rem); text-align: center;
  font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

/* gentle reveal on scroll (added by site.js) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.1s ease; }
.reveal.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .glow-word, .scroll-cue::after { animation: none; } }

/* ==========================================================
   HUMAN CHECK GATE
   ========================================================== */
.gate {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, var(--glow-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2));
}
html.gated body > *:not(.gate) { visibility: hidden; }
html:not(.gated) .gate { display: none; }
.gate-card { width: 100%; max-width: 30rem; text-align: center; }
.gate-card h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 0.75rem; }
.gate-card .soft { font-size: 1.05rem; }
.gate form { margin-top: 2rem; text-align: left; }
.gate label { display: block; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.6rem; }
.gate .challenge { font-size: 1.25rem; line-height: 1.45; margin: 0 0 1rem; }
.gate input[type="text"] {
  width: 100%; padding: 0.9rem 1rem; font: inherit; font-size: 1.1rem; color: var(--ink);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 2px; outline: none;
}
.gate input[type="text"]:focus { border-color: var(--accent); }
.gate .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gate button {
  margin-top: 1.25rem; width: 100%; padding: 1rem; font-family: var(--sans); font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bg-1); background: var(--accent); border: 0; border-radius: 2px; cursor: pointer;
}
.gate button:hover { filter: brightness(1.08); }
.gate .msg { min-height: 1.6em; margin-top: 1rem; font-family: var(--sans); font-size: 0.9rem; color: var(--accent); }
.gate .fine { margin-top: 1.5rem; font-family: var(--sans); font-size: 0.75rem; color: var(--ink-faint); text-align: center; }
.gate .ts-slot { margin-top: 1rem; display: flex; justify-content: center; }

/* ==========================================================
   GUIDE (chat) page
   ========================================================== */
.chat-shell { max-width: 44rem; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100vh - 9rem); padding-top: 2rem; }
.chat-intro { text-align: center; margin-bottom: 2rem; }
.chat-intro h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin-bottom: 0.75rem; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; padding: 1rem 0 2rem; }
.msg-row { max-width: 88%; scroll-margin-bottom: 13rem; }
.msg-row .who { font-family: var(--sans); font-size: 0.68rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.35rem; }
.msg-row .bubble { padding: 1.1rem 1.3rem; border: 1px solid var(--line); line-height: 1.6; }
.msg-row.guide .bubble { background: linear-gradient(135deg, var(--glow-soft), rgba(255,255,255,0.015)); border-left: 2px solid var(--accent); }
.msg-row.guide .bubble p:last-child { margin-bottom: 0; }
.msg-row.guide .bubble em.ref { display: block; margin-top: 0.75rem; font-style: normal; font-family: var(--sans); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--ink-faint); }
.msg-row.you { align-self: flex-end; text-align: right; }
.msg-row.you .bubble { background: rgba(255,255,255,0.04); }
.typing { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-faint); letter-spacing: 0.2em; }
.typing span { animation: blink 1.4s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,80%,100% { opacity: .2; } 40% { opacity: 1; } }

.prompts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.prompts button {
  font-family: var(--sans); font-size: 0.82rem; color: var(--ink-soft); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 0.95rem; cursor: pointer; transition: all .25s ease;
}
.prompts button:hover { border-color: var(--accent); color: var(--ink); }
.composer { position: sticky; bottom: 0; padding: 1rem 0 1.5rem; background: linear-gradient(0deg, var(--bg-2) 70%, transparent); }
.composer form { display: flex; gap: 0.5rem; }
.composer input {
  flex: 1; padding: 1rem 1.1rem; font: inherit; color: var(--ink);
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); border-radius: 2px; outline: none;
}
.composer input:focus { border-color: var(--accent); }
.composer form button {
  padding: 0 1.4rem; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--accent); color: var(--bg-1); border: 0; border-radius: 2px; cursor: pointer;
}
.composer .disclaimer { margin-top: 0.6rem; font-family: var(--sans); font-size: 0.72rem; color: var(--ink-faint); text-align: center; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================
   CENTRED LAYOUT (all text centred)
   ========================================================== */
main, .wrap, .hero, section.block, .note, .pause, .onward, .sources, .gate form, .chat-shell { text-align: center; }
.hero { align-items: center; }
.lede, .hero p { margin-left: auto; margin-right: auto; }
.scroll-cue::after { margin-left: auto; margin-right: auto; }

blockquote { border-left: 0; padding: 1.5rem 0 0; position: relative; max-width: 34rem; margin: 2.5rem auto; }
blockquote::before { content: ""; position: absolute; top: 0; left: 50%; width: 3rem; height: 2px; margin-left: -1.5rem; background: var(--accent); }

.principles li { padding: 0 0 2.25rem; }
.principles li::before { position: static; display: block; width: auto; margin-bottom: 0.4rem; }

.timeline { border-left: 0; }
.timeline li { padding: 0 0 2rem; }
.timeline li::before { position: static; display: block; margin: 0 auto 0.6rem; }

.door { text-align: center; }
.onward a.alt { margin-left: 0; }
.onward { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.sources ol { list-style-position: inside; padding-left: 0; }
.gate label, .gate .challenge { text-align: center; }

/* guide: centred conversation */
.msg-row, .msg-row.you { align-self: center; text-align: center; max-width: 100%; width: 100%; }
.msg-row.guide .bubble { border-left: 1px solid var(--line); border-top: 2px solid var(--accent); }
.prompts { justify-content: center; }
.composer form { flex-wrap: wrap; justify-content: center; }
.composer input { text-align: center; min-width: 14rem; }

/* Claude hand-off */
.deeper { display: inline-block; margin-top: 0.9rem; font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; padding: 0.55rem 1rem; border: 1px solid var(--accent); color: var(--ink); }
.deeper:hover { background: var(--accent); color: var(--bg-1); }
.handoff-note { font-family: var(--sans); font-size: 0.8rem; color: var(--ink-faint); margin-top: 0.6rem; }

/* antichrist page mood */
body[data-mood="eclipse"] { --bg-1:#08080b; --bg-2:#1a1016; --glow:#c9a24a; --accent:#d4b26a; --glow-soft:rgba(201,162,74,.12); }

/* compilation note */
footer .compiled { display: block; margin-top: 0.6rem; letter-spacing: 0.12em; text-transform: none; font-size: 0.78rem; }
.onward { margin-bottom: 3rem; }
