/* Reset + shell + the tile wall. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--accent-text);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

/* The UA stylesheet's [hidden] rule does not reliably apply to SVG elements, and the
   theme toggle keeps all three icons in the DOM. */
svg[hidden] {
  display: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  z-index: 20;
}

.skip:focus {
  left: var(--space-4);
  top: var(--space-4);
}

/* ------------------------------------------------------------------ chips */

/*
 * Tags are plain hashtag text, not lozenges. The pill cost 32-53px per tag and 24px of row
 * height — and two of the eight tiles on the wall were dropping tags past the fade. As text the
 * same 288px holds seven. The `#` carries the "this is a tag" reading, so the shape is not needed.
 *
 * `text-transform: uppercase` is gone with it: tag names are authored as `Lean`, `Expo`, `AI`,
 * and uppercasing them was both heavier and wrong in a hashtag (#LEAN).
 */
.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
  /* Keeps the tap target taller than the visual line without drawing anything. */
  padding-block: 3px;
}

.chip--link::before {
  content: '#';
  color: var(--ink-faint);
  margin-inline-end: 1px;
}

/* Underline rather than the old yellow fill: a quiet row wants a quiet hover. */
.chip--link:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* The one chip that has to stay a chip: a paid placement must read as a label, not as a tag. */
.chip--ad {
  color: var(--ink-faint);
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1px var(--space-2);
}

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 1px var(--space-2);
  margin-inline-end: var(--space-2);
  vertical-align: 1px;
}

/* ------------------------------------------------------------------- wall */

/* Full-bleed, gapless, uniform: every tile is the same square, separated only by a
   hairline. `auto-fill` decides the column count from the viewport. */
.wall-wrap {
  max-width: none;
  padding: 0;
}

.wall {
  display: grid;
  /* A plain length, not min(var(--wall-min), 100%): a percentage inside minmax() made
     Chrome treat the track minimum as `auto`, and auto-fill then packed columns from
     the items' min-content width (three 130px columns on a 390px screen). */
  grid-template-columns: repeat(auto-fill, minmax(var(--wall-min), 1fr));
  gap: 0;
  /* `stretch` (the default) makes each item fill the row, and the row is sized by the
     tallest content — which silently overrides aspect-ratio and produced ragged rows.
     With `start`, every tile is exactly as tall as it is wide. */
  align-items: start;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  aspect-ratio: var(--phi) / 1;
  /* Children respond to the tile's own box, not the viewport's. `size` rather than `inline-size`
     because the standfirst steps below are height queries — and the tile's height is fixed by its
     aspect ratio, so containing its size costs nothing. */
  container-type: size;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
  /* Right + bottom only: the outer edges of the grid land on the page edge, which
     reads as a frame instead of a doubled border. */
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.12s var(--ease);
}

/* A flush grid cannot lift on hover without overlapping its neighbours. */
.tile:hover {
  background: var(--surface-sunk);
}

/* Stretched link: the whole tile opens the article, except the tag chips, which sit
   above it and open the tag page instead. */
.tile__link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.tile__link {
  color: inherit;
}

.tile__tags {
  position: relative;
  z-index: 2;
  display: flex;
  /* One line, always. A tile's height is fixed by its aspect-ratio, so a second row of
     chips pushed the meta row out of the tile (clipped, since the tile hides overflow).
     Chips past the edge are cut rather than wrapped; the fade marks the cut as deliberate. */
  flex-wrap: nowrap;
  overflow: hidden;
  mask-image: linear-gradient(to right, #000 calc(100% - 1.25rem), transparent);
  /* Never squeezed: as a flex child of a fixed-height tile this row was compressed to half
     its height on phones, which rendered the chips as a smeared strip. */
  flex: 0 0 auto;
  /* Column gap now carries the separation the pill's own padding used to provide. */
  gap: 3px var(--space-2);
}

.tile__body {
  display: flex;
  flex-direction: column;
  /* A landscape golden tile is short: at 288px wide it is 178px tall, so the content
     budget is roughly 140px — a tag row, the title, and one meta line. There is no room
     for a dek, and a half-clipped standfirst looks broken, so the tile carries
     tags / title / date only. */
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4) var(--space-4);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

/* Thumbnail beside the headline rather than above it: the tile is portrait, so a small
   left image costs the title much less width than a full-bleed cover costs it height. */
.tile__main {
  /* Cover left, words right. The row is as tall as its content, so a short stack does not
     stretch the cover into a letterbox. */
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  flex: 1 1 auto;
  min-height: 0;
}

.tile__stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1 1 auto;
  /* min-width, or the title's min-content width props the column open. */
  min-width: 0;
  min-height: 0;
}

