/* ──────────────────────────────────────────────────────────────────────────
   post.css — styles for individual blog post pages.
   Loaded by pages/posts/<slug>.html (generated by scripts/new-post.mjs).
   Shares the same five-ink palette, hard borders, offset shadows as the
   rest of the site.
   ────────────────────────────────────────────────────────────────────────── */

.post-page .post {
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.post-page .post-header {
  border-bottom: 4px solid var(--cream);
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-page .post-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.post-page .post-tag {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 2px 6px;
  background: var(--sand);
}
.post-page .post-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--navy);
}
.post-page .post-byline {
  font-family: var(--font-code);
  font-size: 14px;
  color: var(--blue);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* ── Body copy (uses VT323, set on body; sized for readability) ──────── */
.post-body {
  font-size: 22px;
  line-height: 1.4;
  color: var(--navy);
  max-width: 70ch;
}
.post-body > * + * { margin-top: 14px; }
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0.5px;
  color: var(--navy);
  margin-top: 28px;
}
.post-body h1 { font-size: 24px; }
.post-body h2 { font-size: 18px; padding-top: 6px; border-top: 4px solid var(--cream); }
.post-body h3 { font-size: 15px; color: var(--blue); }
.post-body h4 { font-size: 13px; color: var(--blue); }
.post-body h5,
.post-body h6 { font-size: 12px; color: var(--blue); }

.post-body p { margin: 0; }
.post-body a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 2px; }
.post-body a:hover,
.post-body a:focus-visible {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}
.post-body strong { font-weight: 700; }
.post-body em { font-style: italic; }
.post-body code {
  font-family: var(--font-code);
  font-size: 16px;
  background: var(--cream);
  padding: 1px 6px;
  border: 2px solid var(--navy);
}
.post-body pre {
  background: var(--navy);
  color: var(--cream);
  padding: 12px 14px;
  border: 2px solid var(--navy);
  box-shadow: var(--hard);
  overflow-x: auto;
  font-family: var(--font-code);
  font-size: 14px;
  line-height: 1.4;
}
.post-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}
.post-body ul,
.post-body ol {
  padding-left: 1.5em;
}
.post-body li + li { margin-top: 6px; }
.post-body blockquote {
  border-left: 4px solid var(--blue);
  padding: 4px 14px;
  color: var(--blue);
  font-style: italic;
}
.post-body hr {
  border: 0;
  border-top: 4px solid var(--cream);
  margin: 24px 0;
}
.post-body .table-wrap {
  overflow-x: auto;
  border: 3px solid var(--navy);
  box-shadow: var(--hard);
  background: var(--white);
}
.post-body table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-family: var(--font-code);
  font-size: 14px;
  line-height: 1.35;
}
.post-body th,
.post-body td {
  padding: 8px 10px;
  border-bottom: 2px solid var(--cream);
  text-align: left;
  vertical-align: top;
}
.post-body th {
  background: var(--navy);
  color: var(--sand);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.post-body tbody tr:last-child td { border-bottom: 0; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.post-page .post-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 4px solid var(--cream);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.post-page .post-footer a {
  color: var(--navy);
  text-decoration: none;
  border: 2px solid var(--navy);
  box-shadow: 2px 2px 0 var(--navy);
  padding: 5px 10px;
  background: var(--white);
  display: inline-block;
}
.post-page .post-footer a:hover,
.post-page .post-footer a:focus-visible {
  background: var(--navy);
  color: var(--white);
  outline: none;
}