/* ============================================================
   One-page scroller, Bauhaus pastel. Mobile first.
   Each section owns a color; dividers are short cream strips.
   ============================================================ */

:root {
  --peri: #b9c4f2;
  --peach: #ffd8c6;
  --mint: #c7ead9;
  --lilac: #e3d6f5;
  --butter: #fff0b8;
  --cream: #fffaf2;

  --night: #1b1d3a;
  --ink-peach: #3a1d14;
  --ink-mint: #12352a;
  --ink-lilac: #2a1840;
  --ink-butter: #2e2410;

  --life: #e2603a;
  --forever: #4b55b5;
  --gold: #e8a800;
  --amber: #a15c00;
  --green: #2e8f6b;
  --purple: #7a4fc4;

  --disp: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --col: 600px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--night);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--forever); outline-offset: 3px; border-radius: 6px; }

.sym { width: 100%; height: 100%; display: block; fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- section scaffolding ---------- */
.sec {
  position: relative;
  overflow: hidden;
  padding: 56px var(--gutter-r) 64px var(--gutter);
}
.wrap { max-width: var(--col); margin: 0 auto; display: grid; gap: 18px; position: relative; }
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.title {
  font-family: var(--disp);
  font-weight: 800;
  font-size: clamp(32px, 9vw, 52px);
  line-height: 1;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
.lede { margin: 0; font-size: 17px; font-weight: 600; max-width: 34ch; }
.small { font-size: 14px; }
.tap-hint { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; margin: 0; }

.s-cover   { background: var(--peri);   color: var(--night); }
.s-matters { background: var(--peach);  color: var(--ink-peach); }
.s-god     { background: var(--mint);   color: var(--ink-mint); }
.s-rel     { background: var(--lilac);  color: var(--ink-lilac); }
.s-jesus   { background: var(--butter); color: var(--ink-butter); }
.s-matters .kicker { color: var(--life); }
.s-god .kicker     { color: var(--green); }
.s-rel .kicker     { color: var(--purple); }
.s-jesus .kicker   { color: var(--amber); }

/* ---------- divider strip ---------- */
.divider {
  background: var(--cream);
  color: var(--night);
  padding: 22px var(--gutter-r) 22px var(--gutter);
  border-block: 1px solid rgba(27, 29, 58, .08);
}
.divider .wrap { gap: 2px; }
.divider small { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
.divider h2 { margin: 0; font-family: var(--disp); font-weight: 800; font-size: clamp(24px, 6.5vw, 32px); line-height: 1.05; letter-spacing: -.025em; }

/* ---------- 0. cover: orbit ---------- */
.s-cover {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 28px;
  padding-bottom: 40px;
}
.orbit {
  --size: min(82vw, 440px);
  --R: calc(var(--size) * .43);
  --chip: calc(var(--size) * .2);
  position: relative;
  width: var(--size);
  height: var(--size);
  margin: 12px auto 0;
  flex: none;
}
.orbit .track { position: absolute; inset: 7%; border-radius: 50%; border: 1.5px dashed rgba(27, 29, 58, .25); }
.orbit .core {
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 0 14px rgba(255, 250, 242, .45), 0 0 60px 20px rgba(255, 250, 242, .8);
}
.orbit .ring { position: absolute; inset: 0; }
.orbit .slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--chip);
  height: var(--chip);
  margin: calc(var(--chip) / -2);
  transform: rotate(var(--a)) translate(var(--R)) rotate(calc(-1 * var(--a)));
}
.orbit .chip {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 22%;
  background: var(--c);
  color: var(--night);
  box-shadow: 0 6px 14px -8px rgba(27, 29, 58, .5);
}
.cover-text { margin-top: auto; padding-top: 28px; }
.cover-text .title { font-size: clamp(34px, 10vw, 60px); }
.cover-text .lede { font-size: 19px; color: #9a3412; margin-top: 12px; }
.scroll-cue {
  align-self: center;
  margin-top: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--night);
  color: var(--cream);
  text-decoration: none;
  font-size: 20px;
}

/* ---------- 1. why it matters: endless dots ---------- */
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; max-width: 420px; }
.dots i { aspect-ratio: 1; border-radius: 50%; background: var(--life); display: block; transition: transform .25s, background .25s, box-shadow .25s; }
.dots i.ret { background: var(--gold); }
.dots.armed i { background: rgba(58, 29, 20, .12); transform: scale(.6); }
.dots.armed i.on { background: var(--life); transform: none; }
.dots.armed i.ret.on { background: var(--gold); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend b { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.after { font-family: var(--disp); font-weight: 800; font-size: 22px; color: var(--forever); margin: 8px 0 0; }
.stream {
  height: 190px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: var(--forever) radial-gradient(circle, var(--peri) 0 4.5px, transparent 5px) 0 0 / 26px 26px;
}
.stream .count {
  position: absolute;
  left: 16px;
  bottom: 12px;
  font-family: var(--disp);
  font-weight: 800;
  font-size: 30px;
  color: var(--cream);
  font-variant-numeric: tabular-nums;
}
.stream .count small { display: block; font-family: var(--mono); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.punch { font-family: var(--disp); font-weight: 800; font-size: clamp(28px, 8vw, 42px); line-height: 1.02; letter-spacing: -.03em; margin: 10px 0 0; text-wrap: balance; }
.punch em { font-style: normal; color: var(--forever); }

/* ---------- 2. god is real: case builder ---------- */
.meter {
  background: var(--cream);
  border-radius: 18px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
}
.meter .ring {
  --p: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), rgba(18, 53, 42, .12) 0);
  font-family: var(--mono);
  font-size: 13px;
}
.meter .ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--cream); }
.meter .ring span { position: relative; }
.meter b { display: block; font-size: 15px; }
.meter small { font-size: 13px; opacity: .75; }
.clues { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.clue {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  position: relative;
  min-height: 132px;
  border-radius: 20px;
  padding: 12px 14px;
  background: var(--c);
  color: var(--ink-mint);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform .15s;
}
.clue:active { transform: scale(.97); }
.clue .art { width: 60px; height: 60px; }
.clue b { font-family: var(--disp); font-weight: 800; font-size: 18px; line-height: 1.05; }
.clue b small { display: block; font-family: var(--body); font-weight: 600; font-size: 12px; opacity: .75; margin-top: 2px; }
.plus {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: currentColor;
  display: grid;
  place-items: center;
}
.plus::after { content: "+"; color: var(--cream); font-weight: 800; font-size: 17px; line-height: 1; }
.clue.seen .plus { background: var(--green); }
.clue.seen .plus::after { content: "✓"; font-size: 14px; }
.lock {
  min-height: 132px;
  border-radius: 20px;
  border: 2px dashed rgba(18, 53, 42, .35);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}
.lock button { all: unset; cursor: pointer; font-size: 12px; text-decoration: underline; opacity: .7; }
.lock.done { background: var(--ink-mint); color: var(--cream); border-color: transparent; }
.lock.done b { font-family: var(--disp); font-size: 19px; line-height: 1.05; }

/* ---------- 3. which religion: rules + filter ---------- */
.rules { display: grid; gap: 10px; }
.rule {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, .55);
  border-radius: 20px;
  padding: 12px 14px;
}
.rule .ico { width: 54px; height: 54px; border-radius: 50%; padding: 12px; background: var(--c); }
.rule b { font-family: var(--disp); font-weight: 800; font-size: 20px; line-height: 1.05; display: block; }
.rule span { display: block; font-size: 15px; line-height: 1.35; margin-top: 2px; }
.sub-panel { margin-top: 44px; }

