/* Reading cards share the book and paper palette of the Hallo Welt home page. */
.reading-catalog {
  --reading-ink:#302e29; --reading-muted:#756d60; --reading-line:#ded5c5;
  --reading-accent:#964b29;
  color:var(--reading-ink); font-family:"Manrope",sans-serif;
}
.reading-catalog .book-grid {
  grid-template-columns:repeat(3,minmax(0,1fr)); gap:.875rem;
  padding:1rem; background:#f8f5ed; border-radius:.45rem;
}
.reading-catalog .book-card {
  padding:1.05rem 1rem .75rem; border:1px solid var(--reading-line);
  border-radius:.35rem; background:#fffdf8; box-shadow:none;
  color:var(--reading-ink); transition:border-color 150ms ease,background-color 150ms ease;
}
.reading-catalog .book-card:hover { border-color:#b79f7b; background:#fffefa; box-shadow:none; transform:none; }
.reading-catalog .book-card:focus-visible { outline:2px solid var(--reading-accent); outline-offset:3px; }
.reading-catalog .book-top { display:grid; grid-template-columns:4rem minmax(0,1fr); gap:.85rem; align-items:center; }
.reading-catalog .book-cover {
  display:flex; flex-direction:column; justify-content:space-between; position:relative;
  min-width:0; height:5.55rem; padding:.5rem .35rem .45rem .45rem;
  background:#314439; border-left:3px solid #302e2940;
  border-radius:1px 3px 3px 1px; color:#fff9eb; overflow:hidden; isolation:isolate;
}
.reading-catalog .book-cover-art { position:absolute; inset:0; z-index:0; width:100%; height:100%; object-fit:cover; }
.reading-catalog .book-cover::before { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(90deg,#17181025,transparent 15%),linear-gradient(0deg,#17181045,transparent 18%); }
.reading-catalog .book-cover::after { content:""; position:absolute; top:0; bottom:0; right:3px; z-index:3; border-left:1px solid #fff9eb30; }
.reading-catalog .book-cover>small,.reading-catalog .book-cover>span { position:relative; z-index:2; text-shadow:0 1px 2px #17181090; }
.reading-catalog .book-cover small { font-size:.42rem; line-height:1.25; letter-spacing:.05em; text-transform:uppercase; }
.reading-catalog .book-cover>span {
  font:400 .65rem/1.2 Georgia,serif; letter-spacing:-.02em; overflow-wrap:anywhere;
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden;
}
.reading-catalog .book-copy { min-width:0; }
.reading-catalog .book-topic { margin:0 0 .4rem; color:var(--reading-accent); font-size:.7rem; line-height:1.5; }
.reading-catalog .book-card h3 { font:400 1.4rem/1.1 Georgia,serif; letter-spacing:-.035em; text-wrap:balance; overflow-wrap:anywhere; }
.reading-catalog .book-card .subtitle { margin:.45rem 0 0; color:var(--reading-muted); font-size:.8rem; line-height:1.5; }
.reading-catalog .synopsis { margin:.85rem 0; min-height:3.3em; color:var(--reading-muted); font-size:.8rem; line-height:1.65; }
.reading-catalog .book-bottom {
  display:flex; flex-wrap:wrap; align-items:center; gap:.5rem;
  padding-top:.6rem; border-top:1px solid var(--reading-line); color:var(--reading-muted); font-size:.75rem; line-height:1.5;
}
.reading-catalog .book-details { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; }
.reading-catalog .book-duration { display:inline-flex; align-items:center; gap:.25rem; font-variant-numeric:tabular-nums; }
.reading-catalog .book-duration svg { flex-shrink:0; }
.reading-catalog .book-bottom strong { color:var(--reading-accent); font-size:.75rem; font-weight:600; white-space:nowrap; }
.reading-catalog .read-check {
  top:.2rem; right:.2rem; display:grid; place-items:center; width:1.6rem; height:1.6rem;
  padding:0; border:1px solid #d0d7c6; border-radius:50%; background:#e9ede3; color:#52604c;
  font-size:.8rem; line-height:1;
}
.reading-catalog .read-check:hover { background:#dce4d3; }
.reading-catalog.compact-shelf .book-card { padding:.7rem .85rem; }
.reading-catalog.compact-shelf .book-top { grid-template-columns:2.8rem minmax(0,1fr); gap:.7rem; }
.reading-catalog.compact-shelf .book-cover { height:4rem; padding:.3rem; }
.reading-catalog.compact-shelf .book-cover>span { font-size:.52rem; }
.reading-catalog.compact-shelf .book-cover small { font-size:.32rem; }
.reading-catalog.compact-shelf .book-topic { margin-bottom:.25rem; }
.reading-catalog.compact-shelf .book-card h3 { font-size:1.15rem; }
.reading-catalog.compact-shelf .book-card .subtitle { margin-top:.25rem; }
@media(max-width:900px) { .reading-catalog .book-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:580px) {
  .reading-catalog .book-grid { grid-template-columns:minmax(0,1fr); padding:.65rem; gap:.75rem; }
  .reading-catalog .synopsis { min-height:0; }
  .reading-catalog .read-check { width:1.9rem; height:1.9rem; }
}
@media(prefers-reduced-motion:reduce) { .reading-catalog .book-card { transition:none; } }
