﻿:root {
  color-scheme: light dark;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
  background: #f6f3ec;
  color: #24211d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(80, 70, 55, 0.2);
  background: rgba(255, 255, 255, 0.78);
}

.site-header nav {
  display: flex;
  gap: 1rem;
}

.brand {
  font-family: system-ui, sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.container {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 5rem;
}

.hero {
  max-width: 720px;
  margin-bottom: 3rem;
}

.eyebrow {
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

h1,
h2 {
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5rem);
  margin: 0.2rem 0 1.5rem;
}

.reference-search label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: system-ui, sans-serif;
  font-weight: 700;
}

.reference-search div {
  display: flex;
  gap: 0.5rem;
}

.reference-search input,
.reference-search button {
  min-height: 48px;
  border: 1px solid rgba(80, 70, 55, 0.3);
  border-radius: 8px;
  font: inherit;
}

.reference-search input {
  flex: 1;
  padding: 0 0.9rem;
}

.reference-search button {
  padding: 0 1.2rem;
  cursor: pointer;
}

.testaments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  padding: 0;
  list-style: none;
}

.book-grid a {
  display: block;
  padding: 0.5rem 0;
  text-decoration: none;
  border-bottom: 1px solid rgba(80, 70, 55, 0.12);
}

.chapter {
  max-width: 780px;
  margin: 0 auto;
}

.chapter-header {
  margin-bottom: 2rem;
}

.chapter-header h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.chapter-text {
  font-size: clamp(1.15rem, 2.3vw, 1.42rem);
}

.verse {
  display: block;
  width: 100%;
  margin: 0 0 0.6rem;
  padding: 0.35rem 0.5rem;

  color: inherit;
  text-decoration: none;
  text-align: justify;
  line-height: 1.7;

  border-radius: 0.35rem;
  scroll-margin-top: 2rem;
  cursor: pointer;
  border: 0;
  font: inherit;
  background: transparent;
}

.verse:hover {
  background: rgba(230, 190, 80, 0.12);
}

.verse.selected {
  background: rgba(230, 190, 80, 0.28);
}

.verse-number {
  margin-right: 0.3rem;
  font-family: system-ui, sans-serif;
  font-size: 0.65em;
  font-weight: 800;
  vertical-align: super;
  opacity: 0.65;
}

.verse-text {
  text-align: justify;
}

.chapter-navigation {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(80, 70, 55, 0.2);
  font-family: system-ui, sans-serif;
}

.empty-state {
  padding: 3rem 0;
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
  }

  .testaments {
    grid-template-columns: 1fr;
  }

  .book-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reference-search div {
    flex-direction: column;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    background: #191713;
    color: #eee8dc;
  }

  .site-header {
    background: rgba(25, 23, 19, 0.92);
  }
}
