.hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(1.1rem, 3vw, 2.4rem);
  padding-block: clamp(1.4rem, 3.2vw, 2.75rem) clamp(1.2rem, 3vw, 2.2rem);
}

.hero h1 {
  margin-top: 0.55rem;
  font-size: clamp(2.5rem, 4.55vw, 4.1rem);
  line-height: 1.02;
  text-wrap: wrap;
}

.hero h1 span {
  display: block;
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  color: var(--rust);
  font-weight: 500;
}

.hero-description {
  margin-top: 0.75rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.1rem);
}

.hero-art {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  align-self: stretch;
  min-height: clamp(11rem, 19vw, 16rem);
  background: #17243c;
}

.hero-art img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.spark {
  font-size: 1.05em;
  margin-right: 0.25rem;
}

.home-book-picks,
.home-guides {
  margin-block: clamp(2rem, 4vw, 3.5rem);
}

.home-book-picks .section-heading,
.home-guides .section-heading {
  align-items: center;
}

.standalone-shelf {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  column-gap: clamp(0.5rem, 2vw, 1.5rem);
  min-width: 0;
  margin: 0;
  padding: 0;
}

.standalone-shelf legend {
  margin-bottom: 0.8rem;
  color: var(--muted);
}

.standalone-shelf label {
  display: grid;
  align-self: stretch;
  align-content: end;
  justify-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.15rem 0.6rem;
  border-bottom: 3px solid var(--line);
  color: var(--muted);
  font: 600 0.9rem/1.25 var(--serif);
  text-align: center;
  cursor: pointer;
}

.standalone-shelf label span {
  min-height: 2.5em;
}

.standalone-shelf .book-cover {
  width: auto;
  height: clamp(6rem, 12vw, 10rem);
  max-width: 100%;
  object-fit: contain;
  object-position: bottom;
}

.shelf-choice:checked + label,
.standalone-shelf label:hover {
  color: var(--rust-dark);
  border-color: var(--rust);
}

.shelf-choice:focus-visible + label {
  outline: 3px solid var(--rust);
  outline-offset: 2px;
}

