/* How many Christians are persecuted: a scroll story. A field of marks stays in view while the reader scrolls through
   the published figures; each passage changes what the marks count. A ledger follows with the figures side by side.
   Brand type of 5 Nov 2026: GT Sectra for headings, GT Pantheon Text for reading, GT Pantheon Micro for small text. */

@font-face { font-family: 'GT Pantheon Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Text-Regular.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Text-Regular.woff2') format('woff2'); }
@font-face { font-family: 'GT Pantheon Text'; font-style: italic; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Text-Regular-Italic.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Text-Regular-Italic.woff2') format('woff2'); }
@font-face { font-family: 'GT Pantheon Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Text-Medium.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Text-Medium.woff2') format('woff2'); }
@font-face { font-family: 'GT Pantheon Micro'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Micro-Regular.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Micro-Regular.woff2') format('woff2'); }
@font-face { font-family: 'GT Pantheon Micro'; font-style: normal; font-weight: 500; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Pantheon-Micro-Medium.woff2') format('woff2'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Pantheon-Micro-Medium.woff2') format('woff2'); }
@font-face { font-family: 'GT Sectra'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Sectra-Regular.woff') format('woff'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Regular.woff') format('woff'); }
@font-face { font-family: 'GT Sectra'; font-style: italic; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/GT-Sectra-Regular-Italic.woff') format('woff'), url('https://christianpure.com/wp-content/uploads/fonts/GT-Sectra-Regular-Italic.woff') format('woff'); }

:root {
  --page: #fffbf9;
  --band: #f8f2e8;
  --ink: #002159;
  --text: #002b63;
  --muted: #56607a;
  --gold: #c58c23;
  --line: #e6ded3;
  --focus: #0951b1;
  --rest: #d9cab0;        /* marks outside the figure */
  --part: #6f8fc0;        /* the wider group */
  --core: #002159;        /* the narrower group inside it */
  --head-font: 'GT Sectra', Georgia, 'Times New Roman', serif;
  --body-font: 'GT Pantheon Text', Georgia, 'Times New Roman', serif;
  --label-font: 'GT Pantheon Micro', Georgia, 'Times New Roman', serif;
  --radius: 4px;
  --head-h: 52px;
}

* { box-sizing: border-box; }
html { background: var(--page); color: var(--text); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body-font); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button, select { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 4px 10px; padding-top: max(4px, env(safe-area-inset-top)); background: var(--page); border-bottom: 1px solid var(--line);
  min-height: var(--head-h);
}
.back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; padding: 0 6px 0 2px; font: 400 16px/1 var(--body-font); color: var(--ink); text-decoration: none; white-space: nowrap; }
.back-arrow { font: 400 30px/1 var(--body-font); margin-top: -3px; }
.back-word, .back-more { display: none; }
.back-more { margin-left: 0.24em; }
.back:hover .back-word, .back:hover .back-more { text-decoration: underline; }
.head h1 { margin: 0; min-width: 0; text-align: center; text-wrap: balance; font: 400 18px/1.12 var(--head-font); letter-spacing: -0.01em; color: var(--ink); }
.about-btn, .btn { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; font: 400 16px/1 var(--body-font); color: var(--ink); }
.about-btn:hover, .btn:hover { border-color: var(--gold); }

/* ---------- the story: the field stays, the words pass ---------- */
.story { position: relative; }
.stage {
  position: sticky; top: 0; z-index: 5; display: flex; flex-direction: column; height: 52vh; height: 52svh; min-height: 320px;
  background: var(--page); border-bottom: 1px solid var(--line); padding: 10px 16px 8px;
}
.figure { flex: 0 0 auto; }
.fig-n { margin: 0; font: 400 44px/1 var(--head-font); letter-spacing: -0.02em; color: var(--ink); }
.fig-u { margin: 4px 0 8px; font: 400 15px/1.3 var(--label-font); color: var(--text); max-width: 34em; text-wrap: pretty; }
.view { position: relative; flex: 1 1 auto; min-height: 0; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity 0.22s; }
#field.out { opacity: 0; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; font: 400 16px/1.3 var(--body-font); color: var(--muted); background: var(--page); }
.key { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 8px 0 0; min-height: 20px; font: 500 13px/1.3 var(--label-font); color: var(--ink); }
.key span { min-width: 0; }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: -1px; background: var(--rest); }
.key i.sq { border-radius: 2px; }
.key i.core { background: var(--core); }
.key i.part { background: var(--part); }

