/* ============ BLOG LIST PAGE HEADER ============ */
.page-header {
  padding: 8rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

.page-header h1 .gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

.rss-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.rss-link:hover { color: var(--gold); }

.rss-icon {
  width: 16px; height: 16px;
  fill: currentColor;
}

/* ============ POST LIST ============ */
.posts-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
}

.post-card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.25s;
}

.post-card:hover {
  border-color: rgba(45, 125, 210, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.post-card:hover::before { opacity: 1; }

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.post-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.post-readtime {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.post-tag {
  padding: 0.15rem 0.65rem;
  background: rgba(45, 125, 210, 0.1);
  border: 1px solid rgba(45, 125, 210, 0.2);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue-bright);
}

.post-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
  line-height: 1.3;
  transition: color 0.2s;
}

.post-card:hover .post-card-title { color: var(--blue-bright); }

.post-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.post-card-arrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-bright);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
}

.post-card:hover .post-card-arrow { opacity: 1; transform: translateX(0); }

@media (max-width: 600px) {
  .post-card { padding: 1.5rem; }
  .post-card-title { font-size: 1.15rem; }
}

/* ============ INDIVIDUAL BLOG POST PAGE ============ */
.blog-post {
  max-width: 760px;
  margin: 0 auto;
  padding: 8rem 2rem 6rem;
}

.post-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.post-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 1rem 0;
  color: var(--text-primary);
}

.post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.post-meta time {
  color: var(--text-muted);
}

.post-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.post-body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.075rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.post-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}

.post-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
}

.post-body p {
  margin: 1rem 0;
}

.post-body a {
  color: var(--blue-bright);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.post-body a:hover {
  color: var(--gold-light);
}

.post-body ul,
.post-body ol {
  margin: 1rem 0 1rem 1.5rem;
}

.post-body li {
  margin: 0.4rem 0;
}

.post-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--gold-light);
}

.post-body pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

.post-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: var(--text-primary);
  font-size: inherit;
}

.post-body blockquote {
  border-left: 3px solid var(--blue-bright);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
}

.post-body th,
.post-body td {
  text-align: left;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
}

.post-body th {
  background: var(--surface);
  font-weight: 600;
  color: var(--text-primary);
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.post-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.back-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
}

.back-link:hover {
  color: var(--text-primary);
}

/* Chroma syntax highlighting -- dark theme palette */
.post-body .highlight { background: var(--surface); border-radius: 8px; }
.post-body .chroma .k  { color: #c792ea; }
.post-body .chroma .kd { color: #c792ea; }
.post-body .chroma .s,
.post-body .chroma .s1,
.post-body .chroma .s2 { color: #c3e88d; }
.post-body .chroma .c,
.post-body .chroma .c1,
.post-body .chroma .cm { color: var(--text-muted); font-style: italic; }
.post-body .chroma .n,
.post-body .chroma .nb { color: var(--text-primary); }
.post-body .chroma .nf { color: #82aaff; }
.post-body .chroma .mi,
.post-body .chroma .mf { color: #f78c6c; }
.post-body .chroma .o { color: #89ddff; }
