/* ============================================================
   BLOG — index cards + post prose (RAS design)
   ============================================================ */

/* Index cards */
.posts-list { display: flex; flex-direction: column; padding-bottom: 80px; }
.post-card {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
@media (min-width: 700px) {
  .post-card { grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
}
.post-card:hover { background: var(--card); }
.post-card .cover {
  aspect-ratio: 16/10; width: 100%;
  object-fit: cover; border-radius: 6px;
  border: 1px solid var(--line);
}
.post-card .meta {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  opacity: 0.6; margin-bottom: 10px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.post-card h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 0 10px; text-transform: uppercase;
}
.post-card p { margin: 0; font-size: 15px; line-height: 1.55; opacity: 0.82; max-width: 640px; }
.post-card .more {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red);
}
.post-card .more .arrow { transition: transform 0.2s ease; }
.post-card:hover .more .arrow { transform: translateX(4px); }

/* Post page */
.post-head {
  max-width: 860px; margin: 0 auto;
  padding: 72px 0 40px;
}
.post-head .meta {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  opacity: 0.6; margin-bottom: 20px;
  display: flex; gap: 16px; flex-wrap: wrap;
}
.post-head h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.04em; line-height: 1.0;
  margin: 0 0 20px; text-transform: uppercase;
  text-wrap: balance;
}
.post-head .lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55; opacity: 0.85; max-width: 720px;
}
.post-cover {
  max-width: 1100px; margin: 0 auto 16px;
}
.post-cover img {
  width: 100%; border-radius: 8px;
  border: 1px solid var(--line);
}

/* Prose (rendered markdown) */
.prose {
  max-width: 760px; margin: 0 auto;
  padding-bottom: 96px;
  font-size: 17px; line-height: 1.7;
}
.prose h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em; line-height: 1.1;
  margin: 56px 0 18px; text-transform: uppercase;
}
.prose h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: -0.01em;
  margin: 40px 0 14px; text-transform: uppercase;
}
.prose p { margin: 0 0 20px; }
.prose strong { font-weight: 700; }
.prose a { color: var(--red); border-bottom: 1px solid currentColor; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose img {
  width: 100%; height: auto;
  border-radius: 8px; border: 1px solid var(--line);
  margin: 32px 0;
}

/* Notion-style image layout — set via markdown attrs: ![](src){: .right .w50} */
.prose img.left  { float: left;  margin: 6px 28px 18px 0; }
.prose img.right { float: right; margin: 6px 0 18px 28px; }
.prose img.left, .prose img.right { width: 50%; }
.prose img.w25 { width: 25%; }
.prose img.w33 { width: 33%; }
.prose img.w50 { width: 50%; }
.prose img.w75 { width: 75%; margin-left: auto; margin-right: auto; display: block; }
.prose img.center { display: block; margin-left: auto; margin-right: auto; }
.prose h2, .prose h3, .prose hr { clear: both; }
.prose::after { content: ''; display: block; clear: both; }
@media (max-width: 700px) {
  .prose img.left, .prose img.right {
    float: none; width: 100%; margin: 24px 0;
  }
  .prose img.w25, .prose img.w33 { width: 60%; }
}
.prose blockquote {
  margin: 28px 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--red);
  font-size: 18px; opacity: 0.9;
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--card); border: 1px solid var(--line);
  padding: 2px 6px; border-radius: 4px;
}
.prose pre {
  background: var(--burgundy); color: var(--ivory);
  padding: 20px 24px; border-radius: 8px;
  overflow-x: auto; margin: 28px 0;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--card);
}

/* Post footer CTA */
.post-cta {
  max-width: 760px; margin: 0 auto 96px;
  background: var(--burgundy); color: var(--ivory);
  border-radius: 8px; padding: 36px 32px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 20px;
}
.post-cta .t {
  font-family: var(--font-display); font-weight: 800;
  font-size: 20px; letter-spacing: -0.02em; text-transform: uppercase;
}
.post-cta .s {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0.7; margin-top: 6px;
}

@media (max-width: 700px) {
  .post-head { padding: 48px 0 28px; }
  .prose { font-size: 16px; }
  .post-cta { padding: 28px 22px; }
}