.shelf-detail {
  display: none;
  order: 1;
  grid-column: 1 / -1;
  gap: 0.7rem 2rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.shelf-choice:checked + label + .shelf-detail {
  display: grid;
}

.shelf-detail h3 {
  margin-bottom: 0.25rem;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
}

.shelf-detail h3 a:hover {
  text-decoration: underline;
}

.shelf-detail .book-actions {
  justify-content: flex-start;
  margin-top: 0.75rem;
}

@media (min-width: 681px) {
  .shelf-detail {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  }
}

@media (max-width: 680px) {
  .standalone-shelf {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 0.5rem;
  }
}

/* Homepage editorial spread */
.home-guides {
  --guide-ink: #243b33;
  --guide-rule: #c9bea3;
  padding: clamp(1rem, 3.2vw, 2.5rem);
  color: var(--guide-ink);
  background: #fff9eb;
  box-shadow: 0 2px var(--guide-rule), 0 5px #fff9eb, 0 6px var(--guide-rule);
}

.home-guides .section-heading {
  margin: 0;
  padding-bottom: 0.65rem;
  border-bottom: 3px double var(--guide-ink);
}

.home-guides h2 {
  font-style: italic;
  font-weight: 500;
}

.guide-spread {
  display: grid;
  padding-block: clamp(1rem, 2.3vw, 1.75rem);
}

.guide-spread a {
  display: flow-root;
}

.guide-spread h3 {
  margin-block: 0.25rem 0.5rem;
  font-weight: 500;
  text-wrap: pretty;
}

.guide-lead img {
  width: 100%;
  aspect-ratio: 2.6;
  object-fit: cover;
  border-radius: 65% 65% 2px 2px / 36% 36% 2px 2px;
  margin-bottom: 1rem;
}

.guide-lead h3 {
  font-size: clamp(1.7rem, 3.35vw, 2.65rem);
}

.guide-deck {
  font-family: var(--serif);
}

.guide-brief {
  border-top: 1px solid var(--guide-rule);
  padding-block: 1rem;
}

.guide-brief img {
  float: right;
  width: clamp(3.5rem, 7vw, 6rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 0 0.4rem 0.75rem;
}

.guide-spread a:is(:hover, :focus-visible) h3,
.issue-entry h4 a:is(:hover, :focus-visible),
.issue-book:is(:hover, :focus-visible) strong {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.guide-contents {
  padding-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--guide-ink);
}

.guide-contents ul {
  display: grid;
  gap: 1.25rem;
  margin-top: 1rem;
}

.issue-entry {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.5rem;
}

.issue-entry h4 {
  font-weight: 500;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  text-wrap: pretty;
}

.issue-entry h4 span {
  color: var(--rust);
  font-size: 0.75em;
}

.issue-books {
  display: grid;
  width: 100%;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.issue-book {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
}

.issue-book .book-cover {
  flex: none;
  width: 2.15rem;
  height: 3rem;
  object-fit: contain;
}

.issue-book strong,
.issue-book small {
  display: block;
  line-height: 1.3;
}

.issue-book strong {
  font-family: var(--serif);
}

.issue-book small {
  margin-top: 0.15rem;
  color: var(--muted);
}

@media (min-width: 681px) {
  .guide-spread:has(.guide-brief) {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    column-gap: 4%;
  }

  .guide-lead {
    grid-row: 1 / span 2;
  }

  .guide-brief {
    grid-column: 2;
    align-content: center;
    border-left: 1px solid var(--guide-rule);
    padding-left: 8%;
  }

  .guide-lead + .guide-brief {
    border-top: 0;
  }
}

@media (min-width: 901px) {
  .guide-contents ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .issue-entry + .issue-entry {
    border-left: 1px solid var(--guide-rule);
    padding-left: 1.5rem;
  }
}

@media (max-width: 680px) {
  .guide-lead {
    padding-bottom: 1rem;
  }

  .guide-brief:last-child {
    padding-bottom: 0;
  }
}

@media (max-width: 900px) {
  .issue-entry + .issue-entry {
    padding-top: 1.25rem;
    border-top: 1px solid var(--guide-rule);
  }
}

.next-read {
  margin-block: 2rem;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background: #f3efe5;
}

.next-read-head p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.next-read-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 1rem;
  background: var(--card);
}

.next-read-picker,
.next-read-output {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

.next-read-picker {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.next-read-search {
  padding: 0.85rem 0.85rem 0;
}

.next-read-search label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.next-read-search input {
  flex: 1 1 0;
  min-width: 0;
}

.next-read-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 2.8rem;
  padding-inline: 0.9rem;
}

.next-read-status {
  min-width: 0;
  color: var(--muted);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.next-read-scroll {
  overflow: auto;
  scrollbar-gutter: stable;
  min-height: 0;
}

.next-read-scroll:has(#next-read-options > li:nth-child(7)) {
  max-height: 18rem;
}

.next-read-options {
  display: grid;
  padding: 0.2rem 0.7rem 0.65rem;
}

.next-read-output {
  border-top: 1px solid var(--line);
}

.next-read-output header {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 1rem;
  background: #faf5ea;
}

.next-read-output h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.next-read-output [data-next-results] {
  padding-inline: 1rem;
}

.next-book-choice {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 0.7rem;
  padding: 0.45rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.next-book-choice:hover,
.next-book-choice:focus-visible,
.next-book-choice[aria-pressed="true"] {
  border-color: var(--rust);
  background: #fbf1e4;
}

.next-book-choice .book-cover {
  width: 2.45rem;
  height: 3.1rem;
  object-fit: contain;
}

.next-book-choice strong,
.next-book-choice small {
  display: block;
  line-height: 1.25;
}

.next-book-choice strong {
  font-family: var(--serif);
}

.next-book-choice small {
  margin-top: 0.2rem;
  color: var(--muted);
}

.next-book-choice[aria-pressed="true"] {
  box-shadow: inset 3px 0 var(--rust);
}

.choice-arrow {
  margin-left: auto;
  color: var(--rust);
}

.next-read-empty {
  padding: 1.5rem;
  color: var(--muted);
}

.next-recommendation {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.6rem, 1.8vw, 1.25rem);
  padding-block: 1rem;
}

.next-recommendation + .next-recommendation {
  border-top: 1px solid var(--line);
}

.next-recommendation .book-cover {
  width: clamp(2.75rem, 5vw, 4rem);
}

.next-recommendation-copy {
  min-width: 0;
}

.next-direction {
  color: var(--rust-dark);
  font-size: 0.8rem;
  font-weight: 700;
}

.next-recommendation h4 {
  margin-block: 0.3rem;
  font-size: 1.25rem;
}

.next-recommendation h4 a:hover {
  text-decoration: underline;
}

.next-recommendation .reading-summary {
  font-size: 0.8rem;
}

.next-recommendation .pick-reason {
  margin-top: 0.45rem;
}

.next-read-actions {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 0.8rem;
  padding-top: 0.35rem;
}

.next-read-actions .text-link {
  font-size: 0.8rem;
}

@media (min-width: 760px) {
  .next-read-panel:has(.next-read-output:not([hidden])) {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.65fr);
  }

  .next-read-scroll:has(#next-read-options > li:nth-child(7)) {
    max-height: 31rem;
  }

  .next-read-output {
    grid-template-rows: auto minmax(0, 1fr);
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

.home-picks {
  margin-bottom: 1.75rem;
  scroll-margin-top: 1.25rem;
}

.home-picks .section-heading {
  margin-bottom: 0.75rem;
}

.topic-bar {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-bar button {
  min-height: 2.5rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 700;
  background: var(--card);
}

.topic-bar button:hover {
  border-color: #b9917f;
}

.topic-bar button[aria-pressed="true"] {
  border-color: var(--rust);
  background: var(--rust);
  color: #fffaf1;
}

.home-picks-layout {
  display: grid;
  gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.series-index .series-pick {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1rem;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1rem 0;
  background: transparent;
}

.series-index .pick-main {
  display: contents;
}

.series-index .book-cover {
  grid-row: 1 / span 4;
  width: clamp(3.75rem, 7vw, 5.5rem);
}

.series-index .pick-copy,
.series-index .series-pick > :not(.pick-main) {
  grid-column: 2;
}

.series-index .pick-actions {
  border: 0;
  padding-top: 0.2rem;
}

@media (min-width: 800px) {
  .home-picks-layout:has(.pick-guides:not([hidden])) {
    grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr);
  }
}

@media (max-width: 800px) {
  .hero {
    padding-top: 1.6rem;
  }
}

@media (max-width: 680px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-art {
    display: none;
  }
}


.pick-guides {
  padding: 1rem clamp(1rem, 2vw, 1.5rem) 1.25rem;
  border-block: 1px solid #aebdad;
  background: #edf2e8;
  color: #243b33;
}

.pick-guides h3 {
  margin-bottom: 0.8rem;
  font: italic 500 1.65rem/1.15 var(--serif);
}

.pick-guides ul {
  display: grid;
}

.pick-guides li:not([hidden]) ~ li:not([hidden]) {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #ced8c8;
}

.pick-guides a {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 0.85rem;
}

.pick-guides img {
  flex: none;
  width: clamp(3.25rem, 5.2vw, 4.75rem);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.4rem;
}

.pick-guides strong {
  display: block;
  font: 600 clamp(1rem, 1.4vw, 1.2rem)/1.2 var(--serif);
}

.pick-guides a:is(:hover, :focus-visible) strong {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
