:root{color-scheme:light;--paper:#f7f5ee;--white:#fffdf8;--ink:#25352e;--muted:#56675d;--green:#355b4c;--border:#dfdfd4;--gold:#e7d3a6;--serif:Georgia,'Times New Roman',serif;--ui:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font:16px var(--ui);background:var(--paper);color:var(--ink)}
*,*::before,*::after{box-sizing:border-box}
body{margin:0}
button,input,textarea,select{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{opacity:.38;cursor:default}
a{color:inherit}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #5a8265;outline-offset:3px}
[hidden]{display:none!important}
[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex:none}
[data-icon] svg{width:1.12em;height:1.12em}
.shell{width:min(1120px,calc(100% - 64px));margin-inline:auto}
.skip{position:fixed;top:-100px;left:12px;z-index:5;padding:10px;background:white}
.skip:focus{top:12px}
.scenery{color:#fffaf0;background:#283b37;background-image:linear-gradient(90deg,rgba(14,31,27,.78),rgba(15,32,29,.42) 44%,rgba(13,30,31,.05) 100%),linear-gradient(0deg,rgba(14,30,27,.4),transparent 45%,rgba(13,27,26,.24)),url('lake.webp');background-size:cover;background-position:center,center,center 72%}
.top{height:78px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff35;gap:12px}
.brand{display:flex;align-items:center;gap:12px;font:1.4rem var(--serif);text-decoration:none;line-height:1.05;white-space:nowrap}
.brand-icon{align-self:center;width:39px;height:39px;border:1px solid #f0e5c78c;border-radius:50%;color:#f6e4b4}
.brand small{display:block;font:700 .69rem var(--ui);letter-spacing:.16em;margin-top:5px;color:#f1e4cd}
.top-actions{display:flex;gap:10px}
.top-button{display:flex;align-items:center;gap:9px;color:#fffdf8;border:1px solid transparent;background:#12242176;border-radius:8px;padding:9px 13px;min-height:44px;font-size:.9rem}
.top-button:hover{background:#122421bf}
.journal-button{border-color:#ffffff65}
.hero{padding:51px 0 63px}
.eyebrow{display:flex;align-items:center;gap:10px;margin:0;font-size:.75rem;letter-spacing:.17em;font-weight:750}
.hero .eyebrow{color:#f1ddb0}
.hero .eyebrow span{width:26px;height:1px;background:#e8d4a6}
.hero h1{margin:10px 0 11px;font:clamp(4rem,8.5vw,7.5rem)/.99 var(--serif);letter-spacing:-.078em;text-shadow:0 3px 24px #17211d63;font-weight:400}
.quote{margin:18px 0 15px;font:italic clamp(1.13rem,3.7vw,1.54rem)/1.3 var(--serif)}
.hero a{display:inline-block;text-decoration:none;color:#f1ddb0;font-size:.75rem;font-weight:750;letter-spacing:.15em;padding-block:5px}
.hero a:hover{text-decoration:underline}
.hero a span{padding-inline:3px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,275px);gap:34px;align-items:start;padding-top:36px}
.reading{min-width:0;background:var(--white);border:1px solid var(--border);border-radius:14px;box-shadow:0 8px 32px #3d3f2610}
.reader-toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:14px 17px;border-bottom:1px solid var(--border);background:#fdfbf4;border-radius:14px 14px 0 0}
.control{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:var(--white);font-weight:650;font-size:.875rem;color:var(--green)}
.control:hover:not(:disabled){background:#eef0e7;border-color:#b9c6b6}
.passage [data-icon=down]{margin-left:8px}
.toolbar-right{display:flex;align-items:center;gap:5px}
.icon-button{min-width:42px;padding-inline:6px}
.separator{height:22px;width:1px;background:var(--border);margin-inline:4px}
.chapter{padding:32px clamp(20px,5vw,51px) 32px}
.chapter-meta{display:flex;align-items:center;gap:11px;font-size:.76rem;letter-spacing:.13em;font-weight:800;color:var(--muted)}
.edition{color:#426353;border-radius:5px;background:#e9eee3;padding:3px 7px;font-size:.7rem;letter-spacing:.08em}
.chapter h2{font:clamp(2.4rem,6vw,4.05rem)/1.04 var(--serif);font-weight:400;letter-spacing:-.065em;margin:9px 0 13px}
.hint{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:.88rem;margin:0 0 22px;line-height:1.4}
.hint svg{color:#668464}
#verses{--verse-size:23px}
.verse{display:grid;grid-template-columns:2.1em minmax(0,1fr);position:relative;text-align:left;width:100%;padding:9px 8px 9px 0;margin:3px 0;border:1px solid transparent;border-radius:8px;background:transparent;color:#25352e;scroll-margin-top:18px}
.verse:hover{background:#eff2e9}
.verse:focus-visible,.verse.target{border-color:#7e9f85}
.verse-number{color:#486655;font:750 .81rem var(--ui);padding-top:.51em;text-align:center}
.verse-text{font:var(--verse-size)/1.48 var(--serif);overflow-wrap:anywhere}
.verse-markers{display:inline-flex;gap:5px;margin-left:6px;vertical-align:middle;color:#486655;font:1rem var(--ui)}
.verse[data-color=gold],.swatch[data-color=gold]{background:#f6e7b2}
.verse[data-color=sage],.swatch[data-color=sage]{background:#dcebd2}
.verse[data-color=rose],.swatch[data-color=rose]{background:#f2dce2}
.verse[data-color=blue],.swatch[data-color=blue]{background:#dbeaf2}
.bottom-nav{border-top:1px solid var(--border);display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;padding-top:20px;margin-top:22px}
.side{display:grid;gap:15px}
.journal-card{padding:24px;border-radius:13px;background:#e8ede1;border:1px solid #d7e0d0}
.journal-icon{width:39px;height:39px;border-radius:10px;background:#d3dfcc;color:#365745;font-size:1.2rem}
.journal-card h2{font:1.88rem var(--serif);letter-spacing:-.035em;margin:13px 0 7px}
.journal-card p,.privacy p{line-height:1.55;color:#4d6256;margin:0 0 12px}
.journal-link{display:flex;align-items:center;gap:8px;padding:7px 0;min-height:42px;text-align:left;border:0;background:none;color:#305444;font-weight:750;font-size:.9rem}
.journal-link:hover{text-decoration:underline}
.privacy{display:flex;gap:9px;padding:2px 6px;color:var(--muted);align-items:start}
.privacy [data-icon]{margin-top:3px}
.privacy p{font-size:.84rem;margin:0}
.continue-card{padding:16px 20px;background:#fbfaf4;border:1px solid var(--border);border-radius:12px}
.continue-card .eyebrow{color:var(--muted)}
.footer{display:flex;justify-content:space-between;gap:12px;padding-block:30px;color:var(--muted);font-size:.83rem}
.footer a{text-underline-offset:3px}
.dot{padding-inline:2px}
.modal-inner{padding:24px}
dialog{width:min(580px,calc(100% - 26px));max-height:min(86dvh,760px);border:1px solid var(--border);border-radius:15px;padding:0;background:var(--white);color:var(--ink);box-shadow:0 20px 90px #101e1b55;overscroll-behavior:contain}
dialog::backdrop{background:#11241eba;backdrop-filter:blur(3px)}
body:has(dialog[open]){overflow:hidden}
.modal-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.modal-header h2{font:2rem/1.1 var(--serif);letter-spacing:-.04em;margin:0}
.modal-inner p{line-height:1.55}
.field{display:grid;gap:7px;margin:0 0 13px;font-size:.9rem;font-weight:700}
input,select,textarea{background:#fffefb;border:1px solid #b9c6b6;border-radius:8px;padding:10px 12px;width:100%;min-height:44px;font-size:1rem}
textarea{min-height:118px;resize:vertical}
.primary{background:#345b49;color:#fffdf8;border-color:#345b49}
.primary:hover:not(:disabled){background:#284738;color:#fffdf8}
.actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.modal-verse{font:1.32rem/1.5 var(--serif);margin:0 0 17px;padding-left:14px;border-left:3px solid #c6d4bf}
.swatches{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.swatch{width:42px;height:42px;border-radius:50%;border:1px solid #7c877870;display:grid;place-items:center;font-weight:800}
.swatch[aria-pressed=true]{border:2px solid #365745}
.modal-divider{border:0;border-top:1px solid var(--border);margin:16px 0}
.tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px}
.tabs button[aria-pressed=true]{background:#dfe9db;border-color:#9eaf9b;color:#254737}
.entries{display:grid;gap:8px}
.entry{display:block;width:100%;background:#fbfaf4;border:1px solid var(--border);border-radius:8px;padding:11px 13px;text-align:left;color:var(--ink);overflow-wrap:anywhere}
.entry:hover{background:#eef0e7}
.entry strong{display:block;color:#345b49;margin-bottom:4px}
.entry span{display:block;line-height:1.4;white-space:pre-wrap}
.empty{color:var(--muted)}
.backup{margin-top:18px}
.status{position:fixed;z-index:4;right:16px;bottom:16px;pointer-events:none}
.status:not(:empty){max-width:min(330px,calc(100% - 32px));padding:10px 15px;background:#274b3d;color:#fffdf8;border-radius:8px;box-shadow:0 4px 20px #14272050}
@media(max-width:760px){.shell{width:calc(100% - 34px)}.workspace{grid-template-columns:1fr;gap:18px;padding-top:19px}.top{height:65px}.hero{padding:45px 0 49px}.scenery{background-position:center,center,61% 62%}.journal-card{padding:18px}.chapter{padding-top:25px}}
@media(max-width:380px){.shell{width:calc(100% - 22px)}.brand{gap:6px;font-size:1.18rem}.brand-icon{width:31px;height:31px}.brand small{font-size:.59rem}.top-actions{gap:4px}.top-button{padding-inline:6px;font-size:.8rem}.reader-toolbar{padding-inline:8px;gap:4px}.toolbar-right{gap:3px}.passage{padding-inline:7px}.passage [data-icon=down]{margin-left:0}.separator{margin-inline:1px}.icon-button{min-width:35px}.chapter{padding-inline:14px}.modal-inner{padding:17px}}
.entry-label{display:block;color:var(--muted);margin-top:5px}

/* Scripture and controls remain readable over the chapter artwork. */
:root { color-scheme: dark; background: #101b1a; }
body { isolation: isolate; min-height: 100vh; }
.scene-backdrop {
  --scene-art: url('lake.webp');
  --scene-tint: #263f40;
  --scene-position: 50% 63%;
  --scene-hue: 0deg;
  --scene-zoom: 1;
  --scene-light: 112deg;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--scene-tint);
}
.scene-backdrop::before, .scene-backdrop::after { content: ''; position: absolute; inset: 0; }
.scene-backdrop::before {
  background: var(--scene-art) var(--scene-position) / cover no-repeat;
  transform: scale(var(--scene-zoom));
  filter: hue-rotate(var(--scene-hue)) saturate(.95);
}
.scene-backdrop::after {
  background:
    linear-gradient(var(--scene-light), transparent 24%, color-mix(in srgb, var(--scene-tint) 22%, transparent)),
    linear-gradient(180deg, #1019132b 3%, #12231e16 36%, #0a17177a 100%);
}
.scenery {
  background: linear-gradient(90deg, #0e201cbe 0%, #0f211c4d 53%, transparent 100%),
    linear-gradient(180deg, #0b161a66, transparent 80%, #0b19182b);
}
.top { border-color: #fff8df48; }
.hero { padding-block: 44px 54px; }
.hero h1 { text-shadow: 0 5px 36px #0009; }
.hero .quote { text-shadow: 0 2px 16px #000; }

.workspace { padding-top: 17px; }
.reading {
  color: #fff9e9;
  background: linear-gradient(115deg, #15231fcb, #12221eb8 65%, #0d1c1dbf);
  border-color: #f4ebc550;
  box-shadow: 0 20px 58px #080f13a0, inset 0 1px #fff2;
}
.reader-toolbar {
  background: #111e1dc2;
  border-color: #f5e5bf2e;
}
.reading .control {
  color: #fff4da;
  background: #182522c2;
  border-color: #f1e4bd55;
}
.reading .control:hover:not(:disabled) { background: #375044; border-color: #fbe5ac9c; }
.separator, .bottom-nav { border-color: #e6d8ad35; }
.separator { background: #e6d8ad35; }
.chapter-meta { color: #f4d9a5; }
.edition { color: #ffe9bd; background: #ead5a022; border: 1px solid #f6dfad38; }
.chapter h2 { text-shadow: 0 3px 22px #000a; }
.hint { color: #eceddb; }
.hint svg { color: #e6c98d; }
.reading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 17px 0 16px; }
.reading .listen-button {
  color: #172c25;
  background: #eddfb4;
  border-color: #f7ebc5;
  box-shadow: 0 3px 12px #0004;
}
.reading .listen-button:hover:not(:disabled) { background: #fff1c4; color: #172c25; }
.scene-caption {
  flex: 1 1 130px;
  color: #f3e6cc;
  font: italic 1rem/1.25 var(--serif);
  text-align: right;
  padding-inline: 3px;
}
.verse {
  color: #fffaf0;
  text-shadow: 0 1px 5px #000c;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  transform-origin: 48% 50%;
}
.verse-number, .verse-markers { color: #f6dba7; }
.verse:hover { background: #fcefc11c; }
.verse:focus-visible, .verse.target { border-color: #dbc68b9c; }
.verse[data-color] { color: #192920; text-shadow: none; }
.verse[data-color] .verse-number, .verse[data-color] .verse-markers { color: #315747; }
.verse.is-lifted {
  z-index: 1;
  border-color: #f8e1a9;
  box-shadow: 0 11px 0 #13211cd0, 0 17px 26px #070d0ec7, inset 0 1px #fff5;
  transform: perspective(720px) translateZ(20px) translateY(-5px) rotateX(4deg);
}
.verse.is-lifted:not([data-color]) { background: #384639; }
.verse.is-listening {
  outline: 2px solid #f5d084;
  outline-offset: -2px;
  box-shadow: 0 0 24px #ecba6326;
}
.verse.is-listening:not([data-color]) { background: #fcecb52c; }
.journal-card, .continue-card { color: #233b30; box-shadow: 0 12px 28px #0004; }
.privacy {
  color: #f7eddb;
  background: #101e1ecf;
  padding: 9px 12px;
  border: 1px solid #efe5c54d;
  border-radius: 8px;
}
.privacy p { color: #fbefdd; }
.footer { color: #fff1d7; text-shadow: 0 1px 8px #000; }
.skip { color: #25352e; }
dialog { color-scheme: light; }
dialog.verse-dialog {
  border-color: #ffedc0;
  box-shadow: 0 4px 0 #c1a77e, 0 10px 0 #8b775d, 0 22px 38px #07120dbf, 0 35px 90px #07120d8f;
  transform-origin: center 64%;
}
dialog.verse-dialog[open] { animation: verse-rise 370ms cubic-bezier(.18,.9,.28,1.05) both; }
dialog.verse-dialog::backdrop { background: #0919108c; backdrop-filter: blur(2px); }
.verse-dialog .modal-verse {
  color: #263c2c;
  background: linear-gradient(120deg, #e6eddd, #fbf3db);
  border: 1px solid #d8dfce;
  border-radius: 9px;
  padding: 16px 18px;
  box-shadow: inset 0 1px #fff, 0 3px 0 #dddfcf, 0 6px 10px #364d3226;
}
@keyframes verse-rise {
  from { opacity: 0; transform: perspective(740px) translateY(52px) translateZ(-95px) rotateX(19deg) scale(.94); }
  to { opacity: 1; transform: perspective(740px) translateY(0) translateZ(0) rotateX(0) scale(1); }
}
.audio-follow { display: flex; align-items: center; gap: 9px; margin: 15px 0; }
.audio-follow input { width: 20px; min-height: 20px; height: 20px; accent-color: #355b4c; }
.audio-player {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(380px, calc(100% - 36px));
  padding: 11px;
  background: #1c2b26;
  color: #fff9e9;
  border: 1px solid #e9d9a97f;
  border-radius: 13px;
  box-shadow: 0 8px 34px #08130dd9, inset 0 1px #fff2;
}
.player-icon { width: 39px; height: 39px; border-radius: 9px; background: #f8e6b327; color: #f7e0ad; }
.player-details { flex: 1; min-width: 0; line-height: 1.25; }
.player-details > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-details span { color: #f3e1bf; font-size: .83rem; margin-top: 4px; }
.audio-player .control { background: #30453b; color: #fff8df; border-color: #dce6ca51; }
.audio-player .control:hover { background: #466154; }
.audio-player .player-main { color: #1c2e24; background: #eddfb4; border-color: #f4e6bf; }
.audio-player .player-main:hover { background: #fff1c4; }
body:has(.audio-player:not([hidden])) .footer { padding-bottom: 105px; }
body:has(.audio-player:not([hidden])) .status { bottom: 100px; }
@media (max-width: 760px) {
  .scene-backdrop::before { background-position: var(--scene-position); }
  .hero { padding-block: 36px 38px; }
  .workspace { padding-top: 12px; }
  .chapter { padding-top: 25px; }
  .scene-caption { flex-basis: 100%; text-align: left; margin: 2px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.verse-dialog[open] { animation: none; }
  .verse { transition: none; }
}

.player-details .hymn-title { color: #e4d29d; font-size: .75rem; }
.audio-player .hymn-toggle[aria-pressed="true"] { color: #ffe5a1; border-color: #e3c87a8a; }
.audio-player .hymn-toggle[aria-pressed="false"] svg { opacity: .60; }
@media (max-width: 400px) {
  .audio-player { gap: 6px; }
  .audio-player .player-icon { display: none; }
}

.verse-commentary { margin: 0 0 17px; border: 1px solid #c2d1bd; border-radius: 9px; background: #f0f3e9; }
.verse-commentary summary { cursor: pointer; padding: 12px 15px; color: #263f34; font-weight: 700; }
.verse-commentary .commentary-prose { padding: 0 15px 18px; }
.verse-commentary h3 { margin: 2px 0 12px; font: 600 1.6rem Georgia, serif; }
.commentary-text-link { display: inline-block; margin-top: 4px; color: #264637; text-underline-offset: .2em; }
.commentary-backdrop { --scene-art: url('/art/creation.webp'); --scene-tint: #172824; --scene-position: 50% 44%; }
.commentary-page { color: #f8f0dc; }
.commentary-shell { max-width: 820px; padding: 42px 0 65px; }
.commentary-header { margin-bottom: 22px; padding: 0 4px; text-shadow: 0 2px 12px #091810; }
.commentary-header h1 { margin: 12px 0; font: 500 clamp(2.8rem, 8vw, 5.5rem)/1 Georgia, serif; }
.commentary-header nav { display: flex; gap: 15px; }
.commentary-header nav a { padding: 8px 0; text-underline-offset: .2em; }
.commentary-article { margin: 0 0 18px; scroll-margin-top: 12px; padding: clamp(19px, 5vw, 38px); border: 1px solid #d9d8c9; border-radius: 15px; background: #fbf7ed; color: #21352a; }
.commentary-article h2 { margin: 10px 0 16px; font: 500 clamp(1.8rem, 5vw, 2.9rem)/1.12 Georgia, serif; }
.commentary-article .chapter-meta { color: #4a6956; }
.commentary-article .edition { color: #395745; }
.commentary-article blockquote { margin: 0 0 22px; border-left: 3px solid #a0ac8c; padding: 10px 14px; background: #eeeee2; font: 1.15rem/1.55 Georgia, serif; }
.commentary-prose p { margin: 0 0 .9em; font: 1.05rem/1.65 Georgia, serif; }

#show-devotion { display:block; margin:0 auto .9rem; padding:.55rem 1rem; border:1px solid #ffffff82; border-radius:2rem; color:white; background:#163c32; cursor:pointer; font:inherit }
.daily-devotion { width:min(31rem,calc(100% - 1.5rem)); background:#fbf9f3; color:#18382e; }
.devotion-landscape { padding:clamp(3.5rem,13vh,7rem) 1.6rem 1.4rem; color:#fff; background:linear-gradient(0deg,#122c28fa, #142e2830),url(lake.webp) center 53% / cover; }
.devotion-landscape p { font:600 .85rem/1.5 system-ui; letter-spacing:.045em; margin:0 0 .5rem }
.devotion-landscape h2 { color:inherit; font:normal clamp(2rem,7vw,3rem)/1.06 Georgia,serif; margin:0 }
.devotion-reading { padding:1.5rem clamp(1.25rem,5vw,2rem) }
.devotion-reading blockquote { margin:0; padding-left:1rem; border-left:3px solid #ae8d4e; font:normal 1.23rem/1.5 Georgia,serif }
#devotion-reference { margin:.65rem 0 1.25rem 1rem; font:600 .88rem system-ui; color:#51654d }
#devotion-thought { line-height:1.65; font-size:1rem }
.devotion-reading button { width:100%; padding:.85rem; background:#214d3f; border:0; border-radius:.5rem; color:white; font:600 1rem system-ui; cursor:pointer }
