:root {
  --bg: #faf6ee;
  --text: #1f1b16;
  --muted: #6b6155;
  --rule: #e4dccd;
  --link: #7a3b12;
  --verse-num: #9a6a3f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17140f;
    --text: #ece5d8;
    --muted: #a99d8c;
    --rule: #332c23;
    --link: #e8b07a;
    --verse-num: #c49566;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  font-size: 1.1875rem; /* 19px */
  line-height: 1.7;
  max-width: 680px;
  margin-inline: auto;
  padding: 1.25rem 1.25rem 3rem;
}

a { color: var(--link); }

header.site {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
}
header.site a { color: var(--muted); text-decoration: none; }

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 1.5rem 0 1.25rem;
  font-weight: normal;
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.4rem;
  font-weight: bold;
}

.scripture { margin: 0; }
.v sup {
  font-size: 0.65em;
  color: var(--verse-num);
  font-family: system-ui, sans-serif;
  margin-right: 0.15em;
  vertical-align: super;
  line-height: 0;
}

.none { font-style: italic; color: var(--muted); }

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 1rem;
}
.pager a { padding: 0.5rem 0; }
.credit { font-size: 0.85rem; color: var(--muted); margin: 1rem 0 0; }

/* Home */
.home h1 { font-size: 2.1rem; margin-bottom: 0.25rem; }
.byline { margin: 0; color: var(--muted); font-style: italic; }
.lede { margin: 1rem 0 1.5rem; }
.chapters { list-style: none; padding: 0; margin: 0; }
.chapters li { border-top: 1px solid var(--rule); }
.chapters li:last-child { border-bottom: 1px solid var(--rule); }
.chapters a {
  display: flex;
  gap: 0.75rem;
  padding: 0.7rem 0.25rem;
  text-decoration: none;
  color: var(--text);
}
.chapters a:hover, .chapters a:focus { color: var(--link); }
.chapters .num {
  min-width: 2ch;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
