:root {
  color-scheme: light;
  --ink: #1c1915;
  --muted: #5c564c;
  --rule: #d9d1c3;
  --paper: #f7f3ea;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.05rem/1.55 Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
}

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 54rem;
  margin: 0 auto;
  padding: 1rem 1.25rem 0;
}

.site-head .brand {
  margin: 0;
  text-decoration: none;
}

.site-head .brand img {
  width: 2.75rem;
  height: 2.75rem;
}

.site-head .word {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

main {
  max-width: 38rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
}

main.reading {
  max-width: 54rem;
  padding-top: 2rem;
  overflow-x: auto;
}

.reading h1,
.reading h2 {
  font-weight: normal;
  font-size: 1.8rem;
  margin: 0 0 1rem;
}

.reading table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.reading td {
  vertical-align: top;
  padding: 0.15rem 0.4rem;
}

.reading .dolecttdl {
  width: 7rem;
  white-space: nowrap;
}

.reading .small { font-size: 0.95rem; }

.reading h4 {
  font-weight: normal;
  font-size: 1.25rem;
  margin: 1.75rem 0 0.5rem;
}

.reading .rubric,
.reading .concern {
  color: #6b2d2d;
}

.reading .topmenu {
  font-size: 0.95rem;
}

main h2 {
  font-weight: normal;
  font-size: 1.35rem;
  margin: 1.75rem 0 0.5rem;
}

.shelf { padding: 0; list-style: none; }
.shelf li { margin: 0 0 0.35rem; }
.shelf a { text-decoration: none; }
.shelf a:hover { text-decoration: underline; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 0 1.25rem;
}

.brand img {
  width: 4.75rem;
  height: 4.75rem;
  border-radius: 0.35rem;
}

h1 {
  font-weight: normal;
  font-size: 2.4rem;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0 0 1rem; }

.lede { font-size: 1.2rem; }

.enter { margin: 1.6rem 0 1.35rem; }

.enter a {
  display: inline-block;
  padding: 0.75rem 1.3rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.35rem;
  text-decoration: none;
  font-size: 1.3rem;
}

.enter a:hover { background: #3a342c; }

.editions {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.editions a { color: var(--muted); }

.note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

footer {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

a { color: inherit; }

html { scroll-behavior: smooth; }

.back-top { margin: 2.5rem 0 0; }

.back-top a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: 0.35rem;
  text-decoration: none;
  font-size: 0.95rem;
}

.back-top a:hover { border-color: var(--ink); }

.chapters { line-height: 1.9; }
.chapters a { margin-right: 0.65rem; text-decoration: none; }
.chapters a:hover { text-decoration: underline; }

ul.books { padding-left: 1.2rem; }
ul.books li { margin: 0.15rem 0; }

.testaments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

.testaments h3 {
  margin: 1.15rem 0 0.25rem;
  font-weight: normal;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--muted);
}

.testaments h3:first-of-type { margin-top: 0.15rem; }

.testaments ul.books { margin: 0; }

@media (max-width: 42rem) {
  .testaments { grid-template-columns: 1fr; }
}

.crumb { margin: 0 0 0.4rem; color: var(--muted); font-size: 0.95rem; }
.crumb a { color: inherit; }

.verse { margin: 0 0 0.55rem; }
.verse sup {
  font-size: 0.72em;
  margin-right: 0.2rem;
  color: var(--muted);
}

.pager { margin-top: 2rem; }
.pager a { margin-right: 1rem; }

.rubric { font-style: italic; color: var(--muted); }
.alert {
  margin: 0 0 1.25rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}
.bigtitle { font-size: 1.8rem; line-height: 1.25; }

pre.sheet {
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: pre-wrap;
  margin: 0 0 1.25rem;
}
