:root {
  color-scheme: light dark;
  --ink: #1d1d1b;
  --muted: #6b6b66;
  --rule: #e4e2dc;
  --link: #1f4e79;
  --link-ul: #b3c4d6;
  --paper: #fbfaf7;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Charter, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8e6e0;
    --muted: #9a9892;
    --rule: #33322f;
    --link: #8fb4d9;
    --link-ul: #4d6680;
    --paper: #171716;
  }
}
* { box-sizing: border-box; }
html { font-size: 17px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.55;
}
main { max-width: 640px; margin: 0 auto; padding: 2.5rem 1rem 3rem; }
header.site {
  max-width: 640px; margin: 0 auto; padding: 1.5rem 1rem 0;
  font-family: var(--sans); font-size: 0.9rem;
  display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; align-items: baseline;
}
header.site .name { font-weight: 600; margin-right: auto; color: var(--ink); text-decoration: none; }
header.site a { color: var(--muted); text-decoration: none; }
header.site a:hover, header.site a[aria-current] { color: var(--ink); }
header.site a[aria-current] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.35em; text-decoration-color: var(--rule); }
@media (max-width: 520px) {
  header.site .name { flex-basis: 100%; margin-right: 0; margin-bottom: 0.3rem; }
}
@media (max-width: 420px) {
  header.site { gap: 0.25rem 0.9rem; font-size: 0.86rem; }
}
h1 { font-weight: 500; font-size: 1.9rem; letter-spacing: -0.01em; margin: 0 0 0.5rem; text-wrap: balance; }
h2 { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 2.4rem 0 0.9rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.4rem; font-weight: 600; }
p { margin: 0 0 1rem; text-wrap: pretty; }
a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  text-decoration-color: var(--link-ul);
}
a:hover { text-decoration-color: var(--link); }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 2px; }
.lede { font-size: 1.08rem; }
.entry { margin: 0 0 1.35rem; text-wrap: pretty; }
.entry .t { font-weight: 600; }
.entry .t a { color: var(--ink); text-decoration-color: var(--rule); }
.entry .t a:hover { color: var(--link); text-decoration-color: var(--link-ul); }
.entry .m { color: var(--muted); font-size: 0.95rem; }
.entry .m a { color: var(--link); }
.entry .a { font-size: 0.95rem; margin-top: 0.3rem; }
.entry.compact { margin-bottom: 0.9rem; }
.entry.compact .t { font-weight: 500; }
.entry.compact .a { margin-top: 0.1rem; color: var(--muted); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: 0 0 0.9rem; }
ul.recent { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
ul.recent li { margin: 0 0 0.55rem; display: grid; grid-template-columns: 5.2em 1fr; gap: 0 0.75rem; }
ul.recent time { color: var(--muted); font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.02em; padding-top: 0.2em; white-space: nowrap; }
.small { font-size: 0.9rem; color: var(--muted); }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; }
/* Compact grouped bibliography: hanging indent so wrapped lines sit under the title. */
ul.books { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; line-height: 1.5; }
ul.books li { margin: 0 0 0.5rem; padding-left: 1.1rem; text-indent: -1.1rem; text-wrap: pretty; }
ul.books li a { color: var(--ink); font-weight: 500; text-decoration-color: var(--rule); }
ul.books li a:hover { color: var(--link); text-decoration-color: var(--link-ul); }
ul.books .d { color: var(--muted); }
ul.books .d a { color: var(--muted); font-weight: 400; }
ul.books + h2 { margin-top: 2rem; }
ul.books + p.small { margin-top: 2rem; }
footer {
  max-width: 640px; margin: 1.5rem auto 0; padding: 0 1rem 3rem;
  font-family: var(--sans); font-size: 0.82rem; color: var(--muted);
}
footer p { margin: 0; padding-top: 1.2rem; border-top: 1px solid var(--rule); line-height: 1.9; }
footer a { color: var(--muted); text-decoration-color: var(--rule); }
footer a:hover { color: var(--ink); }
@media print {
  html { font-size: 11pt; }
  body { background: #fff; color: #000; }
  header.site, footer, .noprint { display: none; }
  main { max-width: none; padding: 0; }
  a, .entry .m a, .entry .t a { color: #000; text-decoration: none; }
  h2 { color: #000; border-color: #000; }
  .entry .m, .small, .entry.compact .a { color: #333; }
  .entry, ul.plain li { break-inside: avoid; }
}
.books .status { display: inline; text-indent: 0; font-size: 0.7rem; font-weight: 500; letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--rule); border-radius: 3px; padding: 0.05rem 0.35rem; margin: 0 0.25rem 0 0.35rem; vertical-align: 0.12em; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
p.group { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 1.2rem 0 0.5rem; }
h2 + p.group { margin-top: 0; }
