/* =========================================================================
   TradeKit Marketing — the blog as a print bulletin

   The blog index (src/blog/index.njk) and the article layout
   (_includes/article.njk: the posts via post.njk, and the legal pages),
   built on the art kit (styles/site.css). A dispatch from the terminal:
   the homepage's press at a calmer volume — art inks as accents, HUD
   metadata, display headlines, and a body set for long reading.

   Each category prints in one art ink (src/_data/categories.json), which
   arrives as --cat — set inline on a post's <main>, a lead print, a grid
   cell — and drives the category's chip (.blog-cat), its covers' duotone
   (.blog-cover, unless a post opts out) and their offset plate.
   ========================================================================= */

/* =========================================================================
   Shared pieces
   ========================================================================= */

/* The category chip, filled with its ink; its text picks black or white
   by the fill (see .tk-fill). */
.blog-cat {
  --fill: var(--cat, var(--ink));
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 1.5rem;
  padding-inline: 0.5rem;
  background-color: var(--fill);
  color: var(--on-ink);
  color: oklch(from var(--fill) clamp(0, calc((0.6 - l) * 100000), 1) 0 0);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The HUD meta line: [ CATEGORY ] // DATE // N MIN. */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.4rem;
}

.blog-meta time {
  font-variant-numeric: tabular-nums;
}

/* Dotted-leader meta, like a table of contents: the chip, a dotted run,
   the date. */
.blog-leader {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--ink-soft);
}

.blog-leader i {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted var(--rule);
  transform: translateY(-0.3em);
}

.blog-leader time {
  flex: none;
  font-variant-numeric: tabular-nums;
}

/* Dispatch numbers: striped display numerals in the category's ink. */
.blog-num {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.78;
  letter-spacing: -0.04em;
  color: var(--cat);
  /* the stripe mask covers the box, so pad it over the last glyph's overhang */
  padding: 0 0.05em 0.04em 0;
}

/* A title link that covers its whole print or cell. */
.blog-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ----- Riso duotone covers -----
   The photo stays untouched (it's also the og:image): CSS prints it as a
   duotone in the category's ink — grayscale, a touch of contrast, laid on
   the ink with --overprint (multiply on paper, screen on black) — on an
   offset plate of the same ink that shifts on hover. */
.blog-cover {
  --plate: 0.9rem;
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--ink);
  background: var(--cat);
  box-shadow: var(--plate) var(--plate) 0 0 var(--cat);
  isolation: isolate;
  transition: box-shadow 0.5s var(--ease-out);
}

.blog-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: var(--overprint);
}

/* A post opts out of the duotone with image_duotone: false, for a cover
   that must keep its own colors (a screenshot of the app): it prints as
   it is, framed in ink on the same plate. */
.blog-cover--plain {
  background: var(--paper);
}

.blog-cover--plain img {
  filter: none;
  mix-blend-mode: normal;
}

.blog-cover--sm {
  --plate: 0.5rem;
}

@media (hover: hover) and (pointer: fine) {
  .blog-lead:hover .blog-cover {
    --plate: 1.4rem;
  }

  .blog-cell:hover .blog-cover {
    --plate: 0.85rem;
  }

  .blog-lead:hover .blog-lead__title,
  .blog-cell:hover .blog-cell__title,
  .blog-turn__cell:hover .blog-turn__title {
    text-decoration: underline;
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.1em;
  }

  .blog-lead:hover .tk-chevrons i:nth-child(1) { animation: tk-chev-1 1s linear infinite; }
  .blog-lead:hover .tk-chevrons i:nth-child(2) { animation: tk-chev-2 1s linear infinite; }
  .blog-lead:hover .tk-chevrons i:nth-child(3) { animation: tk-chev-3 1s linear infinite; }
}

/* Display type is set tight; give the word spaces back. */
.blog-masthead span,
.blog-lead__title,
.blog-cell__title,
.blog-article__title,
.blog-turn__title,
.blog-cta__title,
.blog-prose :is(h2, h3, blockquote) {
  word-spacing: 0.1em;
}

/* =========================================================================
   The index — masthead, HUD row, the lead print, the ruled grid, pages
   ========================================================================= */
.blog-head {
  margin-inline: var(--frame);
  padding: calc(var(--pad) * 1.5) var(--pad) calc(var(--pad) * 0.7);
}

.blog-head__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin-bottom: calc(var(--pad) * 0.9);
}

/* The masthead spans the frame (a [data-fit] box: art-kit.js sets --fit;
   the fallback is close to Review Black's fit, so there's no jump), in ink
   on a misregistered fluoro-pink plate, like the logo mark. */
