/* ================= RESET ================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.6;
  background: #ffffff;
  color: #222;
}

/* ================= HEADER ================= */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
}

.logo img {
  height: 40px;
}

.hamburger {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* ============== CHAPTER MENU ============== */
.chapter-menu {
  background: #f7f7f7;
  border-bottom: 1px solid #ddd;
}

.chapter-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chapter-menu li a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #003366;
  border-bottom: 1px solid #e0e0e0;
}

/* ============== SUB NAV =================== */
.sub-nav {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: #fafafa;
  border-bottom: 1px solid #ddd;
}

.sub-nav a {
  text-decoration: none;
  white-space: nowrap;
  color: #444;
  font-size: 0.9rem;
}

.sub-nav.secondary {
  background: #fff;
}

/* ============ AUTHOR SECTION ============== */
.author-section {
  padding: 1rem;
  text-align: center;
}

.author-section img {
  width: 120px;
  border-radius: 50%;
}

.author-text h1 {
  margin: 0.5rem 0 0;
  font-size: 1.3rem;
}

.author-text h2 {
  margin: 0;
  font-size: 1rem;
  color: #777;
}

blockquote {
  margin: 1rem auto;
  font-style: italic;
  max-width: 32rem;
    text-align: center;
}

/* ============ READING AREA ================ */
.reading-area {
  padding: 1rem;
}

.page {
     font-size: 1.2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #eee;
     padding: 0rem 1.0rem 2rem 1.0rem;
}

.page h3 {
  font-size: 1.2rem;
}

.page-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

.page-controls button {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  background: #f9f9f9;
  cursor: pointer;
}

/* ============ END MENU ==================== */
.end-menu {
  display: flex;
  justify-content: space-around;
  padding: 0.75rem;
  border-top: 1px solid #ddd;
  background: #fafafa;
}

.end-menu a {
  text-decoration: none;
  font-size: 0.9rem;
  color: #003366;
}

/* ================= FOOTER ================= */
.site-footer {
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
  color: #777;
  border-top: 1px solid #ddd;
}

.caps {
    text-transform: uppercase;
  }

/* For off-set Poetry*/
.poetry {
  font-family: Georgia, serif;
}
.poetry .left {
  margin-left: 0;
}
.poetry .right {
  margin-left: 8ch; /* ≈ 10 spaces */
}
.poetry .right6 {
  margin-left: 6ch; /* ≈ 10 spaces */
}
