/* /try: five verses, one per screen, as in the app's Verses screen, in the website's black.
   John 3:16's Go Deeper opens the app's study sheet, in the app's own dark colours. */
:root {
  --bg: #0B0B0B;
  --box: #1E1E1C;
  --line: #2E2C28;
  --ink: #F3EEE3;
  --body: #C2BEB4;
  --faint: #8A867C;
  --gold: #EDC47C;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Archivo", -apple-system, system-ui, sans-serif;
  --bar: calc(60px + env(safe-area-inset-top));
  --col: 860px;

  /* The app's dark palette, for the study sheet */
  --s-card: #151E33;
  --s-ink: #F3EEE3;
  --s-forest: #C7D9F5;
  --s-sage: #8FB3E6;
  --s-muted: #A5AEC0;
  --s-line: #293552;
  --s-gold: #EDC47C;
  --s-mint: #1E2B4A;
  --s-cream: #40361B;
  --s-amber: #EFC883;
  --s-peach: #4A3323;
  --s-evergreen: #213E78;
  --s-track: #1A2540;
  --s-grabber: #3A4868;
  --s-red: #FF8577;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body { font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Top bar */
.rbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  height: var(--bar); padding: env(safe-area-inset-top) 16px 0; background: var(--bg);
}
.rlogo { display: flex; flex-shrink: 0; }
.rlogo img { width: 32px; height: 32px; border-radius: 8px; }
.tlabel { font: 600 11px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.rgap { flex: 1; }
.rdl {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); font: 500 12px var(--sans); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s;
}
.rdl:hover { border-color: var(--gold); color: var(--gold); }

/* Verses */
.vc { max-width: var(--col); margin: 0 auto; padding: 18px 20px 0 64px; }
.vlabel { display: flex; align-items: center; gap: 10px; }
.vbar { width: 28px; height: 2px; border-radius: 2px; background: var(--gold); flex-shrink: 0; }
.vref { font: 600 12px var(--sans); letter-spacing: .2em; color: var(--gold); }
.vt { margin-left: auto; font: 600 11px var(--sans); letter-spacing: .18em; color: var(--faint); }
.vtext {
  margin-top: 62px; font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.32;
  color: var(--ink); cursor: copy; -webkit-tap-highlight-color: transparent;
}
.vtext .red { color: var(--s-red); }
.vtext.s1 { font-size: clamp(27px, 2.9vw, 42px); }
.vtext.s2 { font-size: clamp(23px, 2.4vw, 34px); }
.vtext.s3 { font-size: clamp(19px, 1.9vw, 27px); }
html:not(.js) .vp { padding: 0 0 48px; }
html:not(.js) .vtext { margin-top: 20px; cursor: auto; }

/* With JavaScript: one verse per screen, paged up and down */
.js body.reader { overflow: hidden; }
.js .pager {
  position: fixed; top: var(--bar); left: 0; right: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; scrollbar-width: none;
}
.js .pager::-webkit-scrollbar { display: none; }
.js .vp { height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; }

/* The rail of verse marks down the left */
.rail {
  position: fixed; z-index: 10; top: calc(var(--bar) + 14px); bottom: 150px;
  left: max(6px, calc(50vw - var(--col) / 2 + 6px)); width: 44px;
  display: flex; flex-direction: column; gap: 6px; touch-action: none; user-select: none;
}
.rail .mark { flex: 1 1 0; min-height: 0; display: flex; align-items: stretch; gap: 5px; width: 44px; padding: 0; cursor: pointer; }
.rail .tick { width: 4px; border-radius: 4px; background: var(--line); transition: background .2s, width .15s; }
.rail .num { align-self: center; font: 600 11px var(--sans); color: var(--faint); opacity: 0; }
.rail .mark.end .num { opacity: 1; }
.rail .mark.on .tick { background: var(--gold); }
.rail .mark.on .num { opacity: 1; color: var(--gold); }
.rail.pressed .num { opacity: 0 !important; }
.rail .bubble {
  position: absolute; left: 24px; font: 700 20px var(--sans); color: var(--gold); pointer-events: none;
  transform: translateY(-50%); opacity: 0; transition: opacity .15s;
}
.rail.pressed .bubble { opacity: 1; }
.rail .mark.near .tick { width: 8px; }

