:root {
  --ink: #16130f;
  --raised: #221c17;
  --card: rgba(32, 26, 21, 0.92);
  --gold: #f0c14a;
  --gold-soft: rgba(240, 193, 74, 0.18);
  --text: #f6f1e7;
  --muted: #cbbfae;
  --line: rgba(240, 193, 74, 0.2);
  --danger: #ffc1c1;
  --serif: "Cinzel", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  background:
    radial-gradient(900px 460px at 50% -8%, rgba(92, 77, 130, 0.38), transparent 68%),
    radial-gradient(720px 320px at 50% 110%, rgba(107, 66, 38, 0.32), transparent 62%),
    var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 244, 220, 0.045) 0.7px, transparent 0.7px);
  background-size: 4px 4px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 80%);
}

::selection { background: var(--gold); color: #1a1208; }

a { color: inherit; }
img { max-width: 100%; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--gold);
  color: #1a1208;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.skip:focus { top: 0.6rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  background: rgba(22, 19, 15, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: var(--serif);
  color: var(--gold);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.12rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  padding: 0.45rem 0.62rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--gold); }

.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }

.discord {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #5865f2;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-weight: 650;
  white-space: nowrap;
}
.discord:hover { background: #4752c4; }
.discord svg { display: block; flex: none; }

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(246, 241, 231, 0.22);
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
}

main {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 390px;
  padding: 2.2rem 0 2.6rem;
  overflow: hidden;
}

.hero-mountains {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1100px, 150%);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
.hero-mountains svg { display: block; width: 100%; height: auto; }

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
}
.hero-title::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: 78%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(240, 193, 74, 0.2), transparent 72%);
  z-index: -1;
}

.logo {
  display: block;
  width: min(680px, 100%);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.ip-banner {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 100%;
  margin-top: 1.35rem;
  padding: 0.45rem 0.45rem 0.45rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(240, 193, 74, 0.55);
  background: rgba(18, 15, 12, 0.78);
  color: #f8e7b0;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}
.ip-banner:hover { border-color: var(--gold); }
.ip-address {
  font-weight: 650;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.ip-action {
  background: var(--gold);
  color: #1a1208;
  border-radius: 999px;
  padding: 0.48rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.presence {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(560px, 100%);
  margin-top: 0.85rem;
}
.online {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted);
}
.player-toggle {
  margin-top: 0.15rem;
  padding: 0.15rem 0.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
}
.player-toggle svg {
  display: block;
  transition: transform 0.15s ease;
}
.player-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.player-panel {
  width: 100%;
  margin-top: 0.7rem;
  padding: 0.45rem 0.85rem;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}
.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #7dbe57;
  box-shadow: 0 0 0 4px rgba(125, 190, 87, 0.16);
}

.player-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.player {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.35rem 0.15rem;
}
.player img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  image-rendering: pixelated;
  background: #2a241c;
}
.player-name {
  font-weight: 650;
  overflow-wrap: anywhere;
}
.player-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.page { padding-top: 1.6rem; }

.sheet,
.login-card,
.dashboard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.22);
  margin-bottom: 2rem;
}

h1, h2, h3, .brand { font-family: var(--serif); }
h1, h2, h3 { font-weight: 700; letter-spacing: 0.03em; }
h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 1rem; }
h3 { margin: 0; font-size: 1.25rem; }

.page-title::after,
#news-heading::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: 0.4rem;
  border-radius: 99px;
  background: var(--gold);
}

.placeholder {
  margin: 0;
  padding: 2.2rem 1.2rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(203, 191, 174, 0.45);
  border-radius: 16px;
}

.prose {
  margin: 0;
  max-width: 68ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  font-size: 1.05rem;
}

