/* ==========================================================================
   Blog: /blog/ (the list) and /blog/<slug>/ (one post). Loaded after styles.css
   on the two blog templates only. Only the site's own tokens, fonts and parts.

   One grid runs through the blog: a narrow left column for dates and details
   (--blog-rail) and a wide one for titles and text. On wide screens the list's
   dates line up with a post's details, and a post's text starts where the
   list's titles start.

   No italics anywhere: <em> is clay bold, like emphasized words elsewhere.
   Motion: on the list, the rules draw in once and the rows settle; on a post,
   the title rises and the picture opens once. All of it is off for reduced motion.
   The header and footer Blog links ([data-blog="nav"]) are shown by the Worker
   removing their hidden attribute, so nothing here may set their display.
   ========================================================================== */

:root {
  --blog-rail: 11.5rem;                                   /* dates and details */
  --blog-gap: clamp(2rem, 0.75rem + 3vw, 4.5rem);
  --post-fs: clamp(1.0625rem, 0.99rem + 0.3vw, 1.25rem);  /* 17px on phones, 20px on wide screens */
  --post-measure-n: 31;                                   /* the text column, in ems of the post's text size */
  --post-measure: calc(var(--post-measure-n) * 1em);      /* about 68 characters of post text (measured) */
}

/* ---------- List page: the hero ---------- */

.blog-hero { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5.5rem) clamp(2rem, 1rem + 3vw, 3.5rem); }
/* Set line by line; the size is also capped by the column's width, so the longer
   line ("What I'd tell you") never breaks in two. The 2rem floor follows the
   visitor's own text size. */
.blog-hero .container { container-type: inline-size; }
.blog-hero h1 {
  margin: 0;
  font-size: max(min(clamp(2.75rem, 1rem + 7.2vw, 6rem), 11.4cqi), 2rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.blog-hero__row {
  display: grid;
  gap: var(--s3) var(--s6);
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  align-items: end;
}
.blog-hero__row .lead { margin: 0; }

.blog-index { padding-bottom: clamp(4rem, 3rem + 5vw, 7.5rem); }

/* ---------- Post rows (the list, and "Keep reading" under a post) ----------
   Markup comes from the Worker (docs/CMS.md, Blog, Generated markup):
   li.post-row[.post-row--picture] > article.post-row__inner > h2|h3.post-row__title > a.post-row__link,
   p.post-row__meta (date, topic), p.post-row__excerpt, img.post-row__img, span.post-row__arrow.
   The title's link is stretched over the whole row. */

.post-list { margin: 0; padding: 0; list-style: none; }
.post-row { position: relative; }
/* The rules between rows (drawn in once on the list page) */
.post-row::before,
.post-row:last-child::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  transform-origin: 0 50%;
  pointer-events: none;
}
.post-row::before { top: 0; }
.post-row:last-child::after { bottom: 0; }
.post-row:first-child::before { background: var(--gray); }

.post-row__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "meta    arrow"
    "title   title"
    "excerpt excerpt";
  column-gap: var(--s4);
  padding: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem) var(--s2);
  border-radius: var(--radius-sm);
  transition: background-color 0.3s ease;
}
/* Hover (and keyboard focus): the same gentle wash and shift as the site's index rows (the shift
   moves the text with a transform, since 2026-11-05, instead of animating padding) */
.post-row__inner > :not(.post-row__arrow) { transition: transform 0.4s var(--ease); }
.post-row__inner:hover > :not(.post-row__arrow),
.post-row__inner:has(.post-row__link:focus-visible) > :not(.post-row__arrow) { transform: translateX(var(--s2)); }
.post-row__inner:hover,
.post-row__inner:has(.post-row__link:focus-visible) { background: var(--cream-2); }
.post-related .post-row__inner:hover,
.post-related .post-row__inner:has(.post-row__link:focus-visible) { background: var(--cream); }

