/* The blog's own styles: the tile grid, the tiles and the post
   body (issue #134: externalised from build-blog.py's SITE_HEAD,
   where they stood in a <style> block on every blog page). */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.4rem;margin:2rem 0 3rem}
/* Tiles follow the visitor's theme (owner direction 2026-10-09): a light
   tile in light mode, a deep tile in dark mode — never a forced dark
   panel. The seven-stripe connection comes from the splash's own baked
   bar, which lands mid-tile between art and text; accents carry the
   post's stripe colour (deep shade on light, lightened tint on dark). */
.blog-tile{display:block;border-radius:16px;padding:2rem 1.8rem;min-height:220px;color:#26223a;text-decoration:none;
  background:#ffffff;box-shadow:0 8px 28px rgba(20,16,40,.14), inset 0 0 0 1px rgba(20,16,40,.08);
  transition:transform .15s ease,box-shadow .15s ease}
.blog-tile:hover{transform:translateY(-3px);box-shadow:0 12px 34px rgba(20,16,40,.22)}
.blog-tile .t-date{font-size:.82rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--t2)}
.blog-tile h2{margin:.6rem 0 .8rem;font-size:1.55rem;line-height:1.25;color:#191423}
.blog-tile p{margin:0;font-size:.98rem;line-height:1.5;color:#3d3a4d}
.blog-tile .t-tags{margin-top:1rem;font-size:.8rem;color:var(--t2)}
.blog-tile .t-author{font-size:.88rem;color:#5a5570;margin-top:.3rem;font-style:italic}
html[data-theme="dark"] .blog-tile{background:linear-gradient(160deg,#372f8f,#221a5e);color:#f2f0fa;
  box-shadow:0 8px 28px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.07)}
html[data-theme="dark"] .blog-tile h2{color:#ffffff}
html[data-theme="dark"] .blog-tile p{color:rgba(255,255,255,.85)}
html[data-theme="dark"] .blog-tile .t-date{color:var(--t3)}
html[data-theme="dark"] .blog-tile .t-tags{color:var(--t3)}
html[data-theme="dark"] .blog-tile .t-author{color:rgba(255,255,255,.75)}
/* image tile: the 1200x630 splash full-bleed on top, text panel below —
   one image treatment at every width (desktop follows mobile) */
.blog-tile.has-image{display:grid;grid-template-columns:1fr;padding:0;overflow:hidden}
.blog-tile .t-img{position:relative;aspect-ratio:1200/630}
.blog-tile .t-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.blog-tile .t-body{padding:1.7rem 1.8rem 1.9rem}
/* text-only tiles carry the seven-stripe as a slim header bar instead
   (image tiles get theirs baked into the splash) */
.blog-tile:not(.has-image){min-height:170px;padding:1.6rem 1.5rem;position:relative;overflow:hidden}
.blog-tile:not(.has-image)::before{content:"";position:absolute;top:0;left:0;right:0;height:10px;
  background:linear-gradient(90deg,#a4bc45 0 14.28%,#00eeb9 14.28% 28.57%,#07b9a7 28.57% 42.85%,#372f8f 42.85% 57.14%,#eb208c 57.14% 71.42%,#f9552c 71.42% 85.71%,#fa8c2e 85.71% 100%)}
.blog-tile:not(.has-image) h2{font-size:1.35rem}
.post-body{max-width:44rem;margin:0 auto;font-size:1.08rem;line-height:1.75}
.post-body img{max-width:100%;height:auto;border-radius:10px}
.post-body img.no-border{border-radius:0}
.post-body a{color:var(--teal);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.post-body a:hover{text-decoration-thickness:2px}
.post-body figcaption{text-align:center;color:var(--muted);font-size:.9rem;margin:.4rem 0 1.5rem;font-style:italic}
.back-wrap{max-width:44rem;margin:0 auto 3rem}
.back-link{color:var(--teal);text-decoration:none;font-weight:600}
.back-link:hover{text-decoration:underline}
.post-body h1{font-size:2.2rem;line-height:1.2;margin:0 0 .5rem}
.post-body h2{font-size:1.6rem;margin:2.2rem 0 .8rem}
.post-body h3{font-size:1.3rem;margin:1.8rem 0 .6rem}
.post-meta{color:var(--muted);margin-bottom:2rem;font-size:.95rem}
.post-author{font-size:1.05rem;font-style:italic;color:var(--text-soft);margin:.2rem 0 1.2rem}
.post-body blockquote{border-left:4px solid var(--teal);margin:1.5rem 0;padding:.5rem 0 .5rem 1.2rem;color:var(--text-soft)}
.post-body figcaption{text-align:center;color:var(--muted);font-size:.9rem;margin:.4rem 0 1.5rem}
.back-link{display:inline-block;margin:2.5rem 0 1rem;color:var(--teal);font-weight:700;text-decoration:none}
@media(max-width:640px){.blog-tile{min-height:180px;padding:1.6rem 1.4rem}.blog-tile h2{font-size:1.35rem}.post-body h1{font-size:1.8rem}
.blog-tile .t-body{padding:1.5rem 1.4rem}}

/* Centred figures in the posts' markdown (issue #134: the
   <div style="text-align: center;"> attributes became this). */
.center{text-align:center}
