/* Homepage listings and the monthly blog archive. */
.home-blog, .blog-month, .month-jump {
  --post-ink: #e8c59a;
  --post-rule: #9b7b55;
  --date-font: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.blog-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.blog-section-heading h2 { margin: 0; }
.blog-section-heading a, .month-jump { font-size: .9375rem; }
.recent-posts { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.recent-posts li { border-bottom: 1px solid var(--line); }
.recent-posts a {
  display: grid; grid-template-columns: 4rem 1fr; gap: .6rem;
  align-items: baseline; padding: .65rem .2rem; text-decoration: none;
}
.recent-posts span { text-decoration: underline; text-underline-offset: .22em; }
.recent-posts time, .blog-post time { color: var(--muted); font: .875rem/1.4 var(--date-font); }
.recent-posts a:hover span, .blog-post summary:hover .post-title { color: var(--post-ink); }
.blog-intro { margin-bottom: 1.5rem; }
.blog-intro h1 { font-size: clamp(2.4rem, 6vw, 3.5rem); }
.month-jump { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin-bottom: 2.6rem; }
.month-jump:empty, .recent-posts:empty { display: none; }
.month-jump a { padding: .15rem 0; }
.blog-month { margin-bottom: 2.5rem; }
.blog-month h2 { color: var(--post-ink); font-size: 1.15rem; margin: 0 0 .8rem; }
.month-posts { border-block-start: 1px solid var(--line); }
.blog-post { margin: 0; border-block-end: 1px solid var(--line); }
.blog-post summary {
  width: auto; display: grid; grid-template-columns: 4rem minmax(0, 1fr) 1rem;
  gap: .65rem; padding: .9rem .2rem; align-items: baseline; text-decoration: none;
  color: var(--heading); line-height: 1.45;
}
.blog-post summary::-webkit-details-marker { display: none; }
.blog-post summary::after {
  content: ""; align-self: center; justify-self: center; width: .45rem; height: .45rem;
  border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.blog-post[open] summary { margin: 0; }
.blog-post[open] summary::after { transform: rotate(225deg); border-color: var(--post-ink); }
.post-title { font-size: 1.1rem; font-weight: 600; }
.blog-post[open] .post-title { color: var(--post-ink); }
.post-body { border-left: 2px solid var(--post-rule); padding: .2rem 0 .3rem 1.4rem; margin: 0 1.45rem 1.4rem 4.85rem; }
.post-body p { max-width: 65ch; line-height: 1.7; }
.post-body p:last-of-type { margin-bottom: .6rem; }
.post-timestamp { display: block; margin-bottom: .8rem; color: var(--muted); font-size: .875rem; }
.post-image { margin: 1.25rem 0; }
.post-image img { display: block; max-width: 100%; height: auto; }
.post-image figcaption { color: var(--muted); font-size: .875rem; margin-top: .3rem; }
.post-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.4rem 0; }
.post-pair figure { margin: 0; }
.post-pair img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.post-pair figcaption { margin-top: .35rem; color: var(--muted); font-size: .875rem; line-height: 1.45; }
.reader-actions:not([hidden]) { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: baseline; margin-top: 1rem; }
.reader-actions a, .reader-actions button { font: inherit; font-size: .9375rem; color: var(--link); }
.reader-actions button { padding: .2rem 0; background: none; border: 0; text-decoration: underline; text-underline-offset: .22em; cursor: pointer; }
.reader-actions button:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.blog-month:last-child { margin-bottom: 3rem; }
@media (max-width: 36rem) {
  .blog-post summary { grid-template-columns: 3.35rem minmax(0, 1fr) 1rem; gap: .4rem; }
  .post-body { margin-inline: 0; padding-inline: .9rem 0; }
  .post-title { font-size: 1rem; }
  .post-pair { gap: .65rem; }
}