.steps { position: relative; z-index: 1; padding: 0 16px; }
.step { min-height: 62vh; min-height: 62svh; padding: 28px 0 18px; max-width: 34em; margin: 0 auto; opacity: 0.45; transition: opacity 0.3s; }
.step.on { opacity: 1; }
.step:last-child { min-height: 50svh; }
.step .kicker { margin: 0 0 6px; font: 500 14px/1.2 var(--label-font); color: var(--muted); }
.step h3 { margin: 0 0 12px; font: 400 27px/1.15 var(--head-font); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.step p { margin: 0 0 12px; }

/* ---------- the counts ---------- */
.counts { background: var(--band); border-top: 1px solid var(--line); padding: 44px 16px 48px; position: relative; z-index: 6; }
.counts-in, .end-in { max-width: 1060px; margin: 0 auto; }
.eyebrow { margin: 0 0 8px; font: 500 14px/1.2 var(--label-font); color: var(--muted); }
.counts h2, .end h2 { margin: 0 0 14px; font: 400 32px/1.12 var(--head-font); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; max-width: 22em; }
.counts-lede { margin: 0 0 26px; max-width: 40em; }
.ledger { display: grid; gap: 0; }
.axis { display: none; }
.row { display: grid; grid-template-columns: 1fr; gap: 6px 22px; padding: 18px 0; border-top: 1px solid #ddd3c2; }
.row p { margin: 0; }
.row .fig { font: 400 40px/1 var(--head-font); color: var(--ink); letter-spacing: -0.02em; }
.row .fig small { display: block; margin-top: 6px; font: 500 14px/1.25 var(--label-font); letter-spacing: 0; color: var(--text); }
.row .who { font: 500 16px/1.3 var(--body-font); color: var(--ink); margin: 0; }
.row .by { margin: 4px 0 0; font: 400 14px/1.3 var(--label-font); color: var(--muted); }
.row .how { margin: 0; font-size: 16px; line-height: 1.45; }
.span { position: relative; height: 26px; margin: 4px 0 2px; }
.span .track { position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: #ddd3c2; }
.span .bar { position: absolute; top: 7px; height: 12px; border-radius: 2px; background: var(--ink); min-width: 4px; }
.span .bar.open::before { content: ''; position: absolute; left: -7px; top: 0; border: 6px solid transparent; border-right-color: var(--ink); border-left: 0; }
.span .tick { position: absolute; top: 4px; width: 1px; height: 18px; background: #cfc4b0; }
.row .when { margin: 0 0 8px; font: 500 14px/1.3 var(--label-font); color: var(--ink); }
.years { position: relative; height: 16px; font: 400 12px/1 var(--label-font); color: var(--muted); }
.years span { position: absolute; top: 0; transform: translateX(-50%); }
.counts-after { margin-top: 26px; padding-top: 22px; border-top: 1px solid #ddd3c2; max-width: 40em; }
.counts-after p { margin: 0 0 12px; }

.end { padding: 44px 16px 64px; }
.end p { max-width: 40em; margin: 0 0 12px; }
.end-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 22px !important; }
.btn-primary { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: var(--radius); background: var(--ink); color: #fffdf8; text-decoration: none; font: 500 16px/1 var(--label-font); }
.btn-primary:hover { background: #001b43; }
.end-more { font: 400 16px/1.2 var(--body-font); }

/* ---------- About ---------- */
dialog { width: min(720px, calc(100vw - 24px)); max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--page); color: var(--text); }
dialog::backdrop { background: rgba(0, 20, 55, 0.45); }
.about-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 20px; background: var(--page); border-bottom: 1px solid var(--line); }
.about-head h2 { margin: 0; font: 400 22px/1.15 var(--head-font); color: var(--ink); }
.about-body { padding: 16px 20px 24px; font-size: 17px; }
.about-body h3 { margin: 20px 0 8px; font: 400 20px/1.2 var(--head-font); color: var(--ink); }
.about-body h3:first-child { margin-top: 0; }
.about-body p { margin: 0 0 10px; }
.about-body ul { margin: 0 0 10px; padding-left: 20px; }
.about-body li { margin-bottom: 8px; }

/* one passage's field alone (?still=n), for the entry's pictures */
.still .head, .still .figure, .still .key, .still .steps, .still .counts, .still .end { display: none !important; }
.still .story { display: block; }
.still .stage { position: static; height: 100vh; min-height: 0; border: 0; padding: 18px; }

/* ---------- wider screens ---------- */
@media (min-width: 560px) {
  .back-word, .back-more { display: inline; }
  .head h1 { font-size: 20px; }
  .fig-n { font-size: 56px; }
  .fig-u { font-size: 16px; }
  .key { font-size: 14px; }
}
@media (min-width: 900px) {
  body { font-size: 19px; }
  .head { position: sticky; top: 0; z-index: 20; }
  .story { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(360px, 1fr); }
  .stage { top: var(--head-h); height: calc(100vh - var(--head-h)); height: calc(100svh - var(--head-h)); border-bottom: 0; border-right: 1px solid var(--line); padding: 28px 40px 22px; }
  .fig-n { font-size: 84px; }
  .fig-u { font-size: 18px; margin: 8px 0 18px; }
  .key { font-size: 15px; margin-top: 14px; gap: 4px 24px; }
  .key i { width: 12px; height: 12px; }
  .steps { padding: 0 40px; }
  .step { min-height: 78vh; padding: 22vh 0 0; max-width: 26em; }
  .step:first-child { padding-top: 12vh; }
  .step:last-child { min-height: 70vh; }
  .step h3 { font-size: 32px; }
  .counts { padding: 72px 40px 80px; }
  .counts h2, .end h2 { font-size: 42px; }
  .axis { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 28px; padding-bottom: 6px; }
  .axis .years { grid-column: 3; }
  .row { grid-template-columns: 236px minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; padding: 20px 0; }
  .row .fig { font-size: 40px; overflow-wrap: break-word; }
  .row .c3 .years { display: none; }
  .end { padding: 72px 40px 96px; }
}
@media (prefers-reduced-motion: reduce) {
  #field, .step { transition: none; }
}

/* ---------- the key's marks: a block or tile, a cross, a line ---------- */
.key i { background: var(--c); border-radius: 2px; }
.key i.x { width: 3px; height: 13px; border-radius: 0; position: relative; margin-inline: 4px 10px; vertical-align: -2px; }
.key i.x::after { content: ""; position: absolute; left: -4px; top: 3px; width: 11px; height: 3px; background: var(--c); }
.key i.ln { width: 18px; height: 3px; border-radius: 0; vertical-align: 4px; }
