html { color-scheme: light; --s-paper: #f6f1e5; --s-ink: #292822; --s-blue: #273f77; --s-muted: #545647; --s-rule: #b5b2a3; }
html[data-theme="dark"] { color-scheme: dark; --s-paper: #242520; --s-ink: #f2f1e8; --s-blue: #c1d4f8; --s-muted: #c2c3b8; --s-rule: #55574e; }
body.books-shelf { margin: 0; color: var(--s-ink); background: var(--s-paper); }
.books-shelf.modal-open { overflow: hidden; }
.books-shelf .skip { position: fixed; z-index: 1000; left: .55rem; top: .55rem; padding: .6rem 1rem; color: var(--s-blue); background: var(--s-paper); transform: translateY(calc(-100% - 1rem)); }
.books-shelf .skip:focus { transform: none; outline: 2px solid currentColor; }
.book-shelf, .book-shelf * { box-sizing: border-box; }
.book-shelf {
  width: min(100% - 2 * clamp(1.2rem, 5vw, 5rem), 68rem);
  margin: 0 auto;
  padding: clamp(2rem, 4.3vw, 3.8rem) 0 clamp(2.5rem, 7vw, 6rem);
  color: var(--s-ink);
  font: 400 var(--font, 18px)/1.5 Golos, Arial, sans-serif;
}
.shelf-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(1.5rem, 3.2vw, 2.7rem);
}
.book-shelf :is(h1,h2,p) { margin: 0; }
.book-shelf h1, .shelf-book h2 {
  color: var(--s-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.book-shelf h1 { font-size: clamp(3em, 6vw, 5em); line-height: .98; letter-spacing: -.055em; }
.book-shelf .shelf-author { margin-top: .65em; font: 500 .95em/1.4 Golos, Arial, sans-serif; color: var(--s-muted); }
.shelf-invitation { max-width: 36ch; line-height: 1.47; text-wrap: pretty; }
.shelf-invitation span { display: block; color: var(--s-muted); }
.shelf-books { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 4rem); }
@media(min-width: 44em) {
  .shelf-books::before { content: ""; position: absolute; inset: clamp(12rem, 18vw, 16rem) 0 auto; height: 1px; background: var(--s-rule); pointer-events: none; }
}
.shelf-book { min-width: 0; margin: 0; display: grid; }
.shelf-book > a {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: inherit;
  background: none;
  text-decoration: none;
}
.shelf-book > a:hover { color: inherit; }
.shelf-book > a:focus-visible { outline: 3px solid var(--s-blue); outline-offset: 5px; }
.shelf-plate {
  display: grid;
  place-items: end center;
  align-self: stretch;
  height: clamp(12rem, 18vw, 16rem);
  margin-bottom: clamp(1.05rem, 1.7vw, 1.6rem);
  padding-bottom: .55rem;
}

.shelf-plate img {
  display: block;
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: clamp(10.1rem, 15.5vw, 14rem);
  box-shadow: 0 0 0 1px #2e2e2424, 1px 2px 1px #d6d4c6, 3px 6px 9px #27272226;
  transform: rotate(-1.3deg);
}
.shelf-book-2 .shelf-plate img { transform: rotate(1.7deg); }
.shelf-book h2 { font-size: clamp(1.7em, 3vw, 2.35em); line-height: 1.08; letter-spacing: -.033em; }
.shelf-book p { margin: .74em 0 .75em; max-width: 47ch; line-height: 1.48; text-wrap: pretty; overflow-wrap: break-word; }
.shelf-read { margin-top: auto; display: inline-flex; gap: .45em; align-items: center; min-height: 44px; color: var(--s-blue); font-weight: 550; }
.shelf-read > :first-child { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .23em; }
.shelf-book > a:is(:hover,:focus-visible) .shelf-read > :first-child { text-decoration-thickness: 2px; }
@media(max-width: 43.99em) {
  .book-shelf { padding-top: 1.7rem; }
  .shelf-intro { display: block; padding-bottom: 1.35rem; }
  .shelf-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3em .8em; }
  .book-shelf h1 { font-size: 2.8em; }
  .book-shelf .shelf-author { margin: 0; font-size: .85em; }
  .book-shelf .shelf-invitation { margin-top: .95em; }
  .shelf-books { grid-template-columns: 1fr; gap: 0; }
  .shelf-book { border-top: 1px solid var(--s-rule); }
  .shelf-book > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(5.2rem, 24vw, 8.75rem);
    grid-template-areas: "title art" "summary summary" "action action";
    align-items: center;
    gap: 0 1rem;
    padding-block: 1.3rem .65rem;
  }
  .shelf-plate {
    grid-area: art;
    align-self: center;
    justify-self: center;
    width: 94%;
    height: auto;
    aspect-ratio: 880 / 550;
    margin: 0;
    padding: 0;
    place-items: center;
  }
  .shelf-book-2 .shelf-plate {
    height: clamp(4.4rem, 18vw, 6.3rem);
    width: auto;
    aspect-ratio: 840 / 1191;
  }
  .shelf-plate img { width: 100%; height: 100%; max-width: none; max-height: none; }
  .shelf-book h2 { grid-area: title; font-size: clamp(1.42em, 5.7vw, 1.9em); line-height: 1.12; }
  .shelf-book p { grid-area: summary; margin: .8em 0 .2em; }
  .shelf-read { grid-area: action; justify-self: start; margin: 0; }
}
@media(forced-colors: active) {
  .shelf-book > a { color: LinkText; }
  .shelf-book h2, .shelf-read { color: LinkText; }
  .shelf-book > a:focus-visible { outline-color: Highlight; }
  .shelf-plate img { outline: 1px solid CanvasText; }
}

/* The heading and the navigation share one unflattened scan per language. */
.books-shelf .shelf-ink-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.book-shelf .shelf-title-ink {
  display: block;
  width: auto;
  height: .99em;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
.books-shelf .book-nav .shelf-nav-ink {
  display: block;
  width: auto;
  height: clamp(23px, 1.04em, 30px);
}
html[data-theme=dark] .books-shelf :is(.shelf-nav-ink, .shelf-title-ink) {
  filter: brightness(0) invert(88%) sepia(11%) saturate(675%) hue-rotate(181deg);
}
@media (forced-colors: active) {
  .books-shelf :is(.shelf-nav-ink, .shelf-title-ink) { display: none; }
  .books-shelf .shelf-ink-text {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
    white-space: normal;
  }
}
.books-shelf .book-nav[aria-current=page] .shelf-nav-ink {
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  box-sizing: content-box;
}
