/* Paper and ink, with red "rubrics" for headings and verse numbers, as in printed Bibles.
   Each theme is a set of colours; prefs.js sets data-theme on <html> (and on the little
   previews on the settings page) plus the font and size variables. */

/* ---- Themes ---- */

:root, [data-theme="parchment"] {
  --bg: #f4eee3;
  --surface: #fbf8f1;
  --ink: #2a231d;
  --muted: #84776a;
  --faint: #c9bca8;
  --line: #e2d7c5;
  --rubric: #9e3326;
  --rubric-soft: #f0e0d4;
  --gold: #a8834a;
  --quote: #f0e8da;
  --wood: #b99d78;
  --glow: rgba(255, 238, 204, .95);
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 8px 24px -12px rgba(60, 40, 20, .18);
  color-scheme: light;
}
[data-theme="olive"] {
  --bg: #eceee2;
  --surface: #f8f9f2;
  --ink: #252d20;
  --muted: #6c7562;
  --faint: #bfc6ae;
  --line: #d9ddc9;
  --rubric: #56692a;
  --rubric-soft: #e1e7cb;
  --gold: #a48a3e;
  --quote: #e6eada;
  --wood: #a39e74;
  --glow: rgba(252, 250, 220, .95);
  --shadow: 0 1px 2px rgba(40, 50, 20, .05), 0 8px 24px -12px rgba(40, 50, 20, .18);
  color-scheme: light;
}
[data-theme="galilee"] {
  --bg: #e8eef2;
  --surface: #f7fafb;
  --ink: #1b2933;
  --muted: #5e707c;
  --faint: #b6c6d0;
  --line: #d3dee5;
  --rubric: #2b5c7c;
  --rubric-soft: #d9e6ee;
  --gold: #b08a4c;
  --quote: #e1eaf0;
  --wood: #9badb7;
  --glow: rgba(255, 252, 240, .95);
  --shadow: 0 1px 2px rgba(20, 40, 60, .05), 0 8px 24px -12px rgba(20, 40, 60, .18);
  color-scheme: light;
}
[data-theme="lamplight"] {
  --bg: #e7d6b6;
  --surface: #f1e3c6;
  --ink: #3a2817;
  --muted: #7f6347;
  --faint: #c4a981;
  --line: #d6bf98;
  --rubric: #8a3913;
  --rubric-soft: #e3c9a2;
  --gold: #946d2c;
  --quote: #e9d5ae;
  --wood: #9c7a50;
  --glow: rgba(255, 220, 150, .7);
  --shadow: 0 1px 2px rgba(70, 40, 10, .08), 0 8px 24px -12px rgba(70, 40, 10, .25);
  color-scheme: light;
}
[data-theme="plain"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --ink: #111111;
  --muted: #555555;
  --faint: #b5b5b5;
  --line: #e2e2e2;
  --rubric: #a3211a;
  --rubric-soft: #f7e4e2;
  --gold: #866a36;
  --quote: #f5f4f1;
  --wood: #cfcfcf;
  --glow: transparent;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px -12px rgba(0, 0, 0, .14);
  color-scheme: light;
}
[data-theme="vespers"] {
  --bg: #17130f;
  --surface: #201b16;
  --ink: #ebe2d2;
  --muted: #a39581;
  --faint: #4a4036;
  --line: #342c24;
  --rubric: #e08a70;
  --rubric-soft: #3a2520;
  --gold: #c9a66b;
  --quote: #262019;
  --wood: #4a3a2b;
  --glow: rgba(201, 166, 107, .10);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
[data-theme="midnight"] {
  --bg: #0e1320;
  --surface: #151c2b;
  --ink: #e3e1d8;
  --muted: #8e98a9;
  --faint: #39435a;
  --line: #242d40;
  --rubric: #d8b36a;
  --rubric-soft: #2b2b2a;
  --gold: #d8b36a;
  --quote: #19223a;
  --wood: #2c3650;
  --glow: rgba(216, 179, 106, .08);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

:root {
  --leaf: #ecd9a8;
  --display: "EB Garamond", Garamond, "Iowan Old Style", Georgia, serif;
  --text: "Literata", "Iowan Old Style", Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --study-size: 18px;
  --note-size: 16px;
  --leading: 1.7;
  --bible-zoom: 1;
  --bible-width: 44%;
  --topbar: 52px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

a { color: var(--rubric); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--rubric); outline-offset: 2px; }
::selection { background: var(--rubric-soft); }

button, .button, select, input { font: inherit; color: inherit; }

.eyebrow {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Shared progress bar: <span class="bar"><span style="width:…"></span></span> */
.progress-line { display: flex; align-items: center; gap: 10px; font: 13px var(--ui); color: var(--muted); }
.progress-line:empty { display: none; }
.bar { position: relative; flex: 0 0 120px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar > span { position: absolute; inset: 0 auto 0 0; background: var(--gold); border-radius: 4px; transition: width .4s ease; }

/* ---- Top bar ---- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  font-family: var(--ui);
  font-size: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-sub { font: italic 400 14px var(--display); letter-spacing: .02em; text-transform: none; color: var(--muted); margin-left: -2px; }
.h1-sub { display: block; margin-top: 4px; font: italic 400 .42em var(--display); letter-spacing: .04em; color: var(--muted); }
.brand-mark { width: 26px; height: 26px; color: var(--rubric); flex: none; }
.crumbs { display: flex; gap: 8px; align-items: baseline; min-width: 0; overflow: hidden; white-space: nowrap; }
.crumbs a { color: var(--ink); }
.crumbs span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--faint); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.topbar-link { color: var(--muted); white-space: nowrap; margin-right: 6px; }
.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--muted);
}
.icon-btn:hover { background: var(--rubric-soft); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* Account */
.account { position: relative; display: flex; }
.signin {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.signin:hover { border-color: var(--faint); }
.signin svg { width: 16px; height: 16px; }
.account-btn { position: relative; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--rubric);
  color: var(--surface);
  font: 600 14px var(--ui);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line);
}
.avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.avatar.xl { width: 56px; height: 56px; font-size: 22px; }
.sync-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  background: var(--faint);
}
.sync-dot[data-status="synced"] { background: #4f9a5d; }
.sync-dot[data-status="syncing"], .sync-dot[data-status="pending"] { background: var(--gold); animation: pulse 1.2s ease-in-out infinite; }
.sync-dot[data-status="reconnect"], .sync-dot[data-status="error"] { background: #c5533b; }
@keyframes pulse { 50% { opacity: .35; } }

.account-menu, .quick {
  position: absolute;
  z-index: 30;
  right: 0;
  top: calc(100% + 10px);
  width: 300px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow), 0 20px 40px -20px rgba(0, 0, 0, .25);
  font: 14px var(--ui);
  animation: pop .14s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.account-menu .who { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.account-menu .who div { display: grid; min-width: 0; }
.account-menu .who span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.account-menu > button, .account-menu > a {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
}
.account-menu > button:hover, .account-menu > a:hover { background: var(--rubric-soft); text-decoration: none; }
.account-menu > button.primary { background: var(--rubric); color: var(--surface); margin-bottom: 4px; }
.sync-line { margin: 10px 0; font: 13px/1.45 var(--ui); color: var(--muted); padding-left: 16px; position: relative; }
.sync-line::before { content: ""; position: absolute; left: 0; top: .42em; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.sync-line[data-status="synced"]::before { background: #4f9a5d; }
.sync-line[data-status="syncing"]::before, .sync-line[data-status="pending"]::before { background: var(--gold); }
.sync-line[data-status="reconnect"]::before, .sync-line[data-status="error"]::before { background: #c5533b; }

/* ---- Home ---- */

.home-main, .page { max-width: 860px; margin: 0 auto; padding: 0 24px 96px; }
.home-wide { max-width: 1240px; margin: 0 auto; padding: 0 24px 96px; }


.method {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.step { padding: 24px 22px; text-align: center; }
.step + .step { border-left: 1px solid var(--line); }
.numeral { display: block; font-family: var(--display); font-size: 15px; letter-spacing: .2em; color: var(--gold); }
.step h3 { margin: 4px 0 2px; font-family: var(--display); font-weight: 500; font-size: 28px; color: var(--rubric); font-variant: small-caps; letter-spacing: .04em; }
.step .ask { margin: 0 0 10px; font-family: var(--display); font-style: italic; font-size: 18px; color: var(--ink); }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.block { margin-top: 56px; }
.block-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rubric);
}
.block-title::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

/* ---- Series card and study list ---- */

.series-card {
  margin-top: 16px;
  padding: 30px 30px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.series-card h3 { margin: 4px 0 0; font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1.15; }
.series-card h3 a { color: var(--ink); }
.series-card .count { margin: 2px 0 0; font-size: 15px; color: var(--muted); }
.series-progress { margin-top: 10px; }
.series-card header { margin-bottom: 16px; }

.studies { list-style: none; margin: 0; padding: 0; }
.studies li + li { border-top: 1px solid var(--line); }
.studies a {
  display: grid;
  grid-template-columns: 2em 1fr auto 22px;
  gap: 14px;
  align-items: center;
  padding: 13px 4px;
  color: var(--ink);
  border-radius: 8px;
}
.studies a:hover { text-decoration: none; }
.studies a:hover .name { color: var(--rubric); }
.studies .num { font-family: var(--display); font-size: 20px; color: var(--rubric); font-variant-numeric: oldstyle-nums; }
.studies .name { font-family: var(--display); font-size: 21px; line-height: 1.3; }
.studies .ref { font-size: 14px; color: var(--muted); white-space: nowrap; }
.studies .is-done .name { color: var(--muted); }
.mark { display: block; width: 22px; height: 22px; }
.mark svg { display: block; width: 22px; height: 22px; }
.mark .track { fill: none; stroke: var(--line); stroke-width: 2.2; }
.mark .arc { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.mark .fill { fill: var(--gold); }
.mark .tick { fill: none; stroke: var(--surface); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.page > .studies { margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Search ---- */

.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search {
  width: 100%;
  padding: 15px 16px 15px 46px;
  font: 18px var(--text);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.search::placeholder { color: var(--muted); opacity: .8; }
.search:focus { outline: none; border-color: var(--rubric); box-shadow: 0 0 0 3px var(--rubric-soft); }
.search-results { list-style: none; margin: 8px 0 0; padding: 0; }
.search-results a { display: grid; gap: 2px; padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
.search-results a:hover { text-decoration: none; }
.search-results a:hover .r-title { color: var(--rubric); }
.r-title { font-family: var(--display); font-size: 21px; }
.r-tag { font: 600 10px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 4px; padding: 1px 5px; margin-right: 8px; vertical-align: 3px; }
.r-snip { font-size: 15px; color: var(--muted); }
.r-snip mark { background: var(--rubric-soft); color: var(--ink); border-radius: 2px; padding: 0 2px; }
.search-results .none { padding: 12px 4px; color: var(--muted); }

/* ---- The library: an antique bookcase that fills the window ----
   Textures are SVG noise. "Relief" and "pebble" are noise run through a lighting filter,
   blended with soft-light so wood grain and leather grain look raised. site.js animates
   the volumes with springs and draws the dust in the light. */

.bookcase {
  --speck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='f' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .38 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E");
  --mottle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='f' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.04' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .86 0 0 0 0 .7 0 0 0 .26 -.11'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E");
  --pebble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.05' numOctaves='2' stitchTiles='stitch'/%3E%3CfeDiffuseLighting surfaceScale='1.2' lighting-color='%23fff'%3E%3CfeDistantLight azimuth='235' elevation='58'/%3E%3C/feDiffuseLighting%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='.75' intercept='-.14'/%3E%3CfeFuncG type='linear' slope='.75' intercept='-.14'/%3E%3CfeFuncB type='linear' slope='.75' intercept='-.14'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E");
  --grain-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='600'%3E%3Cfilter id='f' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55 .008' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .75 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E");
  --grain-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='200'%3E%3Cfilter id='f' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006 .5' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .75 -.12'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E");
  --relief-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='640'%3E%3Cfilter id='f' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.22 .006' numOctaves='3' stitchTiles='stitch'/%3E%3CfeDiffuseLighting surfaceScale='3' lighting-color='%23fff'%3E%3CfeDistantLight azimuth='160' elevation='55'/%3E%3C/feDiffuseLighting%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.6' intercept='-.81'/%3E%3CfeFuncG type='linear' slope='1.6' intercept='-.81'/%3E%3CfeFuncB type='linear' slope='1.6' intercept='-.81'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E");
  --relief-h: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='240'%3E%3Cfilter id='f' x='0' y='0' width='1' height='1'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.005 .25' numOctaves='3' stitchTiles='stitch'/%3E%3CfeDiffuseLighting surfaceScale='3' lighting-color='%23fff'%3E%3CfeDistantLight azimuth='250' elevation='55'/%3E%3C/feDiffuseLighting%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='1.6' intercept='-.81'/%3E%3CfeFuncG type='linear' slope='1.6' intercept='-.81'/%3E%3CfeFuncB type='linear' slope='1.6' intercept='-.81'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E");
  --frame: clamp(14px, 1.6vw, 28px);
  --frieze: clamp(30px, 4.2vh, 42px);
  --flute: repeating-linear-gradient(90deg, rgba(0,0,0,.55) 0 1px, rgba(255,205,160,.08) 1px 2px, transparent 2px 5px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: calc(100% - 24px);
  height: calc(100vh - var(--topbar) - 14px);
  min-height: 560px;
  margin: 14px auto 0;
  padding: 0 var(--frame);
  border-radius: 5px 5px 0 0;
  background:
    var(--relief-v),
    var(--flute) left calc(var(--frame) * .22) top 0 / calc(var(--frame) * .56) 100% no-repeat,
    var(--flute) right calc(var(--frame) * .22) top 0 / calc(var(--frame) * .56) 100% no-repeat,
    var(--grain-v),
    linear-gradient(90deg, #170804, #4c2414 1.1%, #3e1c0e 1.8%, #44210f 50%, #3e1c0e 98.2%, #4c2414 98.9%, #170804),
    #3b190d;
  background-blend-mode: soft-light, normal, normal, normal, normal, normal;
  box-shadow: 0 40px 80px -40px rgba(20, 8, 2, .8), 0 2px 0 rgba(0,0,0,.25);
  opacity: 0;
  transition: opacity .9s ease;
}
.bookcase.ready { opacity: 1; }
/* the room is lit from the picture lights; the case falls into shadow at the edges */
.bookcase::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    radial-gradient(ellipse 85% 80% at 50% 32%, transparent 48%, rgba(8, 3, 1, .5)),
    linear-gradient(180deg, transparent 65%, rgba(8, 3, 1, .22));
}

/* crown: cornice mouldings, a frieze with the title in gilt, a row of dentils */
.crown {
  position: relative;
  z-index: 7;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: clamp(74px, 10vh, 112px);
  margin: 0 calc(-1 * var(--frame));
  padding: 10px calc(var(--frame) + 18px) 14px;
  border-radius: 5px 5px 0 0;
  background:
    linear-gradient(180deg, rgba(255,210,170,.16), transparent 35%, rgba(0,0,0,.5)) left 0 bottom 5px / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, #5e2e1a 0 9px, #3a190c 9px 10px, #0e0502 10px 15px) left 0 bottom 5px / 100% 9px no-repeat,
    var(--relief-h),
    var(--grain-h),
    linear-gradient(180deg,
      #74402a 0, #2a1209 3px, #5f301c 4px, #4a2412 9px, #2a1209 11px, #6a3723 12px, #3a1a0d 14px,
      #4c2615 15px, #40200f 65%, #2a1208 calc(100% - 16px), #5a2c19 calc(100% - 15px), #3a1a0d calc(100% - 14px),
      #2a1208 calc(100% - 5px), #5a2c19 calc(100% - 4px), #1c0b05 100%);
  background-blend-mode: normal, normal, soft-light, normal, normal;
  box-shadow: 0 8px 14px -4px rgba(0,0,0,.65);
}
.crown-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 50px);
  line-height: 1;
  letter-spacing: .5em;
  margin-right: -.5em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, #fbe9b6 8%, #d6aa58 46%, #8a5f22 52%, #e9c77d 86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 -1px 0 rgba(0,0,0,.9)) drop-shadow(0 1px 0 rgba(255,214,150,.16)) drop-shadow(0 0 14px rgba(255, 190, 100, .12));
}
.crown-name { display: grid; justify-items: center; gap: 4px; }
.crown-sub {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: rgba(232, 200, 140, .72);
  font: italic 500 clamp(11px, .95vw, 15px) var(--display);
  letter-spacing: .14em;
  text-shadow: 0 -1px 0 rgba(0,0,0,.8);
}
.crown-sub::before, .crown-sub::after {
  content: "";
  width: clamp(30px, 4vw, 70px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 180, 110, .6));
}
.crown-sub::after { transform: scaleX(-1); }
.crown-hint { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(13px, 1.05vw, 17px); color: rgba(226, 196, 148, .55); }
.crown-continue {
  justify-self: end;
  display: flex;
  align-items: baseline;
  gap: 10px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  color: #e2c58a;
  font-family: var(--display);
  font-size: clamp(13px, 1.05vw, 17px);
  transition: color .3s ease;
}
.crown-continue:hover { text-decoration: none; color: #f8e2ab; }
.crown-continue .cl { font: 600 10px var(--ui); letter-spacing: .2em; text-transform: uppercase; color: rgba(226, 196, 148, .6); }
.crown-continue .continue-title { font-style: italic; }
.crown-continue .continue-meta, .crown-continue .continue-progress { display: none; }

.bays {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--ot, 1.6fr) var(--frame) var(--nt, 1fr);
}
.stile {
  background:
    var(--flute) center / 56% 100% no-repeat,
    var(--relief-v),
    var(--grain-v),
    linear-gradient(90deg, #1a0904, #4c2515 18%, #3f1d0f 55%, #2a1208 85%, #140703);
  background-blend-mode: normal, soft-light, normal, normal;
}
.bay { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.frieze {
  display: grid;
  place-items: center;
  height: var(--frieze);
  background:
    var(--relief-h),
    var(--grain-h),
    linear-gradient(180deg, #2c1309, #3c1b0d 40%, #2a1208);
  background-blend-mode: soft-light, normal, normal;
  box-shadow: inset 0 -2px 3px rgba(0,0,0,.5);
}
/* engraved brass nameplate, two screws */
.frieze span {
  padding: 3px 24px 2px;
  border-radius: 2px;
  background:
    radial-gradient(circle at 9px 50%, #f3dca0 0 1px, #4a3414 1.5px 2.6px, transparent 3px),
    radial-gradient(circle at calc(100% - 9px) 50%, #f3dca0 0 1px, #4a3414 1.5px 2.6px, transparent 3px),
    var(--speck),
    linear-gradient(180deg, #dcb86a, #9a7434 52%, #c39a50);
  box-shadow: inset 0 1px 0 rgba(255,244,210,.55), inset 0 -1px 0 rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.75);
  color: #2b1b09;
  font: 600 clamp(9px, .72vw, 12px) var(--ui);
  letter-spacing: .3em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255,238,195,.4);
}

/* brass picture light over each bay, and the warm light it throws */
.fixture {
  position: absolute;
  z-index: 7;
  top: calc(var(--frieze) + 7px);
  left: 50%;
  width: clamp(120px, 24%, 230px);
  height: 11px;
  transform: translateX(-50%);
  border-radius: 3px 3px 50% 50% / 3px 3px 100% 100%;
  background: linear-gradient(180deg, #fbe6ac, #c4933f 28%, #7a5218 70%, #3b2408);
  box-shadow: 0 3px 5px rgba(0,0,0,.6);
  pointer-events: none;
}
.fixture::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 72%;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff8e2, rgba(255, 214, 140, .75) 45%, transparent);
}
.fixture::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 7px;
  height: 9px;
  margin-left: -3.5px;
  border-radius: 1px;
  background: linear-gradient(90deg, #4a2f0c, #e8c47a 45%, #4a2f0c);
}
.light {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: var(--frieze);
  bottom: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse 22% 7% at 50% 2%, rgba(255, 226, 170, .38), transparent),
    radial-gradient(ellipse 52% 70% at 50% 0, rgba(255, 186, 104, .24), rgba(255, 160, 80, .08) 55%, transparent 82%);
}

/* inside: back boards with seams, shadowed at the sides */
.shelves {
  --rowh: 240px;
  --plank: 20px;
  --bh: 200px;
  --depth: 130px;
  --fs: 12px;
  position: relative;
  flex: 1;
  min-height: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.6), transparent 4%, transparent 96%, rgba(0,0,0,.6)),
    repeating-linear-gradient(90deg, transparent 0 calc(11% - 2px), rgba(0,0,0,.6) calc(11% - 2px) calc(11% - 1px), rgba(255,210,160,.05) calc(11% - 1px) 11%),
    var(--relief-v),
    var(--grain-v),
    #1f0c06;
  background-blend-mode: normal, normal, soft-light, normal, normal;
}
.shelves:not(.laid) { display: flex; flex-wrap: wrap; align-content: flex-start; }

.row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: var(--rowh);
  padding: 0 10px var(--plank);
}
/* the plank: a top face in the books' shadow, a lit beaded front edge, grain */
.row::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--plank);
  background:
    var(--relief-h),
    var(--grain-h),
    linear-gradient(180deg,
      #1a0904 0, #3b1c0e 10%, #5e2f1a 26%, #8c5130 30%, #b06c43 31.5%, #6d3820 36%,
      #56291a 55%, #3f1e0f 80%, #2a1208 94%, #100502);
  background-blend-mode: soft-light, normal, normal;
  box-shadow: 0 10px 16px -4px rgba(0,0,0,.7);
}
/* the shelf above throws its shadow over the tops of the books */
.row::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 36%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8,3,1,.78), rgba(8,3,1,.3) 34%, transparent);
}

.slot {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100%;
}
/* the dark depth of the shelf behind each volume */
.slot::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--bh) * 1.03);
  background: linear-gradient(180deg, #030100, #0a0402 60%, #140804);
}
.slot.active { z-index: 5; }
/* the shadow a pulled volume casts on its neighbours */
.drop {
  position: absolute;
  left: -60%;
  right: -60%;
  bottom: -4px;
  height: calc(var(--bh) * 1.08);
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 56%, rgba(0,0,0,.6), rgba(0,0,0,.25) 55%, transparent 74%);
  will-change: opacity;
}

/* group labels: brass card-holders on the front of the shelf */
.holder {
  position: absolute;
  left: 4px;
  bottom: calc(var(--plank) * -.82);
  z-index: 2;
  display: grid;
  place-items: center;
  height: max(11px, calc(var(--plank) * .55));
  padding: 1px;
  border-radius: 1px;
  background: linear-gradient(180deg, #e6c47a, #7d5c26 60%, #b08a45);
  box-shadow: 0 1px 2px rgba(0,0,0,.75), inset 0 1px 0 rgba(255,244,210,.55);
  white-space: nowrap;
  pointer-events: none;
}
.holder span {
  display: block;
  padding: 0 6px;
  background: linear-gradient(180deg, #f1e7cd, #dacdab);
  color: #3b2a18;
  font: 600 max(7.5px, calc(var(--plank) * .36))/1.35 var(--ui);
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ---- a volume ---- */

.book {
  --h0: 22deg; --s0: 46%; --l0: 21%;          /* brown calf (Old Testament) */
  --g1: #d8c08a; --g2: #a8894f; --g3: #5f4826; --g4: #b99c63;   /* tarnished gilt */
  --gilt: #a88c55;
  --edge1: #b9a06a; --edge2: #8a7044;
  --label: #1a1310;
  --hue: calc(var(--h0) + var(--jh, 0) * 1deg);
  --leather: hsl(var(--hue) var(--s0) calc(var(--l0) + var(--jl, 0) * .9%));
  --leather-dk: hsl(var(--hue) var(--s0) calc(var(--l0) * .55));
  position: relative;
  display: block;
  flex: none;
  width: var(--bw, 30px);
  height: calc(var(--bh) * (1 + var(--jl, 0) * .006));
  border-radius: 3px 3px 2px 2px / 6px 6px 2px 2px;
  outline: none;
  cursor: default;
  background:
    var(--pebble),
    var(--speck),
    var(--mottle),
    radial-gradient(ellipse 140% 4.5% at 50% 0, rgba(245, 220, 180, .26), transparent 75%),
    radial-gradient(ellipse 140% 3.5% at 50% 100%, rgba(245, 220, 180, .16), transparent 75%),
    linear-gradient(90deg, rgba(0,0,0,.66), rgba(0,0,0,.16) 12%, rgba(255,236,210,.13) 34%, rgba(255,236,210,.04) 56%, rgba(0,0,0,.24) 82%, rgba(0,0,0,.7)),
    var(--leather);
  background-blend-mode: soft-light, normal, normal, normal, normal, normal, normal;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,.28),
    inset 0 -10px 12px -8px rgba(0,0,0,.55),
    1px 0 2px rgba(0,0,0,.6);
  transform-origin: 50% 100%;
  will-change: transform;
}
.bay[data-testament="nt"] .book { --h0: 357deg; --s0: 52%; --l0: 19%; }  /* oxblood morocco */
.book.bound {
  --g1: #fff0bf; --g2: #e1bb6a; --g3: #8c6224; --g4: #f0d088;
  --gilt: #d8b468;
  --edge1: #f2d690; --edge2: #b89040;
  cursor: pointer;
}
.book.bound:hover { text-decoration: none; }
.book:focus-visible { box-shadow: inset 0 0 0 1px rgba(0,0,0,.28), 0 0 0 2px rgba(240, 200, 120, .8), 0 0 18px rgba(255, 200, 120, .35); }

.book[data-group="Law"]            { --label: #5c1712; }
.book[data-group="History"]        { --label: #15100d; }
.book[data-group="Wisdom"]         { --label: #1c3326; }
.book[data-group="Major Prophets"] { --label: #182538; }
.book[data-group="Minor Prophets"] { --label: #34202e; }
.book[data-group="Gospels"]        { --label: #15100d; }
.book[data-group="Paul's Letters"] { --label: #182538; }
.book[data-group="General Letters"]{ --label: #1c3326; }
.book[data-group="Prophecy"]       { --label: #15100d; }

/* raised bands with gilt fillets, and a fine gilt rule at head and tail */
.bands {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --band: linear-gradient(180deg, transparent 0 1px, var(--gilt) 1px 2px, rgba(0,0,0,.7) 2px 3px, rgba(255,236,205,.28) 3px 4px, rgba(255,236,205,.08) 4px 6px, rgba(0,0,0,.65) 6px 8px, var(--gilt) 8px 9px, transparent 9px);
  --rule: linear-gradient(180deg, var(--gilt) 0 1px, transparent 1px 3px, var(--gilt) 3px 4px);
  background:
    var(--rule) 0 1.4% / 100% 4px no-repeat,
    var(--band) 0 6% / 100% 10px no-repeat,
    var(--band) 0 15% / 100% 10px no-repeat,
    var(--band) 0 72% / 100% 10px no-repeat,
    var(--band) 0 81% / 100% 10px no-repeat,
    var(--band) 0 94.5% / 100% 10px no-repeat,
    var(--rule) 0 98.8% / 100% 4px no-repeat;
}
.fleuron {
  position: absolute;
  left: 50%;
  top: calc(10.5% + 4px);
  width: min(9px, 26%);
  aspect-ratio: 1;
  border: 1px solid var(--gilt);
  transform: translate(-50%, -50%) rotate(45deg);
  background: radial-gradient(circle, var(--gilt) 0 28%, transparent 32%);
}
.book .label {
  position: absolute;
  left: 10%;
  right: 10%;
  top: calc(15% + 13px);
  bottom: calc(28% + 4px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 1px;
  background:
    var(--pebble),
    var(--speck),
    linear-gradient(90deg, rgba(0,0,0,.38), transparent 30%, rgba(255,240,220,.06) 50%, transparent 70%, rgba(0,0,0,.38)),
    var(--label);
  background-blend-mode: soft-light, normal, normal, normal;
  box-shadow: inset 0 0 0 2px var(--label), inset 0 0 0 3px var(--gilt), 0 0 0 1px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.4);
}
/* titles in gold leaf, pressed into the label */
.book .label .t {
  writing-mode: vertical-rl;
  max-height: calc(100% - 10px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--fs);
  letter-spacing: .16em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--g3), var(--g2) 22%, var(--g1) 46%, var(--g4) 62%, var(--g3) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 -1px 0 rgba(0,0,0,.8)) drop-shadow(0 .6px 0 rgba(255,226,170,.12));
}
.vol {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(81% + 10px);
  bottom: calc(5.5% + 10px);
  display: grid;
  place-items: center;
  color: var(--g2);
  font: 500 calc(var(--fs) * .78) var(--display);
  letter-spacing: .08em;
  text-shadow: 0 -1px 0 rgba(0,0,0,.8);
}
.ribbon {
  position: absolute;
  left: 30%;
  bottom: calc(var(--plank) * -.9);
  width: max(4px, 9%);
  height: calc(var(--plank) * 1.4);
  background: linear-gradient(90deg, #4f0f10, #962828 45%, #6a1718);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%);
}

/* a soft glint that passes over the gilt as the volume comes forward */
.sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}
.sheen i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -100%;
  width: 300%;
  background: linear-gradient(100deg, transparent 38%, rgba(255,236,200,.10) 46%, rgba(255,246,222,.24) 50%, rgba(255,236,200,.10) 54%, transparent 62%);
  will-change: transform;
}

.plinth {
  height: clamp(16px, 2.4vh, 28px);
  margin: 0 calc(-1 * var(--frame));
  background:
    var(--relief-h),
    var(--grain-h),
    linear-gradient(180deg, #160803, #643220 3px, #4c2414 6px, #2e1409 60%, #1a0a04);
  background-blend-mode: soft-light, normal, normal;
}

/* dust drifting in the light, and the warmth that follows your hand */
.motes { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.glow {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 8;
  width: 1000px;
  height: 1000px;
  margin: -500px 0 0 -500px;
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: soft-light;
  background: radial-gradient(closest-side, rgba(255, 214, 150, .62), rgba(255, 186, 110, .22) 42%, transparent);
  opacity: 0;
  transition: opacity .7s ease;
  will-change: transform, opacity;
}
.bookcase.lit .glow { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .bookcase { transition: none; }
  .motes { display: none; }
}

/* ---- the library card naming the volume in your hand ---- */

.book-tip {
  position: absolute;
  z-index: 40;
  width: 268px;
  padding: 13px 18px 14px 26px;
  border-radius: 2px;
  background:
    linear-gradient(180deg, #b23a2f 0 2px, transparent 2px),
    linear-gradient(90deg, transparent 0 13px, rgba(178, 58, 47, .35) 13px 14px, transparent 14px),
    #f2e9d4;
  color: #2a1f15;
  box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 24px 44px -16px rgba(0,0,0,.7);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .22s ease, transform .4s cubic-bezier(.16, 1, .3, 1);
}
.book-tip.show { opacity: 1; transform: translate(-50%, 0); }
.book-tip .tip-vol { display: block; font: 600 10px var(--ui); letter-spacing: .22em; text-transform: uppercase; color: #8a6d45; }
.book-tip strong { display: block; margin-top: 2px; font: 500 26px/1.1 var(--display); }
.book-tip .meta-line { display: block; margin-top: 4px; font: italic 14px/1.4 var(--display); color: #5d4a36; }
.book-tip .status { display: block; margin-top: 8px; font: 600 11px var(--ui); letter-spacing: .06em; color: #8a7458; }
.book-tip .status.open { color: #9e3326; }

.home-lower { padding-top: 8px; }

/* ---- Book and series pages ---- */

.page-head { padding: 56px 0 8px; }
.page-head h1 { margin: 6px 0 0; font-family: var(--display); font-weight: 500; font-size: 54px; line-height: 1.05; }
.intro { margin-top: 16px; font-size: 18px; line-height: 1.75; }
.intro p:first-child::first-letter {
  float: left;
  margin: 6px 10px 0 0;
  font-family: var(--display);
  font-size: 64px;
  line-height: .8;
  color: var(--rubric);
}
.page .series-card { margin-top: 32px; }

/* ---- Study page: Bible on one side, study on the other ---- */

.study-layout { display: flex; height: calc(100vh - var(--topbar)); overflow: hidden; }
.split {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(280px, var(--bible-width)) 1fr;
  height: 100%;
}
.split.bible-right { grid-template-columns: 1fr minmax(280px, var(--bible-width)); }
.split.bible-right .bible { order: 2; border-right: 0; border-left: 1px solid var(--line); }

.bible { position: relative; display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--surface); }
.bible-bar { display: flex; gap: 6px; padding: 8px; border-bottom: 1px solid var(--line); font-family: var(--ui); }
.bible-bar input, .bible-bar select, .bible-bar button, .bible-bar a {
  font: 14px var(--ui);
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
}
.bible-bar input { flex: 1; min-width: 0; padding: 0 10px; }
.bible-bar select { padding: 0 6px; }
.bible-bar button, .bible-bar a { width: 34px; display: grid; place-items: center; cursor: pointer; text-decoration: none; }
.bible-bar button:hover, .bible-bar a:hover { border-color: var(--rubric); }

/* Bible Gateway can't be restyled from here, so the text size is a zoom of the whole frame. */
.bible-view { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.bible-view iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / var(--bible-zoom));
  height: calc(100% / var(--bible-zoom));
  transform: scale(var(--bible-zoom));
  transform-origin: 0 0;
  border: 0;
  background: #fff;
}
/* Bible Gateway has no dark theme; invert it so the pane matches. */
.dark .bible-view, .dark .bible-view iframe { background: #111; }
.dark .bible-view iframe { filter: invert(.9) hue-rotate(180deg) sepia(.2); }
/* Warm the white page a little for the sepia theme. */
[data-theme="lamplight"] .bible-view iframe { filter: sepia(.35) brightness(.97); }

.gutter { position: absolute; top: 0; bottom: 0; right: -5px; width: 10px; z-index: 3; cursor: col-resize; }
.gutter::after { content: ""; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: transparent; transition: background .15s; }
.gutter:hover::after, .dragging .gutter::after { background: var(--gold); }
.bible-right .gutter { right: auto; left: -5px; }
.dragging { cursor: col-resize; user-select: none; }
.dragging iframe { pointer-events: none; }

.study-pane { overflow-y: auto; padding: 36px 48px 72px; }
.study-pane > * { max-width: 720px; margin-left: auto; margin-right: auto; }

.study-head { position: relative; }
.study-head h1 { margin: 6px 0 6px; font-family: var(--display); font-weight: 500; font-size: 46px; line-height: 1.05; }
.meta { margin: 0; color: var(--muted); font-size: 16px; }
.meta .dot { margin: 0 6px; }
.meta a.ref { text-decoration: none; }
.byline { margin: 4px 0 0; font: italic 400 15px/1.4 var(--display); color: var(--muted); letter-spacing: .01em; }
.byline .byline-name { font-style: normal; font-variant: small-caps; letter-spacing: .04em; color: var(--ink, inherit); }
.page-head .byline { margin-top: 6px; }
.prose .message-byline { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: .82em; }
.study-progress { margin: 14px 0 0; }

.hymns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 14px 0 0; }
.hymns .label { font-family: var(--ui); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.chip { font-size: 15px; padding: 2px 12px; border-radius: 999px; background: var(--rubric-soft); }

.tabs { position: relative; display: flex; align-items: center; gap: 4px; margin-top: 24px; border-bottom: 1px solid var(--line); font-family: var(--ui); }
.tabs button {
  font: 14px var(--ui);
  padding: 8px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.tabs [aria-selected=true] { color: var(--ink); border-bottom-color: var(--rubric); }
.tabs button:hover { color: var(--ink); }
.tab-tools { margin-left: auto; display: flex; gap: 2px; }
.tabs .aa { font-family: var(--display); font-size: 18px; line-height: 1; padding: 6px 10px; }
.tabs .aa small { font-size: 14px; }
.tabs .aa[aria-expanded=true] { color: var(--rubric); }

.quick { width: 290px; top: calc(100% + 6px); }
.quick-row { display: grid; grid-template-columns: 1fr 36px 52px 36px; align-items: center; gap: 4px; padding: 4px 0; }
.quick-row > span { color: var(--muted); }
.quick-row button {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
}
.quick-row button:hover { border-color: var(--rubric); }
.quick-row output { text-align: center; font-variant-numeric: tabular-nums; }
label.quick-row { grid-template-columns: 1fr 2fr; margin-top: 4px; }
.quick select { height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); padding: 0 6px; }
.quick-more { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); text-align: right; font-size: 13px; }

/* ---- Study text ---- */

.prose { font-size: var(--study-size); line-height: var(--leading); }
.prose h2 { font-family: var(--display); font-weight: 500; font-size: 1.55em; margin: 40px 0 8px; }
.prose h3 { font-family: var(--display); font-weight: 500; font-size: 1.22em; margin: 28px 0 6px; }
.prose hr { border: 0; margin: 30px auto; width: 120px; border-top: 1px solid var(--gold); opacity: .6; }
.prose blockquote {
  margin: 8px 0;
  padding: 10px 16px;
  background: var(--quote);
  border-left: 2px solid var(--rubric);
  border-radius: 0 8px 8px 0;
  font-family: var(--display);
  font-size: 1.11em;
  line-height: 1.55;
}
.prose blockquote p { margin: 4px 0; }
.prose blockquote sup { font-family: var(--ui); font-size: 11px; font-weight: 600; line-height: 0; color: var(--rubric); margin-right: 1px; }
.prose blockquote a.ref { color: var(--ink); font-variant: small-caps; letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.prose a.ref { text-decoration: underline dotted; text-underline-offset: 3px; }
.ref:hover { color: var(--rubric) !important; }

/* Questions: "Question 1" as a rubric, small labels for "Scripture" / "My Notes",
   and the key verse at the top set apart. */
.questions h2 { font-variant: small-caps; letter-spacing: .06em; color: var(--rubric); font-size: 1.45em; display: flex; align-items: center; gap: 10px; }
.questions h2.answered::after {
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--surface);
  font: 700 11px var(--ui);
  font-variant: normal;
}
.questions h3 { font-family: var(--ui); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.questions h2 { margin: 26px 0 4px; }
.questions p { margin: .45em 0; }
.questions ul, .questions ol { margin: .3em 0; padding-left: 1.3em; }
.questions li + li { margin-top: .15em; }
.questions > blockquote:first-child {
  margin: 28px 0 0;
  padding: 8px 0 0;
  background: none;
  border: 0;
  text-align: center;
  font-style: italic;
  font-size: 1.33em;
}
.questions > blockquote:first-child a.ref { font-style: normal; font-size: 16px; color: var(--rubric); letter-spacing: .1em; }

.note { margin: 10px 0 0; font-family: var(--ui); position: relative; }
.note label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.note .where { color: var(--muted); letter-spacing: .06em; }
.note textarea {
  --rule: calc(var(--note-size) * 1.75);
  width: 100%;
  min-height: calc(var(--rule) * 3 + 2px);
  resize: vertical;
  padding: 0 14px;
  font: var(--note-size) / var(--rule) var(--text);
  color: var(--ink);
  background-color: var(--surface);
  background-image: linear-gradient(transparent calc(var(--rule) - 1px), var(--line) calc(var(--rule) - 1px));
  background-size: 100% var(--rule);
  background-attachment: local;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.note textarea::placeholder { color: var(--muted); opacity: .7; font-style: italic; }
.note textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--rubric-soft); }
.note .saved { position: absolute; top: 0; right: 0; font-size: 12px; color: var(--muted); }

.finish { margin-top: 48px; text-align: center; }
.done-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 15px var(--ui);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background .2s, border-color .2s;
}
.done-btn:hover { border-color: var(--gold); }
.done-btn svg { width: 22px; height: 22px; }
.done-btn circle { fill: none; stroke: var(--faint); stroke-width: 1.6; }
.done-btn path { fill: none; stroke: transparent; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.done-btn[aria-pressed=true] { border-color: var(--gold); background: var(--rubric-soft); }
.done-btn[aria-pressed=true] circle { fill: var(--gold); stroke: var(--gold); }
.done-btn[aria-pressed=true] path { stroke: var(--surface); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--display);
  font-size: 18px;
}

/* ---- Settings ---- */

.settings .lede { margin: 12px 0 0; max-width: 36em; color: var(--muted); font-size: 17px; }
.settings-nav {
  position: sticky;
  top: var(--topbar);
  z-index: 4;
  display: flex;
  gap: 4px;
  margin: 28px -8px 8px;
  padding: 10px 8px;
  overflow-x: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  font: 14px var(--ui);
}
.settings-nav a { padding: 6px 12px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.settings-nav a:hover { background: var(--rubric-soft); color: var(--ink); text-decoration: none; }

.panel {
  margin-top: 24px;
  padding: 28px 30px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--topbar) + 64px);
}
.panel > h2 { margin: 0 0 18px; font-family: var(--display); font-weight: 500; font-size: 28px; }

.field { margin-top: 18px; font-family: var(--ui); font-size: 14px; }
.field:first-of-type { margin-top: 0; }
.field > label, .field > .label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-weight: 600; font-size: 13px; letter-spacing: .02em; }
.field output { font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.fields.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fields.two .field { margin-top: 0; }
.fields + .field { margin-top: 20px; }
.hint { margin: 6px 0 0; font: 13px/1.5 var(--ui); color: var(--muted); }
.settings select {
  width: 100%;
  height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
  appearance: none;
  font-size: 15px;
  cursor: pointer;
}
.settings select:focus { outline: none; border-color: var(--rubric); box-shadow: 0 0 0 3px var(--rubric-soft); }
.field.range { max-width: 520px; }
input[type=range] { width: 100%; accent-color: var(--rubric); }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; margin-top: 20px; }
.theme-card {
  display: grid;
  gap: 2px;
  padding: 8px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.theme-card:hover { transform: translateY(-2px); border-color: var(--faint); }
.theme-card[aria-checked=true] { border-color: var(--rubric); box-shadow: 0 0 0 2px var(--rubric); }
.theme-name { margin: 8px 4px 0; font-family: var(--display); font-size: 19px; line-height: 1.2; }
.theme-blurb { margin: 0 4px; font: 12px/1.4 var(--ui); color: var(--muted); }
.swatch-pair { display: grid; grid-template-columns: 1fr 1fr; border-radius: 8px; overflow: hidden; }
.swatch-pair .swatch { border-radius: 0; }
.swatch {
  position: relative;
  display: block;
  height: 92px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  overflow: hidden;
}
.sw-title { display: block; font: 500 24px/1 "EB Garamond", Georgia, serif; color: var(--rubric); }
.sw-line { display: block; height: 4px; margin-top: 9px; width: 82%; border-radius: 3px; background: var(--ink); opacity: .55; }
.sw-line.short { width: 58%; opacity: .3; }
.sw-quote { display: block; height: 14px; margin-top: 9px; width: 90%; border-left: 2px solid var(--rubric); background: var(--quote); }
.sw-dot { position: absolute; right: 12px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }

.preview { margin-top: 26px; padding: 4px 24px 22px; border: 1px dashed var(--faint); border-radius: 12px; background: var(--bg); }
.preview-label { margin: 12px 0 0; font: 600 11px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.preview .prose h2 { margin-top: 10px; }
.preview .note textarea { resize: none; }

.segmented { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.segmented button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  font: 14px var(--ui);
  color: var(--muted);
  cursor: pointer;
}
.segmented svg { width: 40px; height: 26px; }
.segmented button[aria-checked=true] { border-color: var(--rubric); color: var(--ink); box-shadow: 0 0 0 1px var(--rubric); }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.actions button, .actions .button, .confirm button {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink);
  font: 14px var(--ui);
  cursor: pointer;
}
.actions button:hover, .actions .button:hover, .confirm button:hover { border-color: var(--faint); text-decoration: none; }
.actions .primary { background: var(--rubric); border-color: var(--rubric); color: var(--surface); }
.danger { color: #b3402a !important; }
.dark .danger { color: #e8846c !important; }
.confirm { margin: 14px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--rubric-soft); font: 14px/1.5 var(--ui); }
.confirm button { height: 32px; margin: 8px 6px 0 0; }

.callout { padding: 16px 18px; border-radius: 10px; background: var(--quote); font: 15px/1.55 var(--ui); }
.callout p { margin: 0; }
.callout p + p { margin-top: 6px; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--rubric-soft); padding: 1px 5px; border-radius: 4px; }

.signin-card { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.signin-card .big { margin: 0 0 8px; font-family: var(--display); font-size: 22px; }
.ticks { margin: 0; padding: 0; list-style: none; font: 14px/1.6 var(--ui); color: var(--muted); }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: "✓"; position: absolute; left: 2px; color: var(--gold); font-weight: 700; }
.google-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 22px 0 16px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #fff;
  color: #1f1f1f;
  font: 500 15px var(--ui);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}
.google-btn:hover { box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.google-btn svg { width: 20px; height: 20px; }

.who-card { display: flex; gap: 16px; align-items: center; }
.who-text { display: grid; min-width: 0; font-family: var(--ui); }
.who-text strong { font-size: 17px; }
.who-text > span { color: var(--muted); font-size: 14px; }
.who-text .sync-line { margin: 6px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font: 14px/1.5 var(--ui); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--rubric); }
.actions.signout { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---- Site tabs in the top bar ---- */

.site-nav { display: flex; gap: 2px; margin-right: 8px; }
.site-nav a { padding: 6px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.site-nav a:hover { background: var(--rubric-soft); color: var(--ink); text-decoration: none; }
.home [data-nav=library], .about-page [data-nav=about] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--rubric); border-radius: 0; }
.toc-toggle { margin-left: -8px; }
.toc-toggle[aria-expanded=true] { color: var(--rubric); }

/* ---- Study page: the book list on the left ---- */

.toc {
  --toc-w: 286px;
  flex: none;
  display: flex;
  flex-direction: column;
  width: var(--toc-w);
  min-height: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--ui);
  font-size: 14px;
  transition: margin-left .28s ease, visibility .28s;
}
.toc-closed .toc { margin-left: calc(-1 * var(--toc-w)); visibility: hidden; }
.toc-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px 6px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
}
.toc-title { font: 500 13px var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--rubric); }
.toc-close { width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.toc-close:hover { background: var(--rubric-soft); color: var(--ink); }
#toc-filter {
  grid-column: 1 / -1;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font-size: 13px;
}
#toc-filter:focus { outline: none; border-color: var(--rubric); box-shadow: 0 0 0 3px var(--rubric-soft); }
.toc-body { flex: 1; overflow-y: auto; padding: 4px 8px 40px; overscroll-behavior: contain; }
.toc-testament h3 { margin: 16px 8px 2px; font: 500 17px var(--display); color: var(--ink); }
.toc-group { margin: 10px 8px 2px; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc-filtering .toc-group { display: none; }
.toc ul, .toc ol { list-style: none; margin: 0; padding: 0; }
.toc-book .bk { display: block; padding: 4px 8px; border-radius: 6px; }
.toc-book.none .bk { color: var(--muted); opacity: .6; }
.dark .toc-book.none .bk { color: var(--muted); opacity: .6; }
.toc-book summary {
  display: flex;
  align-items: center;
  list-style: none;
  border-radius: 6px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.toc-book summary::-webkit-details-marker { display: none; }
.toc-book summary:hover { background: var(--rubric-soft); }
.toc-book summary .bk { flex: 1; }
.chev { width: 22px; height: 22px; position: relative; }
.chev::before { content: ""; position: absolute; left: 7px; top: 7px; width: 6px; height: 6px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(-45deg); transition: transform .2s; }
details[open] > summary .chev::before { transform: rotate(45deg); }
.toc-series { margin: 6px 8px 2px 14px; font-size: 11.5px; color: var(--muted); }
.toc-series a { color: var(--muted); font-weight: 600; }
.toc-series a:hover { color: var(--rubric); }
.toc ol { margin: 0 0 8px 8px; border-left: 1px solid var(--line); }
.toc ol a {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 4px;
  padding: 5px 8px 5px 6px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--ink);
  line-height: 1.3;
}
.toc ol a:hover { background: var(--rubric-soft); text-decoration: none; }
.toc ol .n { grid-row: span 2; font: 15px var(--display); color: var(--rubric); text-align: right; padding-right: 4px; }
.toc ol .psg { font-weight: 600; font-size: 13px; }
.toc ol .ttl { font-size: 12.5px; color: var(--muted); font-family: var(--display); font-size: 14.5px; }
.toc ol a[aria-current=page] { border-left-color: var(--rubric); background: var(--rubric-soft); }
.toc ol li.has-notes .psg::after { content: " ✎"; color: var(--gold); font-weight: 400; }
.toc ol li.is-done .psg::after { content: " ✓"; color: var(--gold); font-weight: 700; }
.toc-empty { margin: 16px 8px; color: var(--muted); }
.toc-scrim { display: none; }

/* ---- About ---- */

.about .intro { font-size: 19px; }
.authors { display: grid; gap: 18px; }
.author {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.portrait { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.monogram {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #8a3a26, #5a2316);
  color: #ecd29a;
  font: 500 38px var(--display);
  letter-spacing: .06em;
}
.author .role { margin: 0; font: 600 11px var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.author h3 { margin: 2px 0 0; font: 500 30px/1.15 var(--display); }
.author .affil { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.author .bio { margin-top: 12px; font-size: 16px; line-height: 1.65; }
.author .bio p { margin: 0 0 .6em; }
.author .bio.placeholder { color: var(--muted); font-style: italic; }
.author .links { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; font: 14px var(--ui); }
.credits p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.credits p + p { margin-top: 12px; }

/* ---- Narrow screens ---- */

@media (max-width: 899px) {
  .bookcase { height: auto; min-height: 0; }
  .bays { grid-template-columns: 1fr; }
  .stile { height: var(--frame); }
  .crown { grid-template-columns: 1fr; justify-items: center; gap: 4px; height: auto; padding-top: 18px; padding-bottom: 12px; }
  .crown-hint { display: none; }
  .crown-continue { justify-self: center; }
}

@media (max-width: 860px) {
  .study-layout { display: block; height: auto; overflow: visible; }
  .toc {
    position: fixed;
    z-index: 50;
    top: var(--topbar);
    bottom: 0;
    left: 0;
    margin-left: 0 !important;
    visibility: visible !important;
    box-shadow: 0 0 40px rgba(0,0,0,.3);
    transform: translateX(-105%);
    transition: transform .28s ease;
  }
  .toc-mobile-open .toc { transform: none; }
  .toc-mobile-open .toc-scrim { display: block; position: fixed; inset: var(--topbar) 0 0; z-index: 45; background: rgba(0,0,0,.35); }
  .split, .split.bible-right { display: block; height: auto; }
  .bible, .split.bible-right .bible { height: 55vh; border: 0; border-bottom: 1px solid var(--line); }
  #bible-swap, .gutter { display: none; }
  .study-pane { overflow: visible; padding: 24px 16px 56px; }
  .study-head h1 { font-size: 34px; }
  .crumbs { display: none; }
  .method { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .topbar { padding: 0 12px; }
  .brand span { display: none; }
  .hide-sm { display: none; }
  .site-nav a { padding: 6px 8px; }
  .home-main, .home-wide, .page { padding: 0 12px 72px; }
  .page-head h1 { font-size: 40px; }
  .series-card, .panel { padding: 20px 16px 12px; }
  .studies a { grid-template-columns: 1.6em 1fr 22px; }
  .studies .ref { display: none; }
  .fields.two { grid-template-columns: 1fr; }
  .author { grid-template-columns: 1fr; justify-items: start; }
  .account-menu { position: fixed; left: 12px; right: 12px; width: auto; top: calc(var(--topbar) + 6px); }
}
.page-head .byline + .editor-byline { margin-top: 2px; }
.toc-loading { margin: 14px 16px; color: var(--muted); font-size: 13px; }

/* ---- footer ---- */
.site-foot {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  max-width: 860px; margin: 0 auto; padding: 22px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted); font: 13px/1.5 var(--ui);
}
.site-foot .foot-name { font-family: var(--display); font-size: 15px; letter-spacing: .04em; }
.site-foot nav { display: flex; gap: 18px; }
.site-foot a { color: inherit; text-decoration: none; }
.site-foot a:hover { color: var(--rubric); }
.home .site-foot { max-width: 1240px; }

/* ---- 404 ---- */
.notfound { text-align: center; padding-top: 72px; }
.nf-numeral {
  margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(96px, 16vw, 168px); line-height: 1;
  letter-spacing: .12em; color: transparent;
  background: linear-gradient(180deg, var(--rubric), color-mix(in srgb, var(--rubric) 55%, var(--surface, #fff)));
  -webkit-background-clip: text; background-clip: text;
}
.nf-fleuron {
  display: block; width: 11px; aspect-ratio: 1; margin: 18px auto 22px;
  border: 1px solid var(--rubric); transform: rotate(45deg);
  box-shadow: 0 0 0 4px var(--bg, transparent), 0 0 0 5px color-mix(in srgb, var(--rubric) 35%, transparent);
}
.notfound h1 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 40px; line-height: 1.15; }
.nf-verse { max-width: 30em; margin: 28px auto 0; padding: 0; border: 0; font-family: var(--text); font-style: italic; font-size: 19px; line-height: 1.6; }
.nf-verse p { margin: 0; }
.nf-verse cite { display: block; margin-top: 8px; font-style: normal; font: 12px var(--ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
html[data-ui="ko"] .nf-verse { font-style: normal; }
.nf-text { max-width: 32em; margin: 28px auto 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.nf-actions { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 28px; font: 15px var(--ui); }
.nf-actions a { color: var(--rubric); text-decoration: none; }
.nf-button { padding: 10px 20px; border: 1px solid var(--rubric); border-radius: 999px; }
.nf-button:hover { background: var(--rubric); color: var(--surface, #fff) !important; }

/* ---- privacy ---- */
.privacy .prose { margin-top: 28px; font-size: 17px; line-height: 1.75; }
.privacy .prose h2 { margin: 34px 0 8px; font-family: var(--display); font-weight: 500; font-size: 24px; }
.privacy .prose code { font-size: .88em; }
.site-foot .foot-gh { display: inline-flex; align-items: center; gap: 6px; }
.site-foot .gh-mark { flex: none; opacity: .85; }
