/* ═══════════════════════════════════════════════════════════════════════════
   Writing. A reading surface: one column, generous measure, nothing moving
   next to the text. The pixel language shows up only in the covers and the
   small labels, never in the body type.
   ═══════════════════════════════════════════════════════════════════════════ */

.blog-hero {
  position: relative; overflow: hidden;
  background: var(--wash); border-bottom: 1px solid var(--rule);
  padding: clamp(46px, 6vw, 92px) 0 clamp(34px, 4vw, 56px);
}
.blog-hero .wrap { max-width: 920px; }
.blog-kicker {
  font-family: 'Silkscreen', monospace; font-size: 10px;
  letter-spacing: 0.16em; color: var(--blue); margin-bottom: 16px;
}
.blog-title {
  font-family: 'Fraunces', Georgia, serif; font-weight: 700;
  font-variation-settings: 'opsz' 144, 'SOFT' 40, 'WONK' 1;
  font-size: clamp(46px, 7.5vw, 92px); line-height: 0.92;
  letter-spacing: 0.02em; margin: 0 0 18px;
}
.blog-intro {
  font-size: clamp(16px, 1.7vw, 19px); color: var(--ink-soft);
  line-height: 1.6; max-width: 58ch;
}

/* ── LIST ──────────────────────────────────────────────────────────────── */
.writing { padding: clamp(44px, 5vw, 76px) 0 clamp(56px, 7vw, 100px); }
.writing .wrap { max-width: 920px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }

.entry {
  display: grid; grid-template-columns: 88px 1fr; gap: 20px;
  padding: 24px 0; border-bottom: 1px solid var(--rule);
  align-items: start; text-decoration: none; color: inherit;
}
.entry:last-child { border-bottom: none; }
.entry:hover { text-decoration: none; }
.entry:hover .entry-t { color: var(--blue); }

/* Each post gets a cover generated from its own slug - same pixel world, no
   stock art, and two posts can never collide. */
.cover {
  width: 88px; height: 88px; border-radius: 13px;
  image-rendering: pixelated; display: block;
  border: 1px solid var(--rule);
}

.entry-meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 9px;
}
.kind {
  font-family: 'Silkscreen', monospace; font-size: 8.5px;
  letter-spacing: 0.1em; padding: 5px 8px; border-radius: 6px;
  background: var(--wash-deep); color: var(--blue);
}
.kind.method { background: var(--grass-soft); color: #276834; }
.kind.ctf    { background: var(--signal-soft); color: #9c2a25; }
.when { font-size: 12.5px; color: var(--ink-faint); }

.entry-t {
  font-size: clamp(19px, 2.2vw, 24px); font-weight: 700;
  line-height: 1.28; margin: 0 0 8px; transition: color .15s;
}
.entry-x { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; max-width: 62ch; }

.entry.soon { opacity: 0.62; cursor: default; }
.entry.soon:hover .entry-t { color: inherit; }
.soon-tag {
  font-family: 'Silkscreen', monospace; font-size: 8.5px;
  letter-spacing: 0.1em; color: var(--ink-faint);
  border: 1px solid var(--rule); border-radius: 6px; padding: 4px 7px;
}

/* ── A POST ────────────────────────────────────────────────────────────── */
.post-head {
  border-bottom: 1px solid var(--rule);
  padding: clamp(34px, 4.5vw, 64px) 0 clamp(26px, 3vw, 40px);
}
.post-head .wrap, .article .wrap { max-width: 720px; }
.post-h1 {
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.12;
  letter-spacing: -0.02em; margin: 12px 0 16px;
}
.post-sub { font-size: clamp(16px, 1.8vw, 19px); color: var(--ink-soft); line-height: 1.55; }
.byline {
  display: flex; align-items: center; gap: 10px; margin-top: 22px;
  font-size: 13px; color: var(--ink-faint);
}
.byline b { color: var(--ink); font-weight: 600; }

.article { padding: clamp(32px, 4vw, 54px) 0 clamp(56px, 7vw, 96px); }
.article p, .article ul, .article ol {
  font-size: 17px; line-height: 1.72; color: #27414f; margin: 0 0 22px;
}
.article h2 {
  font-size: clamp(22px, 2.6vw, 29px); margin: 40px 0 14px; letter-spacing: -0.02em;
}
.article h3 { font-size: 19px; margin: 30px 0 10px; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 9px; }
.article a { text-decoration: underline; text-underline-offset: 3px; }
.article strong { color: var(--ink); font-weight: 700; }

/* Real monospace, NOT the pixel face: Silkscreen has no lowercase, and it
   would print X-Forwarded-For as X-FORWARDED-FOR. Code is case-sensitive. */
.article code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13.5px;
  background: var(--wash); padding: 2px 6px; border-radius: 5px; color: var(--ink);
}
.article pre {
  background: #0f2232; color: #d8e6f2; border-radius: 14px;
  padding: 18px 20px; overflow-x: auto; margin: 0 0 24px;
  font-size: 13px; line-height: 1.6;
}
.article pre code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  background: none; padding: 0; color: inherit; font-size: 13px;
}

.callout {
  border-left: 3px solid var(--blue); background: var(--wash);
  border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 0 0 24px;
}
.callout p { margin: 0; font-size: 15.5px; }
.callout .callout-k {
  font-family: 'Silkscreen', monospace; font-size: 9px;
  letter-spacing: 0.1em; color: var(--blue); margin-bottom: 7px;
}

.draft-note {
  border: 1.5px dashed var(--sky); border-radius: 16px;
  background: #fbfdff; padding: 18px 20px; margin: 0 0 30px;
}
.draft-note p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.draft-note b { color: var(--ink); }

.post-nav {
  border-top: 1px solid var(--rule); padding-top: 26px; margin-top: 44px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

@media (max-width: 620px) {
  .entry { grid-template-columns: 56px 1fr; gap: 14px; }
  .cover { width: 56px; height: 56px; }
}
