
/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Root theme */
:root {
  --bg: #f5f5f5;
  --text: #111111;
  --muted: #555555;
  --accent: #7a1f1f; /* muted red */
  --border: #dddddd;
}

/* Base */
body {
  font-family: "Georgia", "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
}

/* Layout */
.container {
  max-width: 900px;
  margin: auto;
  padding: 2rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 3rem 1rem 2rem;
  text-align: center;
}

.site-title {
  font-size: 2.5rem;
  font-weight: 700;
}

.site-subtitle {
  color: var(--muted);
  margin-top: 0.5rem;
}

/* TOC */
.toc {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.toc-toggle {
  display: none;
}

.toc-list {
  display: flex;
  overflow-x: auto;
  list-style: none;
}

.toc-list li {
  padding: 0.75rem 1rem;
}

.toc-list a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
}

.toc-list a:hover {
  color: var(--accent);
}

/* Reader */
.reader {
  max-width: 720px;
  margin: auto;
  padding: 3rem 1.5rem;
}

.chapter {
  margin-bottom: 4rem;
}

.chapter h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.chapter p {
  margin-bottom: 1.3rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
/* ============================= */
/* HOME / TITLE PAGE STYLING     */
/* ============================= */

.home-header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 2rem 1.5rem;
}

.home-container {
  max-width: 720px;
  text-align: center;
}

.book-title {
  font-family: "Palatino Linotype", "Book Antiqua", serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.book-subtitle {
  font-size: 1.2rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.book-author {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.home-divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 2rem auto;
}

.book-description {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.home-actions {
  margin-top: 2.5rem;
}

.primary-button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  margin: 0.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.95rem;
}

.primary-button:hover {
  opacity: 0.9;
}

.secondary-button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  margin: 0.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.95rem;
}

.secondary-button:hover {
  background: var(--accent);
  color: #fff;
}

.home-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.citation {
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
}

.sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.pull-quote {
  border-left: 4px solid var(--accent);
  padding: 1.2rem 1.5rem;
  margin: 2.5rem 0;
  font-style: italic;
  background: #fafafa;
  color: #222;
}

.pull-quote span {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================= */
/* MOBILE READING COMFORT        */
/* ============================= */

@media (max-width: 768px) {
  body {
    font-size: 19px;        /* Bigger text on phones */
  }

  .reader {
    font-size: 1.1rem;
    padding: 1.5rem 1.25rem;
  }

  .reader h1 {
    font-size: 2.1rem;
  }

  .reader h2 {
    font-size: 1.6rem;
  }

  .reader h3 {
    font-size: 1.3rem;
  }
}
.book-cover {
  text-align: center;
  margin: 2.5rem 0 2rem;
}

.book-cover img {
  max-width: 320px;
  width: 90%;
  height: auto;
}
.support-float-btn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 999;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  background: #6b1f1f; /* deep maroon */
  color: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  cursor: pointer;
}

.support-float-btn:hover {
  background: #8a2a2a;
}

/* Mobile tweak */
@media (max-width: 600px) {
  .support-float-btn {
    font-size: 15px;
    padding: 12px 16px;
  }
}

.support-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
}

.support-modal-content {
  background: #fff;
  max-width: 420px;
  margin: 15vh auto;
  padding: 28px;
  border-radius: 12px;
  text-align: center;
  font-family: Georgia, serif;
}

.support-modal-content h3 {
  margin-top: 0;
}

.donate-button {
  display: inline-block;
  margin: 16px 0;
  padding: 12px 20px;
  background: #0070ba;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
}

.donate-button:hover {
  background: #005ea6;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 22px;
  cursor: pointer;
}

.support-note {
  font-size: 14px;
  color: #555;
}
.book-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 2.5rem 0;
}

.chapter-nav {
  margin: 2rem 0;
  line-height: 1.8;
}

.chapter-nav a {
  text-decoration: none;
  font-weight: 500;
  color: #2c2c2c;
  margin-right: 0.75rem;
}

.chapter-nav a:hover {
  text-decoration: underline;
}
.share-box {
  margin: 2rem 0;
  font-size: 0.95rem;
  color: #555;
}

.share-box a {
  color: #6b1f1f;
  text-decoration: none;
  font-weight: 500;
}

.share-box a:hover {
  text-decoration: underline;
}