:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #6b665f;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #e8e0d4;
  --accent: #5d4631;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
}

a { color: inherit; }

.topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 0 24px;
}

.brand {
  font-weight: 700;
  text-decoration: none;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.topnav a,
.primary-action,
.chapter-nav a,
.chapter-nav span,
.book-link,
.chapter-tile {
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

.topnav a {
  padding: 7px 12px;
}

.topnav a[aria-current='page'] {
  background: var(--panel);
}

.home-reader,
.reader {
  width: min(760px, calc(100% - 36px));
  margin: 0 auto;
}

.home-reader {
  padding: 72px 0;
}

.hero-reader {
  margin-bottom: 56px;
}

.translation {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: .98;
  margin: 0 0 20px;
}

.lede {
  color: var(--muted);
  font-size: 1.2rem;
  max-width: 620px;
}

.primary-action {
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  margin-top: 20px;
  padding: 12px 18px;
}

.book-list {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.section-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 16px;
}

.book-list h2 {
  font-size: .86rem;
  letter-spacing: .12em;
  margin: 0;
  text-transform: uppercase;
}

.order-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-switch a,
.order-switch span {
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .78rem;
  line-height: 1;
  padding: 8px 10px;
  text-decoration: none;
}

.order-switch span {
  background: var(--ink);
  color: var(--paper);
}

.book-link {
  align-items: center;
  background: var(--panel);
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
}

.book-link small {
  color: var(--muted);
}

.translation-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.translation-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 170px;
  padding: 20px;
  text-decoration: none;
}

.translation-card-label {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.translation-card strong {
  font-size: 1.35rem;
  line-height: 1.2;
}

.translation-card small {
  color: var(--muted);
  line-height: 1.4;
}

.source-note {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
  margin-top: 28px;
  padding-top: 24px;
}

.source-note h2 {
  color: var(--ink);
  font-size: .86rem;
  letter-spacing: .12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.source-note p {
  margin: 0 0 8px;
}

.source-note a {
  color: var(--accent);
}

.chapter-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

.chapter-tile {
  align-items: center;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  min-height: 72px;
  justify-content: center;
  padding: 12px;
}

.chapter-tile span {
  font-size: 1.35rem;
  line-height: 1;
}

.chapter-tile small {
  color: var(--muted);
  font-size: .72rem;
  margin-top: 5px;
}

.reader {
  padding: 28px 0 72px;
}

.chapter-nav {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 36px;
}

.chapter-nav.bottom {
  margin: 42px 0 0;
}

.chapter-nav a,
.chapter-nav span {
  background: var(--panel);
  color: var(--muted);
  display: inline-flex;
  justify-content: center;
  min-width: 88px;
  padding: 8px 12px;
}

.chapter-nav span[aria-disabled='true'] {
  opacity: .45;
}

.scripture {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(28px, 6vw, 56px);
  box-shadow: 0 18px 40px rgba(23, 23, 23, .05);
}

.verses {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
}

.verse {
  margin: 0 0 1.05em;
}

.verse.omitted {
  color: var(--muted);
}

.omitted-note {
  font-style: italic;
}

.verse-number {
  color: var(--accent);
  font-size: .68em;
  font-weight: 700;
  padding-right: .35em;
  text-decoration: none;
  vertical-align: super;
}

@media (max-width: 620px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 0 14px;
    justify-content: center;
    min-height: 86px;
  }

  .topnav {
    justify-content: flex-start;
  }

  .topnav a {
    padding: 6px 10px;
  }

  .book-link,
  .chapter-nav,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .chapter-nav a,
  .chapter-nav span {
    width: 100%;
  }
}
