/* ──────────────────────────────────────────────────────────
   blog.css — the blog at /blog/, loaded after tabloid.css.
   Pages are written by scripts/build-blog.mjs from posts/*.md.
   Only the site's own tokens, faces and colors: Archivo condensed
   for heads and labels, PP Neue Montreal Text for running text,
   Azeret Mono for code. The list page reuses .ed-sec and .items
   from the Coaching page's "Writing on coaching".
   ────────────────────────────────────────────────────────── */

/* List page */
.blog__sub { margin: -12px 0 0; font-family: var(--cond); font-stretch: 87%; font-variation-settings: "wdth" 87; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.blog__sub a { color: var(--blue); text-decoration: none; }
.blog__sub a:hover { color: var(--ink); }
.blog .ed-sec { padding-top: 72px; }

/* Post */
.post__kicker { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 22px; font-family: var(--cond); font-stretch: 87%; font-variation-settings: "wdth" 87; font-weight: 800; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.post__kicker a { color: inherit; text-decoration: none; }
.post__kicker a:hover { color: var(--ink); }
.post__kicker time { color: var(--ink); }
.post__h { margin: 0 0 48px; max-width: 22ch; font-family: var(--cond); font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: clamp(48px, 6.4vw, 104px); line-height: .84; letter-spacing: -.005em; text-transform: uppercase; color: var(--blue); overflow-wrap: anywhere; }

.post__body { max-width: 720px; font-family: var(--serif); font-size: 21px; line-height: 1.58; }
.post__body > :first-child { margin-top: 0; }
.post__body p, .post__body ul, .post__body ol, .post__body dl, .post__body table, .post__body pre { margin: 0 0 1.05em; }
.post__body ul, .post__body ol { padding-left: 1.3em; }
.post__body li { margin: 0 0 .35em; }
.post__body li > ul, .post__body li > ol { margin: .35em 0 0; }
.post__body a { color: var(--ink); text-decoration: none; background: var(--blue-tint); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; overflow-wrap: anywhere; }
.post__body a:hover { background: var(--blue); color: #fff; }
.post__body strong { font-weight: 700; }

.post__body h2, .post__body h3, .post__body h4 { margin: 1.9em 0 .55em; font-family: var(--cond); font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; line-height: .95; text-transform: uppercase; }
.post__body h1, .post__body h2 { font-size: clamp(34px, 3.4vw, 46px); }
.post__body h3 { font-size: clamp(27px, 2.5vw, 34px); }
.post__body h4, .post__body h5, .post__body h6 { font-size: 22px; font-stretch: 87%; font-variation-settings: "wdth" 87; text-transform: none; }

/* Quotes: set apart by size and an indent, not a rule. */
.post__body blockquote { margin: 1.6em 0; padding: 0 0 0 1.4em; font-size: 1.12em; line-height: 1.45; font-style: italic; color: var(--ink); }
.post__body blockquote p:last-child { margin-bottom: 0; }

/* A section break is a short red bar. */
.post__body hr { width: 64px; height: 6px; margin: 2.2em 0; border: 0; background: var(--blue); }

.post__body img { margin: 1.6em 0; }
.post__body p > img:only-child { margin: 0; }
.post__body figure { margin: 1.6em 0; }
.post__body figcaption { margin-top: 8px; font-family: var(--cond); font-stretch: 87%; font-variation-settings: "wdth" 87; font-size: 15px; color: var(--muted); }

.post__body code { font-family: "Azeret Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8em; background: #f1f1f4; padding: .1em .3em; }
.post__body pre { overflow-x: auto; padding: 18px 20px; background: var(--ink); color: var(--paper); font-size: 16px; line-height: 1.55; }
.post__body pre code { background: none; padding: 0; font-size: inherit; }

.post__body table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 17px; line-height: 1.4; }
.post__body th, .post__body td { padding: 8px 14px 8px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--hair); }
.post__body th { font-family: var(--cond); font-stretch: 87%; font-variation-settings: "wdth" 87; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

.post__body .embed { position: relative; margin: 1.6em 0; aspect-ratio: 16 / 9; background: var(--ink); }
.post__body .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Newer and older */
.post__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 1040px; margin-top: 96px; }
.post__nav a { display: block; font-family: var(--cond); font-weight: 900; font-stretch: 62%; font-variation-settings: "wdth" 62; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; text-decoration: none; }
.post__nav a:hover { color: var(--blue); }
.post__nav span { display: block; margin-bottom: 8px; font-stretch: 87%; font-variation-settings: "wdth" 87; font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.post__older { text-align: right; }

@media (max-width: 760px) {
  .post__h { margin-bottom: 32px; }
  .post__body { font-size: 19px; }
  .post__body blockquote { padding-left: 1em; }
  .post__nav { grid-template-columns: 1fr; gap: 24px; margin-top: 64px; }
  .post__older { text-align: left; }
}
