/*
  The site blog (docs/blog/). Linked after ../styles.css and additive to it: it adds selectors the
  shared sheet does not define and never redefines one it does. Tokens only, no colour literals.
*/
.blog-feed { margin-top: 1.2em; color: var(--ink-soft); }

.blog-posts { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; }
.blog-posts > li { padding: 22px 0; border-top: 1px solid var(--line); }
.blog-posts > li:last-child { border-bottom: 1px solid var(--line); }
.blog-posts time { display: block; font-size: .88rem; color: var(--ink-soft); }
.blog-posts h2 { margin: 6px 0 8px; font-size: 1.3rem; }
.blog-posts p { margin: 0; color: var(--ink-soft); }

.blog-aside { margin-top: clamp(32px, 5vw, 56px); color: var(--ink-soft); }

.blog-back { margin-bottom: 1.4em; font-size: .95rem; }
.blog-meta { margin-top: 12px; font-size: .92rem; color: var(--ink-soft); }
.blog-body { margin-top: clamp(28px, 4vw, 44px); }
.blog-body h2 { margin: 1.6em 0 .5em; font-size: 1.35rem; }
.blog-body p, .blog-body ul { margin: 0 0 1em; }
.blog-body ul:not(.blog-gallery) { padding-left: 1.3em; }
.blog-body li { margin-bottom: .4em; }

/* A screenshot gallery: thumbnails in a grid, each linking to its full-size image. No script. */
.blog-gallery { list-style: none; margin: 1.6em 0; padding: 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.blog-gallery figure { margin: 0; }
.blog-gallery a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.blog-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.blog-gallery figcaption { margin-top: 8px; font-size: .9rem; color: var(--ink-soft); }

/* A demo video: its poster frame, stored here, linking to the video on YouTube. Nothing loads from
   YouTube until the reader follows the link. */
.blog-video { margin: 1.6em 0; }
.blog-video a { position: relative; display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.blog-video img { display: block; width: 100%; height: auto; }
.blog-video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px;
  border-radius: 999px; background: var(--accent); color: var(--on-dark); font-weight: 650; white-space: nowrap; }
.blog-video-play::before { content: ""; border-style: solid; border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent currentColor; }
.blog-video a:hover .blog-video-play, .blog-video a:focus-visible .blog-video-play { background: var(--accent-hover); }
.blog-video figcaption { margin-top: 8px; font-size: .9rem; color: var(--ink-soft); }
