/* =========================================================================
   Shadows & Substance — shared stylesheet
   Brand: Marriage After God. Calm, editorial, scholarly-but-warm.
   ========================================================================= */

:root {
  /* Brand palette (Part 3) */
  --evergreen: #34494D;
  --evergreen-dark: #2a3c3f;
  --evergreen-light: #3e565b;
  --sands: #B8956D;
  --sands-dark: #a9835a;
  --sands-light: #cdb094;
  --brick: #9F3A3D;
  --brick-dark: #8a3235;
  --linen: #F3F1EB;
  --linen-2: #ece8df;
  --ink: #232524;
  --ink-soft: #4f5654;
  --ink-faint: #76807d;
  --paper: #fbfaf6;

  --line: rgba(52, 73, 77, 0.14);
  --line-strong: rgba(52, 73, 77, 0.24);
  --shadow: 0 1px 2px rgba(38, 50, 51, 0.04), 0 10px 30px rgba(38, 50, 51, 0.06);

  /* Type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --head-h: 60px;
  --toc-w: 312px;
  --col: 720px;

  --r: 7px;
  --r-sm: 4px;

  /* scene (vector backdrop) tones — framework "day" */
  --sky-1: #eef1ec; --sky-2: #e6e8e0; --sky-3: #dde2db;
  --ridge-0: #c9d2cd; --ridge-1: #abbab5; --ridge-2: #7e918a; --ridge-3: #4c625e;
  --disc: var(--sands-light); --disc-glow: rgba(184,149,109,.5); --mote: var(--sands);
  --topo-line: rgba(255,255,255,.22);
  --sheet: rgba(251,250,246,.94);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  background: var(--sky-2); /* fallback wash if the scene fails to paint */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: transparent; /* the fixed .scene shows through */
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brick-dark); }

::selection { background: var(--sands-light); color: var(--evergreen-dark); }

.skip {
  position: fixed; top: -60px; left: 12px; z-index: 200;
  background: var(--evergreen); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px;
  font: 600 13px/1 var(--sans); text-decoration: none; transition: top .15s ease;
}
.skip:focus { top: 0; color: #fff; }

/* ----------------------------------------------------------- progress bar */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 90;
  background: transparent; pointer-events: none;
}
.progress__bar {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--sands), var(--brick));
  transition: width .12s linear;
}

/* --------------------------------------------------------------- masthead */
.masthead {
  position: sticky; top: 0; z-index: 80;
  height: var(--head-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 clamp(14px, 3vw, 26px);
  background: rgba(52, 73, 77, 0.96);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  color: var(--linen);
  border-bottom: 1px solid rgba(184, 149, 109, 0.28);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--linen); text-decoration: none; font-family: var(--serif);
  font-weight: 600; letter-spacing: .2px; margin-right: auto;
}
.brand:hover { color: #fff; }
.brand__amp {
  font-size: 26px; line-height: 1; color: var(--sands-light);
  font-weight: 700;
}
.brand__name { font-size: 20px; white-space: nowrap; }

.share { display: flex; align-items: center; gap: 4px; }
.share__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 9px; border: 0; cursor: pointer;
  background: transparent; color: var(--linen);
  text-decoration: none; transition: background .15s ease, color .15s ease, transform .1s ease;
}
.share__btn:hover { background: rgba(184, 149, 109, 0.22); color: #fff; }
.share__btn:active { transform: translateY(1px); }
.share__btn svg { width: 18px; height: 18px; fill: currentColor; }
.share__btn.is-copied { color: var(--sands-light); }

.nav-toggle {
  display: none; width: 40px; height: 40px; margin-left: -8px;
  border: 0; background: transparent; cursor: pointer; border-radius: 9px;
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: rgba(184, 149, 109, 0.22); }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--linen); position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after  { position: absolute; top: 6px; }
body.nav-open .nav-toggle__bars { background: transparent; }
body.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle__bars::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- toc nav */
.toc {
  position: fixed; top: var(--head-h); left: 0; bottom: 0; width: var(--toc-w);
  z-index: 70; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(236, 232, 223, 0.82);
  -webkit-backdrop-filter: saturate(130%) blur(10px);
  backdrop-filter: saturate(130%) blur(10px);
  border-right: 1px solid var(--line);
  padding: 26px 18px 40px;
}
.toc__head { padding: 0 8px 14px; }
.toc__eyebrow {
  margin: 0 0 4px; font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sands-dark);
}
.toc__lead { margin: 0; font-family: var(--serif); font-size: 19px; color: var(--evergreen); }
.toc__list { list-style: none; margin: 8px 0; padding: 0; counter-reset: none; }
.toc__link {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 10px; border-radius: 9px; text-decoration: none;
  color: var(--ink-soft); transition: background .14s ease, color .14s ease;
}
.toc__link:hover { background: rgba(184, 149, 109, 0.16); color: var(--evergreen); }
.toc__num {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--sands-dark);
  min-width: 1.6em; padding-top: 2px;
}
.toc__title { font-size: 15px; line-height: 1.32; font-weight: 500; }
.toc__link[aria-current="true"] {
  background: var(--evergreen); color: #fff;
}
.toc__link[aria-current="true"] .toc__num { color: var(--sands-light); }
.toc__foot {
  margin-top: 18px; padding: 16px 10px 0; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint); line-height: 1.5;
}
.toc__ref { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--sands-dark); margin: 6px 0 0; }

