:root {
  --ink: #1a1a1a;
  --charcoal: #505050;
  --accent: #c0392b;
  --paper: #ffffff;
  --rule: #e8e6e2;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Lora', Georgia, serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.65;
}
.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
nav.site-nav {
  padding: 32px 0 0;
  display: flex;
  gap: 24px;
  align-items: baseline;
  font-size: 16px;
}
nav.site-nav .home {
  font-weight: 600;
  margin-right: auto;
  text-decoration: none;
  color: var(--ink);
  font-size: 17px;
}
nav.site-nav a {
  text-decoration: none;
  color: var(--charcoal);
  transition: color 0.15s ease;
}
nav.site-nav a:hover { color: var(--accent); }
nav.site-nav a.active { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
main { padding: 72px 0; flex: 1; }
h1 {
  font-size: 44px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 44px 0 18px;
}
p { margin-bottom: 22px; }
p.quiet { color: var(--charcoal); }
a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.links {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 17px;
}
.links a { text-decoration: none; color: var(--charcoal); }
.links a:hover { color: var(--accent); }
.cat {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 48px 0 6px;
}
.book {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 18px;
}
.book-title { font-weight: 500; }
.book-author {
  color: var(--charcoal);
  font-size: 16px;
  text-align: right;
  flex-shrink: 0;
}
@media (max-width: 480px) {
  .book { flex-direction: column; gap: 2px; }
  .book-author { text-align: left; }
}
footer {
  padding-bottom: 40px;
  font-size: 14px;
  color: #9a9a9a;
}
@media (max-width: 480px) {
  body { font-size: 17px; }
  h1 { font-size: 34px; }
  main { padding: 52px 0; }
  nav.site-nav { gap: 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  main > * { animation: rise 0.5s ease both; }
  main > *:nth-child(2) { animation-delay: 0.06s; }
  main > *:nth-child(3) { animation-delay: 0.12s; }
  main > *:nth-child(4) { animation-delay: 0.18s; }
  main > *:nth-child(5) { animation-delay: 0.24s; }
  main > *:nth-child(6) { animation-delay: 0.30s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }
}
