@font-face {
  font-family: Reading;
  src: url('fonts/CormorantGaramond.ttf') format('truetype');
  font-weight: 300 700;
  font-display: block;
}
:root {
  color-scheme: light;
  --bg: #f8f5ec;
  --panel: #eeeadf;
  --header: #f3efe6;
  --text: #30382f;
  --muted: #737b69;
  --line: #dcdccf;
  --accent: #8c713c;
  --highlight: #e9e3cf;
  --focus: #94753d;
  --photo-opacity: 0.85;
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body.dark {
  color-scheme: dark;
  --bg: #1e2721;
  --panel: #242e26;
  --header: #232c24;
  --text: #ece8dc;
  --muted: #a4af98;
  --line: #3b4539;
  --accent: #d6bb7b;
  --highlight: #343a29;
  --focus: #d6bb7b;
  --photo-opacity: 0.9;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
button:hover {
  background: var(--highlight);
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
.icon {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: var(--icon) center/contain no-repeat;
}
.i-book {
  --icon: url('icons/book.svg');
}
.i-list {
  --icon: url('icons/list-ul.svg');
}
.i-bookmark {
  --icon: url('icons/bookmark.svg');
}
.i-bookmark-fill {
  --icon: url('icons/bookmark-fill.svg');
}
.i-search {
  --icon: url('icons/search.svg');
}
.i-sun {
  --icon: url('icons/sun.svg');
}
.i-moon {
  --icon: url('icons/moon-fill.svg');
}
.i-share {
  --icon: url('icons/box-arrow-up.svg');
}
.i-diagonal {
  --icon: url('icons/arrow-up-right.svg');
}
.i-left {
  --icon: url('icons/arrow-left.svg');
}
.i-right {
  --icon: url('icons/arrow-right.svg');
}
.i-menu {
  --icon: url('icons/list.svg');
}
.i-close {
  --icon: url('icons/x-lg.svg');
}
.i-check {
  --icon: url('icons/check2.svg');
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 10px;
  z-index: 20;
  background: var(--bg);
  padding: 15px;
}
.skip-link:focus {
  top: 5px;
}
.topbar {
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0 40px;
}
.brand {
  width: 294px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
  white-space: nowrap;
}
.brand > span:first-child {
  font:
    38px Georgia,
    serif;
  letter-spacing: -1.5px;
}
.brand-note {
  font:
    14px Georgia,
    serif;
  color: var(--muted);
  border-left: 1px solid var(--muted);
  padding-left: 18px;
}
.topbar form {
  flex: 1;
  max-width: 480px;
  min-width: 150px;
}
.search {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: flex;
  align-items: center;
  background: transparent;
}
.search .icon-button {
  padding: 10px;
}
.search input {
  border: 0;
  outline: none;
  background: none;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  height: 100%;
}
.search input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.search:focus-within {
  border-color: var(--accent);
}
kbd {
  font: 10px Arial;
  color: var(--muted);
  padding-right: 12px;
  white-space: nowrap;
}
.header-settings {
  display: flex;
  align-items: center;
  gap: 27px;
  margin-left: auto;
}
select {
  appearance: none;
  background: transparent url('icons/chevron-down.svg') right 13px center/12px no-repeat;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 38px 12px 14px;
  font-size: 13px;
  max-width: 100%;
  cursor: pointer;
}
body.dark select {
  background-image: none;
  padding-right: 14px;
  appearance: auto;
}
select option {
  background: var(--panel);
  color: var(--text);
}
#translation {
  width: 190px;
}
.theme-switch {
  border-left: 1px solid var(--muted);
  padding-left: 20px;
  display: flex;
  gap: 9px;
}
.icon-button {
  width: 40px;
  height: 40px;
  padding: 9px;
  color: var(--muted);
}
.theme-switch button {
  border-radius: 50%;
  border: 1px solid transparent;
}
.theme-switch button[aria-pressed='true'] {
  border-color: var(--accent);
  color: var(--text);
}
#sidebar {
  position: fixed;
  top: 80px;
  bottom: 0;
  left: 0;
  width: 282px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.sidebar-heading {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  padding: 8px 12px;
}
.sidebar-heading .icon {
  width: 22px;
  height: 22px;
}
.side-nav {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  display: grid;
  gap: 5px;
}
.side-nav button {
  justify-content: flex-start;
  gap: 20px;
  font-size: 14px;
  text-align: left;
  padding: 12px;
}
.side-nav button.active {
  color: var(--accent);
  border-left: 2px solid var(--accent);
  border-radius: 0;
  padding-left: 10px;
}
.side-nav .icon {
  width: 22px;
  height: 22px;
}
#count {
  margin-left: auto;
  background: var(--highlight);
  color: var(--accent);
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 12px;
}
.section-label {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin: 0 10px 10px;
}
#books {
  height: 252px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
#books button {
  display: block;
  width: 100%;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  padding: 10px 12px;
  position: relative;
}
#books button.active {
  color: var(--accent);
  background: var(--highlight);
  border-left: 3px solid var(--accent);
  padding-left: 9px;
}
.chapter-section {
  margin-top: 2px;
}
#chapter {
  width: 100%;
  height: 41px;
}
#chapter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 12px;
}
#chapter-grid button {
  border: 1px solid var(--line);
  height: 38px;
  font-size: 13px;
  padding: 8px;
}
#chapter-grid button.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--highlight);
}
.quiet-image {
  margin: 5px 0 0;
  position: relative;
  flex-shrink: 0;
  height: 150px;
  overflow: hidden;
  border-radius: 3px;
  background: #202a22;
}
.quiet-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.8;
}
.quiet-image figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 8px;
  text-align: center;
  background: #1e2721bf;
  color: #f1e9d6;
  font:
    14px Georgia,
    serif;
}
.last-read {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  font-size: 11px;
  color: var(--muted);
}
.last-read span {
  display: block;
}
.last-read button {
  font:
    13px Georgia,
    serif;
  padding: 9px 0;
  color: var(--text);
}
main {
  margin-left: 282px;
  min-width: 0;
}
#reader {
  outline: none;
  scroll-margin-top: 90px;
}
.reading-hero {
  position: relative;
  min-height: 223px;
  isolation: isolate;
  overflow: hidden;
}
.hero-image {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('assets/landscape.jpg') center 49% / cover;
  opacity: var(--photo-opacity);
  mask-image:
    linear-gradient(to right, transparent 0%, #000 45%),
    linear-gradient(to bottom, #000 15%, transparent 100%);
  mask-composite: intersect;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 14px 32px 0;
}
.intro p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.intro p span {
  padding: 0 12px;
  color: var(--muted);
}
#random {
  font-size: 12px;
  color: var(--accent);
  background: var(--bg);
  padding: 9px 10px;
  border-radius: 4px;
}
#random .icon {
  width: 16px;
  height: 16px;
}
.chapter-heading {
  padding: 35px 40px 25px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
  font-weight: 400;
}
.chapter-heading .eyebrow:empty {
  display: none;
}
h1 {
  font:
    normal 52px/1.1 Georgia,
    serif;
  letter-spacing: -1.3px;
  margin: 0 0 9px;
}
.chapter-heading > p:last-child {
  font:
    25px/1.35 Georgia,
    serif;
  color: var(--muted);
  margin: 0;
}
.reading-content {
  padding: 0 45px 22px;
  max-width: 1250px;
  margin: auto;
}
.reading-hint {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin: 0 0 16px;
  letter-spacing: 0.2px;
}
#verses {
  padding: 0;
  max-width: 930px;
  margin: auto;
}
.verse {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 190px;
  gap: 16px;
  align-items: start;
  padding: 12px 20px;
  margin: 0 -20px 5px;
  border-left: 3px solid transparent;
  border-radius: 2px;
  scroll-margin-top: 120px;
}
.verse p {
  font:
    21px/1.55 Georgia,
    serif;
  margin: 0;
  max-width: 64ch;
  white-space: pre-line;
}
.verse-number {
  color: var(--muted);
  font:
    16px Georgia,
    serif;
  padding: 5px 0;
  min-height: 32px;
  justify-content: flex-start;
}
.verse.selected {
  background: var(--highlight);
  border-color: var(--accent);
}
.verse.bookmarked .verse-number {
  color: var(--accent);
}
.verse-actions {
  display: flex;
  align-self: center;
  justify-content: flex-end;
  gap: 0;
  visibility: hidden;
}
.verse:hover .verse-actions,
.verse:focus-within .verse-actions,
.verse.selected .verse-actions {
  visibility: visible;
}
.verse-actions button {
  font-size: 11px;
  padding: 8px 10px;
  color: var(--accent);
  gap: 8px;
  white-space: nowrap;
}
.verse-actions button + button {
  border-left: 1px solid var(--line);
  border-radius: 0;
}
.verse-actions .icon {
  width: 17px;
  height: 17px;
}
.chapter-navigation {
  margin: 33px auto 0;
  max-width: 930px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.chapter-navigation button {
  padding: 9px 10px;
}
.chapter-navigation .icon {
  width: 17px;
  height: 17px;
}
#position {
  font:
    14px Georgia,
    serif;
  color: var(--muted);
}
.save-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 10px;
  color: var(--muted);
}
.save-status .icon {
  width: 13px;
  height: 13px;
}
#results {
  padding: 35px 8% 60px;
  outline: none;
}
#results h1 {
  font-size: 38px;
  margin-top: 18px;
}
.back-button {
  color: var(--muted);
  padding-left: 0;
  font-size: 12px;
  margin-bottom: 35px;
}
.back-button .icon {
  width: 16px;
  height: 16px;
}
#result-summary {
  color: var(--muted);
  font-size: 13px;
  margin: 20px 0 30px;
}
.result {
  display: block;
  text-align: left;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  width: 100%;
  padding: 22px 5px;
}
.result strong {
  font-size: 12px;
  color: var(--accent);
  font-weight: 400;
}
.result p {
  font:
    19px/1.7 Georgia,
    serif;
  margin: 12px 0 0;
  max-width: 65ch;
}
#more-results {
  margin-top: 25px;
  border: 1px solid var(--line);
}
#status {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: 5px;
  font-size: 13px;
  z-index: 15;
  box-shadow: 0 4px 24px #0002;
  max-width: 90%;
  width: max-content;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 35px;
  max-width: 500px;
  width: calc(100% - 36px);
}
dialog::backdrop {
  background: #0009;
}
dialog h2 {
  font:
    30px Georgia,
    serif;
}
dialog blockquote {
  font:
    20px/1.6 Georgia,
    serif;
  margin: 20px 0;
}
dialog label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 10px;
}
dialog input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  font-size: 12px;
}
.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
}
.primary-button {
  background: var(--accent);
  color: var(--bg);
  width: 100%;
  margin-top: 15px;
  padding: 13px;
}
.primary-button:hover {
  background: var(--text);
}
#share-feedback {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}
.mobile-only {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .reading-hero {
    min-height: 260px;
  }
  .chapter-heading {
    padding-top: 55px;
  }
  .reading-content {
    padding-top: 8px;
  }
  .verse {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
@media (max-width: 1200px) {
  .topbar {
    padding: 0 25px;
    gap: 22px;
  }
  .brand {
    width: 245px;
  }
  .brand-note {
    font-size: 12px;
    padding-left: 12px;
  }
  .brand {
    gap: 12px;
  }
  .header-settings {
    gap: 15px;
  }
  .theme-switch {
    padding-left: 12px;
    gap: 0;
  }
  kbd {
    display: none;
  }
  #sidebar {
    width: 250px;
    padding: 22px 20px;
  }
  main {
    margin-left: 250px;
  }
  .verse {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
  }
  .verse-actions {
    grid-column: 2;
    justify-content: flex-start;
    display: none;
  }
  .verse.selected .verse-actions,
  .verse:focus-within .verse-actions {
    display: flex;
    visibility: visible;
  }
  .reading-content {
    padding: 0 35px 25px;
  }
  .verse p {
    font-size: 20px;
  }
  .verse {
    padding: 12px 15px;
    margin-left: -15px;
    margin-right: -15px;
  }
  .chapter-heading {
    padding-left: 32px;
  }
  .intro {
    margin-left: 32px;
  }
  .search input {
    font-size: 12px;
  }
  .theme-switch .icon-button {
    width: 35px;
  }
}
@media (max-width: 850px) {
  .topbar {
    height: 123px;
    padding: 12px 20px;
    display: grid;
    grid-template-columns: 35px 1fr auto;
    gap: 10px 12px;
  }
  .brand {
    width: auto;
    gap: 0;
  }
  .brand > span:first-child {
    font-size: 30px;
  }
  .brand-note {
    display: none;
  }
  .header-settings {
    gap: 8px;
  }
  .theme-switch {
    padding-left: 0;
    border: 0;
  }
  .theme-switch button {
    width: 32px;
    height: 32px;
    padding: 7px;
  }
  .theme-switch .icon {
    width: 17px;
    height: 17px;
  }
  #translation {
    width: 145px;
    font-size: 11px;
    padding-left: 8px;
  }
  .topbar form {
    grid-column: 1/-1;
    width: 100%;
    max-width: none;
  }
  .search {
    height: 37px;
  }
  .mobile-only {
    display: inline-flex;
  }
  #sidebar {
    top: 0;
    z-index: 12;
    width: min(320px, 88vw);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    padding-top: 20px;
  }
  body.menu-open #sidebar {
    transform: translateX(0);
  }
  body.menu-open {
    overflow: hidden;
  }
  .sidebar-heading {
    padding-left: 8px;
  }
  .sidebar-heading #close-menu {
    margin-left: auto;
  }
  .sidebar-heading .icon {
    width: 20px;
    height: 20px;
  }
  .side-nav {
    gap: 0;
  }
  #books {
    height: 28vh;
    min-height: 170px;
  }
  .quiet-image {
    height: 130px;
  }
  .last-read {
    display: none;
  }
  #scrim {
    position: fixed;
    inset: 0;
    z-index: 11;
    background: #0009;
    border: 0;
    border-radius: 0;
  }
  main {
    margin-left: 0;
  }
  .reading-hero {
    min-height: 218px;
  }
  .intro {
    margin: 15px 22px 0;
    gap: 10px;
  }
  .intro p {
    font-size: 10px;
  }
  .intro p span {
    padding: 0 6px;
  }
  #random {
    font-size: 10px;
    gap: 5px;
    padding: 7px;
  }
  .chapter-heading {
    padding: 43px 25px 30px;
  }
  h1 {
    font-size: 44px;
  }
  .chapter-heading > p:last-child {
    font-size: 22px;
  }
  .hero-image {
    background-position: 65% 44%;
  }
  .reading-content {
    padding: 0 26px 30px;
  }
  .reading-hint {
    font-size: 9px;
    line-height: 1.5;
    text-align: left;
    margin-bottom: 14px;
  }
  .verse {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    margin: 0 -8px 7px;
    padding: 11px 8px;
  }
  .verse p {
    font-size: 19px;
    line-height: 1.75;
  }
  .verse-number {
    font-size: 14px;
    padding-top: 8px;
    min-width: 22px;
  }
  .verse-actions {
    grid-column: 2;
    display: none;
  }
  .verse.selected .verse-actions,
  .verse:focus-within .verse-actions {
    display: flex;
    justify-content: flex-start;
    visibility: visible;
  }
  .verse-actions button {
    min-height: 40px;
    padding: 8px 12px;
  }
  .verse-actions button:first-child {
    padding-left: 0;
  }
  .chapter-navigation {
    margin-top: 26px;
    font-size: 11px;
    gap: 4px;
  }
  .chapter-navigation button {
    padding: 10px 0;
    gap: 7px;
  }
  #position {
    font-size: 12px;
  }
  .save-status {
    margin-top: 20px;
  }
  #results {
    padding: 25px 25px 50px;
  }
  #results h1 {
    font-size: 32px;
  }
  dialog {
    padding: 28px;
  }
  #status {
    bottom: 18px;
    font-size: 12px;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 850px) {
  .header-settings {
    grid-column: 3;
    grid-row: 1;
  }
  .topbar form {
    grid-row: 2;
  }
}