.toc-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(35, 42, 41, 0.42);
  opacity: 0; transition: opacity .2s ease;
}

/* ----------------------------------------------------------------- reader */
.reader {
  position: relative; z-index: 1;
  margin-left: var(--toc-w);
  padding: clamp(24px, 4vw, 56px) clamp(18px, 5vw, 40px) 64px;
  outline: none;
}

/* each section is a sheet of "substance" floating over the scene of "shadows" */
.section {
  max-width: var(--col); margin: 0 auto;
  padding: clamp(34px, 6vw, 72px) clamp(22px, 4.4vw, 52px);
  background: var(--sheet);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border-top: 1px solid var(--line);
  border-inline: 1px solid var(--line);
  box-shadow: 0 30px 60px -52px rgba(20, 30, 32, 0.6);
}
.section:first-child, .reader > .section:first-of-type {
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 0 var(--line), 0 30px 60px -52px rgba(20, 30, 32, 0.6);
}
.reader > .section:last-of-type { border-bottom: 1px solid var(--line); }
.section[data-index="0"] { padding-top: clamp(20px, 3vw, 40px); }
.section-placeholder { max-width: var(--col); margin: 0 auto; }

/* homepage entity hub — the canonical one-sentence definition, first in the DOM */
.entity-hub {
  max-width: var(--col); margin: 0 auto;
  padding: clamp(22px, 4vw, 40px) clamp(22px, 4.4vw, 52px);
  background: var(--sheet);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  border-inline: 1px solid var(--line);
  border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px -52px rgba(20, 30, 32, 0.6);
}
.entity-hub__eyebrow {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em;
  font-size: 12px; color: var(--sands-dark); margin: 0 0 10px;
}
.entity-hub__lede {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.25rem, 2.7vw, 1.6rem); line-height: 1.34;
  color: var(--evergreen-dark); margin: 0; max-width: 54ch;
}

.section-head { position: relative; margin-bottom: 30px; }
.section-numeral {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(4.5rem, 12vw, 8.5rem); line-height: .78;
  color: transparent; -webkit-text-stroke: 1.6px var(--brick);
  opacity: .26; margin: 0 0 -.12em -2px;
  letter-spacing: -2px; user-select: none; position: relative; z-index: 1;
}
/* topographic strokes drawn behind the head numeral */
.head-topo {
  position: absolute; left: -6px; right: -6px; top: -6px; height: 132px;
  width: calc(100% + 12px); z-index: 0; color: var(--evergreen);
  opacity: .5; pointer-events: none;
}
.head-topo path { fill: none; stroke: currentColor; stroke-width: 1; opacity: .16; }
.study-head .head-topo, .reader--study .head-topo { color: var(--sands-dark); opacity: .6; }
.eyebrow {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .2em;
  font-size: 12px; color: var(--sands-dark); margin: 14px 0 10px;
}
.eyebrow__sep { color: var(--line-strong); }
.section-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 3.5rem); line-height: 1.04;
  color: var(--evergreen-dark); margin: 0 0 .35em; letter-spacing: -.01em;
}
.section-dek {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.4;
  color: var(--ink-soft); margin: 0; max-width: 36ch;
}

/* ------------------------------------------------------ body typography */
.section-body { font-size: 1.02rem; }
.section-body > p { margin: 0 0 1.15em; }
.section-body > p:first-child { margin-top: 0; }
.section-body strong { color: var(--evergreen-dark); font-weight: 600; }
.section-body em { font-style: italic; }

.lede {
  font-size: clamp(1.15rem, 2.5vw, 1.34rem); line-height: 1.6; color: var(--ink-soft);
  margin: 0 0 1.5em;
}
.lede strong { color: var(--evergreen-dark); }

h2.h, .section-body h2 {
  font-family: var(--serif); font-weight: 600; color: var(--evergreen-dark);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem); line-height: 1.12; letter-spacing: -.01em;
  margin: 2.2em 0 .5em;
}
h3.h, .section-body h3 {
  font-family: var(--serif); font-weight: 600; color: var(--evergreen-dark);
  font-size: 1.5rem; line-height: 1.2; margin: 1.8em 0 .4em;
}
.kicker {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em;
  font-size: 11px; color: var(--brick); margin: 2.4em 0 .2em;
}
.kicker + h2, .kicker + h3 { margin-top: .1em; }

