/* ─────────────────────────────────────────────────────────
   blog.css — clean reading column for /blog/<slug>/, /about/,
   /privacy/. Inherits palette + tokens from tokens.css. The
   homepage's CRT/scanlines/cursor-trail intentionally do not
   apply here so long-form text is legible.
   ───────────────────────────────────────────────────────── */

/* Override the homepage default body font (pixel) for readable copy. */
body.reading {
  font-family: var(--font-human);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
}

/* Page wrapper — vertical rhythm */
.reading main {
  padding: 2rem 1.25rem 4rem;
}

/* ───── article column ───── */
.post-article {
  max-width: 680px;
  margin: 0 auto;
  background: var(--paper);
  border: var(--pixel-border);
  box-shadow: var(--pixel-shadow);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.post-eyebrow {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.2em;
  margin: 0 0 1.5rem;
}
.post-eyebrow a {
  color: var(--prohibit);
  text-decoration: none;
}
.post-eyebrow a:hover { color: var(--ink); }

.post-article h1 {
  font-family: var(--font-display);
  font-size: clamp(20px, 4.2vw, 30px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin: 0 0 1.25rem;
}

.post-meta {
  font-family: var(--font-human);
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--ink);
}
.post-meta a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-tldr {
  background: var(--cream);
  border-left: 4px solid var(--prohibit);
  padding: 1rem 1.25rem;
  margin: 0 0 2rem;
  font-size: 17px;
  line-height: 1.65;
}
.post-tldr strong {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--prohibit);
  display: inline;
  margin-right: 0.35rem;
}

/* ───── article body typography ───── */
.post-body p,
.post-body ul,
.post-body ol,
.post-body blockquote,
.post-body figure,
.post-body pre,
.post-body table {
  margin: 0 0 1.5rem;
}

.post-body h2 {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin: 2.75rem 0 1rem;
}

.post-body h3 {
  font-family: var(--font-human);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 2rem 0 0.75rem;
}

.post-body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--prohibit);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.post-body a:hover {
  color: var(--prohibit);
}

.post-body ul,
.post-body ol {
  padding-left: 1.5rem;
}
.post-body li {
  margin-bottom: 0.6rem;
}
.post-body li > strong:first-child {
  color: var(--ink);
}

.post-body blockquote {
  border-left: 4px solid var(--ink);
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: var(--ink-soft);
  font-style: italic;
}

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--cream);
  padding: 0.1em 0.35em;
  border: 1px solid var(--ink);
}

.post-body pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  background: var(--ink);
  color: var(--cream);
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border: var(--pixel-border);
}
.post-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.post-body hr {
  border: 0;
  border-top: 2px dashed var(--ink);
  margin: 2.5rem 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.post-body th,
.post-body td {
  border: 2px solid var(--ink);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
.post-body th {
  background: var(--cream);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.post-body img {
  max-width: 100%;
  height: auto;
  border: var(--pixel-border);
  display: block;
  margin: 2rem auto;
}

/* ───── article footer ───── */
.post-foot {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--ink);
  display: grid;
  gap: 2rem;
}

.author-card {
  background: var(--cream);
  border: var(--pixel-border);
  padding: 1.25rem 1.5rem;
}
.author-name {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.author-bio {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}
.author-bio a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-cta {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  background: var(--prohibit);
  color: var(--paper);
  padding: 0.95rem 1.4rem;
  border: var(--pixel-border);
  box-shadow: var(--pixel-shadow);
  text-decoration: none;
  justify-self: start;
  transition: transform 0.08s var(--ease-arcade), box-shadow 0.08s var(--ease-arcade);
}
.post-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.post-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.related h2 {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin: 0 0 1rem;
}
.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.related a {
  display: block;
  font-size: 16px;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--prohibit);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.related a:hover { color: var(--prohibit); }

/* ───── credits footer (reused, simplified) ───── */
/* Reading pages don't load VT323, so the credits footer uses Inter
   instead of var(--font-pixel) — matches the calm reading-page aesthetic. */
.reading .credits {
  max-width: 680px;
  margin: 4rem auto 0;
  padding: 2rem 0;
  text-align: center;
  font-family: var(--font-human);
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 2px solid var(--ink);
}
.reading .credits a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.reading .credits p { margin: 0.4rem 0; }

/* ───── /privacy and /about share the same column ───── */
.reading .static-page h2 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  margin: 2.5rem 0 1rem;
}

/* ───── responsive ───── */
@media (max-width: 540px) {
  body.reading { font-size: 17px; }
  .post-tldr { font-size: 16px; }
  .post-body h3 { font-size: 18px; }
  .post-foot { gap: 1.5rem; }
}

/* ───── reduced motion (mirrors arcade.css) ───── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
