/* ------------------------------------------------------------------
   Post layout: one article per page under writing/.
   Loads after core.css and styles.css. The chrome keeps the machine voice;
   the article itself is set for reading: one narrow column, larger body
   type, and neon only on links and markers (STYLE-GUIDE.md, "Voice").
   ------------------------------------------------------------------ */

.post {
  position: relative; z-index: 1;
  max-width: calc(720px + var(--gutter) * 2);
  margin: 0 auto;
  padding: calc(var(--hud-h) + clamp(40px, 8vw, 88px)) var(--gutter) 0;
}

.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  margin-bottom: 26px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.post-meta .idx { color: #000; background: var(--volt); padding: 7px 9px; font-weight: 700; letter-spacing: .06em; }

.post h1 {
  font-size: clamp(2.6rem, 8.5vw, 5.2rem);
  font-weight: 700; line-height: .92; letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.post-dek {
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 500; line-height: 1.3;
  color: var(--text);
  margin-bottom: 18px;
}
.post-by {
  padding-bottom: 28px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
  font: 500 12px/1.6 var(--font-mono);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}

.post-body { font-size: 18px; line-height: 1.72; }
.post-body p { margin: 0 0 1.25em; }
.post-body h2 {
  display: flex; align-items: center; gap: 14px;
  margin: 2.4em 0 .8em;
  font-size: 1.55rem; font-weight: 700; line-height: 1.1;
  text-transform: uppercase;
}
.post-body h2::before { content: ''; flex: none; width: 22px; height: 2px; background: var(--hot); box-shadow: 0 0 10px var(--hot); }
.post-body a { color: var(--volt); border-bottom: 1px solid rgba(230, 255, 43, .4); transition: background .12s, color .12s; }
.post-body a:hover { background: var(--volt); color: #000; }
.post-body code {
  font: 500 .86em var(--font-mono);
  padding: 2px 6px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--cyan);
}

/* A numbered roster: index and name in the machine voice, one line of body
   text each. Markup is <dl><div><dt><span>02</span>Name</dt><dd>...</dd></div>. */
.post-roster { margin: 0 0 1.6em; border-top: 1px dashed var(--line-2); }
.post-roster div {
  display: grid; grid-template-columns: 150px 1fr; gap: 4px 18px; align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line-2);
}
.post-roster dt { font: 700 13px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.post-roster dt span { display: inline-block; width: 34px; color: var(--hot); }
.post-roster dd { margin: 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
@media (max-width: 560px) {
  .post-roster div { grid-template-columns: 1fr; }
}

/* The thing the post is about, playable from the page. */
.post-play { max-width: 420px; margin: 2.6em 0 0; perspective: 1400px; }

.post-foot {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(48px, 8vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line-2);
}

@media (max-width: 680px) {
  .post-body { font-size: 17px; }
}