.funnel { position: relative; height: 380px; max-width: 420px; width: 100%; margin: 6px auto 0; }
.bar { position: absolute; left: 0; right: 0; height: 10px; display: flex; justify-content: space-between; }
.bar::before, .bar::after { content: ""; width: calc(50% - 28px); height: 100%; background: var(--ink-lilac); border-radius: 5px; }
.bar small { position: absolute; left: 0; bottom: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; max-width: 46%; line-height: 1.25; }
.fall {
  all: unset;
  cursor: pointer;
  position: absolute;
  left: 50%;
  top: 0;
  margin-left: -22px;
  transform: translate(var(--x), var(--y));
}
.fall .chip { width: 44px; height: 44px; }
.fall em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 3px; font-style: normal; font-size: 11px; font-weight: 700; white-space: nowrap; }
.fall.pass em { bottom: auto; top: 100%; margin: 6px 0 0; font-family: var(--disp); font-weight: 800; font-size: 18px; }
.rchip {
  display: block;
  border-radius: 50%;
  padding: 9px;
  background: var(--c);
  color: var(--ink-lilac);
  box-shadow: 0 4px 10px -6px rgba(42, 24, 64, .6);
}
.rchip.win { box-shadow: 0 0 0 5px rgba(232, 168, 0, .35), 0 0 26px 8px rgba(255, 240, 184, .95); }
.funnel.armed .fall { opacity: 0; }
.funnel.play .fall { animation: drop 1.6s cubic-bezier(.5, 0, .5, 1) both; animation-delay: var(--dl); }
.funnel.play .fall.pass { animation-name: through; animation-duration: 2s; }
@keyframes drop {
  0% { transform: translate(0, -70px); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(0, var(--y)); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)); opacity: 1; }
}
@keyframes through {
  0% { transform: translate(0, -70px); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate(0, var(--y)); opacity: 1; }
}
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ghost {
  all: unset;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid currentColor;
}