@media (min-width: 1201px) {
  #verses {
    margin-left: 100px;
    margin-right: 0;
  }
  .reading-hint {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    margin: 0;
  }
}

.brand > span:first-child,
h1 {
  font-family: Reading, Georgia, serif;
  font-weight: 500;
}
.brand > span:first-child {
  font-size: 40px;
}
.chapter-heading h1 {
  font-size: 60px;
}
.chapter-heading > p:last-child {
  font-family: Reading, Georgia, serif;
  font-size: 28px;
}
.verse p {
  font-family: Reading, Georgia, serif;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 400;
}
.hero-image {
  background-position: center 12%;
}
.verse {
  margin-bottom: 12px;
}
.quiet-image figcaption {
  font-family: Reading, Georgia, serif;
  font-size: 16px;
}
@media (max-width: 850px) {
  .brand > span:first-child {
    font-size: 33px;
  }
  .chapter-heading h1 {
    font-size: 46px;
  }
  .chapter-heading > p:last-child {
    font-size: 25px;
  }
  .verse p {
    font-size: 23px;
    line-height: 1.5;
  }
  .hero-image {
    background-position: 65% 14%;
  }
}

@media (max-width: 400px) {
  .topbar {
    padding: 12px;
    gap: 10px 6px;
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
  .topbar #menu {
    width: 28px;
    padding: 5px;
  }
  .brand > span:first-child {
    font-size: 30px;
  }
  .header-settings {
    gap: 5px;
  }
  #translation {
    width: 112px;
    font-size: 10px;
  }
  .theme-switch .icon-button {
    width: 28px;
    height: 30px;
    padding: 5px;
  }
  .intro {
    margin-left: 18px;
    margin-right: 18px;
  }
  .reading-content {
    padding-left: 20px;
    padding-right: 20px;
  }
  .chapter-heading {
    padding-left: 20px;
  }
}
@media (min-width: 1201px) {
  .verse p {
    max-width: 520px;
    font-weight: 350;
  }
  #books button {
    font-size: 14px;
  }
}
@media (min-width: 1201px) {
  .verse p {
    max-width: 580px;
    font-size: 23px;
    line-height: 1.45;
  }
  .verse {
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 4px;
  }
}
/* Refined controls */
.i-shuffle {
  --icon: url('icons/shuffle.svg');
}
.i-chevron {
  --icon: url('icons/chevron-down.svg');
}
#breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  min-width: 0;
}
#breadcrumb a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
}
#breadcrumb a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
#breadcrumb [aria-current] {
  color: var(--text);
}
#breadcrumb .crumb-divider {
  padding: 0 3px;
  opacity: 0.6;
}
#random {
  gap: 10px;
}
#random .i-shuffle {
  width: 17px;
  height: 17px;
}
.header-settings .theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  width: 66px;
  height: 34px;
  padding: 6px 8px;
  margin-left: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--highlight);
  isolation: isolate;
  gap: 12px;
}
.theme-switch > .icon {
  width: 15px;
  height: 15px;
  z-index: 1;
  color: var(--muted);
}
.theme-switch > .switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease;
}
.theme-switch[aria-checked='true'] > .switch-thumb {
  transform: translateX(32px);
}
.theme-switch[aria-checked='false'] > .i-sun,
.theme-switch[aria-checked='true'] > .i-moon {
  color: var(--bg);
}
.header-settings .theme-switch:hover {
  border-color: var(--accent);
  background: var(--highlight);
}
.dropdown {
  position: relative;
  font-size: 13px;
}
.dropdown-trigger {
  width: 100%;
  min-height: 42px;
  justify-content: space-between;
  text-align: left;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 11px 13px;
  border-radius: 5px;
  background: transparent;
  font-size: 13px;
}
.dropdown-trigger:hover,
.dropdown-trigger[aria-expanded='true'] {
  background: var(--highlight);
  border-color: var(--accent);
}
.dropdown-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.dropdown-trigger > .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.15s;
  color: var(--muted);
}
.dropdown-trigger[aria-expanded='true'] > .icon {
  transform: rotate(180deg);
}
#chapter {
  height: auto;
}
#chapter .dropdown-trigger {
  min-height: 41px;
}
.dropdown-options {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 5px;
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--text);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 10px 30px #0003;
  outline: none;
  scrollbar-gutter: stable;
}
.dropdown-options::backdrop {
  background: transparent;
}
.dropdown-options button {
  width: 100%;
  min-height: 38px;
  justify-content: space-between;
  text-align: left;
  padding: 10px 11px;
  font-size: 13px;
  gap: 14px;
  border-radius: 4px;
}
.dropdown-options button[aria-selected='true'] {
  background: var(--highlight);
  color: var(--accent);
}
.dropdown-options button .icon {
  width: 15px;
  height: 15px;
  visibility: hidden;
}
.dropdown-options button[aria-selected='true'] .icon {
  visibility: visible;
}
.dropdown-options button:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
  background: var(--highlight);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 12px;
  border: 1px solid var(--panel);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}