/* Go Deeper and the actions, under the verse */
.stage {
  position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; pointer-events: none;
  padding-bottom: 135px; /* level with the rail's last mark, as in the app */
}
.stage-in {
  max-width: var(--col); margin: 0 auto; padding: 0 14px 0 64px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.stage button, .stage a { pointer-events: auto; }
.deeper {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--gold); color: #182333; font: 600 15px var(--sans); transition: transform .12s;
}
.deeper:active, .act:active { transform: scale(.85); }
.deeper svg { width: 17px; height: 17px; }
.acts { display: flex; flex-direction: column; gap: 4px; }
.act { width: 44px; height: 44px; display: grid; place-items: center; color: var(--gold); transition: transform .12s; }
.act svg { width: 24px; height: 24px; }

/* Toast */
.toast {
  position: fixed; z-index: 60; top: calc(var(--bar) + 6px); left: 50%; transform: translate(-50%, -8px);
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--box); border: 1px solid var(--line); font: 600 13px var(--sans);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* The app prompt (Note, Bookmark) */
dialog.sheet {
  margin: auto auto 0; width: 100%; max-width: 560px; max-height: min(86vh, 760px);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 24px 24px 0 0;
  background: #141413; color: var(--ink); padding: 0; overflow: hidden;
}
dialog.sheet[open] { display: flex; flex-direction: column; animation: up .32s cubic-bezier(.16, 1, .3, 1); }
dialog::backdrop { background: rgba(0, 0, 0, .6); }
.sh { display: flex; align-items: flex-start; gap: 12px; padding: 22px 20px 14px; }
.sh .x { margin-left: auto; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--box); display: grid; place-items: center; }
.sh .x svg { width: 14px; height: 14px; }
.sb { padding: 0 20px 24px; overflow-y: auto; }
.appsheet .sb { text-align: center; padding-top: 6px; }
.appsheet img.icon { width: 72px; height: 72px; border-radius: 18px; margin: 4px auto 18px; display: block; }
.appsheet h2 { font: 400 28px/1.15 var(--serif); }
.appsheet p { margin: 10px auto 0; max-width: 380px; color: var(--body); line-height: 1.55; }
.appsheet .badge { display: inline-block; margin-top: 22px; }
.appsheet .badge img { height: 52px; width: auto; display: block; }
.appsheet .later { display: block; margin: 14px auto 0; color: var(--faint); font-size: 14px; min-height: 40px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

body:has(dialog[open]) .stage, body:has(dialog[open]) .rail { visibility: hidden; }

/* ---------- The Go Deeper study sheet (the app's FeatherStudySheet) ---------- */
dialog.study {
  margin: auto auto 0; width: 100%; max-width: 100%;
  height: calc(100% - 10px - env(safe-area-inset-top)); max-height: none;
  border: 0; border-radius: 24px 24px 0 0; padding: 0; overflow: hidden;
  background: var(--s-card); color: var(--s-ink);
}
dialog.study[open] { display: flex; flex-direction: column; animation: rise .42s cubic-bezier(.16, 1, .3, 1); }
@keyframes rise { from { transform: translateY(100%); } }
@media (min-width: 700px) {
  dialog.sheet { margin: auto; border-radius: 24px; border-bottom: 1px solid var(--line); }
  dialog.study { margin: auto; width: 560px; height: min(880px, calc(100% - 48px)); border-radius: 28px; }
  dialog.study[open] { animation: up .36s cubic-bezier(.16, 1, .3, 1); }
}
.grab { flex-shrink: 0; width: 36px; height: 5px; border-radius: 3px; background: var(--s-grabber); margin: 6px auto 0; }
.st-head { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 17px 20px 8px; }
.st-close {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--s-mint); color: var(--s-forest); transition: transform .12s;
}
.st-close:active { transform: scale(.88); }
.st-close svg { width: 14px; height: 14px; }
.st-badge { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; transition: background .25s, color .25s; }
.st-badge svg { width: 16px; height: 16px; }
.st-title { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: color .25s; }