.tile__thumb {
  display: block;
  flex: 0 0 auto;
  /* The left column: square and square-cornered, 30% wide. Its height is its width, so it never
     eats into the text column's room. */
  width: 30%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface-sunk);
  transition: opacity 0.12s var(--ease);
}

.tile:hover .tile__thumb {
  opacity: 0.9;
}

.tile__title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--step-1);
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.012em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  /* Two lines now, not three: the standfirst takes the third. */
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}

.tile--text .tile__title {
  /* Bigger type, but the same two-line budget as every other tile: the height is fixed by the
     aspect ratio, so the line counts cannot differ or the byline gets pushed out. */
  font-size: var(--step-2);
}

.tile__source {
  /* Reads as provenance, not as a tag: no chip, no border. */
  color: var(--ink-soft);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*
 * Up to three lines of standfirst — but the `max-height` is what makes that safe. A -webkit-box
 * clamp constrains paint only, never layout height, so it reports its *unclamped* content height to
 * the flex algorithm as its flex base. That is what cut the glyphs in half before: with the tile
 * over budget the algorithm picked the standfirst as the thing to shrink and collapsed it to 14.9px
 * for a 19px line. A definite cap makes the flex base honest (never more than three lines), and
 * flex-grow: 0 keeps it out of the shrinking business entirely.
 */
.tile__dek {
  margin: 0;
  font-size: var(--step--1);
  line-height: 1.45;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
  /* The definite cap is what keeps the clamp honest: a clamp box's layout height is its unclamped
     content height, and that is the number the flex algorithm used to squeeze the standfirst to
     14.9px for a 19px line. With max-height the flex base can never exceed the lines we asked for. */
  max-height: calc(1 * 1.45em);
  flex: 0 0 auto;
}

/*
 * "Say more when there is room." A tile's height is fixed by its aspect ratio, so a container query
 * on the tile is a reliable stand-in for "would a second / third standfirst line fit". Thresholds are
 * measured, not guessed: two lines need ~179px of tile height next to a two-line title, three need
 * ~197px. Anything shorter and the date starts sliding into the tile's bottom padding.
 */
@container (min-height: 184px) {
  .tile__dek {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    max-height: calc(2 * 1.45em);
  }
}

@container (min-height: 196px) {
  .tile__dek {
    -webkit-line-clamp: 3;
    line-clamp: 3;
    max-height: calc(3 * 1.45em);
  }
}

.tile__meta {
  /* No margin-top: auto any more. It used to pin the byline to the tile's bottom, which left a
     band of empty space between the standfirst and it; in a stack next to the cover, the text
     block reads better anchored to the top. */
  margin-top: 0;
  /*
   * Stacked, not one wrapping row: a publication, an author and a date cannot share a line at
   * 288px, and the tile clips whatever a wrapped row pushes past its bottom edge — which is how
   * the date used to disappear. Two rows that each clip on their own are predictable.
   */
  display: flex;
  flex-direction: column;
  /* Keeps its height for the same reason the tag row does. */
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  line-height: 1.35;
  color: var(--ink-faint);
}

.tile__meta p {
  margin: 0;
  /* Ellipsis rather than a hard cut: a clipped publication name should read as unfinished. */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* featured keeps meaning something without changing the tile's size. */
.tile--featured .tile__meta {
  color: var(--accent-text);
}

/* --------------------------------------------------------------- hero tile */

/* The hero is an ordinary tile: the whole point of the wall is that everything is
   the same size. */
.tile--hero {
  padding: var(--space-5);
  background: var(--hero-bg);
  color: var(--hero-ink);
  /* The wall stacks tiles in a column; the hero lays its own contents out in a row: wordmark
     on the left, controls stacked on the right. They are centred against each other. */
  flex-direction: row;
  align-items: center;
  gap: var(--space-4);
}

.tile--hero:hover {
  background: var(--hero-bg);
}

.hero__brand {
  /* An h1 now (the wordmark is the page's heading), so the default margin goes, and the link
     inside it adds no box of its own — the logo still scales against this element's height. */
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
}

.hero__brand > a {
  display: flex;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
}

/* The wordmark replaced a 40px square mark plus a text label, and carries its own lettering, so
   it is set far larger: it is the one piece of branding on the page. It scales to whichever
   runs out first, width or height — a fixed width clipped the artwork on short tiles. */
.hero__logo {
  display: block;
  max-width: min(100%, 340px);
  max-height: 100%;
  width: auto;
  height: auto;
  /* The wordmark is drawn on white: its navy outline and "Geek" measure 1.24:1 against the
     dark theme's surface, so on a dark tile the artwork half-dissolves. A white plate of its
     own fixes that, and disappears completely on the light theme, where the tile is already
     white. box-sizing is border-box globally, so the padding comes out of the max-height
     rather than growing the box past the tile. */
  background: #fff;
  border-radius: var(--radius);
  padding: 10px;
}

.hero__actions {
  margin-inline-start: auto;
  /* Bottom-aligned against the tile's content box, not centred: the corner is where an icon
     stack belongs, and it leaves the wordmark its own line. */
  align-self: flex-end;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.hero__icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--hero-ink);
  border-radius: var(--radius-sm);
  /* No border: bare glyphs, and the hover fill is what tells you they are buttons. */
  border: none;
  background: none;
  cursor: pointer;
}

.hero__icon:hover {
  /* Inverted rather than accented: these are plain glyphs on the tile's own surface. */
  color: var(--hero-bg);
  background: var(--hero-ink);
}

/*
 * The hero is a fixed navy surface in both themes, which is exactly the colour the readable
 * accent resolves to in the light theme — so the global `a:hover` / focus ring turned the
 * site name navy on navy. On this one surface the accent has to be the yellow, which is what
 * the dark theme does everywhere anyway.
 */
/* --------------------------------------------------------------- ad tile */

.tile--ad {
  background: var(--surface);
}

.tile--ad .tile__body {
  padding-top: var(--space-2);
}

/* --------------------------------------------------------------- sentinel */

.wall-sentinel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-7) 0 var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.wall-sentinel[hidden] {
  display: none;
}

