/* Catalog only. Reading pages retain their independent book typography. */
/* Keyboard skips should land immediately. */
html { scroll-behavior: auto; }
:root {
  --serif: Georgia, "Times New Roman", serif;
  --display: "Palatino Linotype", Palatino, "Book Antiqua", "P052", Georgia, serif;
  --ui: var(--serif);
  --page: 64rem;
}

.library-page a:not(.site-home) { color: var(--ink); }
.library-page a:not(.site-home):focus-visible,
.library-page button:not(.theme-toggle):focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 4px;
  box-shadow: none;
}
.library-page .skip-link {
  position: absolute;
  top: -5rem;
  left: var(--gutter);
  z-index: 100;
  padding: .6rem;
  background: var(--paper);
}
.library-page .skip-link:focus { top: .5rem; }
.library-header .site-title { font-weight: 700; }
.library-header .theme-toggle { margin-left: 0; }
.library {
  width: min(var(--page), calc(100% - 2 * var(--gutter)));
  margin: 2.5rem auto 5rem;
}
.library:focus { outline: none; }
.author-group {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  column-gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.author-group + .author-group {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
}
.author-heading {
  margin: 0;
  font: 700 1.25rem/1.4 var(--display);
  letter-spacing: -.015em;
  scroll-margin-top: 1.5rem;
}
.author-heading:focus { outline: none; }
.author-books { min-width: 0; }
.book-entry {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: .75rem 2rem;
  padding-block: 1.4rem;
}
.book-entry:first-child { padding-top: 0; }
.book-entry + .book-entry { border-top: 1px solid var(--line); }
.book-entry h3 {
  margin: 0;
  font: 700 1.375rem/1.3 var(--display);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.book-entry h3 a {
  text-decoration: none;
  text-underline-offset: .18em;
}
.book-entry h3 a:hover { text-decoration: underline; }
.volumes { list-style: none; padding: 0; margin: 0; }
.volumes li { margin: 0; }
.volumes a {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding-block: .2rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--muted-strong);
  text-decoration: none;
}
.volumes li:first-child a { padding-top: .1rem; }
.volumes a:hover { color: var(--ink); text-decoration: underline; }
.short-stories { margin-top: .5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.short-stories h3 { margin: 0 0 1rem; font: 700 1.125rem/1.4 var(--display); }
.story-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2.5rem; }
.story-list li { break-inside: avoid; margin: 0 0 .5rem; }
.story-list a {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding-block: .2rem;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
}
.story-list a:hover { text-decoration: underline; }

@media (max-width: 48rem) {
  .library { margin-top: 1.75rem; }
  .author-group { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .author-heading { font-size: 1.375rem; }
}
@media (max-width: 34rem) {
  .book-entry { grid-template-columns: minmax(0, 1fr); }
  .book-entry h3 { font-size: 1.25rem; }
  .volumes a { padding-block: .3rem; }
  .story-list { columns: 1; }
  .story-list li { margin-bottom: .15rem; }
  .story-list a { padding-block: .6rem; }
}
@media (pointer: coarse) {
  .volumes a { min-height: 2.75rem; }
}
@media print {
  .skip-link { display: none !important; }
  .library { margin-block: 1.5rem; }
  .author-group { display: block; }
  .author-heading { margin-bottom: 1rem; }
  .book-entry { break-inside: avoid; }
  .story-list { columns: 2; }
}