.about-lead {
  margin: 0 0 0.85rem;
  max-width: 68ch;
  line-height: 1.7;
}
.about-sources {
  margin: 0 0 1.5rem;
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.about-sources a,
.faq-source a { color: var(--gold); }
.faq-group {
  margin: 1.35rem 0 0.7rem;
  font-size: 1.2rem;
}
.faq-group:first-of-type { margin-top: 0.2rem; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.faq {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #1b1713;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 1.05rem;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1;
  flex: none;
}
.faq[open] summary::after { content: "\2013"; }
.faq-body { padding: 0 1.05rem 1rem; }
.faq-body p {
  margin: 0 0 0.75rem;
  max-width: 68ch;
  line-height: 1.7;
}
.faq-source {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.news-list, .vote-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  min-height: 168px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 42%),
    #1b1713;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.news-card:hover { border-color: rgba(240, 193, 74, 0.5); }
.news-card img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
  display: block;
}
.news-card.no-image { grid-template-columns: 1fr; }
.news-card-body { padding: 1.05rem 1.15rem 1.15rem; }
.news-card h3 { margin-bottom: 0.3rem; }
.news-card time, .post time {
  display: block;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0;
  font-weight: 500;
  margin-bottom: 0.55rem;
}
.news-card p { margin: 0; color: #ebe4d8; }

.post { padding-bottom: 0.4rem; }
.post .page-title { margin-bottom: 0.35rem; }
.post-block { margin: 1rem 0 0; }
.post-block img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.back {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 650;
}

.vote-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  text-decoration: none;
  color: var(--text);
  background: #1b1713;
  border: 1px solid rgba(240, 193, 74, 0.32);
  font-weight: 650;
}
.vote-link:hover {
  background: var(--gold);
  color: #1a1208;
  border-color: var(--gold);
}
.vote-go {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1.3rem;
  padding: 1.4rem 1rem 2rem;
}
.site-footer a,
.site-footer button {
  color: var(--muted);
  background: none;
  border: 0;
  padding: 0.35rem 0.1rem;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.site-footer a:hover,
.site-footer button:hover { color: var(--gold); }

.login-card { width: min(440px, 100%); margin: 3.2rem auto 2rem; }
.dash-head, .row-actions, .editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.dash-head { justify-content: space-between; margin-bottom: 0.4rem; }
.dash-head h1 { margin: 0; }

.tabs { display: flex; gap: 1rem; margin: 0.2rem 0 1.15rem; }
.tabs button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: var(--muted);
  padding: 0.45rem 0.05rem;
  font-weight: 650;
}
.tabs button[aria-selected="true"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

label {
  display: block;
  margin: 0 0 0.9rem;
  font-weight: 600;
}
input, textarea {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  font: inherit;
  color: inherit;
  background: #100e0c;
  border: 1px solid rgba(246, 241, 231, 0.14);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
}
textarea { min-height: 8rem; resize: vertical; }

button { font: inherit; cursor: pointer; }
button:disabled { opacity: 0.6; cursor: wait; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.65rem 1.05rem;
  border: 1px solid transparent;
  font-weight: 700;
}
.button-primary { background: var(--gold); color: #1a1208; }
.button-primary:hover { background: #ffd56a; }
.button-quiet {
  background: transparent;
  color: var(--text);
  border-color: rgba(246, 241, 231, 0.22);
}
.button-quiet:hover { border-color: var(--gold); color: var(--gold); }
.button-danger {
  background: transparent;
  color: var(--danger);
  border-color: rgba(255, 180, 180, 0.38);
}
.button-small { padding: 0.38rem 0.7rem; font-size: 0.85rem; }

.form-error, .form-status { margin: 0.2rem 0 0.8rem; }
.form-error { color: var(--danger); }
.form-status { color: #b7e1a1; }

.post-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(246, 241, 231, 0.08);
}
.post-row h3 { font-size: 1.08rem; }
.post-row time { color: var(--muted); font-size: 0.9rem; }

.block {
  border: 1px solid rgba(246, 241, 231, 0.12);
  border-radius: 12px;
  padding: 0.8rem;
  margin-bottom: 0.75rem;
  background: rgba(0, 0, 0, 0.18);
}
.block img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 8px;
  background: #0e0c0a;
}
.block-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: flex-end; margin-top: 0.55rem; }
.editor-actions { margin-top: 0.4rem; }
#new-post, #add-vote-link { margin-bottom: 0.8rem; }

.link-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.3fr) auto auto auto;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  align-items: center;
}
.link-row input { margin-top: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .discord { margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.45rem;
    background: #1b1713;
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.8rem 0.9rem; }
  .news-card { grid-template-columns: 1fr; }
  .news-card img { height: 200px; min-height: 0; }
  .link-row { grid-template-columns: 1fr; }
  .post-row { flex-direction: column; align-items: flex-start; }
  .hero { min-height: 0; padding-top: 1.4rem; }
}