/* ---------- 4. jesus: claim, facts, alternatives ---------- */
.dawn {
  position: relative;
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(#ffe39a, #fff6d8 65%);
}
.dawn .sun { position: absolute; width: 130px; height: 130px; border-radius: 50%; background: var(--gold); left: 50%; margin-left: -110px; top: 30px; box-shadow: 0 0 40px 14px rgba(255, 214, 102, .7); }
.dawn .ground { position: absolute; left: -10%; right: -10%; bottom: 0; height: 90px; border-radius: 50% 50% 0 0 / 30% 30% 0 0; background: #f2d27a; }
.dawn .rock { position: absolute; right: 8%; bottom: 30px; width: 170px; height: 140px; border-radius: 85px 85px 0 0; background: #c9a35a; }
.dawn .door { position: absolute; right: calc(8% + 54px); bottom: 30px; width: 62px; height: 80px; border-radius: 31px 31px 0 0; background: var(--ink-butter); }
.dawn .stone { position: absolute; right: calc(8% + 150px); bottom: 30px; width: 74px; height: 74px; border-radius: 50%; background: #e7c06c; border: 4px solid #a8813a; }
.claim-quote {
  margin: 0;
  background: var(--cream);
  border-radius: 20px;
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}
.claim-quote p { margin: 0; font-family: var(--disp); font-weight: 700; font-size: 21px; line-height: 1.15; }
.claim-quote cite { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--amber); }
.facts-head { font-family: var(--disp); font-weight: 800; font-size: 26px; margin: 18px 0 0; letter-spacing: -.02em; }

.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter));
  padding: 4px var(--gutter-r) 12px var(--gutter);
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.fact {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  flex: none;
  width: min(74vw, 280px);
  min-height: 330px;
  scroll-snap-align: start;
  border-radius: 24px;
  padding: 18px;
  background: var(--c);
  color: var(--ink-butter);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 22px -16px rgba(46, 36, 16, .6);
}
.fact .num { font-family: var(--disp); font-weight: 800; font-size: 60px; line-height: .85; color: var(--amber); }
.fact b { font-family: var(--disp); font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.03em; }
.fact .pic { flex: 1; display: grid; place-items: center; min-height: 110px; }
.fact .pic span { width: 108px; height: 108px; border-radius: 50%; background: rgba(255, 255, 255, .6); padding: 22px; }
.fact .one { font-size: 14px; font-weight: 600; }
.fact .more { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.pager { display: flex; gap: 6px; justify-content: center; }
.pager i { width: 8px; height: 8px; border-radius: 50%; background: rgba(46, 36, 16, .2); display: block; transition: background .2s, width .2s; }
.pager i.on { background: var(--ink-butter); width: 20px; border-radius: 4px; }

.agreed { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.agreed div {
  border-radius: 14px;
  padding: 10px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  background: rgba(255, 255, 255, .55);
  display: grid;
  gap: 6px;
  justify-items: center;
  align-content: start;
}
.agreed .mk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: rgba(46, 36, 16, .1); }
.agreed .y .mk { background: var(--mint); }
.agreed .n .mk { background: var(--peach); }
.agreed .p .mk { background: var(--butter); border: 1.5px solid var(--gold); }
.agreed .y { background: var(--cream); }
.theories { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theory {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  border-radius: 16px;
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  background: rgba(255, 255, 255, .5);
  border: 2px solid transparent;
}
.theory.on { border-color: var(--ink-butter); background: var(--cream); }
.theory.rose { grid-column: 1 / -1; background: var(--ink-butter); color: var(--cream); text-align: center; font-family: var(--disp); font-size: 18px; }
.theory.rose.on { border-color: var(--gold); box-shadow: 0 0 22px 4px rgba(232, 168, 0, .5); }
.verdict { min-height: 66px; margin: 0; font-size: 15px; }
.verdict b { font-family: var(--disp); }

/* ---------- 5. what now ---------- */
.s-end { background: var(--night); color: var(--cream); text-align: center; }
.s-end .wrap { justify-items: center; }
.s-end .kicker { color: var(--butter); }
.s-end .lede { max-width: 36ch; font-weight: 400; opacity: .9; }
.filled {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink-butter);
  padding: 38px;
  margin: 10px 0 6px;
  box-shadow: 0 0 0 16px rgba(255, 250, 242, .12), 0 0 70px 24px rgba(255, 240, 184, .45);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.cta {
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--butter);
  color: var(--ink-butter);
}
.cta.alt { background: transparent; color: var(--cream); border: 2px solid rgba(255, 250, 242, .5); }
.foot { font-size: 12px; opacity: .55; margin-top: 30px; }

/* ---------- pop-up (bottom sheet on phones, card on wide screens) ---------- */
.pop {
  border: 0;
  padding: 0;
  margin: auto auto 0;
  width: 100%;
  max-width: 560px;
  max-height: 85svh;
  background: var(--cream);
  color: var(--night);
  border-radius: 26px 26px 0 0;
  overflow: auto;
}
.pop::backdrop { background: rgba(27, 29, 58, .45); }
.pop[open] { animation: sheet .35s cubic-bezier(.3, 1.2, .5, 1); }
@keyframes sheet { from { transform: translateY(40%); opacity: 0; } }
.pop .inner { padding: 14px 22px calc(26px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; }
.pop .grab { width: 44px; height: 5px; border-radius: 3px; background: rgba(27, 29, 58, .2); justify-self: center; }
.pop .x {
  all: unset;
  cursor: pointer;
  position: absolute;
  right: 16px;
  top: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(27, 29, 58, .08);
  font-size: 16px;
}
.pop .hd { display: flex; align-items: center; gap: 14px; padding-right: 40px; }
.pop .hd .art { width: 64px; height: 64px; border-radius: 50%; padding: 13px; flex: none; }
.pop .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.pop h3 { margin: 0; font-family: var(--disp); font-weight: 800; font-size: 26px; line-height: 1.05; letter-spacing: -.02em; }
.pop p { margin: 0; font-size: 16px; line-height: 1.5; }
.pop .marks { display: flex; flex-wrap: wrap; gap: 6px; }
.pop .marks span { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; }
.pop .marks .y { background: var(--mint); }
.pop .marks .n { background: var(--peach); }
.pop .src { font-family: var(--mono); font-size: 12px; opacity: .7; }
.pop .go {
  justify-self: start;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--night);
  color: var(--cream);
}

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .sec { padding-top: 88px; padding-bottom: 96px; }
  .divider { padding-top: 28px; padding-bottom: 28px; }
  .clues { grid-template-columns: repeat(3, 1fr); }
  .pop { margin: auto; border-radius: 26px; }
  .s-cover .wrap { width: 100%; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .orbit .ring { animation: spin 60s linear infinite; }
  .orbit .ring .chip { animation: spin 60s linear infinite reverse; }
  .orbit .core { animation: breathe 5s ease-in-out infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes breathe { 50% { box-shadow: 0 0 0 22px rgba(255, 250, 242, .3), 0 0 80px 30px rgba(255, 250, 242, .9); } }
  .scroll-cue { animation: nudge 2.2s ease-in-out infinite; }
  @keyframes nudge { 50% { transform: translateY(5px); } }
  .stream { animation: flow 3s linear infinite; }
  @keyframes flow { to { background-position: 0 -26px; } }
  .clue .art .sym { animation: bob 4s ease-in-out infinite; animation-delay: var(--dl, 0s); }
  @keyframes bob { 50% { transform: translateY(-4px) rotate(-4deg); } }
  .rchip.win { animation: shine 2.4s ease-in-out infinite; }
  @keyframes shine { 50% { box-shadow: 0 0 0 8px rgba(232, 168, 0, .2), 0 0 34px 12px rgba(255, 240, 184, 1); } }
  .dawn.play .sun { animation: rise 2.4s cubic-bezier(.3, 1.1, .5, 1) both; }
  @keyframes rise { from { transform: translateY(130px); } }
  .dawn.play .stone { animation: roll 1.6s cubic-bezier(.3, 1.2, .5, 1) both .9s; }
  @keyframes roll { from { transform: translateX(80px) rotate(170deg); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   Reader: full articles as a full-screen pop-up
   ============================================================ */
.reader {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  background: var(--cream);
  color: var(--night);
  overflow: hidden;
}
.reader::backdrop { background: rgba(27, 29, 58, .55); }
.reader[open] { display: flex; flex-direction: column; animation: sheet .35s cubic-bezier(.3, 1.1, .5, 1); }
.reader-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter-r) 10px var(--gutter);
  background: var(--rb, var(--peri));
  color: var(--ri, var(--night));
}
.reader-bar .crumb { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rbtn {
  all: unset;
  cursor: pointer;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .55);
  font-size: 17px;
  font-weight: 700;
}
.rbtn[hidden] { display: none; }
.reader-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

.r-hero { background: var(--rb); color: var(--ri); padding: 8px var(--gutter-r) 34px var(--gutter); position: relative; overflow: hidden; }
.r-hero::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .28); right: -110px; top: -120px; }
.r-hero .wrap { gap: 14px; z-index: 1; }
.r-icon { width: 92px; height: 92px; border-radius: 50%; padding: 20px; background: var(--cream); color: var(--ri); }
.r-hero h2 { margin: 0; font-family: var(--disp); font-weight: 800; font-size: clamp(32px, 9vw, 48px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.r-short { background: var(--cream); color: var(--night); border-radius: 20px; padding: 14px 16px; display: grid; gap: 4px; }
.r-short small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; }
.r-short p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }

.r-body { padding: 30px var(--gutter-r) 40px var(--gutter); }
.r-body .wrap { gap: 16px; }
.r-h { margin: 18px 0 0; font-family: var(--disp); font-weight: 800; font-size: clamp(25px, 7vw, 32px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.r-h:first-child { margin-top: 0; }
.r-p { margin: 0; font-size: 17px; line-height: 1.55; max-width: 60ch; }
.r-note { margin: 0; font-size: 14px; line-height: 1.5; opacity: .75; padding-left: 14px; border-left: 3px solid var(--rb); }
.r-take { margin: 6px 0 0; background: var(--night); color: var(--cream); border-radius: 20px; padding: 16px 18px; font-size: 16px; line-height: 1.5; }
.r-take::before { content: "The upshot"; display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--butter); margin-bottom: 4px; }
.r-fig { background: var(--rb2, #fff); border-radius: 22px; padding: 16px; display: grid; gap: 12px; }
.r-fig > .t { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }

/* bars */
.r-bars { display: grid; gap: 12px; }
.r-bar { display: grid; gap: 5px; }
.r-bar .top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.r-bar .top b { font-family: var(--disp); font-size: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.r-bar .track { height: 14px; border-radius: 7px; background: rgba(27, 29, 58, .08); overflow: hidden; }
.r-bar .fill { display: block; height: 100%; width: max(var(--w), 6px); border-radius: 7px; background: var(--ra); }
.r-bar.dim .fill { background: rgba(27, 29, 58, .35); }

/* flow */
.r-flow { display: grid; gap: 0; justify-items: stretch; }
.r-flow .step { background: var(--cream); border-radius: 16px; padding: 12px 14px; font-size: 15px; font-weight: 600; line-height: 1.35; border: 2px solid rgba(27, 29, 58, .1); }
.r-flow .step.end { background: var(--night); color: var(--cream); border-color: transparent; }
.r-flow .arr { justify-self: center; width: 2px; height: 18px; background: var(--night); position: relative; opacity: .5; }
.r-flow .arr::after { content: ""; position: absolute; left: -5px; bottom: -2px; border: 6px solid transparent; border-top: 7px solid var(--night); border-bottom: 0; }

/* versus */
.r-vs { display: grid; gap: 10px; }
.r-vs .col { border-radius: 18px; padding: 14px; display: grid; gap: 8px; background: rgba(27, 29, 58, .06); }
.r-vs .col.b { background: var(--night); color: var(--cream); }
.r-vs .col h4 { margin: 0; font-family: var(--disp); font-weight: 800; font-size: 20px; }
.r-vs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.r-vs li { font-size: 15px; line-height: 1.35; padding-left: 18px; position: relative; }
.r-vs li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 50%; background: var(--ra); }
.r-vs .mid { justify-self: center; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; background: var(--ra); color: var(--cream); }
@media (min-width: 640px) { .r-vs { grid-template-columns: 1fr auto 1fr; align-items: stretch; } .r-vs .mid { align-self: center; } }

/* pairs */
.r-pairs { display: grid; gap: 8px; }
.r-pair { display: grid; grid-template-columns: 1fr; border-radius: 16px; overflow: hidden; }
.r-pair .a { background: var(--night); color: var(--cream); padding: 10px 14px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.r-pair .b { background: var(--cream); padding: 10px 14px; font-size: 14.5px; line-height: 1.4; border: 2px solid rgba(27, 29, 58, .08); border-top: 0; border-radius: 0 0 16px 16px; }

/* forks */
.r-fork { display: grid; gap: 8px; }
.r-fork .opt { border-radius: 18px; padding: 14px; background: var(--cream); border: 2px solid rgba(27, 29, 58, .1); display: grid; gap: 4px; }
.r-fork .opt b { font-family: var(--disp); font-weight: 800; font-size: 19px; display: flex; align-items: center; gap: 8px; }
.r-fork .opt b::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--ra); flex: none; }
.r-fork .opt span { font-size: 15px; line-height: 1.4; }
.r-fork .opt.hi { border-color: var(--night); box-shadow: 0 0 0 4px var(--rb); }
@media (min-width: 640px) { .r-fork { grid-template-columns: repeat(3, 1fr); } }

/* hub of sources */
.r-hub { display: grid; gap: 12px; justify-items: center; }
.r-hub .center { background: var(--night); color: var(--cream); border-radius: 999px; padding: 12px 18px; font-family: var(--disp); font-weight: 700; font-size: 16px; text-align: center; line-height: 1.2; }
.r-hub .grp { width: 100%; display: grid; gap: 8px; }
.r-hub .grp small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--cream); border: 2px solid rgba(27, 29, 58, .1); line-height: 1.25; }
.chips.alt span { background: var(--ra); color: var(--cream); border-color: transparent; }
.chips span em { font-style: normal; font-family: var(--mono); font-size: 11px; opacity: .75; margin-left: 4px; }

/* quotes */
.r-quote { margin: 0; background: var(--cream); border-radius: 20px; padding: 16px 18px; display: grid; gap: 8px; border: 2px solid rgba(27, 29, 58, .08); position: relative; }
.r-quote::before { content: "\201C"; position: absolute; right: 14px; top: -6px; font-family: var(--disp); font-weight: 800; font-size: 80px; line-height: 1; color: var(--ra); opacity: .5; }
.r-quote p { margin: 0; font-family: var(--disp); font-weight: 700; font-size: 18px; line-height: 1.3; padding-right: 24px; }
.r-quote cite { font-style: normal; font-family: var(--mono); font-size: 12px; opacity: .75; }

/* dials: a narrow life-permitting window */
.r-dials { display: grid; gap: 16px; }
.r-dial .top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15px; }
.r-dial .top span { font-family: var(--mono); font-weight: 500; font-size: 12px; text-align: right; }
.r-dial .scale { position: relative; height: 34px; border-radius: 10px; margin-top: 6px; background: repeating-linear-gradient(90deg, rgba(27, 29, 58, .14) 0 2px, transparent 2px 10px), rgba(27, 29, 58, .06); overflow: hidden; }
.r-dial .win { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--w); transform: translateX(-50%); background: var(--gold); box-shadow: 0 0 14px 4px rgba(232, 168, 0, .7); }
.r-dial .ends { display: flex; justify-content: space-between; font-size: 12px; opacity: .7; margin-top: 4px; }

