/* Shared look for /gems and /faq: the homepage's cream and gold by day, the lit path by night. */
:root {
  --bg: #f7f2ef; --card: #fcf9f5; --ink: #1a1714; --muted: #665b4f; --gold: #9f7842; --rule: #e6dccd;
  --btn: #1a1714; --btn-ink: #f7f2ef;
  --display: "Cormorant Garamond", Georgia, serif; --body: "Inter", "Helvetica Neue", system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --bg: #140a23; --card: #1c1230; --ink: #f6ede4; --muted: #cbbfd0; --gold: #f4a574; --rule: #2f2445;
  --btn: #f4a574; --btn-ink: #1d1325; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--body); }
a { color: inherit; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.logo { display: block; height: 34px; aspect-ratio: 1070 / 370; background: var(--ink); -webkit-mask: url(/assets/logo-mark.png) left center / contain no-repeat; mask: url(/assets/logo-mark.png) left center / contain no-repeat; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: 16px; }
.hnav { display: flex; align-items: center; gap: 4px; }
.hnav a { font: 600 12px var(--body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 10px 12px; border-radius: 4px; color: var(--muted); }
.hnav a[aria-current="page"] { color: var(--gold); }
.hnav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font: 600 12px var(--body); letter-spacing: .16em; text-transform: uppercase; border-radius: 4px; padding: 14px 22px; border: 1px solid transparent; background: var(--btn); color: var(--btn-ink); white-space: nowrap; }
.btn:focus-visible, .hnav a:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.kick { font: 600 12px var(--body); letter-spacing: .3em; color: var(--gold); text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -.01em; text-wrap: balance; }
h1 em, h2 em { font-style: italic; color: var(--gold); }
.hero { padding: clamp(32px, 7vh, 72px) 0 clamp(24px, 4vh, 40px); max-width: 680px; }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.04; margin-top: 12px; }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); margin: 16px 0 0; max-width: 34em; text-wrap: pretty; }

/* hidden gems */
.gems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 48px; }
.gem { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.gem h3 { font-size: 24px; line-height: 1.15; }
.gem p { margin: 0; color: var(--muted); font-size: 15px; text-wrap: pretty; }
.gem .how { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--rule); font-size: 13px; color: var(--ink); }
.gem .how b { color: var(--gold); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 11px; margin-right: 6px; }
kbd { font: 600 12px var(--body); border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; background: var(--bg); }
.ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 28%, transparent); color: var(--gold); flex: none; }
.ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.ico svg .hl { stroke-width: 2.6; opacity: .45; }
.ico svg .dot { fill: currentColor; stroke: none; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 48px; padding-bottom: 48px; align-items: start; }
.toc { position: sticky; top: 24px; display: grid; gap: 2px; }
.toc a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 6px 0; }
.toc a:hover { color: var(--ink); }
.group + .group { margin-top: 40px; }
.group h2 { font-size: clamp(28px, 3vw, 34px); margin-bottom: 8px; scroll-margin-top: 24px; }
details { border-bottom: 1px solid var(--rule); }
summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; font: 600 17px/1.4 var(--body); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg) translateX(-3px); }
details .a { padding: 0 0 16px; color: var(--muted); max-width: 40em; }
details .a p { margin: 0 0 12px; }
details .a ul { margin: 0 0 12px; padding-left: 20px; }
details .a li { margin-bottom: 4px; }
details .a a { color: var(--gold); }
.tl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 24px; list-style: none; padding: 0 !important; }
.tl li { display: flex; gap: 8px; }
.tl b { color: var(--ink); min-width: 52px; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--rule); padding: 32px 0; }
.cta h2 { font-size: clamp(26px, 3vw, 34px); }
footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); }
footer .logo { height: 24px; background: var(--muted); }