.st-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; padding-bottom: 140px; touch-action: pan-y; }
.st-scroll::-webkit-scrollbar { display: none; }
.st-top { padding: 0 20px; }
.st-ref { display: flex; align-items: baseline; gap: 10px; padding-top: 18px; }
.st-ref b { font: 500 32px/1.1 var(--serif); letter-spacing: -.01em; }
.st-ref span { font: 500 12px var(--sans); letter-spacing: .14em; color: var(--s-muted); }
.st-quote { display: flex; gap: 10px; padding-top: 12px; }
.st-quote i { font: 400 44px/1 var(--serif); color: var(--s-gold); height: 30px; flex-shrink: 0; }
.st-quote p { padding-top: 2px; font: italic 400 19px/1.55 var(--serif); color: var(--s-forest); }
.st-quote .red { color: var(--s-red); }

.st-pager { position: relative; overflow: hidden; margin-top: 22px; transition: height .3s ease; }
.st-track { display: flex; align-items: flex-start; transition: transform .34s cubic-bezier(.2, .9, .25, 1); }
.st-track.dragging { transition: none; }
.st-page { flex: 0 0 100%; min-width: 0; padding: 0 20px; }

/* Pieces */
.sec { display: flex; align-items: center; gap: 10px; }
.sec .n { font: 600 11px ui-monospace, "SF Mono", Menlo, monospace; }
.sec .t { font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; color: var(--s-ink); }
.sec .rule { flex: 1; height: 1px; background: var(--s-line); }
.sec .cp { width: 30px; height: 30px; margin: -7px -6px -7px 0; display: grid; place-items: center; color: var(--s-muted); }
.sec .cp svg { width: 15px; height: 15px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.lead { font: 400 16.5px/1.62 var(--serif); color: var(--s-ink); }
.callout { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 20px; }
.callout .ic { width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; background: var(--s-card); display: grid; place-items: center; }
.callout .ic svg { width: 15px; height: 15px; }
.callout h4 { font: 600 14px var(--sans); }
.callout p { margin-top: 4px; font: 400 16px/1.56 var(--serif); color: var(--s-ink); }
.mint { background: var(--s-mint); }
.cream { background: var(--s-cream); }
.detail { padding-top: 8px; }
.detail h4 { font: 600 14px var(--sans); color: var(--s-forest); margin-bottom: 8px; }
.detail p + p { margin-top: 1em; }
.passages { padding-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.passages h4 { font: 600 14px var(--sans); color: var(--s-forest); }
.passages .pc { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.chip-ref { display: inline-block; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--s-line); font: 500 13px var(--sans); color: var(--s-forest); }
.passages .pc p { font: 400 13.5px/1.5 var(--sans); color: var(--s-ink); }

/* Apply to Life cards */
.cards { display: flex; flex-direction: column; gap: 12px; }
.card { padding: 16px 18px; border-radius: 22px; background: var(--s-card); border: 1px solid var(--s-line); display: flex; flex-direction: column; gap: 8px; }
.card.life { gap: 14px; }
.ch { display: flex; align-items: center; gap: 10px; color: var(--s-forest); font: 600 15px var(--sans); }
.ch .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--s-mint); display: grid; place-items: center; }
.ch .ic svg { width: 16px; height: 16px; }
.card .body { font: 400 14px/1.55 var(--sans); color: var(--s-ink); }
.moment + .moment { padding-top: 12px; border-top: 1px solid var(--s-line); }
.moment b { display: block; font: 600 14px/1.4 var(--sans); color: var(--s-forest); margin-bottom: 4px; }
.card.step { background: var(--s-evergreen); border-color: rgba(255, 255, 255, .12); }
.kicker { font: 600 11px var(--sans); letter-spacing: .12em; }
.card.step .kicker { color: var(--s-gold); }
.card.step .body { font: 500 18px/1.4 var(--serif); color: #FFFDF8; }
.card .q { font: italic 400 17px/1.5 var(--serif); color: var(--s-ink); }
.card.pray { background: var(--s-peach); padding: 14px 18px; }
.card.pray .kicker { color: var(--s-amber); }
.card.pray .body { font: italic 400 15px/1.45 var(--serif); }

/* Related verses: a timeline */
.tl { display: flex; flex-direction: column; gap: 10px; }
.tl-e { position: relative; padding: 0 0 6px 28px; }
.tl-e:last-child { padding-bottom: 0; }
.tl-e::before {
  content: ""; position: absolute; left: 4px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--s-card); box-shadow: inset 0 0 0 2.5px var(--dot);
}
.tl-e:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: -8px; width: 2px; background: var(--s-line); }
.tl-h { display: flex; align-items: center; gap: 8px; }
.tl-h b { font: 600 15px var(--sans); color: var(--s-ink); }
.tl-h small { font: 600 10px var(--sans); letter-spacing: .08em; padding: 2px 7px; border-radius: 6px; }
.tl-e p { margin-top: 5px; font: italic 400 16px/1.42 var(--serif); color: var(--s-ink); }
.tl-e .red { color: var(--s-red); }