.section-body ul, .section-body ol { margin: 0 0 1.3em; padding-left: 1.3em; }
.section-body li { margin: .4em 0; }
.section-body ul.plain { list-style: none; padding-left: 0; }

/* divider ornament */
.rule {
  border: 0; height: 1px; background: var(--line-strong);
  margin: 2.2em auto; width: 100%;
}
.ornament {
  text-align: center; color: var(--sands); letter-spacing: .5em; margin: 2em 0;
  font-size: 13px; user-select: none;
}

/* --------------------------------------------------------- scripture / quote */
.scripture {
  margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--sands);
  background: var(--paper); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-family: var(--serif); font-size: 1.32rem; line-height: 1.42; color: var(--evergreen-dark);
}
.scripture p { margin: 0 0 .3em; }
.scripture cite, .scripture .ref {
  display: block; font-family: var(--mono); font-style: normal;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sands-dark); margin-top: .7em;
}

.pullquote {
  margin: 1.8em 0; padding: 8px 0 8px 4px; border: 0;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.3; color: var(--evergreen);
}
.pullquote .ref {
  display: block; font-family: var(--mono); font-style: normal; font-weight: 400;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sands-dark); margin-top: .8em;
}

/* ----------------------------------------------------------------- cards */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 4px solid var(--sands); border-radius: var(--r);
  padding: 22px 24px; box-shadow: var(--shadow); margin: 1.4em 0;
}
.card--evergreen { border-left-color: var(--evergreen); }
.card--brick { border-left-color: var(--brick); }
.card--sand { border-left-color: var(--sands); }
.card--filled { background: var(--evergreen); border-color: var(--evergreen-dark); color: var(--linen); }
.card--filled .card__title, .card--filled strong { color: #fff; }
.card--filled .card__eyebrow { color: var(--sands-light); }

.card__eyebrow {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .16em;
  font-size: 11px; color: var(--brick); margin: 0 0 6px;
}
.card__title {
  font-family: var(--serif); font-weight: 600; color: var(--evergreen-dark);
  font-size: 1.45rem; line-height: 1.16; margin: 0 0 .35em;
}
.card__lead { font-weight: 600; color: var(--evergreen-dark); margin: 0 0 .4em; }
.card p:last-child { margin-bottom: 0; }
.card__ref { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-faint); margin-top: .6em; }

.grid { display: grid; gap: 18px; margin: 1.5em 0; }
@media (min-width: 680px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.grid .card { margin: 0; }

/* two-column "vs" compare */
.compare { position: relative; }
.compare__vs {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; color: var(--sands-dark);
  font-size: 1.4rem; margin: 4px 0;
}
@media (min-width: 680px) {
  .compare__vs {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    width: 44px; height: 44px; border-radius: 50%; background: var(--linen);
    border: 1px solid var(--line-strong); z-index: 2;
  }
}

/* -------------------------------------------------------------- pillars */
.pillars { display: grid; gap: 16px; margin: 1.6em 0; }
@media (min-width: 760px) { .pillars { grid-template-columns: 1fr 1fr; } }
.pillar {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; box-shadow: var(--shadow);
}
.pillar__num {
  font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1;
  color: var(--brick); opacity: .85; min-width: 1.4em;
}
.pillar__kicker {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em;
  font-size: 10.5px; color: var(--sands-dark); margin: 0 0 4px;
}
.pillar__title { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--evergreen-dark); margin: 0 0 .3em; line-height: 1.15; }
.pillar p { margin: 0; font-size: .98rem; color: var(--ink-soft); }

/* ------------------------------------------------------- ordered "steps" */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 10px; }
.steps li {
  position: relative; counter-increment: step; padding: 12px 16px 12px 56px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); margin: 0;
}
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 16px; top: 12px;
  font-family: var(--mono); font-size: 12px; color: #fff; background: var(--evergreen);
  width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center;
}

/* --------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
table.data { border-collapse: collapse; width: 100%; min-width: 560px; background: var(--paper); font-size: .94rem; }
table.data caption { caption-side: top; text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--sands-dark); padding: 12px 16px 0; }
table.data th, table.data td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th {
  background: var(--evergreen); color: var(--linen); font-family: var(--mono);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  position: sticky; top: 0;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) { background: rgba(184, 149, 109, 0.06); }
table.data .num { font-family: var(--mono); color: var(--brick); font-weight: 600; white-space: nowrap; }
table.data strong { color: var(--evergreen-dark); }
table.data .ref { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); white-space: nowrap; }

/* ----------------------------------------------------------- timeline */
.phase { margin: 1.8em 0 1em; }
.phase__label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 11.5px;
  color: var(--brick); display: flex; align-items: center; gap: 10px; margin: 0 0 14px;
}
.phase__label::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.event {
  display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--evergreen);
  border-radius: var(--r-sm); padding: 14px 18px;
}
.event__num { font-family: var(--mono); font-size: 12px; color: var(--sands-dark); padding-top: 3px; }
.event__title { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--evergreen-dark); margin: 0 0 .15em; line-height: 1.2; }
.event p { margin: 0; font-size: .96rem; color: var(--ink-soft); }
.event__refs { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--ink-faint); margin-top: .5em; display: block; }

