/* Blog-specific styles. Complements style.css, reuses the same tokens. */

/* ---- Blog archive: card grid ---- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.post-card {
  display: flex; flex-direction: column; color: inherit; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.post-card:hover { text-decoration: none; box-shadow: 0 14px 34px rgba(22,32,46,.09);
  border-color: #d7d7d4; transform: translateY(-2px); }
.post-card:hover .post-card-title { color: var(--accent); }

.post-card-media { aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .35s ease; }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-noimg { width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--paper-2), var(--line)); }

.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.post-card-title { font-size: 21px; font-weight: 600; margin: 0 0 8px;
  letter-spacing: -0.2px; line-height: 1.25; transition: color .18s ease; }
.post-card-desc { color: var(--ink-soft); font-size: 15.5px; margin: 0 0 16px; }
.post-card-date { font-family: var(--sans); font-size: 13px; color: var(--muted);
  letter-spacing: .04em; margin-top: auto; }

@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .post-grid { grid-template-columns: 1fr; }
}

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }

.post-link { display: block; padding: 26px 0; color: inherit; }
.post-link:hover { text-decoration: none; }
.post-link:hover .post-link-title { color: var(--accent); }
.post-link-title { font-size: 24px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.2px; line-height: 1.2; }
.post-link-desc { color: var(--ink-soft); margin: 0 0 10px; }
.post-link-date { font-family: var(--sans); font-size: 13px; color: var(--muted); letter-spacing: .04em; }

/* Single post */
.post { padding: 56px 0; border-bottom: 1px solid var(--line); }
.post .section-label a { color: var(--muted); }
.post .section-label a:hover { color: var(--accent); text-decoration: none; }
.post-title { font-size: 42px; line-height: 1.1; margin: 14px 0 12px; font-weight: 600; letter-spacing: -0.5px; }
.post-meta { font-family: var(--sans); font-size: 14px; color: var(--muted); margin: 0 0 36px; }
.post-meta time { color: var(--ink-soft); }

.post .prose { margin-top: 0; }
.post .prose h2 { font-size: 27px; margin: 40px 0 14px; }
.post .prose h3 { font-size: 21px; margin: 30px 0 10px; }
.post .prose img { border-radius: 4px; border: 1px solid var(--line); margin: 26px 0; }
.post .prose pre { background: var(--ink); color: var(--paper); padding: 18px 20px;
  border-radius: 4px; overflow-x: auto; font-size: 15px; line-height: 1.5; }
.post .prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
.post .prose :not(pre) > code { background: var(--paper-2); padding: 2px 6px; border-radius: 3px; }
.post .prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

@media (max-width: 860px) {
  .post-title { font-size: 32px; }
}