@media (max-width: 900px) {
  .gems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .toc a { border: 1px solid var(--rule); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
}
@media (max-width: 600px) {
  .wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  .hnav a { padding: 8px 8px; letter-spacing: .1em; font-size: 11px; }
  .hnav .home-link { display: none; }
  .gems { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .gem { padding: 20px; }
  .tl { grid-template-columns: minmax(0, 1fr); }
  summary { font-size: 16px; }
}

/* ---------- hidden gems: a small scene of each one, so you can see it ---------- */
:root { --paper: #fffdf9; --hl1: #fbeb8f; --hl2: #f8c6d4; --hl3: #c3ead0; --hl4: #c4def5; --hl5: #dccff2; --hl6: #fcd3b0; --red: #a33a2e; }
:root[data-theme="dark"] { --paper: #241a38; --hl1: #6b5d1f; --hl2: #6b3446; --hl3: #2f5a3e; --hl4: #2f4b6a; --hl5: #4b3d6b; --hl6: #6b4528; --red: #f0a08f; }
.scene { position: relative; height: 168px; border-radius: 12px; background: var(--paper); border: 1px solid var(--rule); overflow: hidden; margin: -4px -4px 4px; font: 400 13px/1.7 "Source Serif 4", Georgia, serif; color: var(--ink); }
.scene .pad { position: absolute; inset: 16px 18px; }
.scene .lbl { font: 600 9.5px var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.scene mark { background: var(--hl1); color: inherit; border-radius: 2px; padding: 0 1px; }
.scene sup { font: 600 8px var(--body); color: var(--gold); margin-right: 2px; }
.scene .pill { display: inline-block; font: 600 10px var(--body); border: 1px solid var(--rule); border-radius: 999px; padding: 2px 9px; background: var(--card); color: var(--ink); }
.scene .ui { font-family: var(--body); }
/* 1 highlights follow you: the version flips, the highlight stays on the same words */
.s-follow .v { position: absolute; left: 0; right: 0; top: 26px; transition: opacity .5s; }
.s-follow .v2 { opacity: 0; }
.s-follow .pill { position: absolute; right: 0; top: -2px; }
.s-follow .pill i { font-style: normal; }
@keyframes flipA { 0%, 42% { opacity: 1 } 50%, 92% { opacity: 0 } 100% { opacity: 1 } }
@keyframes flipB { 0%, 42% { opacity: 0 } 50%, 92% { opacity: 1 } 100% { opacity: 0 } }
.s-follow .v1, .s-follow .p1 { animation: flipA 6s infinite; }
.s-follow .v2, .s-follow .p2 { animation: flipB 6s infinite; }
.s-follow .p2 { opacity: 0; }
/* 2 gospel parallels: two passages side by side */
.s-par { display: grid; grid-template-columns: 1fr 1fr; }
.s-par > div { padding: 14px 14px; }
.s-par > div + div { border-left: 1px solid var(--rule); background: color-mix(in srgb, var(--gold) 5%, var(--paper)); animation: slideIn 5s infinite; }
.s-par b { display: block; font: 600 13px "Source Serif 4", Georgia, serif; }
.s-par u { color: var(--gold); text-decoration-color: color-mix(in srgb, var(--gold) 50%, transparent); font-style: italic; font-size: 11.5px; }
.s-par p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
@keyframes slideIn { 0%, 15% { transform: translateX(100%); opacity: 0 } 30%, 90% { transform: none; opacity: 1 } 100% { transform: translateX(100%); opacity: 0 } }
/* 3 timeline: the big dot is Jesus, the small dot is you */
.s-time .line { position: absolute; left: 22px; right: 22px; top: 78px; height: 2px; background: var(--rule); }
.s-time .d { position: absolute; top: 78px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--muted); width: 9px; height: 9px; }
.s-time .d.big { width: 26px; height: 26px; background: var(--gold); box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 18%, transparent); }
.s-time .d.you { width: 11px; height: 11px; background: var(--ink); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--ink) 12%, transparent); } }
.s-time .t { position: absolute; font: 500 10.5px var(--body); color: var(--muted); transform: translateX(-50%); white-space: nowrap; text-align: center; line-height: 1.35; }
.s-time .t b { display: block; color: var(--ink); font-weight: 600; }
/* 4 before you read */
.s-before .row { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.s-before .row:last-child { border-bottom: 0; }
.s-before .row span:first-child { font: 600 9.5px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
/* 5 right where you stopped: phone and tablet open on the same verse */
.s-stop .dev { position: absolute; bottom: -10px; background: #1a1714; border-radius: 12px; padding: 6px; }
.s-stop .dev > div { background: var(--paper); border-radius: 7px; height: 100%; padding: 10px 10px; font-size: 10px; line-height: 1.6; overflow: hidden; }
.s-stop .tab { left: 16px; width: 54%; height: 132px; }
.s-stop .ph { right: 16px; width: 36%; height: 150px; border-radius: 16px; }
.s-stop .ph > div { font-size: 9.5px; padding: 12px 8px; }
.s-stop .ph > div { border-radius: 11px; }
.s-stop .here { background: var(--hl1); border-radius: 2px; box-shadow: -10px 0 0 -6px var(--gold); }
/* 6 search: type a few words, find the verse */
.s-search .box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--rule); background: var(--card); border-radius: 10px; padding: 8px 12px; font: 500 13px var(--body); }
.s-search .box svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; flex: none; }
.s-search .typed { display: inline-block; overflow: hidden; white-space: nowrap; border-right: 1.5px solid var(--ink); width: 0; animation: type 6s steps(15) infinite; }
@keyframes type { 0% { width: 0 } 30%, 100% { width: 15ch } }
.s-search .res { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 8%, var(--paper)); border: 1px solid var(--rule); animation: appear 6s infinite; }
.s-search .res b { display: block; font: 600 10px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
@keyframes appear { 0%, 33% { opacity: 0; transform: translateY(6px) } 42%, 100% { opacity: 1; transform: none } }
/* 7 the page corner curls */
.s-curl { background: color-mix(in srgb, var(--rule) 40%, var(--paper)); }
.s-curl .pg { position: absolute; inset: 14px 34px 0; background: var(--paper); border: 1px solid var(--rule); border-bottom: 0; border-radius: 4px 4px 0 0; padding: 14px 16px; font-size: 11.5px; line-height: 1.75; box-shadow: 0 6px 16px rgb(0 0 0 / .06); }
.s-curl .corner { position: absolute; right: -1px; bottom: 0; width: 64px; height: 64px; background: linear-gradient(135deg, transparent 49%, color-mix(in srgb, var(--rule) 70%, var(--paper)) 50%, var(--paper) 72%, color-mix(in srgb, var(--ink) 8%, var(--paper)) 100%); box-shadow: -4px -4px 10px rgb(0 0 0 / .08); border-radius: 0 0 0 4px; transform-origin: 100% 100%; animation: curl 3.2s ease-in-out infinite; }
@keyframes curl { 0%, 100% { width: 26px; height: 26px } 50% { width: 70px; height: 70px } }
/* 8 rest your hand: the pen writes, the palm is ignored */
.s-palm svg.ink { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; }
.s-palm svg.ink path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 4s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 400 } 55%, 100% { stroke-dashoffset: 0 } }
.s-palm .palm { position: absolute; right: -24px; bottom: -34px; width: 130px; height: 110px; border-radius: 50% 45% 40% 50%; background: color-mix(in srgb, var(--muted) 16%, transparent); border: 1.5px dashed color-mix(in srgb, var(--muted) 50%, transparent); }
.s-palm .tag { position: absolute; right: 14px; bottom: 12px; font: 600 9.5px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
/* 9 quote a verse into the journal */
.s-quote { background-image: repeating-linear-gradient(transparent 0 25px, var(--rule) 25px 26px); background-position: 0 40px; }
.s-quote blockquote { margin: 8px 0 0; padding: 6px 10px; border-left: 2px solid var(--gold); background: color-mix(in srgb, var(--paper) 85%, transparent); font-style: italic; font-size: 12.5px; line-height: 1.6; animation: appear 5s infinite; }
.s-quote blockquote small { display: block; font: 600 9.5px var(--body); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
/* 10 highlighter colors */
.s-colors .sw { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.s-colors .sw span { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .06); }
.s-colors .sw .on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.s-colors .sw .add { display: grid; place-items: center; border: 1.5px dashed var(--muted); box-shadow: none; color: var(--muted); font: 500 18px var(--body); }
.s-colors p { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; }
/* 11 lined or blank */
.s-paper { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px; background: color-mix(in srgb, var(--rule) 40%, var(--paper)); }
.s-paper > div { position: relative; background: var(--paper); border-radius: 6px; border: 1px solid var(--rule); box-shadow: 0 4px 12px rgb(0 0 0 / .05); }
.s-paper .lined { background-image: repeating-linear-gradient(transparent 0 17px, color-mix(in srgb, var(--hl4) 80%, var(--rule)) 17px 18px); background-position: 0 22px; }
.s-paper .lbl { position: absolute; left: 10px; top: 6px; }
/* 12 just the page: the menus fade away */
.s-full .bar { position: absolute; left: 0; right: 0; height: 26px; background: var(--card); border-bottom: 1px solid var(--rule); animation: fade 5s infinite; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.s-full .bar i { width: 26px; height: 7px; border-radius: 4px; background: var(--rule); }
.s-full .bar.b { bottom: 0; top: auto; border-top: 1px solid var(--rule); border-bottom: 0; justify-content: space-around; }
.s-full .side { position: absolute; right: 0; top: 26px; bottom: 26px; width: 30%; border-left: 1px dashed var(--rule); background: color-mix(in srgb, var(--card) 60%, var(--paper)); animation: fade 5s infinite; }
.s-full .txt { position: absolute; left: 18%; right: 18%; top: 40px; font-size: 11.5px; line-height: 1.75; text-align: left; }
@keyframes fade { 0%, 30% { opacity: 1 } 45%, 85% { opacity: 0 } 100% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .scene *, .scene { animation: none !important; } .s-search .typed { width: 15ch; } .s-palm svg.ink path { stroke-dashoffset: 0; } .s-follow .v2, .s-follow .p2 { opacity: 0; } }

/* gems: more breathing room. Two roomy columns, taller scenes, more space inside */
.gems { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-bottom: 64px; }
.gem { padding: 28px 28px 24px; gap: 14px; border-radius: 20px; }
.gem h3 { font-size: 27px; margin-top: 6px; }
.gem p { font-size: 15.5px; line-height: 1.65; }
.gem .how { padding-top: 16px; margin-top: auto; }
.scene { height: 212px; margin: 0 0 6px; border-radius: 14px; font-size: 14px; line-height: 1.8; }
.scene .pad { inset: 26px 30px; }
.s-par > div { padding: 24px 24px; }
.s-par p { font-size: 13px; line-height: 1.7; margin-top: 10px; }
.s-time .line, .s-time .d { top: 100px; }
.s-time .t[style*="top:96px"] { top: 122px !important; }
.s-time .t[style*="top:22px"] { top: 34px !important; }
.s-before .row { padding: 10px 0; font-size: 14px; grid-template-columns: 90px 1fr; }
.s-stop .tab { left: 28px; width: 52%; height: 168px; }
.s-stop .ph { right: 28px; width: 30%; height: 186px; }
.s-stop .dev > div { font-size: 11px; padding: 14px 14px; }
.s-search .res { margin-top: 18px; padding: 14px 16px; }
.s-curl .pg { inset: 22px 48px 0; padding: 20px 22px; font-size: 12.5px; line-height: 1.85; }
.s-quote blockquote { margin-top: 14px; padding: 8px 14px; font-size: 13.5px; }
.s-colors .sw { gap: 12px; margin-top: 16px; }
.s-colors .sw span { width: 30px; height: 30px; }
.s-colors p { margin-top: 18px; font-size: 13.5px; }
.s-paper { gap: 22px; padding: 22px 28px; }
.s-full .bar { height: 30px; }
.s-full .side { top: 30px; bottom: 30px; }
.s-full .txt { top: 54px; left: 14%; right: 36%; font-size: 13px; line-height: 1.85; }
@media (max-width: 760px) {
  .gems { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .gem { padding: 22px 22px 20px; }
  .scene { height: 196px; }
  .scene .pad { inset: 22px 22px; }
  .s-curl .pg { inset: 18px 26px 0; }
  .s-full .txt { left: 10%; right: 34%; }
  .s-par > div { padding: 18px 16px; }
  .s-par p { font-size: 12px; line-height: 1.6; margin-top: 8px; }
}