/* gap / interlude block */
.interlude {
  text-align: center; padding: 22px; margin: 1.4em 0; border: 1px dashed var(--line-strong);
  border-radius: var(--r); background: rgba(184, 149, 109, 0.07);
}
.interlude .card__eyebrow { color: var(--sands-dark); }

/* ------------------------------------------------- status / checklist */
.checklist { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 10px; }
.checklist li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 16px; margin: 0;
}
.mark { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 14px; color: #fff; }
.mark--done { background: var(--evergreen); }
.mark--prog { background: var(--sands); }
.mark--pending { background: var(--brick); }
.status-tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; white-space: nowrap; }
.status-tag--done { background: rgba(52,73,77,.12); color: var(--evergreen-dark); }
.status-tag--prog { background: rgba(184,149,109,.2); color: var(--sands-dark); }
.status-tag--pending { background: rgba(159,58,61,.12); color: var(--brick); }

/* ----------------------------------------------------- conclusion / callout */
.conclusion {
  background: var(--evergreen); color: var(--linen); border-radius: var(--r);
  padding: 26px 28px; margin: 1.8em 0; box-shadow: var(--shadow);
}
.conclusion .card__eyebrow { color: var(--sands-light); }
.conclusion strong { color: #fff; }
.conclusion p { margin: 0 0 .6em; }
.conclusion p:last-child { margin-bottom: 0; }

.callout {
  background: rgba(184, 149, 109, 0.12); border: 1px solid rgba(184, 149, 109, 0.4);
  border-radius: var(--r); padding: 22px 24px; margin: 1.6em 0;
}
.callout .card__eyebrow { color: var(--sands-dark); }

.sources {
  font-family: var(--mono); font-size: 11px; letter-spacing: .03em; line-height: 1.8;
  color: var(--ink-faint); margin: 2em 0 0; padding-top: 14px; border-top: 1px solid var(--line);
}
.sources strong { color: var(--ink-soft); }
.sources a { color: var(--evergreen); }

/* internal cross-references ("Section NN", "see Title") */
.xref { color: var(--brick); text-decoration: none; border-bottom: 1px dotted rgba(159, 58, 61, .5); white-space: nowrap; }
.xref:hover { color: var(--brick-dark); border-bottom-color: var(--brick); }
.ref .xref, .status-tag .xref, .event__refs .xref, table.data .xref { color: inherit; border-bottom: 1px dotted currentColor; white-space: normal; }
.xref em { font-style: italic; }

/* external citation links (church fathers, sources) */
.cite-link::after {
  content: "\2197"; font-size: .72em; vertical-align: super; margin-left: 1px;
  opacity: .65; text-decoration: none; display: inline-block;
}
.section-body .sources, .answer-body .sources { max-width: 100%; }

/* ----------------------------------------------------- tension / season cards */
.tension { margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }
.tension__head { padding: 16px 22px 0; }
.tension__kicker { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 10.5px; color: var(--brick); margin: 0 0 4px; }
.tension__title { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--evergreen-dark); margin: 0; line-height: 1.16; }
.tension__body { padding: 8px 22px 20px; }
.tension .scripture { font-size: 1.18rem; }
.tension__row { margin: 1em 0 0; }
.tension__lab { font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px; margin: 0 0 3px; }
.tension__lab--challenge { color: var(--brick); }
.tension__lab--response { color: var(--evergreen); }
.tension__ack {
  margin: 1em 0 0; padding: 14px 16px; border-radius: var(--r-sm);
  background: rgba(184, 149, 109, 0.1); border-left: 3px solid var(--sands);
  font-style: italic; color: var(--ink-soft); font-size: .96rem;
}
.tension__ack strong { font-style: normal; }

/* feast cards */
.feast { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin: 0; box-shadow: var(--shadow); }
.feast__n { font-family: var(--serif); font-weight: 700; font-size: 1.9rem; line-height: 1; color: var(--sands); min-width: 1.1em; }
.feast__name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--evergreen-dark); margin: 0; line-height: 1.12; }
.feast__heb { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--sands-dark); text-transform: uppercase; }
.feast__when { font-size: .85rem; color: var(--ink-faint); margin: 2px 0 10px; }
.feast__row { margin: .6em 0 0; font-size: .96rem; }
.feast__row b { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--brick); display: block; margin-bottom: 2px; }
.feasts { display: grid; gap: 14px; margin: 1.4em 0; }

