/* ===============================
   LONGFORM READER — COPPER NOTCH
   =============================== */

:root {
  --paper: #f7f4ef;
  --ink: #1a1a1a;
  --muted: #777;
}

* {
  box-sizing: border-box;
}

body.longform-reader {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reader-frame {
  width: 100%;
  max-width: 720px;
  height: 100%;
  padding: 3rem 2rem 2rem;
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;
  display: flex;

  align-items: flex-start;   /* ← THIS is the fix */
  justify-content: center;

  max-height: 70vh;
  padding-top: 1rem;
  padding-bottom: 3rem;
}

.page {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;

  height: calc(100vh - 6.5rem); /* ← KEY FIX */
  padding-top: 1rem;
}


.page-text p {
  margin-bottom: 1.25rem;
}

/* Footer */
.reader-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.reader-footer button {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}

.reader-footer button:disabled {
  opacity: 0.3;
  cursor: default;
}
.page {
  padding-top: 1rem;
}
.page-text {
  max-height: 74vh;
}
.page-text {
  overflow: visable;
}
.reader-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.08);
}
.chapter-title {
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.04em;

  margin-top: 30vh;   /* ← KEY */
  margin-bottom: 0;
}

/* Drop cap: first paragraph after chapter title */
.chapter-title + p::first-letter {
  float: left;
  font-size: 3.8rem;
  line-height: 0.9;
  padding-right: 0.15em;
  padding-top: 0.1em;
  font-weight: 600;
}

.chapter-title::after {
  content: "";
  display: block;
  width: 2rem;
  height: 1px;
  background: rgba(0,0,0,0.15);
  margin: 1.5rem auto 0;
}
.chapter-opening::first-letter {
  float: left;
  font-size: 3.8rem;
  line-height: 0.9;
  padding-right: 0.18em; /* slightly more air */
  padding-top: 0.08em;
  font-weight: 600;
}
.chapter-opening {
  text-indent: 0;
}
.reader-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.reader-footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.reader-back {
  font-size: 0.85rem;
  color: rgba(0,0,0,0.45);
  text-decoration: none;
}

.reader-back:hover {
  color: rgba(0,0,0,0.7);
  text-decoration: underline;
}