/* The index of stories, set as the contents page of an anthology: two columns with no rules. The left column holds each story's
   year in oldstyle figures and, under it, the author whose manner the story is written in, in small capitals, both small, in the
   muted ink and set flush right against the gutter; the right column holds the title, large and italic, flush left, a long title
   wrapping under itself. Each title is centred vertically on its two-line year and author, so the pair sits balanced beside it.
   Small capitals are the height of the oldstyle figures, so the two lines of the left column match. The page's heading
   (c-book__title) stands in the right column over the titles, flush left, two lines above the first, so the years and authors
   stand to the left of them as in a margin. The ornament closes the list as a tailpiece, two lines below it, centred on the title
   column, near the heading's axis; under a flush-left heading it looked misplaced, centred on the page it fell off every axis.
   <div class="c-story-index"><header class="c-story-index__head"><h1 class="c-book__title">Iron and Salt</h1></header>
   <ol class="c-story-index__list"><li class="c-story-index__entry"><span class="c-story-index__byline"><span
   class="c-story-index__year">1899</span> <span class="c-story-index__author"><span class="u-sr-only">in the manner of
   </span>Verne</span></span> <a class="c-story-index__title" href="/slug/">Title</a></li></ol><span class="c-ornament"
   aria-hidden="true"></span></div>
   c-story-index spans the page (in c-book--full, which drops c-book's measure and, above 36rem, its side padding) as a grid of five
   tracks: a 1.5rem margin, the year and author, the 1.75em gutter, the title, the right margin. The list and each entry share the
   middle three (subgrid), so every year and author stands against the same gutter. The block is placed by its titles, which carry
   its weight, not by its widest author: the titles' left edge stands at 25% of the page width (the year column is 25% less the
   margin and the gutter), and the year and author column hangs to the left of it, flush right. A column of short, right-set years
   and authors is mostly air, so centring the block on its full width, or splitting the side space 1 : 2 or by the golden section,
   still looked centred; 30% and 33% looked hesitant. The year column is never narrower than its longest author, so on a narrow page
   that author stays 1.5rem from the window's edge and the titles move right. The title column is as wide as its longest title (the
   heading, with contain: inline-size, does not widen it, and runs on to the right unwrapped); the right margin takes the rest, at
   least 1.5rem, and below that the titles wrap. The heading's negative left margin sets its first capital's stem, not the
   glyph's side bearing, on the titles' edge; the author's negative right margin takes back the tracking after its last letter, so
   its last letter meets the year's right edge.
   Below 36rem (--bp-phone) the two columns would leave the titles too little room beside "the Strugatskys", so the heading and
   every entry run at the text's own left margin (the ornament centred on the page), as wide as the story text: the year and the
   author on one small line, the title under them at the same large size, which keeps the longest published titles ("Five Thousand
   a Second") on one line at 360px. With no stories the page is c-book's centred title, ornament and c-book__note, without
   c-story-index. */

.c-story-index { display: grid; grid-template-columns: 1.5rem minmax(max-content, calc(25% - 3.25rem)) 1.75em minmax(0, max-content) minmax(1.5rem, 1fr); }
.c-story-index__head { grid-column: 4; contain: inline-size; }
.c-story-index__head .c-book__title { margin-left: -0.03em; text-align: left; white-space: nowrap; }
.c-story-index__head { margin-bottom: calc(var(--line) * 2); }
.c-story-index > .c-ornament { grid-column: 4; margin-top: calc(var(--line) * 2); }
.c-story-index__list { display: grid; grid-column: 2 / 5; grid-template-columns: subgrid; row-gap: 1.1em; margin: 0; padding: 0; list-style: none; }
.c-story-index__entry { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; }
.c-story-index__byline { grid-column: 1; display: flex; flex-direction: column; align-items: flex-end; color: var(--color-ink-muted); font-size: 0.95em; line-height: 1.2; text-align: right; }
.c-story-index__author { margin-right: calc(-1 * var(--tracking-caps-tight)); font-variant-caps: all-small-caps; letter-spacing: var(--tracking-caps-tight); white-space: nowrap; }
.c-story-index__title { grid-column: 3; color: var(--color-ink); font-size: 1.6em; font-style: italic; line-height: 1.2; text-wrap: balance; }
.c-story-index__title:hover { color: var(--color-link); }

@media (max-width: 36rem) {
  .c-story-index, .c-story-index__list { display: block; width: auto; }
  .c-story-index__entry { display: block; }
  .c-story-index__entry + .c-story-index__entry { margin-top: 1em; }
  .c-story-index__byline { flex-direction: row; gap: 0.6em; align-items: baseline; font-size: 0.9em; text-align: left; }
  .c-story-index__author { margin-right: 0; }
  .c-story-index__title { display: block; }
}