.wall-sentinel__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--accent-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wall-sentinel__spinner {
    animation: none;
  }
}

.wall-sentinel__more {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
}

/* JS upgrades this into an infinite scroll, so the manual link steps aside. */
.wall-sentinel[data-live] .wall-sentinel__more {
  display: none;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-4) var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.pager a {
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.to-top {
  display: block;
  margin: 0 auto var(--space-6);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-soft);
  background: var(--surface);
}

.empty {
  padding: var(--space-7) var(--space-4);
  text-align: center;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}

/* ------------------------------------------------------------- list pages */

.list-head {
  padding: var(--space-5) var(--space-4) var(--space-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-5);
}

.list-head h1 {
  font-size: var(--step-3);
  letter-spacing: -0.02em;
}

.list-head__sub {
  margin-top: var(--space-2);
  color: var(--ink-soft);
}

.list-head__back {
  display: inline-block;
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-faint);
}

/* ------------------------------------------------------------------ share */

/*
 * The share dialog: a centred card, because it holds something to read and select — not a
 * full-bleed layer like the lightbox. Native <dialog>, so Esc, focus and the scroll lock behind
 * it come for free.
 */
.share {
  width: min(33rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-2);
  overflow: auto;
}

.share::backdrop {
  background: color-mix(in oklab, #000 55%, transparent);
}

.share__panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

.share__head {
  display: flex;
  align-items: start;
  gap: var(--space-3);
}

.share__title {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 650;
  line-height: 1.25;
}

.share__close {
  margin-inline-start: auto;
  padding: 0 var(--space-2);
  font-size: var(--step-0);
  line-height: 1.4;
  color: var(--ink-faint);
  cursor: pointer;
}

.share__close:hover {
  color: var(--ink);
}

.share__hint {
  margin: 0;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.share__text {
  width: 100%;
  min-height: 7.5rem;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-sunk);
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  line-height: 1.55;
  /* Selectable and scrollable, but the reader may also trim it before posting. */
  resize: vertical;
}

.share__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.share__copy {
  padding: 3px var(--space-4);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  cursor: pointer;
}

.share__copy:hover {
  border-color: var(--ink);
}

.share__targets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--hairline);
}

