/* blog.css — blog index + single post view.
   Spec-sheet aesthetic: mono type, 2px rules matching the project label
   bar and section titles, spacing from the 8pt grid. Minimal for now. */

.blog-main {
  padding-block: var(--space-3) var(--space-8);
}

/* ---- Index: chronological list ---- */

/* Same treatment as .project-section-title so the two pages rhyme. */
.blog-heading {
  margin: 0 0 var(--space-3);
  padding-top: var(--space-3);
  border-top: 2px solid var(--color-fg);
  text-transform: uppercase;
  font-size: var(--font-caption);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.blog-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  padding-block: var(--space-3);
  border-bottom: 2px solid var(--color-fg);
  color: var(--color-fg);
  text-decoration: none;
}

.blog-row:first-child {
  border-top: 2px solid var(--color-fg);
}

.blog-row-title {
  font-size: var(--font-subhead);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.blog-row:hover .blog-row-title,
.blog-row:focus-visible .blog-row-title {
  text-decoration: underline;
}

.blog-row-date {
  font-size: var(--font-caption);
  white-space: nowrap;
}

/* ---- Single post ---- */

/* Same reading column as .project-description. */
.blog-post {
  max-width: 720px;
  margin-inline: auto;
  padding-top: var(--space-4);
}

.blog-post-title {
  margin: 0 0 var(--space-1);
  font-size: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.blog-post-date {
  margin: 0 0 var(--space-4);
  font-size: var(--font-caption);
}

.blog-post-body p {
  margin: 0 0 var(--space-3);
  line-height: 1.6;
}