/* duration cards (Daniel) */
.durations { display: grid; gap: 14px; margin: 1.5em 0; }
@media (min-width: 640px) { .durations { grid-template-columns: repeat(3, 1fr); } }
.duration { text-align: center; background: var(--evergreen); color: var(--linen); border-radius: var(--r); padding: 24px 18px; }
.duration__big { font-family: var(--serif); font-weight: 700; font-size: 2.8rem; line-height: 1; color: #fff; }
.duration__unit { font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; color: var(--sands-light); margin: 8px 0 10px; }
.duration__ref { font-family: var(--mono); font-size: 11px; color: rgba(243,241,235,.7); }

/* simple definition rows */
.kv { display: grid; gap: 0; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kv > div { display: grid; grid-template-columns: minmax(120px, 30%) 1fr; gap: 0; }
.kv > div + div { border-top: 1px solid var(--line); }
.kv dt { background: rgba(52,73,77,.05); padding: 12px 16px; font-weight: 600; color: var(--evergreen-dark); margin: 0; }
.kv dd { padding: 12px 16px; margin: 0; color: var(--ink-soft); }

/* big number stat */
.stat { font-family: var(--serif); font-weight: 700; color: var(--brick); }

/* --------------------------------------------------------------- footer */
.site-foot {
  margin-left: var(--toc-w);
  text-align: center; padding: 54px 24px 70px; background: var(--evergreen-dark); color: var(--linen);
}
.site-foot__verse { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.4; max-width: 36ch; margin: 0 auto .5em; color: #fff; }
.site-foot__ref { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--sands-light); margin: 0 0 22px; }
.site-foot__meta { font-size: 13px; color: rgba(243,241,235,.66); margin: 4px 0; }

/* file:// note */
.file-note {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  max-width: min(560px, 92vw); z-index: 85; margin: 0;
  background: var(--evergreen); color: var(--linen); border: 1px solid var(--sands);
  padding: 12px 18px; border-radius: var(--r); font-size: 13.5px; line-height: 1.5; box-shadow: var(--shadow);
}
.file-note code { font-family: var(--mono); font-size: 12px; background: rgba(0,0,0,.2); padding: 1px 6px; border-radius: 5px; }

/* placeholder for unloaded sections */
.section-placeholder { max-width: var(--col); margin: 0 auto; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .toc {
    transform: translateX(-100%); transition: transform .26s ease;
    width: min(86vw, 340px); box-shadow: 0 0 40px rgba(0,0,0,.2);
    top: var(--head-h);
  }
  body.nav-open .toc { transform: translateX(0); }
  body.nav-open .toc-backdrop { opacity: 1; }
  .reader, .site-foot { margin-left: 0; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .brand__name { font-size: 17px; }
  .share__btn { width: 33px; height: 33px; }
  /* keep the most useful share actions visible on small screens */
  #shareEmail { display: none; }
}

@media (min-width: 1024px) {
  .toc-backdrop { display: none; }
}

/* preservation names (Section 07) */
.names { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.names li {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em; font-size: 12px;
  color: var(--evergreen-dark); background: rgba(184, 149, 109, 0.16);
  border: 1px solid rgba(184, 149, 109, 0.4); border-radius: 100px; padding: 7px 14px; margin: 0;
}

/* open-questions index (Section 14) */
.qgrid { display: grid; gap: 14px; margin: 1.4em 0; }
.qcard { margin: 0; }
.qcard__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.qcard__head .card__eyebrow { margin: 0; }
.qcard.card--evergreen .card__title, .qcard.card--evergreen p { color: var(--linen); }
.qcard.card--evergreen .card__title { color: #fff; }
.qcard.card--evergreen em { color: var(--sands-light); font-style: italic; }
.status-tag--open { background: rgba(52, 73, 77, 0.08); color: var(--ink-faint); }

/* originality / attribution note (original sections) */
.origin-note {
  margin: 16px 0 0; padding: 11px 16px; border-radius: var(--r-sm);
  background: rgba(184, 149, 109, 0.12); border: 1px solid rgba(184, 149, 109, 0.4);
  font-size: .92rem; line-height: 1.5; color: var(--ink-soft);
}
.origin-note strong { color: var(--evergreen-dark); }
.origin-note__tag {
  display: inline-block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .12em;
  font-size: 10px; color: #fff; background: var(--brick); padding: 3px 8px; border-radius: 100px;
  margin-right: 8px; vertical-align: 1px; white-space: nowrap;
}
.origin-note__tag--orig { background: var(--brick); }
.origin-note__tag--synth { background: var(--evergreen); }

/* footer author / attribution block */
.site-foot__about {
  max-width: 60ch; margin: 6px auto 26px; padding: 20px 22px;
  background: rgba(243, 241, 235, 0.06); border: 1px solid rgba(184, 149, 109, 0.28);
  border-radius: var(--r); text-align: left;
}
.site-foot__eyebrow {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; font-size: 11px;
  color: var(--sands-light); margin: 0 0 8px;
}
.site-foot__bio { font-size: 14.5px; line-height: 1.6; color: rgba(243, 241, 235, 0.82); margin: 0; }
.site-foot__bio strong { color: #fff; }
.site-foot__bio a { color: var(--sands-light); }

/* ===================================================== Revelation Study ==== */

/* framework-nav cross link to the study */
.toc__cross {
  display: block; margin: 14px 8px 4px; padding: 12px 14px; border-radius: var(--r-sm);
  background: var(--evergreen); color: var(--linen); text-decoration: none;
  transition: background .15s ease;
}
.toc__cross:hover { background: var(--evergreen-dark); color: #fff; }
.toc__cross-h { display: block; font-family: var(--serif); font-size: 1.05rem; color: #fff; }
.toc__cross-sub { display: block; font-size: 12px; color: var(--sands-light); margin-top: 2px; }

/* study side-nav (grouped) */
.toc__list--study { list-style: none; }
.toc__group { margin: 4px 0 10px; }
.toc__group-h {
  display: flex; align-items: baseline; gap: 8px; margin: 12px 8px 4px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--sands-dark);
}
.toc__roman { color: var(--brick); font-weight: 600; }
.toc__sublist { list-style: none; margin: 0; padding: 0; }
.toc__back { display: inline-block; margin-bottom: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--evergreen); text-decoration: none; }
.toc__back:hover { color: var(--brick); }

.reader--study { max-width: none; }
.study-head { margin-bottom: 26px; }

/* cite controls */
.study-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.cite-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--evergreen-dark); background: rgba(184, 149, 109, 0.14);
  border: 1px solid rgba(184, 149, 109, 0.5); border-radius: 100px; padding: 9px 16px;
  transition: background .15s ease, color .15s ease; position: relative;
}
.cite-btn:hover { background: rgba(184, 149, 109, 0.26); }
.cite-btn svg { width: 15px; height: 15px; fill: currentColor; }
.cite-btn.is-copied { background: var(--evergreen); color: #fff; border-color: var(--evergreen); }
.cite-btn.is-copied::after, .anchor.is-copied::after {
  content: attr(data-flash); position: absolute; left: 50%; top: -32px; transform: translateX(-50%);
  background: var(--evergreen-dark); color: #fff; font-family: var(--sans); font-size: 11px; letter-spacing: .02em;
  text-transform: none; padding: 4px 9px; border-radius: 6px; white-space: nowrap; pointer-events: none;
}
.cite-details { font-size: 13px; color: var(--ink-faint); }
.cite-details summary { cursor: pointer; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sands-dark); }
.cite-text { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--ink-soft); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin: 8px 0 4px; word-break: break-word; }
.cite-token { margin: 0; }
.cite-token code { font-family: var(--mono); font-size: 12px; color: var(--brick); }

/* study body */
.study-body { font-size: 1.04rem; }
.study-p { margin: 0 0 1.1em; position: relative; }
.study-h { font-family: var(--serif); font-weight: 600; color: var(--evergreen-dark); font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.16; margin: 1.7em 0 .5em; position: relative; }
.study-body .scripture { position: relative; }
.study-note {
  margin: 1.3em 0; padding: 14px 18px; border-radius: var(--r-sm); position: relative;
  background: rgba(52, 73, 77, 0.05); border-left: 3px solid var(--sands);
  font-size: .97rem; color: var(--ink-soft);
}
.study-note p { margin: 0; }
.study-list { position: relative; }
.study-list__anchor { list-style: none; margin-left: -1em; }

/* ¶ deep-link anchors */
.anchor {
  margin-left: .35em; color: var(--sands-dark); text-decoration: none; font-size: .82em;
  opacity: 0; transition: opacity .15s ease; cursor: pointer; position: relative;
}
.study-p:hover > .anchor, .study-h:hover > .anchor, .scripture:hover .anchor, .study-note:hover .anchor, .study-list:hover .anchor, .anchor:focus { opacity: .85; }
.anchor:hover { color: var(--brick); }
@media (hover: none) { .anchor { opacity: .3; } }

/* related framework links + prev/next */
.study-foot { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.study-related { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brick); border-radius: var(--r); padding: 16px 20px; margin-bottom: 20px; }
.study-related__h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin: 0 0 8px; }
.study-related a { display: inline-block; margin: 0 14px 4px 0; font-family: var(--serif); font-size: 1.1rem; color: var(--evergreen); }
.study-foot__back { margin: 0 0 18px; }
.study-foot__back a { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--sands-dark); text-decoration: none; }
.study-pn { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.study-pn__a { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); text-decoration: none; }
a.study-pn__a:hover { border-color: var(--sands); }
.study-pn__a span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--sands-dark); }
.study-pn__a b { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--evergreen-dark); line-height: 1.2; }
.study-pn__next { text-align: right; }
.study-pn__none { border: 0; background: none; }