.blog-masthead {
  --fit: calc((100vw - 2 * var(--frame) - 2 * var(--pad)) * 0.156);
  margin: 0;
  color: var(--ink);
}

.blog-masthead span {
  display: block;
  width: max-content;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fit);
  line-height: 0.84;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-shadow: 0.03em 0.03em 0 var(--ink-3);
}

/* The HUD row: the count, the categories' ink key, the press clock. */
.blog-hud {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-inline: var(--frame);
}

.blog-hud > * {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  min-height: 3.6rem;
  padding: 0.75rem var(--pad);
  border-left: 1px solid var(--rule);
}

.blog-hud > :first-child {
  border-left: 0;
}

.blog-hud__count b,
.blog-hud__clock b {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.blog-hud__key li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.blog-hud__clock {
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ----- The lead print: page 1's newest dispatch ----- */
.blog-lead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  margin-inline: var(--frame);
}

/* The cover on a dot-screen field, like the homepage's screens. */
.blog-lead__media {
  display: grid;
  place-items: center;
  padding: calc(var(--pad) * 1.5) calc(var(--pad) * 1.4) calc(var(--pad) * 1.5 + 0.9rem);
  border-right: 1px solid var(--rule);
  background-image: radial-gradient(circle, var(--ink-faint) 1.1px, transparent 1.4px);
  background-size: 12px 12px;
}

.blog-lead__media .blog-cover {
  width: 100%;
}

.blog-lead__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: calc(var(--pad) * 1.4) var(--pad);
}

.blog-lead__index {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}

.blog-lead__num {
  font-size: clamp(5rem, 9vw, 9.5rem);
}

.blog-lead__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 3.4vw, 3.6rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.blog-lead__desc {
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.blog-lead__more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 0.5rem;
}

/* ----- The ruled grid: cells split by rules, not cards -----
   Every cell rules its left and top edge; the ones on the frame side and
   in the first row drop theirs, per column count. */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-inline: var(--frame);
}

.blog-cell,
.blog-fill {
  border-left: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}

.blog-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: var(--pad) var(--pad) calc(var(--pad) * 1.3);
}

.blog-cell__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1.1rem;
  margin-bottom: 0.6rem;
}

.blog-cell__num {
  font-size: clamp(3.4rem, 5.2vw, 5.25rem);
}

.blog-cell__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 1.9vw, 1.8rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.blog-cell__desc {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-soft);
  /* two lines keep the rows even, whatever the excerpt */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* A short last row fills with a dot screen (one class per column count:
   blog-fill--<columns>-<empty cells>). */
.blog-fill {
  display: none;
  background-image: radial-gradient(circle, var(--ink-faint) 1.1px, transparent 1.4px);
  background-size: 12px 12px;
}

@media (min-width: 1101px) {
  .blog-grid > :nth-child(3n + 1) {
    border-left: 0;
  }

  .blog-grid > :nth-child(-n + 3) {
    border-top: 0;
  }

  .blog-fill--3-1 {
    display: block;
  }

  .blog-fill--3-2 {
    display: block;
    grid-column: span 2;
  }
}

/* ----- Pages: a ruled row of boxed chips (.tk-boxes) ----- */
.blog-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-inline: var(--frame);
  padding: calc(var(--pad) * 1.1) var(--pad);
}

.blog-pages b {
  font-weight: 600;
}

.blog-pages li > * {
  display: grid;
  place-items: center;
  min-width: 3rem;
  height: 2.75rem;
  padding-inline: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  font-variant-numeric: tabular-nums;
}

.blog-pages a:hover {
  background: var(--ink-faint);
}

.blog-pages [aria-current] {
  background: var(--ink);
  color: var(--paper);
}

.blog-pages .is-off {
  color: var(--ink-soft);
  opacity: 0.45;
}

/* =========================================================================
   The article — a ruled header, then the body set for long reading
   ========================================================================= */
.blog-article__head,
.blog-article__body {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
  gap: var(--pad);
  margin-inline: var(--frame);
  padding: calc(var(--pad) * 1.8) var(--pad);
}

.blog-article__head {
  padding-bottom: calc(var(--pad) * 1.5);
}

.blog-article__rail {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.blog-article__body > .blog-article__rail {
  position: sticky;
  top: calc(var(--nav-h) + var(--pad));
  align-self: start;
}

.blog-article__main {
  min-width: 0;
}

.blog-article__title {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.4vw, 5.75rem);
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  text-wrap: balance;
}

