/* ============================================================
   blog.css — companion to layout.css for the research blog
   ============================================================ */

.post {
  max-width: 720px;
  margin: 80px auto 0;
  padding: 0 4%;
}
.post-list-section {
  max-width: 1300px;
  margin: 80px auto 0;
  padding: 0 4%;
}

/* ── Post page ── */
.post-header { margin-bottom: 48px; }
.post-date,
.post-list-date {
  font-family: "futura-pt", sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  margin: 0 0 12px;
}
.post-title {
  font-family: "futura-pt", sans-serif;
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #111;
  margin: 0;
}

.post-body {
  font-size: 1.7rem;
  line-height: 1.75;
  color: #222;
}
.post-body p { margin: 0 0 1.4em; }
.post-body h2 {
  font-size: 2.4rem; font-weight: 700;
  margin: 1.8em 0 0.5em; color: #111;
  letter-spacing: -0.01em;
}
.post-body h3 {
  font-size: 1.9rem; font-weight: 600;
  margin: 1.6em 0 0.4em; color: #111;
}
.post-body a {
  color: #111;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.25);
  text-underline-offset: 3px;
}
.post-body a:hover { text-decoration-color: rgba(0,0,0,0.7); }
.post-body img,
.post-body video {
  max-width: 100%;
  display: block;
  margin: 2em auto;
  border-radius: 4px;
}
.post-body blockquote {
  border-left: 2px solid #d8d3cb;
  margin: 1.6em 0;
  padding: 0 0 0 24px;
  color: rgba(0,0,0,0.7);
  font-style: italic;
}
.post-body code {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 1.4rem;
  background: #efeae3;
  padding: 1px 6px;
  border-radius: 3px;
}
.post-body pre {
  background: #efeae3;
  padding: 16px 20px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 1.4rem;
  line-height: 1.55;
}
.post-body pre code { background: none; padding: 0; font-size: inherit; }
.post-body ul,
.post-body ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.post-body li { margin-bottom: 0.4em; }
.post-body hr {
  border: none;
  border-top: 1px solid #e0ddd8;
  margin: 2.4em 0;
}

.post-footer {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid #e0ddd8;
  font-size: 1.4rem;
}
.post-footer a { color: rgba(0,0,0,0.5); text-decoration: none; }
.post-footer a:hover { color: #111; }

/* ── Post list (index) ── */
.post-list-header h1 {
  font-family: "futura-pt", sans-serif;
  font-size: 4.2rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: #111;
}
.post-list-header p {
  font-size: 1.5rem;
  color: rgba(0,0,0,0.55);
  margin: 0 0 64px;
}
.post-list-header a {
  color: rgba(0,0,0,0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-list-header a:hover { color: #111; }

/* ── Card grid ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: 6px;
  text-decoration: none;
  color: #111;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.post-card:hover {
  border-color: #c4bfb6;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.post-card-date {
  font-family: "futura-pt", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  margin-bottom: 14px;
}
.post-card-title {
  font-family: "futura-pt", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #111;
  margin: 0 0 12px;
}
.post-card-preview {
  font-size: 1.4rem;
  line-height: 1.55;
  color: rgba(0,0,0,0.6);
  margin: 0;
}

@media (max-width: 1100px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .post-grid { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .post-title { font-size: 3rem; }
}