body[data-page="map"] main {
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.map-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 1.15rem 0.45rem;
}
.map-bar h1 {
  margin: 0;
  font-size: 1.15rem;
}
.map-bar h1::after { display: none; }
.map-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: calc(100dvh - 8.25rem);
  border: 0;
  display: block;
  background: #100e0c;
}
body[data-page="map"] .site-footer { padding-top: 0.7rem; }

body[data-page="bible"] main {
  width: min(1140px, calc(100% - 1.5rem));
}

.bible-heading {
  text-align: center;
}
.bible-heading::after {
  margin-inline: auto;
}

.bible-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 0.8rem;
  margin: 0 0 1rem;
}
.bible-nav label {
  margin: 0;
  min-width: min(100%, 11rem);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bible-nav select {
  width: 100%;
  margin-top: 0.35rem;
  color: var(--text);
  font: inherit;
  font-size: 0.98rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  background: #140f0c;
  border: 1px solid rgba(240, 193, 74, 0.45);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
}

.bible-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
}

.bible-turn {
  width: 2.7rem;
  height: 2.7rem;
  border: 1px solid rgba(230, 200, 120, 0.7);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #8a4030, #3d1612 72%);
  color: #f6e7b0;
  font-size: 1.8rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}
.bible-turn:hover { color: #fff; border-color: var(--gold); }
.bible-turn span { display: block; margin-top: -0.12rem; }

.bible-cover {
  position: relative;
  padding: 15px 13px 16px;
  border-radius: 3px 14px 14px 3px;
  background:
    linear-gradient(180deg, rgba(255, 220, 150, 0.16), transparent 12px),
    linear-gradient(90deg, #24100c 0%, #7a3b28 2.2%, #4e1e18 4.5%, #3f1814 95.5%, #7a3b28 97.8%, #24100c 100%);
  box-shadow:
    0 0 0 1px #e7c56a,
    0 0 0 4px #5c261c,
    0 0 0 5px rgba(231, 197, 106, 0.85),
    0 26px 48px rgba(0, 0, 0, 0.48);
}

.bible-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: min(680px, calc(100vh - 360px));
  min-height: 420px;
  position: relative;
  background: #e7d3ae;
  box-shadow: inset 0 0 0 1px rgba(90, 55, 25, 0.18);
}

.bible-spread::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 42px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(70, 40, 15, 0.16) 36%, rgba(30, 16, 8, 0.38) 50%, rgba(70, 40, 15, 0.16) 64%, transparent);
}

.bible-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 1.05rem 1.35rem 0.75rem;
  color: #2c2218;
  background-color: #f3e4c6;
  background-image:
    radial-gradient(rgba(120, 78, 32, 0.045) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
}
.bible-page-left {
  padding-right: 1.7rem;
  background-image:
    linear-gradient(90deg, rgba(92, 58, 24, 0.08), transparent 12%),
    radial-gradient(rgba(120, 78, 32, 0.045) 0.7px, transparent 0.7px);
}
.bible-page-right {
  padding-left: 1.7rem;
  background-image:
    linear-gradient(270deg, rgba(92, 58, 24, 0.08), transparent 12%),
    radial-gradient(rgba(120, 78, 32, 0.045) 0.7px, transparent 0.7px);
}
.bible-page-right::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 13%;
  width: 13px;
  height: 68px;
  background: linear-gradient(#9d2434, #6e1524);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
  box-shadow: 2px 3px 4px rgba(40, 16, 8, 0.25);
  pointer-events: none;
}

