/* How big was Noah's ark? A full-screen viewer that opens from the article.
   Type and colour follow christianpure.com as it is live on 14 October 2026: Tiempos Headline for headings,
   FK Roman Text for reading and navigation (18 px on a laptop, 16 px on a phone, as the site's nav),
   GT America Condensed for the small labels on the 3D view. The fonts load from the site itself. */

@font-face { font-family: 'Tiempos Headline'; font-style: normal; font-weight: 400; font-display: swap; src: url('https://christianpure.com/wp-content/uploads/fonts/TiemposHeadline-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Tiempos Headline'; font-style: normal; font-weight: 500; font-display: swap; src: url('https://christianpure.com/wp-content/uploads/fonts/TiemposHeadline-Medium.woff2') format('woff2'); }
@font-face { font-family: 'FK Roman Text'; font-style: normal; font-weight: 400; font-display: swap; src: url('https://christianpure.com/wp-content/uploads/fonts/FKRomanText-Regular.woff2') format('woff2'); }
@font-face { font-family: 'FK Roman Text'; font-style: normal; font-weight: 500; font-display: swap; src: url('https://christianpure.com/wp-content/uploads/fonts/FKRomanText-Medium.woff2') format('woff2'); }
@font-face { font-family: 'GT America LCG'; font-style: normal; font-weight: 400; font-display: swap; src: url('https://christianpure.com/wp-content/uploads/fonts/GT-America-Condensed-Regular.woff2') format('woff2'); }
@font-face { font-family: 'GT America LCG'; font-style: normal; font-weight: 500; font-display: swap; src: url('https://christianpure.com/wp-content/uploads/fonts/GT-America-Condensed-Medium.woff2') format('woff2'); }

:root {
  --page: #fffbf9;
  --band: #f8f2e8;
  --ink: #002159;
  --text: #002b63;
  --muted: #56607a;
  --gold: #c58c23;
  --gold-ink: #8f6418;
  --line: #e6ded3;
  --focus: #0951b1;
  --radius: 4px; /* the design system's button.radius: every control on the site has 4 px corners */
  --paper: #efe5d3;
  --head-font: 'Tiempos Headline', Georgia, 'Times New Roman', serif;
  --body-font: 'FK Roman Text', Georgia, 'Times New Roman', serif;
  --label-font: 'GT America LCG', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--page); color: var(--text); }
