/* === Library Page Base === */
.library-page {
  font-family: 'Georgia', serif;
  background-color: #fdf6e3;
  color: #3e2f1c;
  margin: 0;
}

.library-header {
    position: relative;
    padding-top: 60px; /* Creates space for the button */
    text-align: center;
}

/* === Tome Cover === */
.tome-cover {
  background: url('leather-texture.jpg') center/cover no-repeat;
  color: #f5f5dc;
  text-align: center;
  padding: 100px 20px;
}

.tome-cover h1 {
  font-size: 3em;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px #000;
}

/* === Index Section === */
.tome-index {
  background-color: #f5f5dc;
  padding: 40px;
  border-top: 2px solid #8b5e3c;
}

.tome-index ul {
  list-style-type: none;
  padding: 0;
}

.tome-index li {
  margin: 10px 0;
  font-size: 1.2em;
}

/* === Chapter Entries === */
.tome-chapter {
  padding: 60px 20px;
  border-bottom: 1px dashed #8b5e3c;
  background-color: #fffaf0;
}

/* === Footer === */
.library-footer {
  text-align: center;
  padding: 20px;
  background-color: #8b5e3c;
  color: #f5f5dc;
}

.back-to-house {
  position: absolute;
  top: 20px;
  left: 20px;
  text-decoration: none;
  color: #3e2f1c;
  font-size: 1.2rem;
  font-family: 'Cinzel', serif;
  background-color: rgba(245, 245, 220, 0.8);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.2);
  transition: background-color 0.3s, color 0.3s;
  z-index: 100;
}

.back-to-house:hover {
  background-color: #8b5e3c;
  color: #fdf6e3;
}

.library-chapter {
  max-width: 700px;           /* Keeps text column narrow and readable */
  margin: 0 auto;             /* Centers the section on the page */
  padding: 2rem 1rem;         /* Adds breathing room around the content */
  font-family: 'Georgia', serif; /* Warm, book-like feel */
  font-size: 19px;            /* Slightly larger for easier reading */
  line-height: 1.7;           /* Comfortable spacing between lines */
  color: #2c2c2c;             /* Soft black for readability */
  background-color: #fdfcf9;  /* Optional: subtle parchment tint */
}

.library-chapter h3 {
  font-size: 28px;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
  color: #3a3a3a;
}

.chapter-content p {
  margin-bottom: 1.5rem;
  text-align: left;
  text-indent: 1em;           /* Optional: adds a classic paragraph indent */
}

.chapter-content p:first-of-type::first-letter {
  font-size: 2.5em;
  font-weight: bold;
  float: left;
  margin-right: 0.1em;
  line-height: 1;
}

.chapter-content p + p {
  border-top: 1px solid #e0e0e0;
  padding-top: 1.5rem;
}

/* Header styling */
h1 {
  font-size: 3rem; /* Try 48px or 3rem for grandeur */
  font-weight: 700;
  margin-bottom: 0.5em;
}

/* Philosophy quote styling */
.philosophy {
  font-size: 1.5rem; /* Around 24px for elegance */
  font-style: italic;
  line-height: 1.6;
  color: #444; /* Optional: soften the tone */
}