.page-head,
.page-foot {
  flex: none;
  font-family: var(--serif);
  color: #7a5432;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: baseline;
  min-height: 1.2rem;
  padding-bottom: 0.35rem;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid rgba(122, 84, 50, 0.35);
  font-size: 0.68rem;
}
.page-head span:last-child { text-align: right; }
.page-foot {
  text-align: center;
  min-height: 1.35rem;
  margin-top: 0.35rem;
  font-size: 0.72rem;
}
.page-head.is-quiet,
.page-foot.is-quiet { visibility: hidden; }

.bible-page > .page-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.page-body,
.bible-measure {
  font-family: "EB Garamond", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.16rem;
  line-height: 1.42;
  font-weight: 500;
}
.page-body p { margin: 0; }

.bible-measure {
  position: fixed;
  left: -20000px;
  top: 0;
  visibility: hidden;
  overflow: visible;
  height: auto;
  pointer-events: none;
}

.book-title-block,
.book-end-block,
.blank-page {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.book-kicker,
.book-trans,
.book-alias {
  font-family: var(--serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a3a2c;
}
.book-kicker { font-size: 0.78rem; margin-bottom: 0.85rem; }
.book-title-block h2,
.book-end-block h2 {
  max-width: 16ch;
  margin: 0;
  color: #5c241c;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.25;
  letter-spacing: 0.04em;
}
.book-alias {
  margin-top: 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: none;
  font-family: "EB Garamond", Palatino, Georgia, serif;
  font-style: italic;
  color: #6d5138;
}
.book-rule {
  width: 4.5rem;
  height: 1px;
  margin: 1rem 0 0.75rem;
  background: linear-gradient(90deg, transparent, #8a6230, transparent);
}
.book-trans { font-size: 0.72rem; }
.blank-page {
  color: rgba(122, 58, 44, 0.55);
  font-size: 1.8rem;
}

.chapter-block { margin: 0 0 0.75rem; }
.chapter-title {
  margin: 0.15rem 0 0.35rem;
  text-align: center;
  color: #6e2c22;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.chapter-argument,
.book-preface {
  color: #5c4634;
  font-style: italic;
  text-align: center;
  line-height: 1.35;
}
.chapter-argument { margin: 0 0 0.35rem; }
.book-preface {
  margin: 0 0 0.8rem;
  text-align: justify;
  hyphens: auto;
}

.verse {
  margin: 0 0 0.42rem;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
  cursor: pointer;
  border-radius: 2px;
}
.verse:hover { background: rgba(140, 90, 30, 0.08); }
.verse-num {
  margin-right: 0.28em;
  color: #8a3428;
  font-family: var(--serif);
  font-size: 0.68em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
}
.verse.is-drop .verse-text::first-letter {
  float: left;
  padding: 0.12rem 0.38rem 0 0;
  color: #6e2c22;
  font-family: var(--serif);
  font-size: 3.05rem;
  line-height: 0.75;
}
.verse.is-current {
  background: rgba(196, 146, 42, 0.24);
  box-shadow: inset 2px 0 0 #8a5a18;
}

.bible-loading {
  color: #6d5138;
  font-style: italic;
  text-align: center;
  margin-top: 2rem;
}

.bible-place,
.bible-edition {
  margin: 0.85rem 0 0;
  text-align: center;
  color: var(--muted);
}
.bible-place {
  min-height: 1.5rem;
  font-weight: 650;
  color: #f0e2c4;
}
.bible-edition {
  margin-top: 0.2rem;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

@media (max-width: 859px) {
  .bible-shell { grid-template-columns: 1fr 1fr; }
  .bible-cover { grid-column: 1 / -1; grid-row: 1; }
  #bible-prev { grid-column: 1; grid-row: 2; justify-self: end; }
  #bible-next { grid-column: 2; grid-row: 2; justify-self: start; }
  .bible-spread {
    grid-template-columns: 1fr;
    height: min(640px, calc(100vh - 340px));
    min-height: 420px;
  }
  .bible-spread::before { display: none; }
  .bible-page-right { display: none; }
  .bible-page-left { padding-right: 1.15rem; }
  .bible-page-left::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    right: 12%;
    width: 13px;
    height: 68px;
    background: linear-gradient(#9d2434, #6e1524);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%);
    pointer-events: none;
  }
  .page-body,
  .bible-measure { font-size: 1.12rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
