/* Framing the Cosmos stories, inside the Version 7 sheet (load after v7-shell.css).
   What stays the same in every story lives here: the sheet head, reading column, figures,
   pull quotes, title block and series list. Each story adds its own small stylesheet for its art direction. */

:root { --measure: 66ch; --pad: clamp(20px, 3vw, 44px); --label: var(--ink-2); }

.story { font-size: 18px; line-height: 1.65; }

/* sheet head: the v7 head, with a larger headline for a story */
.story .sheet-head { margin-bottom: var(--s6); }
.story h1 { font: 400 clamp(40px, 4.6vw, 72px)/1.0 var(--serif); letter-spacing: -.01em; margin: 0; max-width: 18ch; text-wrap: balance; }
.story h1 em { font-style: italic; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: .12em; }
.story .sheet-head .byline { margin: 0; justify-self: end; text-align: right; font: 400 11px/1.7 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* reading column */
.col { max-width: var(--measure); }
.col p { margin: 0 0 1.1em; }
.col h2 { font: 400 clamp(28px, 2.8vw, 38px)/1.15 var(--serif); margin: var(--s7) 0 var(--s4); max-width: none; }
.credit-line { font-size: 15px; color: var(--ink-2); font-style: italic; border-top: 1px solid var(--rule); padding-top: var(--s4); margin-top: var(--s6); }

/* figures */
figure { margin: var(--s6) 0; }
.fig-cap { font: 400 10.5px/1.6 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin-top: var(--s2); }
/* night photographs always sit on film black, whatever the theme; the band runs to the panel's edges */
.night { background: var(--film); color: #efebe2; --label: var(--gold); margin: var(--s6) calc(-1 * var(--pad)); padding: var(--s5) var(--pad); }
.night figure { margin: 0; }

/* pull quote */
.pull { margin: var(--s6) 0; padding: var(--s4) 0 var(--s4) var(--s4); border-left: 2px solid var(--red); }
.pull p { font: 400 clamp(26px, 2.8vw, 36px)/1.18 var(--serif); margin: 0 0 var(--s3); text-wrap: balance; }
.pull footer { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* title block, in the v7 ruled style */
.tb { display: grid; grid-template-columns: repeat(3, auto); border: 1px solid var(--ink); background: var(--card); font: 400 10px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin: var(--s7) 0 var(--s5); max-width: 560px; }
.tb > * { padding: 6px 10px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.tb > :nth-child(3n) { border-right: 0; }
.tb .row { grid-column: 1 / -1; border-right: 0; }
.tb > :last-child { border-bottom: 0; }
.tb b { color: var(--ink); font-weight: 500; }
.tb .stamp { color: var(--red); }
.tb a { text-decoration: none; } .tb a:hover { text-decoration: underline; }

/* the series list at the end of every story */
.series { margin-top: var(--s6); }
.series h2 { font: 600 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0; padding-bottom: var(--s2); border-bottom: 2px solid var(--ink); }
.series ol { list-style: none; margin: 0; padding: 0; }
.series li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: var(--s3); padding: 8px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.series .code { font: 400 11px var(--mono); letter-spacing: .06em; color: var(--ink-2); }
.series .t { font: 400 20px/1.15 var(--serif); text-decoration: none; }
.series a.t:hover { color: var(--red); }
.series li[aria-current] .t { color: var(--red); }
.series .where { display: block; font: 400 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: 2px; }

@media (max-width: 760px) {
  .story { font-size: 17px; }
  .story .sheet-head .byline { justify-self: start; text-align: left; }
  :root { --pad: var(--s1); }
  .night { margin-left: calc(-1 * var(--s1) - 6px); margin-right: calc(-1 * var(--s1) - 6px); padding: var(--s4) var(--s3); }
  .tb { grid-template-columns: 1fr; }
  .tb > * { border-right: 0; }
  .series li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 1100px) { .story .sheet-head .byline { justify-self: start; text-align: left; } }
