/* Blog styles */

#hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 22px 6px;
}
#hero .path {
  color: var(--muted-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
#hero h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.01em;
  font-weight: 700;
}
#hero p.lede {
  max-width: 70ch;
  color: var(--muted);
  margin: 10px 0 0;
}

/* Tags */
#filterbar {
  max-width: 900px;
  margin: 22px auto 0;
  padding: 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-tag {
  background: var(--tag-bg);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 5px 13px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.12s ease;
}
.filter-tag:hover {
  color: var(--fg);
  border-color: var(--muted-dim);
}
.filter-tag.active {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

/* Feed */
#feed {
  max-width: 900px;
  margin: 0 auto;
  padding: 22px 22px 70px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.post {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.15s ease;
}
.post:hover {
  border-color: var(--muted-dim);
}
.post.hidden {
  display: none;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted-dim);
  font-size: 12.5px;
  margin-bottom: 8px;
}
.post-meta .statusdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 5px var(--accent-line);
}
.post h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
}
.post h2 a {
  color: inherit;
}
.post h2 a:hover {
  color: var(--accent);
}
.post p.excerpt {
  margin: 0 0 12px;
  color: var(--muted);
}
.post .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.post .tag {
  background: var(--tag-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--muted);
}
.post .readmore {
  font-size: 13px;
  color: var(--accent);
}
.post .readmore::after {
  content: " →";
}

#empty-state {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 22px;
  text-align: center;
  color: var(--muted-dim);
  display: none;
}

footer {
  max-width: 900px;
}

/* Full post */
#post-article.post-full {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px 22px 70px;
}
.post-full .path {
  color: var(--muted-dim);
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.post-full .post-meta {
  margin-bottom: 10px;
}
.post-full h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.01em;
  font-weight: 700;
}
.post-full > .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
}
.post-full > .tags .tag {
  background: var(--tag-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 12px;
  color: var(--muted);
}

/* Markdown */
.post-content {
  color: var(--fg);
}
.post-content h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--fg);
}
.post-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--fg);
}
.post-content h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 6px;
  color: var(--muted);
}
.post-content p {
  margin: 0 0 14px;
  color: var(--fg);
}
.post-content a {
  color: var(--accent);
}
.post-content strong {
  color: var(--fg);
  font-weight: 700;
}
.post-content em {
  color: var(--muted);
}
.post-content ul,
.post-content ol {
  margin: 0 0 14px;
  padding-left: 1.3em;
}
.post-content li {
  margin-bottom: 6px;
  color: var(--fg);
}
.post-content ul li::marker {
  color: var(--accent);
}
.post-content blockquote {
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 2px solid var(--accent-line);
  color: var(--muted);
  font-style: italic;
}
.post-content code {
  background: var(--tag-bg);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2px 5px;
  font-size: 0.92em;
  color: var(--accent);
}
.post-content pre {
  background: var(--tag-bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 16px;
}
.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--fg);
}
.post-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 6px 0 16px;
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 24px 0;
}