.post-row__title {
  grid-area: title;
  margin: 0.5rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.post-row__link { color: inherit; text-decoration: none; }
.post-row__link:hover { color: inherit; }
.post-row__link::after { content: ""; position: absolute; z-index: 2; inset: 0; border-radius: var(--radius-sm); }
.post-row__link:focus-visible { outline: 0; }
.post-row__link:focus-visible::after { outline: 3px solid var(--clay-ink); outline-offset: 2px; }

/* Date and topic. On phones they share a line with a small dot between them; the dot
   that would start a wrapped line sits in a strip that's clipped away. */
.post-row__meta {
  grid-area: meta;
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 0 -1.25em;
  clip-path: inset(0 0 0 1.25em);
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.post-row__meta > span { position: relative; margin-left: 1.25em; }
.post-row__meta > span::before {
  content: "";
  position: absolute;
  left: -0.75em;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--gray);
}
.post-row__topic { font-weight: 600; color: var(--clay-ink); }

.post-row__excerpt {
  grid-area: excerpt;
  max-width: 38em;
  margin: 0.65rem 0 0;
  line-height: 1.55;
  color: var(--ink-2);
}
.post-row__img {
  grid-area: img;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--cream-2);
}
.post-row__arrow {
  grid-area: arrow;
  align-self: center;
  justify-self: end;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--clay);
  font-variant-emoji: text;   /* a plain text arrow, never the emoji (iPhones) */
  transition: transform 0.35s var(--ease);
}
.post-row__inner:hover .post-row__arrow,
.post-row__inner:has(.post-row__link:focus-visible) .post-row__arrow { transform: rotate(45deg); }

/* Phones: a row with a picture keeps a small square next to its title */
.post-row--picture .post-row__inner {
  grid-template-columns: minmax(0, 1fr) clamp(5rem, 3.5rem + 6vw, 7rem);
  grid-template-areas:
    "meta    arrow"
    "title   img"
    "excerpt excerpt";
}
.post-row--picture .post-row__img { align-self: start; margin-top: 0.65rem; }

/* The newest post leads the list: a bigger title, a longer look at its excerpt, and
   its picture (if any) set wide at the top on phones */
.post-list:not(.post-list--related) > .post-row:first-child .post-row__inner { padding-block: clamp(2rem, 1.25rem + 2.5vw, 3.5rem); }
.post-list:not(.post-list--related) > .post-row:first-child .post-row__title {
  margin-top: 0.65rem;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.post-list:not(.post-list--related) > .post-row:first-child .post-row__excerpt {
  max-width: 34em;
  margin-top: 1rem;
  font-size: var(--step-1);
  line-height: 1.5;
}
.post-list:not(.post-list--related) > .post-row--picture:first-child .post-row__inner {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "img     img"
    "meta    arrow"
    "title   title"
    "excerpt excerpt";
}
.post-list:not(.post-list--related) > .post-row--picture:first-child .post-row__img {
  aspect-ratio: 16 / 10;
  margin: 0 0 var(--s4);
  border-radius: var(--radius);
}

/* "Keep reading" rows are a step quieter */
.post-list--related .post-row__title { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.875rem); }

/* Wide screens: the dates get their own column (the same rail a post's details use) */
@media (min-width: 56em) {
  .post-row__inner {
    grid-template-columns: var(--blog-rail) minmax(0, 1fr) auto;
    grid-template-areas:
      "meta title   arrow"
      "meta excerpt arrow";
    /* When the picture (or the date column) is taller than the title and excerpt, the extra
       height goes below the excerpt instead of opening a gap between it and the title */
    grid-template-rows: auto 1fr;
    column-gap: var(--blog-gap);
    align-items: start;
  }
  .post-row__meta {
    align-self: start;
    display: grid;
    gap: 0.15rem;
    margin: 0;
    padding-top: 0.6rem;
    clip-path: none;
  }
  .post-row__meta > span { margin-left: 0; }
  .post-row__meta > span::before { content: none; }
  .post-row__title { margin-top: 0; }
  .post-row__arrow { align-self: start; margin-top: 0.3rem; }

  .post-row--picture .post-row__inner,
  .post-list:not(.post-list--related) > .post-row--picture:first-child .post-row__inner {
    grid-template-columns: var(--blog-rail) minmax(0, 1fr) clamp(10rem, 4rem + 9vw, 14rem) auto;
    grid-template-areas:
      "meta title   img arrow"
      "meta excerpt img arrow";
  }
  .post-row--picture .post-row__img { margin-top: 0.25rem; aspect-ratio: 4 / 3; border-radius: var(--radius); }

  .post-list:not(.post-list--related) > .post-row:first-child .post-row__title { margin-top: 0; }
  .post-list:not(.post-list--related) > .post-row:first-child .post-row__meta { padding-top: 0.85rem; }
  .post-list:not(.post-list--related) > .post-row--picture:first-child .post-row__inner {
    grid-template-columns: var(--blog-rail) minmax(0, 1fr) clamp(15rem, 2rem + 24vw, 27rem) auto;
  }
  .post-list:not(.post-list--related) > .post-row--picture:first-child .post-row__img {
    aspect-ratio: 4 / 3;
    margin: 0.25rem 0 0;
  }
}

