/* Plain: black on white, one column, system fonts. Always light. */
:root {
  color-scheme: light;
  --fg: #000;
  --bg: #fff;
  --muted: #555;
  --rule: #ccc;
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  max-width: 40rem;
  padding: 1.5rem 1rem 3rem;
  background: var(--bg);
  color: var(--fg);
  font: 1.0625rem/1.6 Georgia, "Times New Roman", serif;
}

a { color: inherit; text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

header { border-bottom: 1px solid var(--rule); padding-bottom: 0.75rem; margin-bottom: 2rem; }
header .name { font-weight: bold; text-decoration: none; }
header h1.name { font-size: 1em; line-height: inherit; margin: 0; }
header h1.name a { text-decoration: none; }
/* inline-block keeps the link's underline off the count */
nav .count { display: inline-block; margin-left: 0.25em; color: var(--muted); font-weight: normal; font-size: 0.9em; }
nav { margin-top: 0.25rem; display: flex; flex-wrap: wrap; gap: 0.15rem 0.9rem; }
nav a[aria-current="page"] { text-decoration: none; font-weight: bold; }

h1 { font-size: 1.75rem; line-height: 1.25; margin: 0 0 1rem; }
h2 { font-size: 1.2rem; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.05rem; }
cite { font-style: italic; }
small, .toc { color: var(--muted); }

ul.books, ul.posts { list-style: none; padding: 0; }
ul.books li, ul.posts li { margin: 0 0 0.9rem; }
ul.books li { display: flex; gap: 0.85rem; align-items: flex-start; }
ul.books li p { margin: 0.25rem 0 0; }

/* Reviews: one block per book, separated by a rule. */
ul.reviews li { gap: 1rem; margin: 0; padding: 1.5rem 0; border-top: 1px solid var(--rule); }
ul.reviews li:first-child { border-top: 0; padding-top: 0.5rem; }
ul.reviews .cover { width: 60px; }
ul.reviews .meta { display: block; margin-top: 0.3rem; }
ul.reviews .excerpt { margin: 0.6rem 0 0; font-size: 0.97rem; }
ul.reviews .more { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; }

.cover { display: block; width: 48px; height: auto; border: 1px solid var(--rule); background: #f4f4f4; }
.cover-none { height: 72px; }
.thumb { flex: none; }

.book-head { display: flex; gap: 1.25rem; align-items: flex-start; }
.book-head .cover { width: 140px; }
@media (max-width: 30rem) {
  .book-head { flex-direction: column; }
}
.stars { letter-spacing: 0.05em; }

dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 1rem; }
dt { color: var(--muted); }
dd { margin: 0; }

blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 2px solid var(--fg); }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

footer { border-top: 1px solid var(--rule); margin-top: 3rem; padding-top: 0.75rem; color: var(--muted); font-size: 0.9rem; }