::-webkit-scrollbar-corner {
  background: transparent;
}
#books,
#sidebar,
.dropdown-options {
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}
.topbar #search-form {
  position: relative;
}
.search .icon-button {
  border-radius: 0;
  flex: none;
  color: var(--muted);
  background: transparent;
  transition: color 0.15s;
}
.search .icon-button:hover {
  color: var(--accent);
  background: transparent;
}
.search .icon-button:active {
  color: var(--text);
}
.search .icon-button:focus-visible {
  outline-offset: -4px;
  border-radius: 3px;
}
.search {
  transition: border-color 0.15s;
}
.field-error {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  color: #a44032;
  text-align: left;
}
.dark .field-error {
  color: #edafa0;
}
.invalid .search {
  border-color: #a44032;
}
.dark .invalid .search {
  border-color: #c78677;
}
.book-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
}
.book-index a {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  padding: 19px 5px;
  font-size: 14px;
}
.book-index a:hover {
  color: var(--accent);
  background: var(--highlight);
}
.book-index a > span {
  flex: 1;
}
.book-index small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.book-index .icon {
  width: 15px;
  height: 15px;
}
@media (max-width: 1200px) {
  #breadcrumb {
    font-size: 11px;
    gap: 5px;
  }
  .header-settings {
    gap: 16px;
  }
  .topbar #translation {
    width: 180px;
  }
}
@media (max-width: 850px) {
  .topbar {
    height: 132px;
  }
  .topbar #translation {
    width: 145px;
  }
  .dropdown-trigger {
    min-height: 36px;
    padding: 9px 10px;
    font-size: 11px;
  }
  .header-settings {
    gap: 10px;
  }
  .header-settings .theme-switch {
    width: 58px;
    height: 30px;
    padding: 5px 7px;
    gap: 10px;
  }
  .theme-switch > .switch-thumb {
    width: 22px;
    height: 22px;
  }
  .theme-switch[aria-checked='true'] > .switch-thumb {
    transform: translateX(28px);
  }
  .theme-switch > .icon {
    width: 13px;
    height: 13px;
  }
  #breadcrumb {
    font-size: 10px;
    gap: 4px;
  }
  #breadcrumb .crumb-divider {
    padding: 0 1px;
  }
  .intro {
    align-items: flex-start;
  }
  .field-error {
    font-size: 9px;
    top: calc(100% + 2px);
  }
  .book-index {
    grid-template-columns: 1fr;
  }
  #random {
    white-space: nowrap;
  }
  .dropdown-options button {
    min-height: 42px;
  }
}
@media (max-width: 400px) {
  .topbar #translation {
    width: 112px;
  }
  .header-settings {
    gap: 6px;
  }
  .header-settings .theme-switch {
    width: 54px;
  }
  .theme-switch[aria-checked='true'] > .switch-thumb {
    transform: translateX(24px);
  }
  .dropdown-trigger {
    padding: 9px 8px;
    font-size: 10px;
    gap: 6px;
  }
  .intro {
    flex-wrap: wrap;
    gap: 7px;
  }
  #random {
    margin-left: auto;
  }
  .topbar form {
    max-width: 100%;
  }
}
.book-index .unavailable-book {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 19px 5px;
  font-size: 14px;
  color: var(--muted);
}
.book-index .unavailable-book > span {
  flex: 1;
}
.book-index .unavailable-book .icon {
  visibility: hidden;
}
.field-error {
  font-size: 11px;
}
@media (max-width: 850px) {
  .field-error {
    font-size: 10px;
  }
}
.chapter-picker-button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  border: 1px solid var(--line);
  padding: 14px 12px;
  font-size: 13px;
  min-height: 46px;
}
.chapter-picker-button .icon,
.chapter-shortcut .icon {
  width: 12px;
  height: 12px;
}
.chapter-shortcut {
  font:
    12px Arial,
    sans-serif;
  margin-top: 14px;
  padding: 7px 0;
  color: var(--accent);
  gap: 9px;
}
.chapter-shortcut:hover {
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#chapters-dialog {
  width: 560px;
  max-width: calc(100vw - 28px);
  padding: 32px;
  max-height: calc(100dvh - 30px);
  overflow: auto;
}
#chapters-dialog h2 {
  font:
    32px Reading,
    Georgia,
    serif;
  margin: 12px 25px 8px 0;
}
#chapters-summary {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
#chapter-jump {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.jump-row {
  display: flex;
  gap: 10px;
}
#chapter-number {
  min-width: 0;
  width: 100%;
  font-size: 14px;
}
.jump-submit {
  flex: none;
  background: var(--highlight);
  color: var(--accent);
  border: 1px solid var(--line);
  font-size: 12px;
}
.jump-submit .icon {
  width: 15px;
  height: 15px;
}
#chapter-error {
  font-size: 12px;
  line-height: 1.5;
  color: #a44032;
  margin: 10px 0 0;
}
.dark #chapter-error {
  color: #edafa0;
}
#chapters-dialog #chapter-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  max-height: 44dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 3px 8px 3px 3px;
  margin: 0;
}
#chapters-dialog #chapter-grid button {
  height: 44px;
  min-width: 0;
  padding: 8px;
  font-size: 14px;
}
#chapters-dialog #chapter-grid button.active {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
@media (max-width: 600px) {
  #chapters-dialog {
    padding: 25px 20px;
  }
  #chapters-dialog #chapter-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 7px;
  }
  #chapters-dialog #chapter-grid button {
    height: 44px;
  }
  .chapter-shortcut {
    min-height: 38px;
    margin-top: 8px;
  }
  #chapters-dialog h2 {
    font-size: 29px;
  }
}
@media (max-width: 350px) {
  #chapters-dialog #chapter-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
#book-current {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
  min-width: 0;
}
#open-books {
  margin-right: 22px;
}
#books-dialog {
  width: 680px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 30px);
  padding: 32px;
}
#books-dialog h2 {
  font:
    34px Reading,
    Georgia,
    serif;
  margin: 12px 0 24px;
}
.book-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
}
.book-search:focus-within {
  border-color: var(--accent);
}
.book-search .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
#book-query {
  border: 0;
  padding: 13px 0;
  background: transparent;
  font-size: 13px;
  outline: none;
}
.book-filters {
  display: flex;
  gap: 6px;
  margin-top: 15px;
}
.book-filters button {
  font-size: 12px;
  border: 1px solid transparent;
  padding: 9px 12px;
}
.book-filters button[aria-pressed='true'] {
  color: var(--accent);
  border-color: var(--line);
  background: var(--highlight);
}
#book-results-count {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 16px 0 8px;
}
#book-list {
  max-height: 48dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 3px 10px 3px 3px;
}
#book-list h3 {
  font:
    11px Arial,
    sans-serif;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 17px 0 10px;
}
.book-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.book-picker-grid button {
  width: 100%;
  text-align: left;
  justify-content: space-between;
  padding: 13px 11px;
  min-height: 64px;
  border: 1px solid transparent;
  gap: 12px;
}
.book-picker-grid button > span {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.book-picker-grid button span span {
  font-size: 13px;
  line-height: 1.4;
}
.book-picker-grid small {
  font-size: 10px;
  color: var(--muted);
}
.book-picker-grid .icon {
  width: 15px;
  height: 15px;
  color: var(--muted);
}
.book-picker-grid button[aria-current='true'] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--highlight);
}
.book-picker-grid button[aria-current='true'] .icon {
  color: var(--accent);
}
@media (max-width: 600px) {
  #books-dialog {
    padding: 25px 20px;
  }
  .book-picker-grid {
    grid-template-columns: 1fr;
  }
  .book-filters {
    gap: 4px;
  }
  .book-filters button {
    padding: 9px 8px;
    font-size: 11px;
  }
  #books-dialog h2 {
    font-size: 30px;
    margin-bottom: 18px;
  }
  #book-list {
    max-height: 43dvh;
  }
  .book-picker-grid button {
    min-height: 60px;
  }
  #open-books {
    margin-right: 18px;
  }
  .book-picker-grid button span span {
    font-size: 14px;
  }
}
/* Home and nested scripture navigation */
#sidebar {
  gap: 16px;
}
#navigation-tree {
  flex: 1;
  min-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 5px 10px 0;
}
.tree-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 9px;
  background: var(--bg);
}
.tree-search > .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}
#tree-query {
  min-width: 0;
  width: 100%;
  padding: 11px 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  outline: none;
}
.tree-search:focus-within {
  border-color: var(--accent);
}
#collapse-tree {
  font-size: 10px;
  color: var(--muted);
  padding: 9px 0 0;
  display: block;
  margin-left: auto;
}
.testament-branch > summary,
.book-branch > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  list-style: none;
  cursor: pointer;
  border-radius: 4px;
}
.testament-branch > summary::-webkit-details-marker,
.book-branch > summary::-webkit-details-marker {
  display: none;
}
.testament-branch > summary {
  padding: 12px 5px;
  font-size: 13px;
  color: var(--text);
}
.testament-branch > summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.testament-branch summary > .icon {
  width: 10px;
  height: 10px;
  transform: rotate(-90deg);
  color: var(--muted);
}
details[open] > summary > .icon {
  transform: rotate(0);
}
summary:hover {
  background: var(--highlight);
}
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.tree-books {
  border-left: 1px solid var(--line);
  margin-left: 8px;
  padding-left: 6px;
}
.book-branch > summary {
  padding: 10px 5px;
  font-size: 12px;
  line-height: 1.5;
}
.book-branch > summary > span {
  flex: 1;
  min-width: 0;
}
.current-book {
  color: var(--accent);
  background: var(--highlight);
}
.tree-chapters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 8px 3px 14px 10px;
}
.tree-chapters a {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 37px;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.tree-chapters a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.tree-chapters a[aria-current='page'] {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.tree-chapters p {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.quiet-image {
  height: 115px;
}
#tree-empty {
  color: var(--muted);
  font-size: 12px;
}
#home {
  position: relative;
  min-height: calc(100dvh - 80px);
  isolation: isolate;
  outline: none;
}
.home-landscape {
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  background: url('assets/landscape.jpg') center 25% / cover;
  opacity: 0.42;
  mask-image: linear-gradient(#000, transparent);
  z-index: -1;
}
.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 50px;
  padding: 110px 7%;
}
.home-intro h1 {
  font:
    500 clamp(46px, 5vw, 76px)/1.1 Reading,
    Georgia,
    serif;
  letter-spacing: -1px;
  margin: 35px 0 26px;
}
.home-intro > p:not(.eyebrow) {
  font:
    21px/1.6 Reading,
    Georgia,
    serif;
  color: var(--muted);
  max-width: 400px;
}
.home-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.home-actions button {
  font-size: 12px;
  min-height: 46px;
}
.home-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 13px 20px;
}
.home-primary:hover {
  background: var(--text);
}
.home-actions .icon {
  width: 17px;
  height: 17px;
}
.home-intro .home-note {
  font:
    11px/1.6 Arial,
    sans-serif !important;
  margin-top: 45px;
}
#resume-hint {
  align-self: start;
  margin-top: 130px;
  border-left: 1px solid var(--line);
  padding-left: 25px;
}
#resume-hint h2 {
  font:
    28px/1.2 Reading,
    Georgia,
    serif;
  margin: 14px 0 20px;
}
#resume-link {
  display: grid;
  gap: 20px;
  text-decoration: none;
}
#resume-reference {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
#resume-link > span:last-child {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--accent);
  font-size: 12px;
}
#resume-link .icon {
  width: 15px;
  height: 15px;
}
#resume-link:hover > span:last-child {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.side-nav > a {
  padding: 10px 12px;
  font-size: 13px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 20px;
}
@media (max-width: 1100px) {
  .home-layout {
    gap: 25px;
    padding: 85px 6%;
    grid-template-columns: minmax(0, 1fr) 190px;
  }
}
@media (max-width: 850px) {
  #home {
    min-height: calc(100dvh - 132px);
  }
  .home-layout {
    grid-template-columns: 1fr;
    padding: 65px 28px;
    gap: 35px;
  }
  .home-intro h1 {
    font-size: 56px;
  }
  .home-intro > p:not(.eyebrow) {
    font-size: 22px;
  }
  #resume-hint {
    margin: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px 0 0;
  }
  .home-landscape {
    height: 330px;
  }
  .home-intro .home-note {
    margin-top: 30px;
  }
  #sidebar #navigation-tree {
    min-height: 250px;
  }
  .tree-chapters a {
    min-height: 44px;
  }
  .book-branch > summary {
    min-height: 44px;
    font-size: 13px;
  }
}
#resume-hint h2 {
  font-size: 22px;
  line-height: 1.3;
}
#resume-hint {
  margin-top: 140px;
}
.home-layout {
  grid-template-columns: minmax(0, 1fr) 240px;
}
@media (max-width: 1100px) {
  .home-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
  }
}
@media (max-width: 850px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
  #resume-hint {
    margin-top: 0;
  }
}
/* White dove brand mark, with contrast in both themes. */
.brand {
  width: 330px;
  gap: 12px;
}
.brand-dove {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
  background: #354b42;
  border-radius: 50%;
  padding: 4px;
}
.dark .brand-dove {
  background: transparent;
  padding: 0;
}
.brand .brand-name {
  font:
    500 40px Reading,
    Georgia,
    serif;
  letter-spacing: -1.5px;
}
.brand-note {
  margin-left: 4px;
}
@media (max-width: 1200px) {
  .brand {
    width: 160px;
  }
  .brand-note {
    display: none;
  }
}
@media (max-width: 850px) {
  .brand {
    width: auto;
    gap: 6px;
  }
  .brand-dove {
    width: 34px;
    height: 34px;
  }
  .brand .brand-name {
    font-size: 31px;
  }
}
@media (max-width: 400px) {
  .brand .brand-name {
    display: none;
  }
  .brand-dove {
    width: 36px;
    height: 36px;
  }
}
/* Three-way translation switch; native radio keyboard interaction. */
.topbar #translation {
  display: inline-flex;
  align-items: center;
  width: auto;
  flex: none;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
}
.translation-segments label {
  display: block;
  cursor: pointer;
  margin: 0;
}
.translation-segments label > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 34px;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--muted);
  font:
    12px Arial,
    sans-serif;
  transition:
    background 0.15s,
    color 0.15s;
}
.translation-segments label:hover > span {
  color: var(--text);
  background: var(--highlight);
}
.translation-segments input:checked + span {
  color: var(--bg);
  background: var(--accent);
}
.translation-segments input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 850px) {
  .translation-segments label > span {
    min-width: 35px;
    height: 32px;
    padding: 0 6px;
    font-size: 10px;
  }
  .topbar #translation {
    gap: 1px;
    padding: 2px;
  }
  .header-settings {
    gap: 9px;
  }
}
@media (max-width: 400px) {
  .header-settings {
    gap: 6px;
  }
}
.sidebar-close-row {
  display: none;
}
@media (max-width: 850px) {
  .sidebar-close-row {
    display: flex;
    justify-content: flex-end;
    padding: 0;
    height: 32px;
  }
  .sidebar-close-row #close-menu {
    margin-left: auto;
  }
}

/* Translation select: keyboard, focus and touch behavior supplied by Radix. */
.topbar #translation {
  display: block;
  width: 96px;
  padding: 0;
  border: 0;
  background: transparent;
}
.translation-trigger {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 12px;
  background: var(--bg);
}
.translation-trigger .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
}
.translation-trigger[data-state='open'] {
  border-color: var(--accent);
  background: var(--highlight);
}
.translation-options {
  z-index: 40;
  max-width: calc(100vw - 24px);
  max-height: var(--radix-select-content-available-height);
  overflow: auto;
  color: var(--text);
  min-width: 260px;
  font-size: 13px;
}
.translation-option {
  min-height: 48px;
  user-select: none;
}
.translation-option [data-radix-select-item-text] {
  display: grid;
  gap: 5px;
}
.translation-option small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.translation-option[data-highlighted] {
  background: var(--highlight);
  color: var(--accent);
}
.translation-option[data-state='checked'] {
  color: var(--accent);
}
.translation-option > .icon {
  width: 16px;
  height: 16px;
}
[data-sonner-toaster] button {
  display: inline-flex;
}
@media (max-width: 850px) {
  .topbar #translation {
    width: 80px;
  }
  .translation-trigger {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 11px;
  }
}