/* ---------- List page: no posts yet, or couldn't load ---------- */

.blog-empty {
  display: grid;
  gap: var(--s4);
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-block: 1px solid var(--line);
  border-top-color: var(--gray);
}
.blog-empty__eye { width: clamp(5.5rem, 3.5rem + 6vw, 10rem); }
.blog-empty__eye svg { display: block; width: 100%; height: auto; overflow: visible; }
.blog-empty__title {
  margin: 0 0 var(--s3);
  font-size: clamp(1.875rem, 1.35rem + 2vw, 3rem);
  line-height: 1.08;
}
.blog-empty__text p { max-width: 34em; color: var(--ink-2); }
.blog-empty__text .blog-empty__link { margin: var(--s2) 0 0; }
.blog-empty__link .arrow-link { color: var(--ink); }
@media (min-width: 56em) {
  .blog-empty { grid-template-columns: var(--blog-rail) minmax(0, 1fr); column-gap: var(--blog-gap); align-items: center; }
  .blog-empty__eye { width: min(100%, 10rem); }
}

[data-blog="unavailable"] { border-top: 1px solid var(--gray); }
.blog-note {
  max-width: 22em;
  margin: 0;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* ---------- Draft preview bar (logged-in admin only) ----------
   It stays at the top of the screen while the draft is read, so a draft never passes for a live post.
   The header then scrolls away with the page instead of sliding under the bar. */

.post-preview {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--step--1);
}
body:has(> .post-preview) .site-header { position: relative; }
.post-preview__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--s4);
  padding-block: 0.4rem;
}
.post-preview__text { margin: 0; padding-block: 0.45rem; color: var(--on-dark-2); }
.post-preview__text strong { color: var(--on-dark); }
.post-preview__text strong::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.55em;
  border-radius: 50%;
  background: var(--clay-light);
  vertical-align: 0.05em;
}
.post-preview__edit {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--on-dark);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.post-preview__edit:hover { color: var(--clay-light); }
.post-preview :focus-visible { outline-color: var(--clay-light); }

/* ---------- One post ---------- */

.post { padding-block: clamp(1.75rem, 1rem + 3vw, 4rem) clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.post__grid { display: grid; grid-template-columns: minmax(0, 1fr); }

.post-back { margin: 0 0 clamp(1rem, 0.25rem + 2.5vw, 2.5rem); }
.post-back .arrow-link { font-size: var(--step--1); color: var(--ink-2); }
.post-back .arrow-link:hover { color: var(--clay-ink); }
.post-back .arrow-link:hover span[aria-hidden] { transform: translateX(-4px); }

.post-title {
  max-width: 15em;
  margin: 0;
  font-size: clamp(2.375rem, 1.45rem + 3.9vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
}

/* By-line and details: under the title on phones, in the left rail on wide screens */
.post-rail {
  position: relative;
  margin-top: clamp(1.25rem, 0.9rem + 1.2vw, 2rem);
  padding-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--ink-2);
}
.post-rail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--gray);
  transform-origin: 0 50%;
}
.post-byline { margin: 0 0 0.3rem; font-weight: 600; color: var(--ink); }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  margin: 0 0 0 -1.25em;
  clip-path: inset(0 0 0 1.25em);
  font-variant-numeric: tabular-nums;
}
.post-meta__item { position: relative; margin-left: 1.25em; }
/* The topic, in the same clay as on the list. It's always the second-to-last item, since a
   post needs a topic to be published (only a draft's preview can be without one). */
.post-meta__item:nth-last-child(2):not(.post-meta__item--updated) { font-weight: 600; color: var(--clay-ink); }
.post-meta__item::before {
  content: "";
  position: absolute;
  left: -0.75em;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--gray);
}

.post-main { min-width: 0; padding-top: clamp(1.75rem, 1rem + 2.5vw, 2.75rem); }
.post-hero { margin: 0 0 clamp(2rem, 1.25rem + 2.5vw, 3.5rem); }
/* A tall picture is cropped to fit the screen, so the text still starts near the top */
.post-hero__img {
  width: 100%;
  height: auto;
  max-height: min(75vh, 46rem);
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--cream-2);
}

