.shelf-edition .site-nav { border-color: var(--line); }
.shelf-edit-wrap { width: calc(100% - 2.5rem); max-width: 68rem; margin-inline: auto; }
.shelf-masthead { padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.1rem, 4vw, 2rem); }
.shelf-kicker { color: var(--accent); font-size: .8rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.shelf-masthead h1 { margin: .4rem 0 .65rem; }
.shelf-masthead > p:last-child { max-width: 56ch; color: var(--muted); font: 1.18rem/1.48 var(--serif); }
.shelf-lead { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); align-items: stretch; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.shelf-lead img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.shelf-lead > div { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: clamp(1.45rem, 4vw, 3rem); }
.shelf-meta { font: 650 .87rem/1.4 var(--body); color: var(--muted); }
.shelf-lead .shelf-meta { margin-top: .65rem; }
.shelf-lead h2 { font-size: clamp(2.25rem, 4.3vw, 4.1rem); font-weight: 500; margin: .48rem 0 .75rem; }
.shelf-lead h2 + p { font: 1.12rem/1.5 var(--serif); color: var(--muted); max-width: 38ch; }
.shelf-button { display: inline-flex; align-items: center; min-height: 46px; margin-top: 1.25rem; padding: .5rem .85rem; color: var(--on-accent); background: var(--accent); border-radius: .31rem; text-decoration: none; font-size: .91rem; font-weight: 700; }
.shelf-button:hover { filter: brightness(1.12); }
.shelf-library { margin-top: clamp(2.2rem, 6vw, 4rem); }
.shelf-library > header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .55rem 1rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.shelf-library nav { display: flex; flex-wrap: wrap; gap: .1rem .9rem; }
.shelf-library nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: .91rem; font-weight: 650; }
.shelf-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(1.45rem, 5vw, 4rem); margin-top: 1.3rem; }
.shelf-group { scroll-margin-top: .8rem; }
.shelf-group h3 { padding: 0 0 .65rem; color: var(--ink); font-size: 1.55rem; font-weight: 500; }
.shelf-group ul { list-style: none; padding: 0; margin: 0; }
.shelf-group li { border-block-end: 1px solid var(--line); }
.shelf-group li:first-child { border-block-start: 1px solid var(--line); }
.shelf-group li a { display: grid; grid-template-columns: minmax(3rem, .48fr) minmax(0, 1.52fr); gap: .8rem; padding: .9rem 0; text-decoration: none; }
.shelf-group h4 { margin: .26rem 0 .35rem; font: 600 clamp(1.24rem, 2.6vw, 1.75rem)/1.08 var(--serif); letter-spacing: -.025em; }
.shelf-summary { color: var(--muted); font-size: .94rem; line-height: 1.53; }
.shelf-read { display: inline-block; margin-top: .5rem; color: var(--accent); font-size: .87rem; font-weight: 700; text-decoration: underline; text-underline-offset: .19em; }
.shelf-group li a:hover .shelf-read { text-decoration-thickness: 2px; }
.shelf-card-art { width: 100%; max-width: 6.8rem; min-height: 0; aspect-ratio: 5 / 6; height: auto !important; }
.shelf-card-art span { top: 28%; width: 34%; }
.art-weather,.art-river { --cover: #527062; --cover-deep: #25403c; --cover-mark: #ead7a8; }
.art-rehearsal,.art-apricot { --cover: #874b52; --cover-deep: #4b2836; --cover-mark: #f3ba8c; }
.art-toll,.art-winter { --cover: #7b664d; --cover-deep: #443928; --cover-mark: #f3c589; }
.art-frame,.art-proof { --cover: #425b73; --cover-deep: #273747; --cover-mark: #f2ca8e; }

.moon.shelf-edition { --surface: #282039; --line: #594863; --accent: #edbd95; }
.moon .shelf-lead { border-radius: 7px; }
.moon .shelf-lead img { object-position: 50% 49%; }
.moon .shelf-card-art { border-radius: .2rem; }
.after.shelf-edition { --paper: #f6f0e1; --surface: #fffaed; --line: #baac92; --accent: #813b2a; }
.after .shelf-masthead { border-bottom: 3px double var(--line); margin-bottom: .9rem; }
.after .shelf-lead { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.after .shelf-lead img { object-position: 53% 49%; }
.after .shelf-library > header { border-bottom: 3px double var(--line); }
.after .shelf-group h3 { text-transform: uppercase; font: 720 .85rem/1.3 var(--body); letter-spacing: .09em; }
.after .shelf-card-art { filter: saturate(.65); }

.shelf-reading { width: calc(100% - 2.5rem); max-width: 42rem; margin: clamp(1.6rem, 4vw, 3rem) auto 0; }
.shelf-reading article header { padding-bottom: 1.3rem; border-bottom: 1px solid var(--line); }
.shelf-reading article header img { height: clamp(10rem, 25vw, 20rem); object-fit: cover; margin-bottom: 1.2rem; }
.shelf-reading h1 { font-size: clamp(2.55rem,6.5vw,5rem); margin: .43rem 0 .75rem; }
.shelf-deck { color: var(--muted); font: 1.13rem/1.52 var(--serif); }
.shelf-prose { margin-top: clamp(1.3rem,4vw,2.2rem); font: clamp(1.15rem,2.6vw,1.3rem)/1.72 var(--serif); }
.shelf-prose p + p { margin-top: 1.05em; }
.shelf-prose p:first-child::first-letter { color: var(--accent); float: left; margin: .12em .13em 0 0; font-size: 3em; line-height: .73; }
.shelf-reading-next { margin-top: 2.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.shelf-reading-next h2 { font-size: 1.55rem; }
.shelf-reading-next a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; }
.shelf-reading-next p { color: var(--muted); }

@media (max-width: 680px) {
  .shelf-edit-wrap,.shelf-reading { width: calc(100% - 2rem); }
  .shelf-lead,.after .shelf-lead { grid-template-columns: minmax(0, 1fr); }
  .shelf-lead img { height: clamp(11rem, 47vw, 16rem); }
  .shelf-groups { grid-template-columns: minmax(0, 1fr); }
  .shelf-group li a { grid-template-columns: minmax(3.7rem, .38fr) minmax(0, 1.62fr); }
}
