/* The Reader Who Wasn't Reading — shared styles */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Georgia', serif;
  background: #fafaf8;
  color: #1a1a1a;
  line-height: 1.8;
  font-size: 17px;
}

/* Logo */
.logo { position: fixed; top: 66px; left: 20px; z-index: 100; }
.logo a { border-bottom: none; }
.logo a:hover { border-bottom: none; }
.logo img { height: 36px; opacity: 0.7; }

/* Part nav */
.part-nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: #f0efe8;
  border-bottom: 1px solid #e0ddd4;
  display: flex; justify-content: center; align-items: center;
  gap: 8px; z-index: 100;
  padding: 10px 20px;
  font-family: -apple-system, sans-serif;
  font-size: 13px;
}
.part-nav a {
  color: #888; text-decoration: none;
  padding: 4px 12px; border-radius: 4px;
  transition: all 0.2s;
  border-bottom: none;
  white-space: nowrap;
}
.part-nav a:hover { color: #2a5a3a; background: rgba(42,90,58,0.06); border-bottom: none; }
.part-nav a.active { color: #fff; background: #2a5a3a; }
.part-nav .sep { color: #ccc; user-select: none; }

/* Main layout */
.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px 20px 120px;
}

/* Series header */
.series-title {
  font-size: 13px; text-transform: uppercase;
  letter-spacing: 3px; color: #999;
  margin-bottom: 8px; font-family: -apple-system, sans-serif;
}
.part-title {
  font-size: 42px; font-weight: 400;
  line-height: 1.2; margin-bottom: 8px;
}
.part-subtitle {
  font-size: 20px; color: #666;
  font-style: italic; margin-bottom: 48px;
}

/* Headings */
h2 {
  font-size: 24px; font-weight: 400;
  margin-top: 56px; margin-bottom: 20px;
  border-bottom: 1px solid #eee; padding-bottom: 8px;
}
h3 {
  font-size: 19px; font-weight: 600;
  margin-top: 36px; margin-bottom: 12px;
  color: #2a5a3a;
}

/* Prose */
p { margin-bottom: 20px; }
.lead { font-size: 19px; color: #333; }
strong { font-weight: 600; }
em { font-style: italic; }
a { color: #2a5a3a; text-decoration: none; border-bottom: 1px solid #c9d4c9; }
a:hover { border-bottom-color: #2a5a3a; }

/* Pull quote */
.pullquote {
  font-size: 22px; line-height: 1.5;
  color: #2a5a3a; border-left: 3px solid #c9b896;
  padding: 16px 0 16px 24px; margin: 36px 0;
  font-style: italic;
}

/* Prompt callout — for the prologue's reasoning prompts */
.prompt-callout {
  background: #1a1a2e;
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  margin: 32px 0;
  overflow: hidden;
}
.prompt-callout-header {
  background: #2a2a4a;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.prompt-callout-id {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  color: #7eb8a0;
  font-weight: 600;
}
.prompt-callout-label {
  font-family: -apple-system, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #666;
}
.prompt-callout-body {
  padding: 20px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #c8c8d0;
  white-space: pre-wrap;
}
.prompt-callout-body .prompt-var {
  color: #c9b896;
  font-style: italic;
}
.prompt-callout-body .prompt-step {
  color: #7eb8a0;
}

/* Lens card — for the three lens descriptions */
.lens-card {
  background: #fff;
  border: 1px solid #e0ddd4;
  border-radius: 8px;
  padding: 28px 32px;
  margin: 32px 0;
}
.lens-card-number {
  font-family: -apple-system, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 8px;
}
.lens-card h3 {
  margin-top: 0;
  font-size: 22px;
  color: #1a1a1a;
}
.lens-card-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
.lens-card-module {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  background: #f0f5f0;
  color: #2a5a3a;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #d4e8d4;
}
.lens-card-section {
  margin-top: 16px;
}
.lens-card-section-label {
  font-family: -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #999;
  margin-bottom: 6px;
}
.lens-card-section p {
  font-size: 15px;
  color: #555;
  margin-bottom: 12px;
}

/* Expectation callout — the "what I expect" reflection boxes */
.expectation {
  background: #f5f3ee;
  border-left: 3px solid #c9b896;
  padding: 24px 28px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}
.expectation-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  margin-bottom: 12px;
  font-family: -apple-system, sans-serif;
  font-weight: 600;
}
.expectation p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 14px;
}
.expectation p:last-child { margin-bottom: 0; }

/* Blockquote */
blockquote {
  border-left: 3px solid #e0ddd4;
  padding-left: 20px;
  margin: 24px 0;
  color: #555;
  font-style: italic;
}

/* Ordered/unordered lists in prose */
ol, ul {
  margin: 0 0 20px 20px;
  line-height: 1.8;
}
li { margin-bottom: 6px; }

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid #e0ddd4;
  margin: 48px 0;
}

/* Superscript footnote links */
sup a {
  color: #2a5a3a;
  font-size: 12px;
  border-bottom: none;
  font-family: -apple-system, sans-serif;
}
sup a:hover { color: #c9b896; border-bottom: none; }

/* Notes / footnotes */
.notes {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid #e0ddd4;
}
.notes h3 {
  font-size: 14px; text-transform: uppercase;
  letter-spacing: 2px; color: #999;
  margin-bottom: 16px; font-family: -apple-system, sans-serif;
  margin-top: 0;
}
.notes ol {
  font-size: 14px; color: #666;
  line-height: 1.8; padding-left: 20px;
}
.notes ol li { margin-bottom: 6px; }
.notes ol li a { color: #888; word-break: break-all; }

/* Series closing */
.series-closing {
  margin-top: 48px;
  padding: 24px 0;
  font-size: 15px;
  color: #888;
  font-style: italic;
  line-height: 1.8;
}

/* Footer nav between parts */
.chapter-footer-nav {
  margin-top: 80px; padding-top: 32px;
  border-top: 1px solid #eee;
  display: flex; justify-content: space-between;
}
.chapter-footer-nav a {
  font-size: 14px; font-family: -apple-system, sans-serif;
  color: #888; text-decoration: none; border: none;
}
.chapter-footer-nav a:hover { color: #2a5a3a; }
.chapter-footer-nav .next { text-align: right; }
.chapter-footer-nav .label {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 1px; color: #bbb; display: block; margin-bottom: 4px;
}

/* Print styles */
@media print {
  body { font-size: 12px; }
  .part-title { font-size: 32px; }
  .part-subtitle { font-size: 16px; }
  h2 { font-size: 19px; }
  .pullquote { font-size: 17px; }
  .prompt-callout { break-inside: avoid; }
  .lens-card { break-inside: avoid; }
  .expectation { break-inside: avoid; }
  .part-nav { display: none; }
  .logo { position: static; margin-bottom: 24px; }
  @page { margin: 2cm 1.5cm 1.5cm 1.5cm; }
  .page { margin: 0 auto; padding: 0 20px; }
}

@media (max-width: 768px) {
  .part-title { font-size: 32px; }
  .part-nav {
    position: static; margin-bottom: 0;
    font-size: 11px; gap: 4px; padding: 8px 12px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .part-nav a { padding: 4px 8px; }
  .logo { position: static; padding: 10px 0 0 16px; }
  .page { padding: 20px 16px 80px; }
  .prompt-callout-body { font-size: 12px; }
  .lens-card { padding: 20px; }
  .lens-card-modules { gap: 6px; }
}