/* study index */
.study-group { margin: 2.2em 0; }
.study-group__h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-family: var(--serif); font-weight: 600; color: var(--evergreen-dark); font-size: 1.5rem; margin: 0 0 .5em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.study-group__roman { font-family: var(--mono); font-size: 13px; color: #fff; background: var(--brick); border-radius: 6px; padding: 2px 9px; letter-spacing: .04em; }
.study-group__ch { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-left: auto; }
.study-group__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 680px) { .study-group__list { grid-template-columns: 1fr 1fr; } }
.study-card { display: flex; align-items: baseline; gap: 12px; padding: 11px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.study-card:hover { border-color: var(--sands); background: rgba(184, 149, 109, 0.07); }
.study-card__cite { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--sands-dark); min-width: 5.4em; }
.study-card__label { font-size: .98rem; color: var(--evergreen-dark); }

/* ===================================================== answers (Q&A pages) === */
.toc__cross--alt { background: var(--sands-dark); }
.toc__cross--alt:hover { background: var(--sands); }
.toc--answers .toc__link { padding: 10px 10px; }
.toc--answers .toc__title { font-size: 14px; }

.reader--answer .section.answer { max-width: var(--col); }
/* the direct answer — first paragraph, doubles as meta + JSON-LD answer text */
.answer .short {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem); line-height: 1.42;
  color: var(--evergreen-dark); margin: 18px 0 0; max-width: 60ch;
  padding-left: 16px; border-left: 3px solid var(--sands);
}
.answer-body { font-size: 1.04rem; }
.answer-body > p:first-child { margin-top: 0; }

