/* Chapter & Verse. One system face, a grey ramp, and one accent carrying links and focus.
   Numerals are quiet. Dark mode is its own token set. No script, no web font. */
:root{color-scheme:light dark;--bg:#fbfbfc;--ink:#15181c;--sec:#5b626b;--rule:#e5e8ec;--rub:#1d4ed8;
--sans:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
@media (prefers-color-scheme:dark){:root{--bg:#111316;--ink:#e9ecf1;--sec:#a0a7b0;--rule:#2a2e34;--rub:#8ab0ff}}
*,::before,::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;padding-inline:1.25rem;background:var(--bg);color:var(--ink);font:1.0625rem/1.7 var(--sans);overflow-wrap:break-word}
a{color:var(--rub);text-decoration-thickness:1px;text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:2px solid var(--rub);outline-offset:2px}
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:1.25rem;top:-4rem;padding:.5rem .75rem;background:var(--ink);color:var(--bg)}
.skip:focus{top:.5rem}

/* The frame: wordmark, Books and About, search; a quiet footer. Space, not rules. */
.top,main,.foot{max-width:38rem;margin-inline:auto}
.top{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem 1.25rem;padding-block:1.5rem 1.25rem}
.brand{display:flex;align-items:center;gap:.45rem;margin-right:auto;font-size:1.3rem;font-weight:650;letter-spacing:-.01em}
.brand span{color:var(--rub)}
.brand,.books a,.chapters a,.ch a{color:var(--ink);text-decoration:none}
.brand:hover,.books a:hover,.chapters a:hover,.ch a:hover{color:var(--rub)}
.find{display:flex;flex:1 1 100%}
.find input,.find button{margin:0;padding:.55rem .8rem;border:1px solid var(--rule);font:inherit}
.find input{flex:1;min-width:0;border-right:0;border-radius:10px 0 0 10px;background:var(--bg);color:var(--ink);appearance:none}
.find button{border-color:var(--ink);border-radius:0 10px 10px 0;background:var(--ink);color:var(--bg);cursor:pointer;font-weight:600}
::placeholder{color:var(--sec);opacity:1}
.foot{padding-block:1.5rem 3rem;font-size:.9rem;color:var(--sec)}
.foot p{margin:0}
main{padding-block:.5rem 3rem}
h1{margin:0 0 1.25rem;font-size:2.1rem;line-height:1.15;font-weight:650;letter-spacing:-.02em}
h2{margin:2rem 0 .6rem;font-size:1.05rem;font-weight:650}
.crumbs,.count,.pn{font-size:.92rem;color:var(--sec)}
.notice{padding:.6rem .85rem;border-left:3px solid var(--rule)}
.prose{font-size:1.05rem}
.ch a{font-weight:400;color:var(--sec)}

/* One verse a line; the number small and grey beside it. */
.text{font-size:1.15rem;line-height:1.85}
.text p{margin:0 0 .4em}
sup{margin-right:.2em;font-size:.68em;line-height:0;font-weight:650;color:var(--sec)}
.text :target{background:var(--rule);box-shadow:0 0 0 .3rem var(--rule);border-radius:3px}

/* Books in columns; chapters a grid of tiles; each result's reference over its verse. */
.books,.chapters,.results{margin:0;padding:0;list-style:none}
.books{columns:11rem;column-gap:2rem}
.books li{break-inside:avoid}
.books a{display:block;padding-block:.35rem}
.chapters{display:grid;grid-template-columns:repeat(auto-fill,minmax(3.4rem,1fr));gap:.4rem}
.chapters a{display:block;padding-block:.6rem;border:1px solid var(--rule);border-radius:9px;text-align:center}
.chapters a:hover{border-color:var(--rub)}
.results li{margin-bottom:1.4rem}
.results a{display:block;font-weight:650}
.pn{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem 1rem;margin:1.25rem 0}
.pn a{padding-block:.4rem}
.pn .nx{margin-left:auto}
.text+.pn{margin-top:2rem;padding-top:1.25rem;border-top:1px solid var(--rule)}

/* Wide: the search box joins the top line rather than sitting under it. */
@media (min-width:48rem){.find{flex-basis:16rem;max-width:22rem}}
