body {
    background-color: #f4ecd8;
    color: #222;
    max-width: 700px;
    margin: 2.5rem auto;
    padding: 0 1.25rem;
    font-family: Georgia, Gelasio, serif;
    font-size: 18px;
}

.page {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transform: translateY(-8vh);
}

.cover-title {
    font-size: 2rem;
    letter-spacing: 0.15rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.15;
    text-align: left;
}

p {
    line-height: 1.5;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
    hyphens: none;
}

h1 {
    color: #000;
    font-size: 16pt;
    line-height: 1.15;
}

h2 {
    color: #000;
    font-size: 14pt;
}

.chapter {
    break-before: page;
    margin-top: 4rem;
}

.toc {
    list-style-type: none;
    padding: 0;
}

.toc li {
    margin-bottom: 0.3rem;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.15);
    padding-bottom: 0.2rem;
}

.toc a {
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
    color: inherit;
}



@media(max-width: 370px) {
    body {
        width: 100%;
        margin: 1.5rem auto;
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .cover-title {
        font-size: 1rem;
        letter-spacing: 0.08rem;
        margin: 0;
        padding: 0;
    }
}

@page {
    size: letter;
    margin-top: 0.8in;
    margin-bottom: 0.8in;

    @bottom-right {
        content: "Page " counter(page) " of " counter(pages);
        font-size: 10pt;
    }
}

@media print {
    body {
        background-color: white;
        color: black;
        max-width: 100%;
    }

    p {
        color: #000;
        font-size: 12pt;
        orphans: 3;
        widows: 3;
    }

    h1 {
        color: black;
        break-after: avoid;
    }

    nav {
        break-after: always;
    }
}





/* --- Bottom Three-Point Editorial Footer --- */
.book-nav-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  max-width: 65ch;
  margin: 5rem auto 4rem;
  padding-top: 2rem;
  border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.nav-card {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: 0.6rem 0;
}

.nav-prev {
  grid-column: 1;
  justify-self: start;
}

.nav-toc {
  grid-column: 2;
  justify-self: center;
  padding-inline: 0.75rem;
}

.nav-next {
  grid-column: 3;
  justify-self: end;
}

.nav-label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.55;
  white-space: nowrap;
  transition: opacity 0.25s ease;
}

.nav-card:hover .nav-label {
  opacity: 1;
}

.nav-next:hover .arrow {
  transform: translateX(4px);
}

.nav-prev:hover .arrow {
  transform: translateX(-4px);
}

/* Mobile Tightening */
@media (max-width: 480px) {
  .book-nav-bottom {
    gap: 0.75rem;
  }

  .nav-label {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }
}