/* Personal Blog Mode — serene centered literary editorial layout */

.blog-mode .header-inner,
.blog-mode .footer-inner {
  max-width: 820px;
}

.blog-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 96px;
  min-height: calc(100vh - 140px);
}

.blog-hero {
  padding-bottom: 30px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--border);
}

.blog-author-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.blog-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 24%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.blog-hero .eyebrow {
  margin-bottom: 4px;
}

.blog-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

.blog-intro {
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 600px;
}

/* Tag filters */
.blog-tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.blog-tag-filters button {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted-strong);
  font-size: 12.5px;
  font-weight: 550;
  transition: all 0.15s ease;
}

.blog-tag-filters button:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.blog-tag-filters button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #f8f7f3;
}

[data-theme="dark"] .blog-tag-filters button[aria-pressed="true"] {
  color: #131311;
}

/* Post archive list */
.blog-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.blog-post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-post-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.blog-post-link {
  display: block;
  padding: 20px 24px;
  color: inherit;
  text-decoration: none;
}

.blog-post-link:hover {
  text-decoration: none;
}

.blog-post-meta,
.blog-article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.blog-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 550;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--muted-strong);
}

.blog-post-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--ink);
  transition: color 0.15s ease;
}

.blog-post-link:hover h2 {
  color: var(--accent);
}

.blog-post-card p {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--ink-secondary);
  margin: 0;
}

/* Calm placeholder before first posts are published */
.blog-placeholder-card {
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.blog-placeholder-kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

.blog-placeholder-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  margin: 0 0 12px;
}

.blog-placeholder-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-secondary);
  margin: 0 0 18px;
}

.blog-topics-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.blog-topics-preview span {
  font-size: 12px;
  font-weight: 550;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--muted-strong);
}

.blog-placeholder-footnote {
  font-size: 13.5px !important;
  color: var(--muted) !important;
  padding-top: 16px;
  margin: 0 !important;
  border-top: 1px solid var(--border);
}

/* Single Post Reading Experience */
.blog-article-header {
  padding-bottom: 24px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.blog-article-header h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 8px 0 12px;
}

.blog-article-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted-strong);
  margin: 0;
}

.blog-prose {
  font-size: 16px;
  line-height: 1.82;
  color: var(--ink-secondary);
}

.blog-prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  margin: 40px 0 14px;
}

.blog-prose h3 {
  font-size: 18px;
  margin: 28px 0 10px;
}

.blog-prose blockquote {
  margin: 22px 0;
  padding: 10px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--ink);
}

.blog-prose pre {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}

.blog-prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-subtle);
}

.blog-prose pre code {
  padding: 0;
  background: none;
}

.blog-article-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 550;
}

@media (max-width: 600px) {
  .blog-shell {
    padding: 34px 18px 64px;
  }
  .blog-placeholder-card {
    padding: 22px 20px;
  }
}
