/* The blog index and archive.

   A file of its own rather than more of app.css: it is only needed on these
   two pages, and keeping it apart means the blog can change without touching
   the stylesheet every other page depends on. */

.blog-intro { margin: 0.5rem 0 2rem; max-width: 44rem; }

/* -- the newest post -------------------------------------------------------
   One box, the full width of the page, so the latest post is the first and
   largest thing a reader sees. Photo beside the words on a wide screen, above
   them on a phone. No photo, and the words take the whole box. */
.blog-feature {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.blog-feature:hover { border-color: var(--rule-strong); }
.blog-feature-media { aspect-ratio: 16 / 10; background: var(--paper-sunk); overflow: hidden; }
.blog-feature-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-feature-body {
  padding: 1.4rem 1.25rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  min-width: 0;
}
.blog-feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 2vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: anywhere;
}
.blog-feature-summary { font-size: 1.05rem; line-height: 1.55; margin: 0; }
.blog-feature-more { margin-top: 0.4rem; font-weight: 700; color: var(--chalk); }

@media (min-width: 52rem) {
  .blog-feature-body { padding: 2.25rem 2.25rem 2.5rem; justify-content: center; }
  .blog-feature.has-media { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .blog-feature.has-media .blog-feature-media { aspect-ratio: auto; min-height: 22rem; }
  .blog-feature:not(.has-media) .blog-feature-body { padding: 3rem 3rem 3.25rem; }
  .blog-feature:not(.has-media) .blog-feature-summary { max-width: 46rem; font-size: 1.15rem; }
}

/* -- the four before it, and every page of the archive ------------------- */
.blog-section-head { margin: 2.75rem 0 1rem; }
.blog-section-head h2 { margin: 0; font-size: 1.15rem; }
.blog-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.blog-card-summary { font-size: 0.85rem; margin-top: 0.35rem; }

.blog-all { margin-top: 1.75rem; }