@media (min-width: 70em) {
  .post__grid {
    grid-template-columns: var(--blog-rail) minmax(0, 1fr);
    column-gap: var(--blog-gap);
  }
  .post-back { grid-column: 1 / -1; grid-row: 1; }
  .post-title { grid-column: 1 / -1; grid-row: 2; }
  /* the rule under the title runs the full width, across both columns */
  .post__grid::before {
    content: "";
    grid-column: 1 / -1;
    grid-row: 3;
    height: 1px;
    margin-top: clamp(2rem, 1rem + 2vw, 3rem);
    background: var(--gray);
    transform-origin: 0 50%;
  }
  .post-rail,
  .post-main { grid-row: 4; }
  .post-main { grid-column: 2; }
  .post-rail {
    grid-column: 1;
    position: sticky;
    top: calc(var(--header-h) + var(--s5));
    align-self: start;
    margin: 0;
    padding: clamp(2rem, 1rem + 2vw, 3rem) 0 0;
  }
  .post-rail::after { content: none; }
  .post-byline { margin-bottom: var(--s3); padding-bottom: var(--s3); border-bottom: 1px solid var(--line); }
  .post-meta { display: grid; gap: 0.3rem; margin: 0; clip-path: none; }
  .post-meta__item { margin-left: 0; }
  .post-meta__item::before { content: none; }
  .post-main { padding-top: clamp(2rem, 1rem + 2vw, 3rem); }
}

/* ---------- The post's text ---------- */

.post-body {
  font-size: var(--post-fs);
  line-height: 1.7;
  hanging-punctuation: first allow-end;
}
.post-body > * { max-width: var(--post-measure); }
.post-body > figure { max-width: none; }
.post-body > :first-child { margin-top: 0; }
.post-body > :last-child { margin-bottom: 0; }

