:root{
  --bg:#f7f6f3;
  --ink:#141414;
  --muted:#5a5a5a;
  --rule:rgba(0,0,0,.18);
  --imgborder:#4a4a4a;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--ink);
}

body{
  font-family: Georgia, "Iowan Old Style", "Libre Baskerville", serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main{
  max-width: 760px;
  margin: 0 auto;
  padding: 44px 18px 56px;
}

/* Title */
.title{
  font-size: 50px;          /* bigger */
  line-height: 1.06;
  margin: 0 0 6px;
  text-align: center;       /* centered */
}

.byline{
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 18px;
  text-align: center;
}

p{
  font-size: 18px;
  line-height: 1.78;
  margin: 14px 0;
}

/* Disclaimer smaller */
.disclaimer p{
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.disclaimer{
  margin: 0 0 18px;
}

/* TOC as bulleted list, smaller text */
.toc{
  margin: 18px 0 18px;
}

.toc-title{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 10px;
}

.toc-list{
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.toc-list li{
  margin: 6px 0;
  font-size: 15px;  /* smaller */
  line-height: 1.55;
}

/* Separator */
.rule{
  border: none;
  border-top: 1px solid var(--rule);
  margin: 22px 0 34px;
}

/* Sections */
.scene{
  margin: 40px 0 54px;
  scroll-margin-top: 18px;
}

.dateline{
  font-size: 22px;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 8px;
}

.locline{
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 22px;
}

/* Code blocks */
.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.block{
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 16px;
  overflow-x: auto;
}

pre{
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre;
}

/* Quotes */
blockquote{
  margin: 18px 0;
  padding: 2px 0 2px 18px;
  border-left: 3px solid var(--rule);
}

blockquote p{
  margin: 10px 0;
}

blockquote.speech p{
  font-size: 17px;
  line-height: 1.75;
}

blockquote.verse p{
  font-size: 18px;
  line-height: 1.75;
  font-style: italic;
}

/* Images: full width, thin dark border */
.plate{
  margin: 28px 0 30px;
  padding: 0;
}

.plate img{
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--imgborder);
}

/* Footer */
.footer{
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: flex-end;
}

a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

a:hover{
  border-bottom-color: rgba(0,0,0,.45);
}

.toplink{
  font-size: 14px;
  color: var(--muted);
}

/* Mobile */
@media (max-width: 520px){
  main{ padding: 34px 14px 48px; }
  .title{ font-size: 40px; }
  .byline{ font-size: 14px; }
  p{ font-size: 17px; }
  .toc-list li{ font-size: 14px; }
  pre{ font-size: 13px; }
  .footer{ justify-content: flex-start; }
  .disclaimer p{ font-size: 13px; }
}

/* Print */
@media print{
  :root{ --bg:#fff; --ink:#000; --muted:#000; --rule: rgba(0,0,0,.25); --imgborder:#000; }
  body{ background:#fff; }
  main{ max-width: 100%; padding: 0; }
  a{ border-bottom: none; }
}