body { font-family: var(--body-font); line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { font: inherit; color: inherit; }

/* The app: a header, the cubit on the view's top edge, the 3D view, the stops on its bottom edge, then the words. It fills the screen and never scrolls (overflow: clip, so focusing a
   control cannot scroll the view away). */
.app {
  display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 480px;
  overflow: hidden; overflow: clip;
}

.head {
  flex: 0 0 auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 4px 12px; padding-top: max(4px, env(safe-area-inset-top)); background: var(--page); border-bottom: 1px solid var(--line);
  position: relative; z-index: 20;
}
.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-more { display: none; margin-left: 0.24em; }   /* a flex item loses its leading space */
.back:hover .back-word, .back:hover .back-more { text-decoration: underline; text-underline-offset: 3px; }
.head h1 {
  margin: 0; min-width: 0; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 400 20px/1.15 var(--head-font); letter-spacing: -0.01em; color: var(--ink);
}
.about-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 { border-color: var(--gold); }

.view { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; overflow: clip; background: var(--paper); }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#gl:active { cursor: grabbing; }
#leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 3; }
#labels { position: absolute; inset: 0; pointer-events: none; z-index: 4; }

/* Labels on the 3D view: small on purpose, the one place small type belongs */
.lab {
  position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 13px/1.2 var(--label-font); letter-spacing: 0.01em;
  color: var(--ink); background: rgba(255, 251, 249, 0.95); border: 1px solid var(--line);
  border-radius: 4px; padding: 3px 7px; transform: translate(0, -50%); will-change: transform;
}
.lab.ark { border-color: var(--gold); }
.lab.hi { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(197, 140, 35, 0.3); }
.lab.tick { font-weight: 400; font-size: 12px; background: transparent; border-color: transparent; color: #3a3f4c; padding: 0 2px; text-shadow: 0 0 3px rgba(239, 229, 211, 0.95); }
.lab small { font-size: 0.86em; color: var(--muted); margin-left: 3px; }
.lab.tick.two { text-align: left; line-height: 1.1; }
.lab.tick.two small { display: block; margin-left: 0; }

.loading {
  position: absolute; inset: 0; display: grid; place-items: center; font: 400 17px var(--body-font);
  color: var(--muted); background: var(--paper); z-index: 20; transition: opacity 0.4s;
}
.loading.done { opacity: 0; pointer-events: none; }

/* Layout A (owner's pick, 7 Nov 2026): the controls frame the view they move. The cubit, which changes the ark's
   length, sits in a band on the view's top edge; Previous, the stop and a Next that names where it goes sit in a band
   on its bottom edge; the words come after, in their own band. Every band has one fixed height, so the view never
   changes size between stops and the ruler never moves. */
.topband, .stepper { flex: 0 0 auto; position: relative; z-index: 10; background: var(--band); }
.topband { padding: 6px 12px; border-bottom: 1px solid var(--line); }
.stepper { padding: 6px 12px 8px; border-top: 1px solid var(--line); }

/* The cubit: a label and two choices, in one row */
.cubitctl { display: flex; align-items: center; justify-content: center; gap: 12px; }
.cubit-lab { font: 500 15px/1.2 var(--body-font); color: var(--ink); white-space: nowrap; }
.seg { display: grid; grid-template-columns: 1fr 1fr; width: 248px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.seg button {
  min-height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0 8px; display: flex; align-items: baseline; justify-content: center; gap: 5px;
  font: 500 16px/44px var(--body-font); color: var(--ink); white-space: nowrap;
}
.seg button small { font: 400 13px/1 var(--body-font); color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:hover { background: var(--band); }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.seg button[aria-pressed="true"] small { color: #c9d3e6; }
.about-cubit .cubitctl { display: none; }   /* said once: the band on the view's top edge switches it */

/* Previous, the stop, and Next: where it goes */
.step-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; max-width: 1100px; margin: 0 auto; }
.step {
  min-height: 48px; min-width: 48px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 400 16px/1.1 var(--body-font); color: var(--ink); white-space: nowrap;
}
.step .chev { font: 400 26px/1 var(--body-font); margin-top: -3px; }
.step.next { background: var(--ink); border-color: var(--ink); color: #fff; padding: 0 10px 0 16px; }
.step.next .step-word { display: flex; flex-direction: column; align-items: flex-start; text-align: left; padding: 5px 0; }
.next-label { font: 400 12.5px/1.2 var(--label-font); color: #c9d3e6; }
.next-to { font: 400 16px/1.15 var(--body-font); }
.step.next.end .next-label { display: none; }
.step.prev { padding: 0; width: 48px; }
.step.prev .step-word { display: none; }
.step:hover { border-color: var(--gold); }
.step.next:hover { background: #0a2e6e; border-color: #0a2e6e; }
.step:disabled { opacity: 0.4; cursor: default; }
.here { min-width: 0; }
.here-name { margin: 0; font: 400 21px/1.15 var(--head-font); color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.here-n { margin: 1px 0 0; font: 400 13.5px/1.25 var(--label-font); color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }

/* The words, after the controls: the comparison, then the figure behind it. One fixed height on every stop, and they
   scroll in their own band if a longer translation needs it; on a phone the view stays the largest thing. */
.words {
  flex: 0 0 auto; position: relative; z-index: 10; background: var(--page); border-top: 1px solid var(--line);
  height: 150px; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.figs p { margin: 0; }
.figs p:empty { display: none; }
.fig-a { font: 500 22px/1.18 var(--head-font); color: var(--ink); letter-spacing: -0.005em; text-wrap: balance; }
.fig-b { font: 400 15px/1.35 var(--body-font); color: var(--muted); text-wrap: pretty; }
.fig-c { font: 400 14px/1.35 var(--body-font); color: var(--muted); }
.figs .fig-b { margin-top: 6px; }
.figs .fig-c { margin-top: 4px; }

/* About this view */
dialog#about {
  width: min(720px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 0; border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); background: var(--page); box-shadow: 0 10px 40px rgba(0, 33, 89, 0.2);
}
dialog#about::backdrop { background: rgba(0, 20, 50, 0.45); }
.about-head {
  position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px 10px 24px; background: var(--page); border-bottom: 1px solid var(--line);
}
.about-head h2 { margin: 0; font: 400 24px/1.2 var(--head-font); color: var(--ink); letter-spacing: -0.01em; }
.btn {
  min-height: 44px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--line); display: inline-flex; align-items: center;
  background: #fff; font: 400 16px/1 var(--body-font); color: var(--ink); cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--gold); }
.about-body { padding: 4px 24px 28px; }
.about-body h3 { margin: 26px 0 8px; font: 400 21px/1.25 var(--head-font); color: var(--ink); }
.about-body p, .about-body dd { font: 400 17px/1.5 var(--body-font); margin: 0 0 12px; }
.about-body .cubitctl { margin: 16px 0 14px; }
.honesty { margin: 0; }
.honesty dt { margin: 16px 0 4px; font: 500 16px/1.3 var(--body-font); color: var(--ink); }
.honesty dd { margin: 0; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; font: 400 16px/1.4 var(--body-font); }
kbd {
  font: 500 13px/1 var(--label-font); min-width: 24px; height: 24px; display: inline-grid; place-items: center; padding: 0 5px;
  border: 1px solid #d9d1c6; border-bottom-width: 2px; border-radius: 4px; background: #fff; color: var(--ink);
}
.sources { padding-left: 20px; margin: 0; }
.sources li { font: 400 15.5px/1.45 var(--body-font); margin: 6px 0; overflow-wrap: anywhere; }
.sources .lic { color: var(--muted); font-size: 14px; }

/* Hide (H): only the view, and one button to bring the rest back */
.show-ui { display: none; }
.hide-ui .head, .hide-ui .topband, .hide-ui .stepper, .hide-ui .words { display: none; }
.hide-ui .show-ui {
  display: block; position: absolute; right: 12px; bottom: 12px; z-index: 16; min-height: 44px; padding: 0 16px;
  border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 251, 249, 0.95); font: 400 16px var(--body-font); color: var(--ink); cursor: pointer;
}

/* Recording (?record=1): the view alone, with captions in the Reel */
.caption { display: none; }
body.record .head, body.record .topband, body.record .stepper, body.record .words, body.record .loading, body.record .show-ui { display: none; }
body.record .app { height: 100vh; min-height: 0; }
body.record *, body.record *::after { transition: none !important; }
body.record .lab { font-size: 15px; padding: 4px 8px; }
body.record.reel .lab { font-size: 17px; padding: 5px 9px; }
body.record .lab.tick { font-size: 13px; }
body.record.caps .caption {
  display: block; position: absolute; z-index: 8; margin: 0; padding: 14px 18px 15px;
  background: rgba(255, 251, 249, 0.94); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0, 33, 89, 0.10); font-family: var(--body-font);
}
.cap-big { margin: 0; font-family: var(--head-font); font-weight: 400; color: var(--ink); line-height: 1.18; letter-spacing: -0.005em; }
.cap-small { margin: 7px 0 0; color: var(--text); line-height: 1.34; }
.cap-small:empty { display: none; }
body.record.reel .caption { left: 6%; right: 14%; top: 6.5%; }
body.record.reel .cap-big { font-size: 29px; }
body.record.reel .cap-small { font-size: 18px; }
body.record.wide .caption { left: 4%; bottom: 5%; max-width: 56%; }
body.record.wide .cap-big { font-size: 24px; }
body.record.wide .cap-small { font-size: 15px; }

@media (max-width: 599px) {
  dialog#about { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; border: 0; border-radius: 0; }
  .about-head { padding: 6px 12px 6px 18px; padding-top: max(6px, env(safe-area-inset-top)); }
  .about-head h2 { font-size: 22px; }
  .about-body { padding: 2px 18px 28px; }
  .about-body p, .about-body dd { font-size: 16.5px; }
}
@media (max-width: 899px) {
  .here-name { font-size: 19px; }
  .here-n { font-size: 13px; }
  .step-row { gap: 8px; }
  .step.prev { width: 44px; min-width: 44px; min-height: 44px; }
  .step.next { min-height: 48px; max-width: 46vw; }
  .next-to { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .step.next .step-word { min-width: 0; }
  .words { height: min(25svh, 158px); padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (max-width: 360px) { .head h1 { font-size: 18px; } .cubit-lab { font-size: 14px; } .seg { width: 228px; } .seg button { gap: 4px; } }

/* A laptop: the back link in words, Previous in words, and Next on one line */
@media (min-width: 900px) {
  .head { padding: 6px 24px; grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr); }
  .back { font-size: 17px; }
  .back-more { display: inline; }
  .head h1 { font-size: 25px; }
  .about-btn { justify-self: end; font-size: 17px; }
  .lab { font-size: 14px; }
  .lab.tick { font-size: 13px; }
  .topband { padding: 8px 28px; }
  .stepper { padding: 8px 28px 10px; }
  .step.prev { width: auto; padding: 0 16px 0 12px; }
  .step.prev .step-word { display: inline; }
  .step.next { padding: 0 14px 0 20px; }
  .step.next .step-word { flex-direction: row; align-items: baseline; gap: 0; padding: 0; white-space: nowrap; }
  .next-label { font: inherit; color: inherit; }
  .next-label::after { content: ':\00a0'; }
  .next-to { font: inherit; }
  .here-name { font-size: 24px; }
  .words { height: 136px; padding: 14px 28px 16px; }
  .figs { max-width: 1100px; margin: 0 auto; }
  .fig-a { font-size: 30px; line-height: 1.15; }
  .fig-b { display: block; font: 400 17px/1.4 var(--body-font); color: var(--muted); margin-top: 8px; max-width: 900px; }
  .fig-c { font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) { .loading { transition: none; } }
