/* Reader — free online reading for theshore.ai/read/ */
.reader-body { background: #efe5d0; }

.reader-page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.reader-article { color: #1c2233; }

.reader-article .post-head .rw-title { margin-bottom: 0.5rem; }

.reader-prose {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.75;
  margin-top: 1.5rem;
}

.reader-prose p { margin: 0 0 1.1rem; }
.reader-prose h2 { font-family: "Fraunces", Georgia, serif; font-size: 1.4rem; margin: 2rem 0 1rem; }
.reader-prose h3 { font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; margin: 1.5rem 0 0.75rem; }
.reader-prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  border-left: 3px solid #d4622e;
  font-style: italic;
  color: #3a4257;
}
.reader-prose blockquote p { margin: 0 0 0.75rem; }
.reader-prose ul, .reader-prose ol { margin: 0 0 1.1rem 1.5rem; }
.reader-prose li { margin-bottom: 0.5rem; }
.reader-prose a { color: #d4622e; }
.reader-prose hr { border: none; border-top: 1px solid rgba(28,34,51,0.2); margin: 2.5rem auto; width: 40%; }
.reader-prose .smallcaps, .reader-prose span.smallcaps { font-variant: small-caps; }

.reader-lead {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 1rem 0 0;
  max-width: 40rem;
}
.reader-lead a, .reader-note a { color: #d4622e; }

.reader-note {
  margin: 2.5rem 0;
  padding: 1rem 1.25rem;
  background: rgba(212, 98, 46, 0.08);
  border-left: 3px solid #d4622e;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3a4257;
}

/* Contents list */
.toc {
  list-style: none;
  margin: 2rem 0 1.5rem;
  padding: 0;
  font-family: "Source Serif 4", Georgia, serif;
}
.toc li {
  border-bottom: 1px solid rgba(28, 34, 51, 0.12);
}
.toc a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.7rem 0.25rem;
  color: #1c2233;
  text-decoration: none;
  font-size: 1.05rem;
}
.toc a:hover { color: #d4622e; }
.toc .toc-num {
  font-family: "Fraunces", Georgia, serif;
  color: #d4622e;
  min-width: 1.5rem;
  text-align: right;
  font-size: 0.95rem;
}
.toc .toc-title { flex: 1; }

/* Chapter navigation — top strip and bottom prev/next cards */
.reader-article .post-topnav {
  display: flex;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: clamp(1.6rem, 4vh, 2.4rem);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.reader-article .post-topnav-link {
  color: var(--ink-faint);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-decoration: none;
}
.reader-article .post-topnav-link:hover { color: var(--moon-bright); }
.reader-article .post-topnav-link[rel="next"] { text-align: right; margin-left: auto; }

.reader-article .post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
}
.reader-article .post-nav-cell {
  display: block;
  border: 1px solid var(--line-soft);
  border-radius: 3px;
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  transition: border-color 0.2s ease;
}
.reader-article .post-nav-cell:hover { border-color: rgba(212, 98, 46, 0.45); }
.reader-article .post-nav-label {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.45rem;
}
.reader-article .post-nav-title { color: var(--ink-dim); font-size: 0.98rem; line-height: 1.5; }
.reader-article .post-nav-cell:hover .post-nav-title { color: var(--ink); }
.reader-article .post-nav-cell[rel="next"] { text-align: right; }

@media (max-width: 700px) {
  .reader-article .post-topnav { flex-direction: column; gap: 0.4rem; white-space: normal; }
  .reader-article .post-topnav-link[rel="next"] { margin-left: 0; }
  .reader-article .post-nav { grid-template-columns: 1fr; }
  .reader-article .post-nav-cell[rel="next"] { text-align: left; }
}
