#site_content > main {
  display: contents;
}

/* nothing in the content column may widen it on narrow screens */
#site_content img {
  max-width: 100%;
}

/* Inline code in rich text; block-level code is <pre><code> handled by Prism. */
:not(pre) > code {
  font-family: ui-monospace, 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: #F0EFE2;
  color: #47433F;
  border: 1px solid #E5E5DB;
  border-radius: 3px;
  padding: 0.1em 0.35em;
  /* long unbroken tokens must not widen the column on narrow screens */
  overflow-wrap: break-word;
}

/* ---- blog post page ---- */

.blog-post h1 {
  margin: 0.5em 0 0.15em 0;
}

.blog-post .meta {
  font-size: 0.85em;
  color: #666;
  margin: 0 0 2em 0;
}

/* the lede: visually between title block and body copy */
.blog-post .intro {
  font-size: 1.05em;
  color: #333;
  margin: 0 0 1.5em 0;
}

.gallery-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 1.25em 0;
}

.gallery-images figure {
  margin: 0;
}

.gallery-images figcaption {
  font-size: 0.85em;
  color: #666;
  margin-top: 0.35em;
}

.syndication-links {
  font-size: 0.85em;
  color: #666;
  margin: 2em 0 0.5em 0;
}

.back-link {
  margin: 1.5em 0 0.5em 0;
}

/* ---- blog index cards ---- */

.blog-post {
  padding: 1.5em 0;
  border-bottom: 1px solid #ccc;
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.blog-post-header h2 {
  margin: 0;
  flex: 1;
}

/* card titles are already clearly links by context; keep them quiet until hover */
.blog-post-header h2 a {
  text-decoration: none;
}

.blog-post-header h2 a:hover {
  text-decoration: underline;
}

/* on narrow screens the side-by-side date squeezes titles into tall wraps */
@media (max-width: 640px) {
  .blog-post-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

.blog-date {
  font-size: 0.8em;
  color: #666;
  white-space: nowrap;
}

.blog-intro {
  margin: 0.5em 0 0 0;
}