/* FAQ block (visible Q&A backing the FAQPage schema) */
.faq { margin: 2.2em 0 0; padding-top: 1.4em; border-top: 1px solid var(--line); }
.faq__item { margin: 0 0 1.1em; }
.faq__q { font-family: var(--serif); font-weight: 600; color: var(--evergreen-dark); font-size: 1.18rem; line-height: 1.25; margin: 0 0 .25em; }
.faq__a { margin: 0; color: var(--ink-soft); }

/* answer footer: CTA into the framework + related questions */
.answer-foot { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.answer-cta {
  font-family: var(--serif); font-size: 1.15rem; color: var(--evergreen-dark);
  background: rgba(184, 149, 109, 0.12); border: 1px solid rgba(184, 149, 109, 0.4);
  border-radius: var(--r); padding: 14px 18px; margin: 0 0 18px;
}
.answer-related { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--brick); border-radius: var(--r); padding: 16px 20px; margin: 0 0 18px; }
.answer-related__h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); margin: 0 0 8px; }
.answer-related ul { list-style: none; margin: 0; padding: 0; }
.answer-related li { margin: .25em 0; }
.answer-related a { font-family: var(--serif); font-size: 1.1rem; color: var(--evergreen); }
.answer-foot__back { margin: 8px 0 0; }
.answer-foot__back a { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--sands-dark); text-decoration: none; }

/* answers index */
.answers-list { list-style: none; margin: 1.4em 0 0; padding: 0; display: grid; gap: 12px; }
.answer-card {
  display: block; padding: 18px 20px; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--sands);
  border-radius: var(--r); transition: border-color .15s ease, transform .15s ease;
}
.answer-card:hover { border-left-color: var(--brick); transform: translateY(-1px); }
.answer-card__q { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1.2; color: var(--evergreen-dark); margin-bottom: .3em; }
.answer-card__a { display: block; color: var(--ink-soft); font-size: .98rem; line-height: 1.5; }

/* ============================ "go deeper" — framework section → study bridge */
.go-deeper {
  max-width: var(--col); margin: 2.4em auto 0; padding: 22px 24px;
  background: var(--evergreen); color: var(--linen); border-radius: var(--r);
  box-shadow: var(--shadow);
}
.go-deeper__h { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; color: var(--sands-light); margin: 0 0 6px; }
.go-deeper__lead { font-family: var(--serif); font-size: 1.12rem; color: #fff; margin: 0 0 14px; }
.go-deeper__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.go-deeper__list a {
  display: flex; align-items: baseline; gap: 12px; padding: 10px 14px;
  background: rgba(243, 241, 235, 0.06); border: 1px solid rgba(184, 149, 109, 0.32);
  border-radius: var(--r-sm); text-decoration: none; transition: background .15s ease, border-color .15s ease;
}
.go-deeper__list a:hover { background: rgba(184, 149, 109, 0.18); border-color: var(--sands); }
.go-deeper__cite { font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: var(--sands-light); min-width: 5.6em; }
.go-deeper__label { font-size: .98rem; color: var(--linen); }
.go-deeper__all { margin: 0; }
.go-deeper__all a { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--sands-light); text-decoration: none; }
.go-deeper__all a:hover { color: #fff; }
@media print { .go-deeper { display: none !important; } }

/* "vs" badge (Section 09) — desktop only */
.compare__vs { display: none; }
@media (min-width: 680px) { .compare__vs { display: inline-flex; } }

/* =================================================== vector scene + motion ==
   Layered ridgelines that drift on scroll/pointer (app.js), a breathing sun,
   contour lines, and light motes. Distant = light "shadow"; near = dark, sharp
   "substance". Fully decorative; pointer-events:none; degrades to a static
   scene without JS and to a flat wash without SVG. */

.scene {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background-color: var(--sky-2);            /* the section palette drives this */
  transition: background-color 1s ease;      /* smooth dark→light as you read */
}
/* constant sky depth (glow near the disc + ground shading) over the shifting base */
.scene::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(58% 46% at 84% 16%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 68%, rgba(0, 0, 0, 0.16) 100%);
}
.scene__svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.scene__svg > g { will-change: transform; }

