/* The home page has its own layout; catalog and author pages retain their styles. */
.page-home .library-intro { padding-bottom: 1.35rem; }
.page-home .library-intro h1 { max-width: none; margin-bottom: .45rem; font-size: clamp(2.25rem, 5vw, 4.25rem); line-height: 1.02; }
.page-home .library-subtitle { max-width: none; margin-bottom: 1rem; line-height: 1.4; }
.page-home .library-search { width: 100%; max-width: none; margin-bottom: .85rem; border-radius: 4px; }
.page-home .library-search input { min-height: 3rem; }
.page-home .library-search .button { border-radius: 3px; }
.page-home .library-search .search-mark { flex: 0 0 15px; height: 15px; }
.page-home .quick-filters { gap: .45rem; margin-top: .55rem; }
.page-home .quick-label { min-width: 9.2rem; }
.page-home .chip { min-height: 2.1rem; padding: .35rem .85rem; border-color: var(--line-dark); border-radius: 3px; font-family: var(--serif); font-size: .9rem; font-weight: 400; }
.page-home .chip:hover, .page-home .chip:focus-visible, .page-home .chip.is-active, .page-home .chip[aria-current="page"], .page-home .chip[aria-pressed="true"] { color: #fff; background: var(--oxblood); border-color: var(--oxblood); }
.page-home .chip:hover span, .page-home .chip:focus-visible span, .page-home .chip.is-active span, .page-home .chip[aria-current="page"] span, .page-home .chip[aria-pressed="true"] span { color: #fff; }
.page-home .chip[aria-current="true"], .page-listing .quick-filters .chip[aria-current="true"] { color: #fff; background: var(--oxblood); border-color: var(--oxblood); }
.page-home .library-section { padding-top: 1.4rem; padding-bottom: 1.6rem; }
.page-home .compact-head { margin-bottom: 1rem; }
.page-home .compact-head h2 { max-width: none; }
.page-home .story-grid, .page-home .story-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.page-home .home-story-card, .page-home .story-feed .home-story-card { min-width: 0; padding: .85rem; border: 1px solid var(--line); border-radius: 5px; background: rgba(251, 248, 242, .35); }
.page-home .home-story-card .story-card-link, .page-home .story-feed .home-story-card .story-card-link { display: grid; grid-template-columns: minmax(75px, 104px) minmax(0, 1fr); align-items: stretch; gap: 1rem; height: 100%; }
.page-home .home-story-card .story-cover, .page-home .story-grid-featured .home-story-card .story-cover { align-self: start; aspect-ratio: 4 / 5; padding: .65rem; border-radius: 4px; }
.page-home .home-story-card .cover-mark { font-size: 2.8rem; }
.page-home .home-story-card .cover-index { font-size: .58rem; }
.page-home .home-story-card .story-card-body { display: flex; min-width: 0; flex-direction: column; padding: 0; }
.page-home .home-story-card .story-card-top { gap: .35rem; margin-bottom: .4rem; }
.page-home .home-story-card .story-card-top .eyebrow { color: var(--oxblood); overflow-wrap: anywhere; }
.page-home .home-story-card .story-card-title { margin: 0 0 .35rem; font-size: clamp(1.3rem, 1.75vw, 1.65rem); line-height: 1.1; overflow-wrap: anywhere; }
.page-home .home-story-card .meta-line { display: block; color: var(--ink-soft); font-family: var(--serif); font-size: .85rem; line-height: 1.4; overflow-wrap: anywhere; }
.page-home .home-story-card .story-card-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; margin: .5rem 0 .6rem; font-size: .9rem; line-height: 1.35; }
.page-home .home-card-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .65rem; margin-top: auto; color: var(--ink-soft); font-size: .78rem; line-height: 1.3; }
.page-home .home-card-stats > span { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; }
.page-home .home-card-stats svg { width: .9rem; height: .9rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.page-home .home-story-heat { display: flex; margin-top: .45rem; color: var(--muted); font-size: .61rem; }
@media (min-width: 901px) {
  .page-home .genre-sidebar { position: static; max-height: none; overflow: visible; }
  .page-home .genre-navigation { flex: 0 0 auto; overflow: visible; }
  .page-home .genre-sidebar .sidebar-link { padding-top: .31rem; padding-bottom: .31rem; font-family: var(--serif); font-size: 1rem; line-height: 1.35; }
  .page-home .genre-sidebar .sidebar-count { font-family: var(--sans); font-size: .72rem; }
}
@media (max-width: 900px) { .page-home .reader-layout { display: block; } }
@media (max-width: 720px) {
  .page-home .library-intro h1 { font-size: clamp(2.15rem, 9vw, 3.15rem); }
  .page-home .quick-label { flex-basis: 100%; min-width: 0; }
  .page-home .quick-filters { gap: .4rem; }
  .page-home .chip { min-height: 2.3rem; }
  .page-home .story-grid, .page-home .story-feed { grid-template-columns: minmax(0, 1fr); }
  .page-home .home-story-card .story-card-link, .page-home .story-feed .home-story-card .story-card-link { grid-template-columns: minmax(70px, 88px) minmax(0, 1fr); gap: .75rem; }
  .page-home .home-story-card .story-card-title { font-size: 1.3rem; }
  .page-home .home-card-stats { gap: .3rem .55rem; }
}