.blog-article__dek {
  max-width: 52ch;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* The byline under the dek: the author's avatar beside "Filed by" and the
   name. A linked name (author_url) covers the whole byline (.blog-link),
   avatar included. */
.blog-byline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 2rem;
}

/* The avatar is a figure, not a cover: a duotone would sink a face this
   small, so the photo prints in plain black and white, framed in ink on
   the category's plate like the prose's figures. The plate shifts on
   hover, like a cover's. The file itself is a small black-and-white
   square (160px, the 44px avatar at over 3×), light for the page; the
   filter keeps any author's photo black and white all the same. */
.blog-avatar {
  --plate: 0.3rem;
  flex: none;
  width: 2.75rem;
  aspect-ratio: 1;
  border: 1px solid var(--ink);
  box-shadow: var(--plate) var(--plate) 0 0 var(--cat);
  transition: box-shadow 0.5s var(--ease-out);
}

.blog-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}

.blog-byline__who {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  color: var(--ink-soft);
}

.blog-byline__name {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

a.blog-byline__name {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

a.blog-byline__name:hover {
  color: var(--ink-4);
}

@media (hover: hover) and (pointer: fine) {
  .blog-byline:has(a:hover) .blog-avatar {
    --plate: 0.5rem;
  }
}

.blog-cover--article {
  max-width: 60rem;
  margin-bottom: calc(var(--pad) * 1.5 + 0.9rem);
}

/* ----- The prose: mono, tuned for long reading ----- */
.blog-prose {
  max-width: 68ch;
  font-size: 1.05rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.blog-prose > :first-child {
  margin-top: 0;
}

.blog-prose :is(p, ul, ol, table, figure, pre, blockquote) {
  margin: 0 0 1.15em;
}

.blog-prose h2,
.blog-prose h3 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

.blog-prose h2 {
  margin: 2.1em 0 0.65em;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  line-height: 0.95;
}

.blog-prose h3 {
  margin: 1.8em 0 0.55em;
  font-size: 1.25rem;
  line-height: 1;
}

.blog-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

.blog-prose a:hover {
  color: var(--ink-4);
}

.blog-prose strong {
  font-weight: 700;
}

/* > markers, the misregistered category ink printed under them. */
.blog-prose ul,
.blog-prose ol {
  padding: 0;
  list-style: none;
}

.blog-prose li {
  position: relative;
  margin-bottom: 0.45em;
  padding-left: 1.9em;
}

.blog-prose ul > li::before {
  content: '>';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--ink);
  text-shadow: 0.09em 0.09em 0 var(--cat, var(--ink-3));
}

.blog-prose ol {
  counter-reset: blog-list;
}

.blog-prose ol > li {
  counter-increment: blog-list;
}

.blog-prose ol > li::before {
  content: counter(blog-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  font-size: 0.8em;
  font-weight: 600;
  line-height: 2.06;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.blog-prose li > :is(ul, ol) {
  margin: 0.45em 0 0;
}

/* The highlighter: a sun-ink band, its text black or white by the fill. */
.blog-prose mark {
  --fill: var(--ink-2);
  padding-inline: 0.12em;
  background: linear-gradient(transparent 8%, var(--fill) 8%, var(--fill) 94%, transparent 94%);
  color: var(--on-ink);
  color: oklch(from var(--fill) clamp(0, calc((0.6 - l) * 100000), 1) 0 0);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Pull quotes: display type, the fluoro-pink mark hanging in the margin
   so the text keeps its edge. */
.blog-prose blockquote {
  margin: 1.9em 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.blog-prose blockquote > :last-child {
  margin-bottom: 0;
}

.blog-prose blockquote > p:first-child::before {
  content: '“';
  display: inline-block;
  width: 0.58em;
  margin-left: -0.58em;
  color: var(--ink-3);
}

/* An attribution line after the quote reads as a HUD label. */
.blog-prose blockquote > p + p:last-child {
  margin-top: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Code: inline it's tinted (the body is mono already); blocks are ink
   panels on the category's plate. */
.blog-prose code {
  padding: 0.08em 0.32em;
  background: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.blog-prose pre {
  margin-block: 1.6em calc(1.6em + 0.6rem);
  padding: 1.1rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.86rem;
  line-height: 1.6;
  overflow-x: auto;
  box-shadow: 0.6rem 0.6rem 0 0 var(--cat, var(--ink-1));
}

.blog-prose pre code {
  padding: 0;
  background: none;
  font-size: inherit;
}

/* A prompt to the AI trading agent ({% prompt %}, eleventy.config.js): the
   user's side of a chat, as the homepage's agent demo draws it — an ink
   block with paper type on the right, under its sender — here on the
   category's plate, like the prose's code. Its lines wrap greedily, as a
   chat's do, so they fill the block (a box can't shrink to balanced
   lines). */
.blog-prose .blog-prompt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  margin: 1.2em 0 calc(1.6em + 0.45rem);
}

/* A run of prompts is one turn of the chat: the sender once, the messages
   closer (their margins collapse to the plate plus a little air). */
.blog-prose .blog-prompt + .blog-prompt {
  margin-top: -1.15em;
}

.blog-prose .blog-prompt + .blog-prompt .blog-prompt__who {
  display: none;
}

.blog-prose .blog-prompt__who {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-prose .blog-prompt__text {
  max-width: min(28rem, 88%);
  margin: 0;
  padding: 0.8rem 1.05rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.95rem;
  line-height: 1.55;
  box-shadow: 0.45rem 0.45rem 0 0 var(--cat, var(--ink-1));
}

/* Tables: ruled, HUD heads, tabular numbers. */
.blog-prose table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.blog-prose th {
  padding: 0.75rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
}

.blog-prose td {
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.blog-prose tr:last-child td {
  border-bottom: 0;
}

/* Figures: framed in ink on the category's plate, captioned as a HUD
   label. */
.blog-prose img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--ink);
}

.blog-prose figure img {
  width: 100%;
  box-shadow: 0.6rem 0.6rem 0 0 var(--cat, var(--ink-1));
}

.blog-prose figcaption {
  margin-top: calc(0.6rem + 0.8rem);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-prose hr {
  height: 1px;
  margin: 2.4em 0;
  border: 0;
  background: var(--rule);
}

/* =========================================================================
   The end band — the previous and next dispatch, a swatch strip, the CTA
   ========================================================================= */
.blog-turn {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-inline: var(--frame);
}

.blog-turn__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: calc(var(--pad) * 1.2) var(--pad) calc(var(--pad) * 1.4);
}

.blog-turn__cell--next {
  border-left: 1px solid var(--rule);
  text-align: right;
}

.blog-turn__cell--next .blog-leader {
  flex-direction: row-reverse;
}

.blog-turn__cell--edge {
  justify-content: center;
}

.blog-turn__cell--next.blog-turn__cell--edge {
  align-items: flex-end;
}

.blog-turn__cell--edge .tk-textlink {
  align-self: flex-start;
}

.blog-turn__cell--next.blog-turn__cell--edge .tk-textlink {
  align-self: flex-end;
}

.blog-turn__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.3vw, 2.2rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  text-wrap: balance;
}

/* A thin print strip of the post's ink and its neighbours. */
.blog-strip {
  display: grid;
  grid-template-columns: 30fr 12fr 24fr 12fr 12fr 10fr;
  height: 1.75rem;
  margin-inline: var(--frame);
}

.blog-strip .tk-swatch--stripes {
  --tile: 1.25rem;
}

.blog-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem 2rem;
  margin-inline: var(--frame);
  padding: calc(var(--pad) * 1.6) var(--pad);
}

.blog-cta__copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.blog-cta__copy > .tk-label {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
}

.blog-cta__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.6rem, 5.6vw, 5rem);
  line-height: 0.84;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.blog-cta__title em {
  padding-right: 0.08em;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (min-width: 641px) and (max-width: 1100px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-grid > :nth-child(2n + 1) {
    border-left: 0;
  }

  .blog-grid > :nth-child(-n + 2) {
    border-top: 0;
  }

  .blog-fill--2-1 {
    display: block;
  }
}

@media (max-width: 1100px) {
  .blog-hud {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .blog-hud__clock {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 860px) {
  .blog-hud {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-hud > * {
    min-height: 0;
    border-left: 0;
  }

  .blog-hud > * + * {
    border-top: 1px solid var(--rule);
  }

  .blog-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-lead__media {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .blog-article__head,
  .blog-article__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .blog-article__rail {
    flex-direction: row;
    align-items: center;
  }

  .blog-article__body > .blog-article__rail {
    position: static;
  }
}

@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-grid > * {
    border-left: 0;
  }

  .blog-grid > :first-child {
    border-top: 0;
  }

  .blog-turn {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-turn__cell--next {
    border-left: 0;
    border-top: 1px solid var(--rule);
    text-align: left;
  }

  .blog-turn__cell--next .blog-leader {
    flex-direction: row;
  }

  .blog-turn__cell--next.blog-turn__cell--edge,
  .blog-turn__cell--next.blog-turn__cell--edge .tk-textlink {
    align-items: flex-start;
    align-self: flex-start;
  }

  .blog-cta .tk-btn {
    width: 100%;
  }
}
