/* The blog: gonglogic.com/blog and /blog/<slug> (BlogPageController). Loaded by the controller with
   Requirements::css, which stamps it, so there is no ?v= to bump. Colours, type and space are the
   family's tokens (family/tokens.css), which carry light and dark; nothing here names a colour. */

.blog { width: 100%; max-width: 46rem; box-sizing: border-box; margin: 0 auto;
  padding: var(--s-6) var(--gutter) var(--s-16); overflow-wrap: break-word; color: var(--ink); }
.blog__crumbs { margin: 0 0 var(--s-3); font-size: var(--fs-1); }
/* Each at least 24px each way, the tap-target floor (WCAG 2.2 AA, check:site-basics). */
.blog__crumbs a, .blog__back a { display: inline-block; min-width: 24px; min-height: 24px;
  padding-block: 4px; color: var(--accent-ink); text-decoration: none; }
.blog__crumbs a:hover, .blog__back a:hover { text-decoration: underline; }
.blog .blog__h1 { margin: 0 0 var(--s-2); font-family: var(--font-text); font-size: var(--fs-6);
  font-weight: 600; line-height: 1.15; letter-spacing: 0; color: var(--ink); }
.blog__date { display: block; font-size: var(--fs-1); color: var(--muted); }
.blog__empty { color: var(--muted); }
.blog__back { margin: var(--s-10) 0 0; font-size: var(--fs-2); }

/* The list: one card per post, its first photo beside its words (above them on a phone). */
.blog-list { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; gap: var(--s-6); }
.blog-list__item { margin: 0; }
.blog-card { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s-5); align-items: start;
  padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1); }
.blog-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); color: var(--ink); text-decoration: none; }
.blog-card:focus-visible { outline: 2px solid var(--brand-gold); outline-offset: 2px; }
.blog-card__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-s); background: var(--surface-2); }
.blog-card__text { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.blog-card__title { font-family: var(--font-text); font-size: var(--fs-5); font-weight: 600; line-height: 1.2; }
.blog-card__summary { color: var(--ink-2); line-height: 1.5; }
@media (max-width: 30rem) {
  .blog-card { grid-template-columns: 1fr; }
}

/* A post: the words, then each photo with its caption under it. */
.blog-post__body { margin: var(--s-5) 0 var(--s-8); font-family: var(--font-text); font-size: var(--fs-3);
  line-height: 1.6; color: var(--ink); }
.blog-post__body p { margin: 0 0 var(--s-4); }
.blog-post__body img { max-width: 100%; height: auto; }
.blog-photo { margin: 0 0 var(--s-10); }
.blog-photo__img { display: block; width: 100%; height: auto; border-radius: var(--radius-m);
  background: var(--surface-2); }
.blog-photo__caption { margin: var(--s-3) 0 0; font-family: var(--font-text); font-size: var(--fs-3);
  line-height: 1.55; color: var(--ink-2); }
