/* Shared layout rules for all pages */
body {
  background-color: #ffebd9; /* Perfect matching peach background */
  color: #222222;            /* Charcoal text color */
  font-family: Georgia, serif;
  max-width: 600px;         /* Uniform reading width */
  margin: 40px auto;
  padding: 0 20px;
  line-height: 1.8;         /* Comfortable line spacing */
}

/* Shared link treatment — used by the top nav, chapter nav, and back links
   across every page. Keep this as the single source of truth for link
   color/weight/hover so it never has to be duplicated in a page's own
   <style> block again. */
.top-nav-link,
.nav-link,
.back-link,
.enter-btn {
  color: #1a5fb4;
  text-decoration: none;
  font-weight: bold;
}
.top-nav-link:hover,
.nav-link:hover,
.back-link:hover,
.enter-btn:hover {
  text-decoration: underline;
}
/* Per-link size overrides */
.top-nav-link { font-size: 0.95rem; }
.enter-btn { font-size: 1.2rem; }

/* Styling for the top navigation bar wrapper */
.top-nav {
  margin-bottom: 20px;
  display: block;
}

/* Chapter header line and margins */
header {
  margin-bottom: 40px;
  border-bottom: 1px solid #d4bda7;
  padding-bottom: 20px;
}
.chapter-number {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
}
h1 {
  font-size: 2.2rem;
  margin-top: 5px;
}

/* Book Paragraph Rules */
p.first-p {
  text-indent: 0;           /* First paragraph has no indent */
}
p {
  margin: 0 0 15px 0;
  text-indent: 25px;        /* Standard indent for narrative fiction/non-fiction */
}

/* Navigation layout at the bottom of the page */
.chapter-nav {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #d4bda7;
  display: flex;
  justify-content: space-between;
}

.memoir-photo {
    max-width: 100%;
    margin: 40px auto;
    text-align: center;
}

.memoir-photo img {
    width: 70%;
    height: auto;
    border-radius: 4px;
}

.memoir-photo figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    font-style: italic;
    color: #777;
}

.audio-option {
  text-align: center;
  margin: 8px auto 20px;
}

.audio-option span {
  display: block;
  font-size: 0.8em;
  margin-bottom: 3px;
}

.audio-option audio {
  width: 250px;
  max-width: 60%;
}