.scene__sun circle {
  fill: var(--disc);
  filter: drop-shadow(0 0 52px var(--disc-glow));
  transform-box: fill-box; transform-origin: center;
  animation: sunbreath 9s ease-in-out infinite;
  transition: fill 1s ease, filter 1s ease;
}
.scene__ridge path { stroke: none; transition: fill 1s ease; }
.scene__ridge--0 path { fill: var(--ridge-0); }
.scene__ridge--1 path { fill: var(--ridge-1); }
.scene__ridge--2 path { fill: var(--ridge-2); }
.scene__ridge--3 path { fill: var(--ridge-3); }
.scene__fore path, .scene__fore circle { fill: var(--ridge-3); transition: fill 1s ease; }
.scene__topo path { fill: none; stroke: var(--topo-line); stroke-width: 1.1; transition: stroke 1s ease; }
.scene__motes circle {
  fill: var(--mote); opacity: .5;
  transform-box: fill-box; transform-origin: center;
  animation: motedrift 13s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -1.6s);
  transition: fill 1s ease;
}

/* large per-section motif — fine line-art in the right sky, content-driven */
.scene__big .bigmotif { opacity: 0; transition: opacity .85s ease; }
.scene__big .bigmotif.is-active { opacity: .4; }
.scene__big path, .scene__big circle, .scene__big line {
  fill: none; stroke: var(--feature); stroke-width: 1.1;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke; transition: stroke 1s ease;
}

@keyframes sunbreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes motedrift { 0%, 100% { transform: translateY(0); opacity: .32; } 50% { transform: translateY(-16px); opacity: .6; } }

body[data-study] .scene { --topo-line: rgba(243, 241, 235, 0.16); }

/* ----------------------------------------------------------- section emblem */
.emblem {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--paper);
  color: var(--evergreen); margin: 0 0 14px; position: relative; z-index: 1;
  box-shadow: 0 12px 26px -18px rgba(20, 30, 32, 0.7);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .3s ease, color .3s ease;
}
.emblem svg { width: 34px; height: 34px; display: block; }
.emblem svg path, .emblem svg circle, .emblem svg line {
  fill: none; stroke: currentColor; stroke-width: 3.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.section-head:hover .emblem--head { transform: translateY(-3px) rotate(-4deg); border-color: var(--sands); color: var(--brick); }
.reader--study .emblem, .study-head .emblem { border-color: var(--line-strong); }

/* ----------------------------------------------------------- brand mark */
.brand__mark { display: inline-flex; width: 30px; height: 30px; color: var(--sands-light); }
.brand__mark svg { width: 30px; height: 30px; display: block; }
.brand__mark svg path, .brand__mark svg circle {
  fill: none; stroke: currentColor; stroke-width: 6;
  stroke-linecap: round; stroke-linejoin: round;
}
.brand:hover .brand__mark { color: #fff; }

/* --------------------------------------------- reveal-on-scroll (JS-gated) */
html.io .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
html.io .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.io .reveal { opacity: 1; transform: none; transition: none; }
  .scene__sun circle, .scene__motes circle { animation: none; }
}

/* mobile: sheets nearly span the column; keep text crisp over the scene */
@media (max-width: 1023px) {
  :root { --sheet: rgba(251, 250, 246, 0.96); }
}
@media (max-width: 520px) {
  .emblem { width: 54px; height: 54px; }
  .emblem svg { width: 30px; height: 30px; }
}

/* --------------------------------------------------------------- print */
@media print {
  .scene, .head-topo, .emblem, .brand__mark { display: none !important; }
  html { background: #fff; }
  .section { background: #fff !important; box-shadow: none !important; border: 0 !important; backdrop-filter: none !important; }
  .section-numeral { color: #000 !important; -webkit-text-stroke: 0 !important; opacity: .2; }
  .progress, .masthead, .toc, .toc-backdrop, .share, .nav-toggle, .file-note, .skip,
  .study-controls, .study-pn, .anchor, .study-foot__back { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .reader, .site-foot { margin-left: 0; }
  .reader { padding: 0; }
  .section { max-width: none; page-break-inside: auto; }
  .card, .pillar, .event, .tension, .feast, .duration, .table-wrap { box-shadow: none; break-inside: avoid; }
  .conclusion, .duration, table.data thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: #000; text-decoration: underline; }
  .site-foot { background: none; color: #000; }
}