/* ladder of powers of ten */
.r-ladder { display: grid; gap: 10px; }
.r-rung .top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; }
.r-rung .top b { font-family: var(--disp); font-size: 18px; white-space: nowrap; }
.r-rung .track { height: 12px; margin-top: 4px; border-radius: 6px; background: rgba(27, 29, 58, .08); }
.r-rung .fill { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--forever); }
.r-rung.top-rung .fill { background: var(--gold); }

/* DNA codons */
.r-codons { display: flex; flex-wrap: wrap; gap: 6px; }
.r-codons span { font-family: var(--mono); font-weight: 500; font-size: 15px; padding: 7px 10px; border-radius: 10px; color: var(--cream); background: var(--c); }
.r-map { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14.5px; }
.r-map b { font-family: var(--mono); font-weight: 500; }

/* icon row */
.r-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.r-icons .it { border-radius: 18px; background: var(--cream); padding: 12px 8px; display: grid; justify-items: center; gap: 6px; text-align: center; border: 2px solid rgba(27, 29, 58, .08); }
.r-icons .it .ic { width: 52px; height: 52px; border-radius: 50%; padding: 11px; background: var(--rb); }
.r-icons .it b { font-size: 13px; line-height: 1.25; }
.r-icons .it span { font-family: var(--disp); font-weight: 800; font-size: 16px; color: var(--ra); }
.r-icons .it.q { background: var(--night); color: var(--cream); }
.r-icons .it.q span { color: var(--butter); }

