* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  background: #f4f1ea;
  color: #222;
}

header {
  background: white;
  border-bottom: 1px solid #ddd;
}

.header-inner {
  max-width: 1000px;
  margin: auto;
  padding: 14px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;
}

.logo {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
}

main {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.paper {
  background: white;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.book {
  margin-bottom: 30px;
}

.book h2 {
  margin-bottom: 10px;
}


/* Book search */

#bookSearch {
  width: 100%;
  padding: 10px 12px;

  font: inherit;

  border: 1px solid #ccc;
  border-radius: 4px;
}


/* Chapter grid */

.chapter-list {
  display: grid;

  grid-template-columns:
    repeat(10, 1fr);

  gap: 8px;
}

.chapter-list a {
  display: block;

  padding: 7px 4px;

  text-align: center;

  text-decoration: none;

  color: inherit;

  border: 1px solid #ccc;
  border-radius: 4px;
}

.chapter-list a:hover {
  background: #f0f0f0;
}


/* Verse range */

.verse-range {
  display: flex;

  width: 100%;

  gap: 10px;

  margin: 20px 0;
}

.verse-range input {
  flex: 1;

  min-width: 0;

  padding: 10px 12px;

  font: inherit;

  border: 1px solid #ccc;
  border-radius: 4px;
}


/* Verses */

.verse {
  margin: 0 0 12px;
}

.verse-num {
  display: inline-block;

  min-width: 2em;

  font-size: 0.75em;
  font-weight: bold;

  vertical-align: super;

  margin-right: 5px;
}


/* Navigation */

.nav {
  display: grid;

  grid-template-columns:
    1fr auto 1fr;

  align-items: center;

  gap: 20px;

  margin-top: 30px;
  padding-top: 20px;

  border-top: 1px solid #ddd;
}

.nav a:last-child {
  text-align: right;
}


/* Footer */

footer {
  max-width: 1000px;

  margin: 30px auto;

  padding: 0 20px;

  text-align: center;

  color: #666;
}


/* Mobile */

@media (max-width: 700px) {

  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .chapter-list {
    grid-template-columns:
      repeat(5, 1fr);
  }

  .paper {
    padding: 20px;
  }

}
