/*
 * Page options for one blog post (docs/BLOG-WRITING.md section 2.5). Loaded by pageShell right after blog.css, so it only adds to
 * that file: the edge-to-edge cover and the small "updated <date>" note in the byline. Everything else the options do (no cover,
 * no contents box, no comments, no "More from the den") is simply left out of the page by the server.
 */

/* Wide cover: the figure breaks out of the centered column and runs from one edge of the window to the other */
.post-cover.cover-full{max-width:none;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);border-radius:0;border-left:0;border-right:0;box-shadow:0 40px 90px -50px #000}
.post-cover.cover-full img{aspect-ratio:21/9;max-height:68vh}
/* `clip` (not hidden) keeps the page from scrolling sideways by a scrollbar's width without turning <main> into a scroll box, so the sticky contents box still works */
/* clip on the page root, not on main (main is at most 1240px wide and would cut the wide cover); the sticky contents box still works */
html:has(.cover-full){overflow-x:clip}
@media (max-width:640px){
  .post-cover.cover-full img{aspect-ratio:16/10}
}

/* "updated <date>" in the byline, a shade lighter than the rest of the line so the eye catches it */
.byline .who .updated{color:var(--soft)}

/* ---- Round 2 (docs/BLOG-WRITING.md 6.4): reading width and line spacing, as classes on the post's <main> ---- */

/* Narrow: a 640px article column (the usual is 720px). With the contents box the whole row shrinks too, so the box stays next to the text. */
main.rw-narrow .article{max-width:640px}
main.rw-narrow .post-grid{max-width:926px}
main.rw-narrow .post-grid.single{max-width:640px}
main.rw-narrow .post-head{max-width:720px}

/* Wide: the article fills the row, about 914px next to the contents box (230px) and 920px without it. Below 1020px wide the
   contents box is already hidden by blog.css, so the text simply takes the full width there. */
main.rw-wide .article{max-width:none}
main.rw-wide .post-grid{max-width:1200px}
main.rw-wide .post-grid.single{max-width:920px}
main.rw-wide .post-head{max-width:920px}

/* Line spacing: the article's paragraphs and lists inherit this (blog.css uses 1.75). Blocks with their own spacing (quotes,
   callouts, pull quotes) keep it. */
main.lh-compact .article{line-height:1.5}
main.lh-airy .article{line-height:2}
main.lh-compact .article li{margin:.25em 0}
main.lh-airy .article li{margin:.6em 0}