/* expansion cone */
.r-cone svg { width: 100%; height: auto; display: block; }

/* theory table */
.r-table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.r-table { border-collapse: separate; border-spacing: 0 5px; width: 100%; min-width: 480px; font-size: 13px; }
.r-table th { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; padding: 0 4px 4px; vertical-align: bottom; line-height: 1.2; }
.r-table th:first-child { text-align: left; }
.r-table td { background: var(--cream); padding: 8px 4px; text-align: center; }
.r-table td:first-child { text-align: left; font-weight: 700; border-radius: 12px 0 0 12px; padding-left: 10px; }
.r-table td:last-child { border-radius: 0 12px 12px 0; }
.r-table tr.win td { background: var(--night); color: var(--cream); }
.mk { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.mk.y { background: var(--mint); color: var(--ink-mint); }
.mk.n { background: var(--peach); color: var(--ink-peach); }
.swipe { font-family: var(--mono); font-size: 11px; opacity: .6; margin: 0; }

/* next steps pieces */
.r-who { display: grid; gap: 8px; }
.r-who button { all: unset; cursor: pointer; box-sizing: border-box; border-radius: 18px; padding: 14px; background: var(--cream); border: 2px solid rgba(27, 29, 58, .1); display: grid; gap: 4px; }
.r-who button b { font-family: var(--disp); font-weight: 800; font-size: 19px; }
.r-who button span { font-size: 15px; line-height: 1.35; }
.r-who button i { font-style: normal; font-weight: 700; font-size: 13px; color: var(--ra); }
.r-prayer { background: var(--night); color: var(--cream); border-radius: 22px; padding: 18px; display: grid; gap: 8px; }
.r-prayer small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--butter); }
.r-prayer p { margin: 0; font-family: var(--disp); font-weight: 700; font-size: 19px; line-height: 1.35; }
.r-plan { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.r-plan div { border-radius: 14px; background: var(--cream); padding: 10px; display: grid; gap: 2px; border: 2px solid rgba(27, 29, 58, .08); }
.r-plan small { font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .65; }
.r-plan b { font-size: 15px; }
.r-links { display: grid; gap: 8px; }
.r-links a { text-decoration: none; border-radius: 16px; padding: 12px 14px; background: var(--night); color: var(--cream); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.r-links a span { display: grid; gap: 1px; }
.r-links a b { font-size: 15px; }
.r-links a small { font-size: 13px; opacity: .75; }
.r-links a::after { content: "↗"; font-size: 18px; }

/* related + hub cards */
.r-more { padding: 26px var(--gutter-r) calc(40px + env(safe-area-inset-bottom, 0px)) var(--gutter); background: rgba(27, 29, 58, .04); }
.r-more .wrap { gap: 10px; }
.r-more h3 { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.qcard {
  all: unset;
  cursor: pointer;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  padding: 10px 14px 10px 10px;
  background: var(--c, var(--cream));
  color: var(--night);
}
.qcard .ic { width: 52px; height: 52px; border-radius: 50%; padding: 11px; background: rgba(255, 255, 255, .7); }
.qcard b { font-family: var(--disp); font-weight: 800; font-size: 17px; line-height: 1.1; display: block; }
.qcard small { display: block; font-size: 13px; line-height: 1.3; opacity: .8; margin-top: 2px; }
.qcard::after { content: "→"; font-weight: 700; }
.hub-grp { display: grid; gap: 8px; margin-top: 14px; }
.hub-grp:first-child { margin-top: 0; }
.hub-grp h3 { margin: 0; font-family: var(--disp); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.hub-grp > p { margin: 0 0 4px; font-size: 15px; opacity: .75; }

@media (min-width: 760px) {
  .reader { width: min(760px, calc(100% - 48px)); height: calc(100% - 48px); max-height: calc(100% - 48px); margin: 24px auto; border-radius: 28px; }
}

/* links inside small pop and page that open the reader */
.pop .go { border: 0; cursor: pointer; font-family: inherit; }
.textlink { all: unset; cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