/* --------------------------------------------------------------- lightbox */

/*
 * medium-zoom draws the overlay and animates the picture (see site.js); all it needs from us is
 * the page to hold still while an image is open. It marks the container with this class, so the
 * lock is pure CSS — no JS, no listener that can drift out of sync with the library's state.
 *
 * Without it a wheel or a finger scrolls the article underneath, which the library reads as "the
 * reader moved on" and answers by closing. (It also hides the scrollbar, which is why the page
 * does not jump when the overlay opens.)
 */
body.medium-zoom--opened {
  overflow: hidden;
}

/* ---------------------------------------------------------------- article */

.article {
  max-width: var(--article-measure);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-8);
}

.crumb {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-faint);
  margin-bottom: var(--space-4);
}

.article__tags {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.article__title {
  font-size: var(--step-4);
  line-height: 1.16;
  letter-spacing: -0.024em;
  font-weight: 700;
  text-wrap: balance;
}

.article__dek {
  margin-top: var(--space-3);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
}

.article__meta {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-faint);
}

.article__author,
/* Distinct from .article__source below: that one is the credit block after the body
   and carries a top margin, so reusing the name pushed this link out of the row. */
.article__meta-source {
  color: var(--ink-soft);
}

.article__cover {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
  border: 1px solid var(--line);
}

.article__tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-4);
}

/* Quiet utility controls. The language switcher and the copy menu share one shape so the
   row reads as a single set of tools rather than two unrelated widgets. */
.tool {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  line-height: 1.4;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 2px var(--space-3);
  cursor: pointer;
}

.tool:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}


.copy {
  position: relative;
}

/*
 * The summary wears the same `.tool` pill as the language <select>, but a native select also
 * reserves room for its own dropdown arrow — without one here the copy control reads as a
 * different kind of thing, which is exactly how it looked next to the switcher.
 */
.copy > summary {
  /* `flex`, not `inline-flex`: as an inline-level box the summary sits on a text baseline
     inside <details>, and the line box adds ~3.5px of descender space under it. That made
     the details taller than the pill it contains, so centring the details in the tools row
     left the visible pill ~1.3px lower than the language <select> beside it. */
  display: flex;
  align-items: center;
  gap: 0.45em;
  list-style: none;
}

.tool__chevron {
  flex: 0 0 auto;
  transition: transform 0.12s var(--ease);
}

.copy[open] .tool__chevron {
  transform: rotate(180deg);
}

.copy > summary::-webkit-details-marker {
  display: none;
}

.copy[open] > summary {
  border-color: var(--accent-text);
  color: var(--accent-text);
}

.copy__menu {
  position: absolute;
  z-index: 3;
  top: calc(100% + 4px);
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  min-width: 9rem;
  padding: var(--space-1);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
}