.post-body p { margin: 0 0 1.15em; }
/* The opening paragraph reads as the post's introduction */
.post-body > p:first-child {
  max-width: 26em;   /* the same width as the text under it, in its larger size */
  font-size: clamp(1.1875rem, 1.05rem + 0.55vw, 1.5rem);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

.post-body h2 {
  margin: 2.1em 0 0.55em;
  font-size: clamp(1.625rem, 1.25rem + 1.5vw, 2.5rem);
  line-height: 1.1;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.post-body h3 {
  margin: 1.9em 0 0.45em;
  font-family: var(--sans);
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.post-body h2 + h3 { margin-top: 0.9em; }

.post-body ul,
.post-body ol { margin: 0 0 1.25em; padding-left: 1.35em; }
/* Room for two-digit numbers ("10."), so they line up with "1." to "9." inside the text column */
.post-body ol:has(> li:nth-child(10)) { padding-left: 2em; }
.post-body li { margin-bottom: 0.55em; padding-left: 0.3em; }
.post-body li::marker { color: var(--clay); }
.post-body ol > li::marker { color: var(--clay-ink); font-weight: 700; font-variant-numeric: tabular-nums; }

.post-body a {
  text-decoration-color: var(--clay);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}
.post-body a:hover { color: var(--clay-ink); text-decoration-thickness: 2px; }

/* Emphasis is never slanted: clay bold, like the rest of the site */
.post-body em { font-style: normal; font-weight: 700; color: var(--clay-ink); }
.post-body :is(h2, h3, blockquote) em { color: var(--clay); }
.post-body strong { font-weight: 650; }

.post-body blockquote {
  position: relative;
  margin: 2.2em 0;
  padding-left: clamp(1.9rem, 1.2rem + 2.4vw, 3.25rem);
}
.post-body blockquote::before {
  content: "“";
  content: "“" / "";   /* decorative: screen readers skip it (the first line is for older browsers) */
  position: absolute;
  left: 0;
  top: -0.06em;
  font-family: var(--serif);
  font-size: clamp(3.25rem, 2.4rem + 3vw, 5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--clay);
}
.post-body blockquote p {
  margin: 0 0 0.6em;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.post-body blockquote p:last-child { margin-bottom: 0; }

.post-body figure { margin: 2.2em 0; }
/* Pictures in the text are never stretched past their own size, and a tall one is
   kept within the screen (narrower, never cropped) */
.post-body figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 85vh;
  border-radius: var(--radius);
  background: var(--cream-2);
}
.post-body figcaption {
  max-width: 36rem;
  margin-top: 0.85rem;
  /* The rule hangs in front of the first line; the lines after it start under the text, not the rule */
  padding-left: 2.1rem;
  text-indent: -2.1rem;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--ink-2);
}
.post-body figcaption::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  margin-right: 0.6rem;
  background: var(--clay);
  vertical-align: 0.3em;
}

/* ---------- The author line ---------- */

.post-author {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
  max-width: calc(var(--post-measure-n) * var(--post-fs)); /* the text column's width, so the rule ends with the text */
  margin-top: clamp(3rem, 2rem + 3vw, 4.5rem);
  padding-top: var(--s5);
  border-top: 1px solid var(--gray);
}
.post-author__eye { width: clamp(3.75rem, 2.75rem + 2.5vw, 5.25rem); margin-top: 0.15rem; }
.post-author__eye svg { display: block; width: 100%; height: auto; overflow: visible; }
.post-author__name {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.post-author__bio { max-width: 30em; margin: 0; color: var(--ink-2); }
.post-author__more { margin: 0.35rem 0 0; }

/* ---------- Keep reading, then the closing band ---------- */

.post-related { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); background: var(--cream-2); }
.post-related__title { margin-bottom: var(--s4); }
.post-cta .actions { column-gap: var(--s5); }
.post-cta .post-cta__audit { color: var(--white); }

/* ---------- One-time entrances (switched off for reduced motion) ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* The list: each rule draws across, then its row settles in, one after another */
  .post-list:not(.post-list--related) > .post-row::before,
  .post-list:not(.post-list--related) > .post-row:last-child::after {
    animation: blog-rule 1.1s var(--ease) both;
    animation-delay: calc(var(--n, 0) * 90ms + 0.25s);
  }
  .post-list:not(.post-list--related) > .post-row > .post-row__inner {
    animation: blog-settle 0.9s var(--ease) both;
    animation-delay: calc(var(--n, 0) * 90ms + 0.4s);
  }
  .post-list > .post-row:nth-child(2) { --n: 1; }
  .post-list > .post-row:nth-child(3) { --n: 2; }
  .post-list > .post-row:nth-child(4) { --n: 3; }
  .post-list > .post-row:nth-child(5) { --n: 4; }
  .post-list > .post-row:nth-child(n + 6) { --n: 5; }
  .post-list > .post-row:last-child::after { animation-delay: calc(var(--n, 0) * 90ms + 0.35s); }
  .blog-empty,
  .blog-note { animation: blog-settle 0.9s var(--ease) 0.4s both; }

  /* A post: the title rises, the rule under it draws, the details and the picture open */
  .post-title { animation: post-rise 1s var(--ease) 0.05s both; }
  .post__grid::before,
  .post-rail::after { animation: blog-rule 1.2s var(--ease) 0.35s both; }
  .post-rail { animation: post-fade 0.8s var(--ease) 0.4s both; }
  .post-hero__img { animation: post-open 1.3s var(--ease) 0.3s both; }
}
@keyframes blog-rule { from { transform: scaleX(0); } }
@keyframes blog-settle { from { opacity: 0; transform: translateY(14px); } }
@keyframes post-rise { from { opacity: 0; transform: translateY(0.3em); } }
@keyframes post-fade { from { opacity: 0; } }
@keyframes post-open {
  from { opacity: 0; clip-path: inset(10% 5% 0 5% round 30px); }
  to { opacity: 1; clip-path: inset(0 round 22px); }
}

/* ---------- High contrast and print ---------- */

@media (forced-colors: active) {
  .post-row::before,
  .post-row:last-child::after,
  .post-rail::after,
  .post__grid::before,
  .post-row__meta > span::before,
  .post-meta__item::before { background: CanvasText; }
}

@media print {
  .post-preview,
  .post-back,
  .post-related,
  .post-cta,
  .post-author__eye { display: none !important; }
  .post__grid { display: block; }
  .post-rail { position: static; }
  .post-body { font-size: 11.5pt; }
  .post-body > * { max-width: none; }
  .post-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
  .post-body p { orphans: 3; widows: 3; }
  .post-body :is(h2, h3) { break-after: avoid; }
  .post-body figure { break-inside: avoid; }
}
