/* Shared writing index; article styles stay scoped to the reading pages. */
.writing-section {
  padding-block: 0 72px;
}
.writing-section .section-heading {
  margin-bottom: 28px;
}
.blog-entries {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.blog-entry {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 32px;
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
}
.blog-entry time {
  padding-top: 8px;
  font: 12px/1.7 var(--mono);
  color: var(--muted);
}
.blog-entry :is(h2, h3) {
  font: 400 36px/1.2 var(--serif);
  letter-spacing: normal;
  text-wrap: balance;
}
.blog-entry :is(h2, h3) a {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.blog-entry :is(h2, h3) a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}
.blog-entry p {
  max-width: 550px;
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}
.blog-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.blog-main {
  flex: 1;
  padding-block: 64px 100px;
}
.blog-index {
  max-width: 880px;
  margin-inline: auto;
}
.blog-index-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-block: 16px 48px;
}
.blog-page h1 {
  margin: 0;
  font: 400 clamp(48px, 5.8vw, 76px)/1.03 var(--serif);
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.blog-article {
  max-width: 720px;
  margin-inline: auto;
}
.blog-back,
.feed-link,
.post-end a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: #b5baab;
}
.blog-back:hover,
.feed-link:hover,
.post-end a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}
.post-header {
  padding-top: 28px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.post-byline {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}
.post-body {
  margin-top: 38px;
  font-size: 18px;
  line-height: 1.85;
  overflow-wrap: break-word;
}
.post-body p + p {
  margin-top: 1.4em;
}
.post-body ol,
.post-body ul {
  padding-left: 1.7em;
  margin-block: 1.5em;
}
.post-body li {
  padding-left: 0.35em;
}
.post-body li + li {
  margin-top: 0.8em;
}
.post-body li::marker {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.post-body a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-body h2,
.post-body h3 {
  margin-block: 1.3em 0.6em;
  font: 400 36px/1.2 var(--serif);
}
.post-body code {
  font-family: var(--mono);
  font-size: 0.85em;
}
.post-body pre {
  overflow-x: auto;
  padding: 20px;
  background: var(--sage);
}
.post-body img {
  max-width: 100%;
  height: auto;
}
.post-end {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
  .writing-section {
    padding-bottom: 48px;
  }
  .blog-entry {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 24px;
  }
  .blog-entry time {
    padding: 0;
    font-size: 11px;
  }
  .blog-entry :is(h2, h3) {
    font-size: 32px;
  }
  .blog-main {
    padding-block: 28px 64px;
  }
  .blog-index-heading {
    margin-bottom: 30px;
  }
  .post-header {
    padding-top: 22px;
    padding-bottom: 26px;
  }
  .post-byline {
    margin-top: 20px;
  }
  .post-body {
    margin-top: 28px;
    font-size: 17px;
    line-height: 1.8;
  }
  .post-end {
    gap: 16px;
  }
  .blog-page .site-footer {
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .blog-page .site-footer p {
    flex-basis: 100%;
  }
}
@media print {
  .blog-page {
    background: white;
  }
  .blog-page::before,
  .blog-page .site-header,
  .blog-page .site-footer,
  .blog-back,
  .post-end {
    display: none;
  }
  .blog-main {
    width: 100%;
    padding: 0;
  }
  .post-body {
    font-size: 11pt;
  }
}
