/* Blog art (inc/art.php, assets/art.js). Colours come from the palette, so the art follows it. */

.art { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.art .a-bg  { fill: var(--dark); }
.art .a-on  { fill: var(--light); }
.art .a-dim { fill: var(--light); opacity: .38; }
.art .a-hot { fill: var(--accent); }

/* Moving images stay hidden until art.js has scattered the blocks (shown anyway after 2s if the script never runs) */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .art[data-live]:not(.ready) rect:not(.a-bg) { visibility: hidden; animation: art-show 0s 2s forwards; }
}
@keyframes art-show { to { visibility: visible; } }

/* Post page: the image under the intro */
.post-art { margin-top: clamp(40px, 5vw, 72px); }

/* Homepage: latest post */
.latest { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center; padding-bottom: 120px; }
.latest-art { grid-column: 1 / 7; display: block; }
.latest-text { grid-column: 7 / -1; padding-left: clamp(0px, 2vw, 32px); }
.latest-meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--fs-small); color: var(--muted); }
.latest-text h3 { margin-top: 0; font-size: var(--fs-sub); line-height: 1.15; font-weight: 500; letter-spacing: -.02em; text-wrap: balance; }
.latest-text h3 a { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 6px; text-decoration-thickness: 2px; transition: text-decoration-color .2s; }
.latest-text h3 a:hover { text-decoration-color: var(--accent); }
.latest-excerpt { margin-top: 16px; color: var(--muted); }
.latest-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 30px; }
@media (max-width: 1000px) {
  .latest-art, .latest-text { grid-column: 1 / -1; }
  .latest-text { padding-left: 0; margin-top: 28px; }
}
