:root { color-scheme: light; font-family: Georgia, 'Times New Roman', serif; font-size: 100%; line-height: 1.7; color: #292923; background: #f5f1e7; }
* { box-sizing: border-box; }
body { margin: 0; }
.print-tools { width: min(760px, calc(100% - 32px)); margin: 24px auto; padding: 20px; background: #fffdf7; border: 1px solid #d4c9b5; font: 1rem/1.6 Arial, sans-serif; overflow-wrap: anywhere; }
.print-tools a { display: inline-block; color: #345a50; margin-right: 20px; padding-block: 10px; }
.print-tools button { font: inherit; min-height: 44px; max-width: 100%; padding: 10px 16px; color: #fffdf7; background: #345a50; border: 0; cursor: pointer; margin-block: 10px; }
.print-tools :focus-visible { outline: 3px solid #345a50; outline-offset: 4px; }
.print-tools button:disabled { opacity: .5; cursor: not-allowed; }
.print-tools p { margin: 8px 0 0; }
.print-tools p:last-child { font-size: .875rem; color: #655e50; }
main { width: min(700px, calc(100% - 40px)); margin: 32px auto 80px; }
.book-cover { text-align: center; padding: 65px 35px 55px; border-block: 1px solid #bdb19a; margin-bottom: 42px; }
.book-eyebrow { font: .875rem/1.8 'Courier New', monospace; letter-spacing: .08em; }
.book-star { display: block; color: #9b663e; font-size: 42px; margin-top: 32px; }
h1 { font-size: clamp(2.75rem, 9vw, 4rem); line-height: 1.15; font-weight: 400; letter-spacing: -.03em; margin: 18px 0; overflow-wrap: anywhere; }
.book-identity { font: 1rem/1.8 Arial, sans-serif; color: #655e50; margin: -4px 0 18px; }
.book-identity > span { font-size: 1.125rem; color: #4f4a40; }
.book-subtitle { font-style: italic; font-size: 1.375rem; line-height: 1.5; margin: 0 0 32px; }
.book-note { text-align: left; padding-left: 18px; border-left: 2px solid #bdb19a; }
.book-byline { color: #4f4a40; font: bold 1rem/1.6 Arial, sans-serif; margin: 0 0 8px; }
.book-note > p:not(.book-byline) { font-size: 1.125rem; line-height: 1.8; margin: 0 0 16px; }
.book-count { margin-top: 32px; font: .875rem/1.8 'Courier New', monospace; }
.book-domain { margin-top: 28px; font: .875rem/1.6 'Courier New', monospace; color: #655e50; overflow-wrap: anywhere; }
.book-entry { margin-bottom: 30px; padding: 0 0 25px; border-bottom: 1px solid #d4c9b5; break-inside: avoid; }
.entry-heading { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: baseline; }
.entry-heading h2 { min-width: 0; font-size: 1.5rem; line-height: 1.4; font-weight: 400; margin: 0; overflow-wrap: anywhere; }
.entry-score { font: .875rem/1.6 'Courier New', monospace; }
.entry-memory { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.125rem; line-height: 1.8; margin: 16px 0; }
.entry-date { font: .875rem/1.7 'Courier New', monospace; color: #655e50; }
@media screen and (max-width: 500px) {
  .print-tools { padding: 16px; }
  main { width: calc(100% - 32px); }
  .book-cover { padding: 40px 4px; }
  .entry-heading { display: block; }
  .entry-score { display: block; margin-top: 8px; }
}
@page { size: auto; margin: 20mm 18mm; }
@media print {
  :root { font-size: 12pt; line-height: 1.5; background: white; color: #222; }
  .print-tools { display: none; }
  main { width: 100%; margin: 0; }
  .book-cover { min-height: 210mm; padding: 25mm 10mm 10mm; margin-bottom: 0; border: 0; break-after: page; }
  .book-star { line-height: 1; margin-top: 20px; }
  h1 { font-size: 48pt; margin-block: 14px; }
  .book-count { margin-top: 24px; }
  .book-domain { margin-top: 18px; }
  .book-identity, .book-note > p:not(.book-byline), .entry-memory { font-size: 12pt; }
  .book-entry { margin-bottom: 8mm; padding-bottom: 7mm; }
  .entry-memory { orphans: 3; widows: 3; }
  a { color: inherit; text-decoration: none; }
}