/* Buttons *and* links: the copy menu holds <button data-copy> actions, the share menu holds
   <a href> intents. Styling only `button` left the share entries at browser defaults — 16px in
   the page font, no padding — which read as a different control from the copy menu beside it. */
.copy__menu :is(button, a) {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  text-align: start;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
}

.copy__menu :is(button, a):hover {
  background: var(--surface-sunk);
  color: var(--accent-text);
}

/* Where you already are. The native picker this replaced highlighted its current value too. */
.copy__menu [aria-current] {
  color: var(--ink-faint);
}

.article__source {
  margin-top: var(--space-6);
  display: flex;
  align-items: baseline;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: var(--step--1);
  color: var(--ink-soft);
}

/* Pushed to the end of the row so it sits on the right whether or not there is a source. */
.article__home {
  margin-inline-start: auto;
}

.article--error {
  text-align: center;
  padding-top: var(--space-8);
}

/* ---------------------------------------------------------------- notices */

.notice {
  margin-bottom: var(--space-4);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.notice--preview {
  border-color: var(--accent-text);
  color: var(--accent-text);
}

.notice--error {
  border-color: var(--danger);
  color: var(--danger);
  white-space: pre-wrap;
}

.notice--ok {
  border-color: var(--ok);
  color: var(--ok);
}

/* ----------------------------------------------------------------- footer */

.site-footer {
  max-width: none;
  margin: var(--space-6) 0 0;
  padding: var(--space-5) var(--space-4) var(--space-6);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  /* One line of notes, so the row centres it; text-align keeps a wrapped second line
     centred too instead of left-aligning it under a centred block. */
  justify-content: center;
  text-align: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--ink-faint);
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 620px) {
  .tile__body {
    padding: 6px 9px 8px;
    /* 2px, not 3px: at 195×121 the content (tags, two-line title, byline, date) lands 1.3px past
       the bottom edge at 3px. Nothing is visibly cut, but there is no headroom left at all. */
    gap: 2px;
  }

  .tile__main {
    gap: 6px;
  }

  /* Matches the body's own gap: at 195×121 a three-line title plus an 8px stack gap puts the date
     3.3px past the bottom edge. */
  .tile__stack {
    gap: 2px;
  }

  /* Compact chips: at ~195px wide the row still holds three or four before it fades. */
  .tile__tags {
    gap: 2px 6px;
  }

  /* No horizontal padding any more — the pill's is gone, and re-adding it here would undo the
     whole point on the device where space matters most. 10px rather than 9: without the fill and
     the uppercase, the row reads lighter, so it can afford to be bigger. */
  .tile__tags .chip {
    font-size: 10px;
    /* 10px up from 9 grew the row by ~1px and pushed the date 0.9px past the 121px-tall tile. */
    padding-block: 2px;
  }

  .tile__thumb {
    width: 22%;
    max-width: 44px;
  }

  .tile__title {
    font-size: var(--step-0);
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }

  /* The desktop bump above (`--step-2`) would be three lines of the biggest type here, which does
     not fit; on a phone a text tile uses the same size as every other tile. */
  .tile--text .tile__title {
    font-size: var(--step-0);
  }

  .tile__meta {
    font-size: 10px;
    line-height: 1.25;
    gap: 2px;
  }

  /* A date plus a reading time does not fit on one line at this width. */
  .tile__meta-read {
    display: none;
  }



  /* A 195px square cannot hold a wrapping brand name plus three full language names. */
  .tile--hero {
    padding: var(--space-3);
    gap: var(--space-2);
  }

  /* 195×121 has no room for a standfirst: tags, a two-line title, byline and date already fill it. */
  .tile__dek {
    display: none;
  }

  /* Still the largest thing in the tile, but it can no longer be handed a width it has no room
     for: only the cap shrinks, the height limit stays in charge. */
  .hero__logo {
    max-width: min(100%, 260px);
  }



  .hero__icon {
    width: 26px;
    height: 26px;
  }
}