/* Original language */
.og-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; background: var(--s-cream); }
.og-head i { font: italic 400 14px var(--serif); color: var(--s-amber); }
.og-head b { margin-left: auto; font: 400 22px "Times New Roman", Times, serif; color: var(--s-forest); }
.word { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 18px; border: 1px solid var(--s-line); }
.word .gk { width: 84px; height: 58px; flex-shrink: 0; border-radius: 14px; background: var(--s-cream); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 6px; overflow: hidden; }
.word .gk b { font: 600 20px/1.1 "Times New Roman", Times, serif; color: var(--s-forest); white-space: nowrap; }
.word .gk i { font: italic 400 11px var(--serif); color: var(--s-amber); white-space: nowrap; }
.word .wm { min-width: 0; }
.word .wm b { font: 600 14px var(--sans); color: var(--s-ink); }
.word .wm code { margin-left: 6px; font: 500 10px ui-monospace, "SF Mono", Menlo, monospace; color: var(--s-muted); }
.word .wm p { margin-top: 2px; font: 400 12.5px/1.4 var(--sans); color: var(--s-muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* While a part is being prepared */
.prep { display: flex; align-items: center; gap: 10px; padding-top: 2px; font: 400 14px var(--sans); color: var(--s-muted); }
.spin { width: 20px; height: 20px; flex-shrink: 0; color: var(--s-muted); animation: spin .8s steps(8) infinite; }
.typing-spin { margin-top: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Revealed one after another, as the app's sections come in */
.in { animation: inn .45s cubic-bezier(.2, .9, .25, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes inn { from { opacity: 0; transform: translateX(14px); } }
.hide { display: none !important; }

/* The tab bar at the foot of the sheet */
.st-bar {
  position: absolute; left: 20px; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; gap: 2px; padding: 4px; border-radius: 22px; background: var(--s-track); border: 1px solid var(--s-line);
}
.st-tab {
  flex: 1 1 0; min-width: 0; height: 40px; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 7px;
  color: var(--s-muted); transition: flex-grow .3s cubic-bezier(.2, .9, .25, 1), background .25s, color .25s;
}
.st-tab svg { width: 18px; height: 18px; flex-shrink: 0; }
.st-tab span { display: none; font: 600 13px var(--sans); white-space: nowrap; }
.st-tab.on { flex-grow: 2.2; }
.st-tab.on svg { width: 16px; height: 16px; }
.st-tab.on span { display: inline; }
.st-tab:active { transform: scale(.94); }
.st-toast {
  position: absolute; top: 14px; left: 50%; transform: translate(-50%, -10px); z-index: 5;
  height: 34px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center;
  background: var(--s-forest); color: var(--s-card); font: 600 13px var(--sans); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s;
}
.st-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .vc { padding-left: 50px; padding-right: 16px; }
  .stage-in { padding-left: 50px; padding-right: 8px; }
  .rail { left: 2px; width: 40px; }
  .tlabel { display: none; }
}
@media (max-height: 640px) {
  .vtext { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.sheet[open], dialog.study[open], .in { animation: none; }
  .st-track { transition: none; }
}
