/* Loaded only by the blog layout, so the homepage and older pages keep their own styles. */

.blog-nav {
  margin: 0 0 1rem;
}

.blog-nav a,
.post-list a,
.post-body a {
  color: var(--blue);
  text-decoration: none;
}

.blog-nav a:hover,
.blog-nav a:focus-visible,
.post-list a:hover,
.post-list a:focus-visible,
.post-body a:hover,
.post-body a:focus-visible {
  color: var(--green);
}

a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.blog-empty {
  color: var(--text-muted);
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.post-list time,
.post-date {
  color: var(--text-muted);
}

.post-title {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0.25rem 0 0.35rem;
}

.post-date {
  display: block;
  margin-bottom: 1.25rem;
}

.post-body p,
.post-body ul,
.post-body ol,
.post-body pre,
.post-body blockquote {
  margin: 0 0 0.75rem;
}

.post-body h2,
.post-body h3 {
  color: var(--green);
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
}

.post-body ul,
.post-body ol {
  padding-left: 1.25rem;
}

.post-body li {
  margin-bottom: 0.35rem;
}

.post-body code {
  color: var(--orange);
}

.post-body pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  overflow-x: auto;
}

.post-body pre code {
  color: var(--text);
}

.post-body blockquote {
  border-left: 2px solid var(--border);
  padding-left: 0.75rem;
  color: var(--text-muted);
}

.post-body img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  .post-list li {
    flex-direction: column;
    gap: 0.15rem;
  }
}
