/*
 * thing-theme v2: a black-and-white blog in Inter, on one shared grid.
 * Inter Tight sets headings, Inter everything else. Colour belongs to
 * Jamie's other sites only (the Weekly Thing, Another Thing, Thingy).
 * Tokens (custom properties) live in tokens.css, synced from the design
 * workspace; partials/asset.html bundles tokens.css + thing.css into one
 * minified, fingerprinted stylesheet. Override at :root in micro.blog
 * custom CSS to retune.
 */

/* Fonts: self-hosted variable fonts (SIL OFL, licences beside them).
   Paths are relative to the bundle at /assets/css/. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-wght-italic.woff2") format("woff2-variations"), url("../fonts/inter-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-tight-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-tight-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

html { background: var(--color-bg); }

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-feature-settings: "kern", "liga", "calt";
  overflow-wrap: break-word;
}

::selection { background: var(--color-selection); color: var(--color-text); }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: 1.1;
  letter-spacing: var(--tracking-heading);
  color: var(--color-text);
  text-wrap: balance;
}
h1 { font-size: var(--font-size-h1); line-height: 1.04; }
h2 { font-size: var(--font-size-h2); line-height: 1.15; }
h3 { font-size: var(--font-size-h3); line-height: 1.2; }
h4 { font-size: 1.1875rem; line-height: 1.25; }
h5, h6 { font-size: 1rem; line-height: 1.3; }

p { text-wrap: pretty; }

a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Links to Jamie's other sites carry that site's colour, in any post body. */
.e-content a[href*="//weekly.thingelstad.com"],
.p-summary a[href*="//weekly.thingelstad.com"] { color: var(--color-wt-text); }
.e-content a[href*="//another.thingelstad.com"],
.p-summary a[href*="//another.thingelstad.com"] { color: var(--color-at-text); }
.e-content a[href*="//thingy.thingelstad.com"],
.p-summary a[href*="//thingy.thingelstad.com"] { color: var(--color-thingy-text); }

strong, b { font-weight: var(--weight-strong); }

blockquote {
  border-left: 4px solid var(--color-quote-bar);
  padding: var(--space-1) 0 var(--space-1) 1.75rem;
  color: var(--color-quote);
}
blockquote > * + * { margin-top: 1.25rem; }
blockquote cite { display: block; margin-top: var(--space-2); font-style: normal; font-size: var(--font-size-meta); color: var(--color-text-muted); }

hr { border: 0; height: 2px; width: 48px; margin: var(--space-7) auto; background: var(--color-quote-bar); }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--color-strip);
  border-radius: 4px;
  padding: 1px 5px;
}
pre {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: var(--color-strip);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  overflow-x: auto;
  line-height: 1.55;
}
pre code { background: transparent; padding: 0; border-radius: 0; font-size: inherit; }
.highlight pre { background: var(--color-strip) !important; }

img, video { max-width: 100%; height: auto; border-radius: var(--radius-md); }
img { display: block; }
video { display: block; width: 100%; background: var(--color-strip); }
iframe { max-width: 100%; border: 0; border-radius: var(--radius-md); }
figure img { margin: 0 auto; }
figcaption, .figure__caption {
  font-size: var(--font-size-meta);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: var(--space-2) var(--space-3);
  z-index: 100;
}
.skip-link:focus { left: var(--space-3); top: var(--space-3); }

/* The grid. One frame for everything; list pages split it into the main
   column and the rail; a post's own page centres one --measure column. */
.frame {
  width: 100%;
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rail);
  column-gap: var(--col-gap);
  row-gap: var(--row-gap);
  align-items: start;
}
.cols > * { min-width: 0; }
.rail { display: flex; flex-direction: column; gap: 2.25rem; }
@media (max-width: 56.25rem) {
  .cols { grid-template-columns: minmax(0, 1fr); }
}
.content { flex: 1; padding-top: var(--space-7); padding-bottom: 4.5rem; }

/* The rail (partials/rail.html; js/rail.js fills the lists). A list the
   script couldn't fill stays hidden behind its heading and link. */
.rail__heading { font-size: var(--font-size-h3); line-height: 1.2; }
.rail__heading a { color: inherit; text-decoration: none; }
.rail__heading a:hover { text-decoration: underline; }
.rail__sub { margin-top: 2px; font-size: var(--font-size-meta); color: var(--color-text-muted); }
.rail__blurb { margin-top: 6px; font-size: var(--font-size-small); line-height: 1.5; color: var(--color-text-soft); }
.rail__more {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  margin-top: var(--space-1);
  font-size: var(--font-size-meta);
  font-weight: var(--weight-strong);
}

.rail-card--thingy {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-thingy-soft);
}
.rail-ask { margin-top: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); }
.rail-ask__input,
.rail-ask__button {
  min-height: var(--target-field);
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: var(--font-size-small);
}
.rail-ask__input { padding: 0 0.875rem; color: var(--color-text); background: var(--color-bg); }
.rail-ask__input::placeholder { color: var(--color-text-muted); opacity: 1; }
.rail-ask__button {
  font-weight: var(--weight-heading);
  color: var(--color-thingy-on);
  background: var(--color-thingy);
  cursor: pointer;
}
.rail-ask__button:hover { filter: brightness(1.06); }

.rail-list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.rail-list:empty { display: none; }
.rail-section--otd .rail-list { margin-top: 0.875rem; gap: var(--space-4); }
.rail-item__link {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--color-ink);
  text-decoration: none;
}
.rail-item__thumb {
  flex: none;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--color-strip);
}
.rail-item__text { display: flex; flex-direction: column; min-width: 0; }
.rail-item__kicker {
  font-size: var(--font-size-label);
  font-weight: var(--weight-strong);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.rail-item__title { font-size: var(--font-size-ui); line-height: 1.35; }
.rail-item__link:hover .rail-item__title { text-decoration: underline; text-underline-offset: 3px; }
.rail-section--weekly .rail-item__kicker,
.rail-section--weekly .rail__more { color: var(--color-wt-text); }
.rail-section--another .rail-item__kicker,
.rail-section--another .rail__more { color: var(--color-at-text); }

.rail-chips {
  list-style: none;
  padding: 0;
  margin-top: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.rail-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--color-strip);
  color: var(--color-ink);
  font-size: var(--font-size-meta);
  font-weight: var(--weight-strong);
  text-decoration: none;
}
.rail-chips a:hover { background: var(--color-mark); }

/* Jamie's sites: a grey strip above the header */
.sites-strip { background: var(--color-strip); font-size: var(--font-size-label); }
.sites-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-5);
  min-height: 40px;
}
.sites-strip__label { color: var(--color-text-muted); }
.sites-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
}
.sites-strip a { font-weight: var(--weight-strong); color: var(--color-ink); }
.sites-strip__item--current a { text-decoration: none; }
.sites-strip__item--weekly a { color: var(--color-wt-text); }
.sites-strip__item--another a { color: var(--color-at-text); }
.sites-strip__item--thingy a { color: var(--color-thingy-text); }

/* Header */
.site-header { padding-top: var(--space-5); }
.site-header--home { padding-top: var(--space-6); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-2);
}
/* The name takes the slack, so the nav and the Subscribe button sit right. */
.site-header__inner > .site-author { margin-right: auto; padding-right: 2rem; }
.site-author {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: center;
  column-gap: var(--space-3);
}
.site-author__photo-link { line-height: 0; }
.site-author__photo { border-radius: 50%; width: 44px; height: 44px; object-fit: cover; }
.site-author__name {
  font-family: var(--font-heading);
  font-size: var(--font-size-site-name-compact);
  font-weight: var(--weight-heading);
  line-height: 1.05;
  letter-spacing: var(--tracking-heading);
  color: var(--color-ink);
  text-decoration: none;
}
.site-author__name:hover { text-decoration: underline; }
.site-author__note {
  grid-column: 2;
  margin-top: var(--space-1);
  font-size: var(--font-size-small);
  line-height: 1.45;
  color: var(--color-text-muted);
}
.site-author__note a { color: inherit; }
.site-header--home .site-author { column-gap: var(--space-4); }
.site-header--home .site-author__photo-link { grid-row: 1 / span 2; }
.site-header--home .site-author__photo { width: 64px; height: 64px; }
.site-header--home .site-author__name { font-size: var(--font-size-site-name); align-self: end; }
.site-header--home .site-author__note { align-self: start; }

/* The links' own 12px padding is pulled back so a nav that wraps under the
   name still starts on the frame's edge. */
.site-nav__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0 calc(-1 * var(--space-3));
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  font-size: var(--font-size-ui);
  font-weight: var(--weight-strong);
}
/* gap: Jamie's Custom CSS puts an emoji in ::before, a flex item whose
   trailing space collapses. */
.site-nav__item a {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: var(--target-min);
  padding: 0 var(--space-3);
  color: var(--color-ink);
  text-decoration: none;
}
.site-nav__item:last-child a { padding-right: 0; }
.site-nav__item a:hover { text-decoration: underline; }
/* Subscribe: after the nav when the menu is short (Round 4 has four links);
   beside the name, with the nav on its own row, when it runs to seven or
   more. The nav's own Subscribe item is the phone menu's. */
.site-nav { order: 1; }
.site-header__subscribe { order: 2; }
.site-header__inner:has(.site-nav__item:nth-child(8)) .site-header__subscribe { order: 1; }
.site-header__inner:has(.site-nav__item:nth-child(8)) .site-nav { order: 2; flex: 1 1 100%; }
.site-nav__item--subscribe { display: none; }
.site-header__subscribe,
.site-nav__item.site-nav__item--subscribe a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-wt);
  color: var(--color-on-fill);
  font-size: var(--font-size-ui);
  font-weight: var(--weight-strong);
  text-decoration: none;
}
.site-header__subscribe:hover { text-decoration: underline; }
.site-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: var(--target-min);
  height: var(--target-min);
  margin-right: calc(-1 * var(--space-2));
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-ink);
  cursor: pointer;
}

/* The stream */
.posts { display: flex; flex-direction: column; gap: var(--stack-posts); }

.post-card { display: flex; flex-direction: column; }
.post-card .post-meta { font-size: var(--font-size-meta); }
.post-card__content { margin-top: var(--space-2); }
.post-card__content > * + *,
.post__content > * + * { margin-top: 1.25rem; }
.post-card--note .post-card__content { font-size: var(--font-size-lead); line-height: 1.5; }
.post-card--note .post-card__content blockquote { font-size: 0.87em; }
.post-card--brief .post-card__content { font-size: var(--font-size-brief); line-height: 1.35; }
.post-card__title {
  margin-top: 0.375rem;
  font-size: var(--font-size-title);
  line-height: 1.1;
}
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.post-card--titled .post-card__content,
.post-card__summary { margin-top: var(--space-4); }
.post-card__more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  margin-top: var(--space-3);
  font-size: var(--font-size-ui);
  font-weight: var(--weight-strong);
}

/* Date lines */
.post-meta {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.4em;
  align-items: baseline;
}
.post-meta a { color: inherit; }
.post-meta .post-date { text-decoration: none; }
.post-meta .post-date:hover { text-decoration: underline; }

.reply-to { color: var(--color-text-muted); font-size: var(--font-size-meta); margin-bottom: var(--space-1); }

/* A post's own page: one centred column */
.post--single {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
}
.post__header { display: flex; flex-direction: column; gap: 0.625rem; }
.post__title { font-size: var(--font-size-h1); }
.post__content { margin-top: 2.25rem; }
.post--titleless .post__content { margin-top: 0; }
.post__content > * + * { margin-top: var(--space-5); }
.post__content > blockquote,
.post__content > * + blockquote,
.post__content > blockquote + * { margin-top: var(--space-6); }
.post__content h2 { margin-top: var(--space-7); }
.post__content h3 { margin-top: 2.25rem; }
.post__content h4 { margin-top: var(--space-6); }
.post__content h2 + *, .post__content h3 + *, .post__content h4 + * { margin-top: var(--space-4); }
.post__content ul, .post__content ol,
.post-card__content ul, .post-card__content ol { padding-left: 1.75rem; }
.post__content li + li,
.post-card__content li + li { margin-top: 0.625rem; }

.post--note .post__content { font-size: var(--font-size-lead); line-height: 1.5; }
.post--brief .post__content { font-size: var(--font-size-title); line-height: 1.25; letter-spacing: -0.01em; }

.post__footer {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}
.post__filed a { color: var(--color-ink); }

/* The button row: Kudos, reply plug-ins, Explore with Thingy */
.reply-buttons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--font-size-small);
  font-weight: var(--weight-strong);
}
.reply-buttons:empty { display: none; }
.reply-buttons button,
.reply-buttons a {
  min-height: var(--target-min);
  padding: 0 1.125rem;
  border-radius: var(--radius-md);
  border: 0;
  background: var(--color-strip);
  color: var(--color-ink);
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  white-space: nowrap;
}
.reply-buttons button:hover,
.reply-buttons a:hover { background: var(--color-mark); }
.reply-buttons a.explore-with-thingy { background: var(--color-thingy-soft); color: var(--color-thingy-text); }
.reply-buttons a.explore-with-thingy:hover { text-decoration: underline; }
/* Tinylytics marks a Kudos already given */
.tinylytics_kudos.did_select,
.did_select {
  background: var(--color-mark);
  color: var(--color-ink);
  cursor: default;
}

/* Narration: micro.blog's narration.js renders a button for posts with audio */
.post__narration { align-self: flex-start; margin-top: var(--space-5); }
.microblog_narration_button {
  font-family: var(--font-body) !important;
  font-size: var(--font-size-small) !important;
  font-weight: var(--weight-strong);
  color: var(--color-ink) !important;
  min-height: var(--target-min);
  padding: 0 1.125rem 0 0.375rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-strip);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none !important;
  cursor: pointer;
}
.microblog_narration_button::before {
  content: "";
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--color-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .microblog_narration_button::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23131316'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  }
}
.microblog_narration_button:hover { background: var(--color-mark); }
.microblog_narration_button span { vertical-align: baseline !important; }
.microblog_narration_button img { display: none; }

/* Earlier / Later */
.post__nav {
  margin-top: var(--space-7);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: var(--space-4) var(--space-6);
  line-height: 1.35;
}
.post__nav-link { color: var(--color-ink); text-decoration: none; display: flex; flex-direction: column; gap: var(--space-1); }
.post__nav-link--later { text-align: right; grid-column: -2; }
.post__nav-label { font-size: var(--font-size-label); font-weight: var(--weight-strong); color: var(--color-text-muted); }
.post__nav-title { font-size: var(--font-size-ui); font-weight: var(--weight-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.post__nav-link:hover .post__nav-title { text-decoration-thickness: 2px; }

/* Replies from micro.blog (conversation.js) */
.microblog_conversation {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-strip);
  font-size: var(--font-size-small);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.microblog_post { display: flex; flex-direction: column; gap: var(--space-1); }
.microblog_user { font-weight: var(--weight-strong); display: flex; align-items: center; gap: var(--space-2); }
.microblog_user a { color: var(--color-ink); text-decoration: none; }
.microblog_user img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  border-radius: 50%;
  display: inline-block;
}
.microblog_text p + p { margin-top: var(--space-2); }
.microblog_text img { max-width: 100%; border-radius: var(--radius-sm); }
.microblog_time a { color: var(--color-text-muted); font-size: var(--font-size-label); text-decoration: none; }
.microblog_time a:hover { text-decoration: underline; }
.microblog_reply_textarea textarea {
  width: 100%;
  min-height: 6rem;
  padding: var(--space-3);
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-ink);
  font: inherit;
}
.microblog_reply_button,
.microblog_reply_button input,
.microblog_reply_button button {
  margin-top: var(--space-2);
  min-height: var(--target-min);
  padding: 0 1.125rem;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-ink);
  color: var(--color-bg);
  font: inherit;
  font-weight: var(--weight-strong);
  cursor: pointer;
}

/* Post-body classes Jamie uses (from Tiny's conventions) */
.post__content aside,
.post-card__content aside,
.aside,
.note,
.callout,
.alert {
  font-size: 0.9em;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-strip);
}
.aside, .post__content aside, .post-card__content aside { border-left: 4px solid var(--color-quote-bar); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.note { font-style: italic; }
.alert { border: 2px solid var(--color-ink); font-weight: var(--weight-strong); }
.aside > * + *, .note > * + *, .callout > * + *, .alert > * + *, aside > * + * { margin-top: var(--space-3); }
.aside cite, aside cite { display: block; text-align: right; margin-top: var(--space-3); }
mark {
  background: var(--color-mark);
  color: inherit;
  padding: 0 0.15em;
  border-radius: 2px;
}
.tiny-img { max-width: 25em; }
.tiny-text { font-size: 0.6em; }

/* Footnotes (Goldmark) */
sup a, .footnote-ref { text-decoration: none; font-size: 0.8em; font-weight: var(--weight-strong); padding: 0 0.1em; }
.footnotes {
  margin-top: var(--space-7);
  font-size: var(--font-size-small);
  color: var(--color-text-soft);
}
.footnotes hr { display: none; }
.footnotes ol { padding-left: 1.3em; }
.footnotes li + li { margin-top: var(--space-2); }
.footnote-backref { text-decoration: none; }

/* Lists and archive */
.post-list__header { margin-bottom: var(--space-7); display: flex; flex-direction: column; gap: var(--space-3); }
.post-list__title { font-size: var(--font-size-hero); line-height: 1.05; }
.post-list__intro { color: var(--color-text-soft); font-size: 1.125rem; }
.post-list__kicker {
  font-size: var(--font-size-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: var(--weight-strong);
}
.post-list__kicker a { color: var(--color-text-muted); text-decoration: none; }
.post-list__kicker a:hover { text-decoration: underline; }

.archive-head { align-items: end; margin-bottom: var(--space-7); }
.archive-head__title { display: flex; flex-direction: column; gap: var(--space-3); }
.archive-head--year .post-list__title {
  font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.archive-head--year .archive-head__title { gap: var(--space-1); }

/* The search box (archive, year pages, Search) */
.search-form { display: flex; gap: var(--space-2); }
.search-form__input,
.search-form__button {
  min-height: var(--target-field);
  border-radius: var(--radius-md);
  font: inherit;
}
.search-form__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0.875rem;
  font-size: var(--font-size-ui);
  color: var(--color-text);
  background: var(--color-bg);
  border: 2px solid var(--color-ink);
}
.search-form__input::placeholder { color: var(--color-text-muted); opacity: 1; }
.search-form__button {
  padding: 0 1.125rem;
  border: 0;
  font-size: var(--font-size-ui);
  font-weight: var(--weight-heading);
  color: var(--color-bg);
  background: var(--color-ink);
  cursor: pointer;
}

/* /archive/: a photo tile a year, then the categories */
.archive--index { display: flex; flex-direction: column; gap: 3.5rem; }
.archive-index__heading { font-size: 1.75rem; }
.archive-tiles {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr));
  gap: 1.75rem 1rem;
}
.archive-tile { display: block; color: var(--color-ink); text-decoration: none; }
.archive-tile__photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--color-strip);
}
.archive-tile__year {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: var(--weight-heading);
  letter-spacing: var(--tracking-heading);
  font-variant-numeric: tabular-nums;
}
.archive-tile:hover .archive-tile__year { text-decoration: underline; text-decoration-thickness: 2px; }
.archive-categories__list {
  list-style: none;
  padding: 0;
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.archive-categories__list a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0 0.875rem;
  border-radius: var(--radius-pill);
  background: var(--color-strip);
  color: var(--color-ink);
  font-size: var(--font-size-meta);
  font-weight: var(--weight-strong);
  text-decoration: none;
}
.archive-categories__list a:hover { background: var(--color-mark); }

/* Year pages: one line a post, month by month */
.archive__year + .archive__year { margin-top: var(--space-7); }
.archive__year-heading { font-size: var(--font-size-h2); }
.archive__month + .archive__month { margin-top: var(--space-7); }
.archive__month-heading { font-size: 1.75rem; scroll-margin-top: var(--space-5); }
.archive__posts {
  list-style: none;
  padding: 0;
  margin-top: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.archive__row {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  min-height: 4rem;
  color: var(--color-ink);
  text-decoration: none;
}
.archive__date {
  width: 4rem;
  flex-shrink: 0;
  font-size: var(--font-size-meta);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.archive__text { flex: 1 1 auto; min-width: 0; line-height: 1.4; overflow-wrap: anywhere; }
.archive__words { font-size: 1.125rem; }
.archive__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--weight-heading);
  letter-spacing: var(--tracking-heading);
}
.archive__row:hover .archive__text { text-decoration: underline; }
.archive__thumb {
  width: 4rem;
  height: 4rem;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 6px;
}
.archive-pager {
  margin-top: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--font-size-ui);
  font-weight: var(--weight-strong);
}
.archive-pager a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-field);
  padding: 0 0.75rem;
  color: var(--color-ink);
}
.archive-pager .archive-pager__page {
  padding: 0 1.375rem;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-md);
  text-decoration: none;
}
.archive-pager .archive-pager__page:hover { background: var(--color-ink); color: var(--color-bg); }
.rail-chips a[aria-current="page"] { background: var(--color-ink); color: var(--color-bg); }
@media (min-width: 56.3rem) {
  .rail--find { position: sticky; top: var(--space-5); }
}

/* /photos/ */
.photos-grid-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)) !important;
  gap: var(--space-2) !important;
}
.photos-grid-container img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md) !important;
}

/* Photos in the stream (R3-B), set by partials/stream-content.html. A
   post's own page shows them whole. */
.stream-photos { display: grid; gap: var(--space-2); }
.stream-photos img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.stream-photos--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stream-photos--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stream-photos--grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stream-photos--four img,
.stream-photos--grid img { aspect-ratio: 1; }
.stream-photos__more {
  position: relative;
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stream-photos__more img { border-radius: 0; }
.stream-photos__more span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(22 22 26 / 0.55);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
}
.stream-photos__more:hover span { background: rgb(22 22 26 / 0.7); }

/* A trip's days (shortcodes/trip.html, R4-3): chips on a grey card, the
   current day in ink. */
.post__content > .trip-days,
.post-card__content > .trip-days { margin-top: var(--space-5); }
.trip-days {
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--color-strip);
}
.trip-days__label {
  margin: 0;
  font-size: var(--font-size-meta);
  font-weight: var(--weight-strong);
  line-height: 1.4;
}
.post__content .trip-days__list,
.post-card__content .trip-days__list {
  list-style: none;
  margin: 0.625rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.post__content .trip-days__list li + li,
.post-card__content .trip-days__list li + li { margin-top: 0; }
.trip-days__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.5rem;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-ink);
  font-size: var(--font-size-small);
  font-weight: var(--weight-strong);
  line-height: 1;
  text-decoration: none;
}
.trip-days__list a:hover { background: var(--color-mark); }
.trip-days__list a[aria-current],
.trip-days__list a[aria-current]:hover { background: var(--color-ink); color: var(--color-bg); }
.trip-days__all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 6px;
  color: var(--color-ink);
  font-size: var(--font-size-small);
  font-weight: var(--weight-strong);
}
.post-card--note .trip-days,
.post--note .trip-days { font-size: var(--font-size-base); line-height: 1.6; }

/* micro.blog collections and galleries in post bodies */
.microblog_collection img { border-radius: var(--radius-md); }

/* Conversations in post bodies ("Blogging with Messages" and six more):
   div.chat holding .author, .message and .action divs, each .left or
   .right. Under Tiny, Jamie's Custom CSS styled them. The other voice is on
   grey, Jamie's side in ink. */
.chat {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.chat > * { margin: 0; }
.chat .message {
  max-width: min(85%, 34rem);
  padding: 0.625rem 1rem;
  border-radius: 1.25rem;
  line-height: 1.45;
}
.chat .message > * { margin: 0; }
.chat .message > * + * { margin-top: 0.625rem; }
.chat .message.left { align-self: flex-start; background: var(--color-strip); color: var(--color-ink); }
.chat .message.right { align-self: flex-end; background: var(--color-ink); color: var(--color-bg); }
.chat .message.right a { color: inherit; }
.chat .message code { background: transparent; color: inherit; }
.chat .author {
  margin-top: var(--space-3);
  padding: 0 1rem;
  font-size: var(--font-size-meta);
  font-weight: var(--weight-strong);
  color: var(--color-text-muted);
}
.chat .author.left { align-self: flex-start; }
.chat .author.right { align-self: flex-end; }
.chat .action {
  align-self: center;
  margin: var(--space-3) 0;
  font-size: var(--font-size-meta);
  font-style: italic;
  color: var(--color-text-muted);
  text-align: center;
}

/* Pagination */
.pagination {
  margin-top: var(--stack-posts);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-ui);
  font-weight: var(--weight-strong);
}
.pagination__page { color: var(--color-text-muted); font-weight: 400; font-size: var(--font-size-meta); }
.pagination a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-field);
  padding: 0 1.375rem;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-md);
  color: var(--color-ink);
  text-decoration: none;
}
.pagination a:hover { background: var(--color-ink); color: var(--color-bg); }

/* Tinylytics counters and webring (wherever Jamie's pages place them) */
.tinylytics_hits,
.tinylytics_uptime {
  font-variant-numeric: tabular-nums;
  background: var(--color-strip);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  font-size: 0.9em;
}
.tinylytics_countries { font-size: 1.5em; line-height: 1; }
.tinylytics_webring { display: flex; align-items: center; justify-content: center; gap: var(--space-1); }
a.tinylytics_webring { text-decoration: none; }
.tinylytics_webring_avatar { width: auto; height: 1.75em; border-radius: 50%; display: inline-block; }

/* Footer: a grey band on the frame */
.site-footer { background: var(--color-strip); }
.site-footer__inner {
  padding-top: 2.5rem;
  padding-bottom: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-5) var(--stack-posts);
  font-size: var(--font-size-small);
  color: var(--color-text-soft);
}
.site-footer a { color: var(--color-ink); }
.site-footer__meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.site-footer__copy { margin: 0; font-family: var(--font-heading); font-size: 1.25rem; font-weight: var(--weight-heading); color: var(--color-ink); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0 var(--space-4); }
.site-footer__links a { display: inline-flex; align-items: center; min-height: var(--target-min); }
.custom_footer, .site-footer .h-card { font-size: var(--font-size-label); }
.site-footer__custom {
  flex: 1 1 100%;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-quote-bar);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.site-footer__custom > * + * { margin-top: var(--space-2); }

.sites-footer { flex: 1 1 28rem; max-width: 40rem; }
.sites-footer__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-3);
}
.sites-footer__list,
.signup__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.sites-footer__name,
.signup__link { font-weight: var(--weight-strong); margin-right: var(--space-1); }
.sites-footer__item--weekly .sites-footer__name { color: var(--color-wt-text); }
.sites-footer__item--another .sites-footer__name { color: var(--color-at-text); }
.sites-footer__item--thingy .sites-footer__name { color: var(--color-thingy-text); }
.sites-footer__desc,
.signup__desc { color: var(--color-text-muted); }

/* Signup links (off unless signup_sites is set) */
.signup {
  flex: 1 1 100%;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.signup__title { font-size: 1.25rem; margin-bottom: var(--space-2); }
.signup__blurb { margin-bottom: var(--space-4); }
.signup__form { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.signup__label { position: absolute; left: -9999px; }
.signup__input {
  flex: 1 1 16rem;
  font: inherit;
  min-height: var(--target-field);
  padding: 0 0.875rem;
  border: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  border-radius: var(--radius-md);
}
.signup__button {
  font: inherit;
  font-weight: var(--weight-heading);
  min-height: var(--target-field);
  padding: 0 1.375rem;
  background: var(--color-ink);
  color: var(--color-bg);
  border: 0;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Search page (Pagefind) */
/* Search (Round 4b): results drawn by js/search.js from Pagefind */
.search-head__main { display: flex; flex-direction: column; gap: 1.25rem; }
.search-head .search-form__input,
.search-head .search-form__button { min-height: 3.5rem; }
.search-head .search-form__input { font-size: 1.125rem; }
.search-sort { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); font-size: var(--font-size-small); font-weight: var(--weight-strong); }
.search-sort[hidden] { display: none; }
.search-sort__label { padding-right: var(--space-2); color: var(--color-text-muted); font-weight: 400; }
.search-sort__button {
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
  color: var(--color-ink);
  background: var(--color-strip);
  cursor: pointer;
}
.search-sort__button[aria-pressed="true"],
.rail-chips button[aria-pressed="true"] { color: var(--color-bg); background: var(--color-ink); }
.rail-chips button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.875rem;
  border: 0;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: var(--font-size-meta);
  font-weight: var(--weight-strong);
  color: var(--color-ink);
  background: var(--color-strip);
  cursor: pointer;
}
.rail-chips button:hover { background: var(--color-mark); }
.rail-chips button[aria-pressed="true"]:hover { background: var(--color-ink); }
.search-page__text { margin-bottom: var(--space-6); }
.search-results__status:empty { display: none; }
.search-results__status { color: var(--color-text-soft); margin-bottom: var(--space-5); }
.search-results__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2.25rem; }
.search-result { display: flex; gap: 1.25rem; align-items: flex-start; }
.search-result__text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.search-result__date { margin-bottom: var(--space-1); font-size: var(--font-size-meta); color: var(--color-text-muted); }
.search-result__title {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: var(--weight-heading);
  line-height: 1.2;
  letter-spacing: var(--tracking-heading);
  color: var(--color-ink);
  text-decoration: none;
}
.search-result__title:hover,
.search-result__note a:hover { text-decoration: underline; }
.search-result__excerpt { margin-top: 0.375rem; color: var(--color-text-soft); }
.search-result__note a { color: var(--color-ink); text-decoration: none; }
.search-result mark { padding: 0 2px; border-radius: 3px; background: var(--color-mark); color: var(--color-ink); font-weight: var(--weight-strong); }
.search-result__photo {
  width: 8.25rem;
  height: auto;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-md);
}
.search-results__more {
  margin-top: 2.5rem;
  min-height: var(--target-field);
  padding: 0 1.375rem;
  border: 2px solid var(--color-ink);
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: var(--weight-strong);
  color: var(--color-ink);
  background: var(--color-bg);
  cursor: pointer;
}
.search-results__more:hover { color: var(--color-bg); background: var(--color-ink); }
.search-results__more[hidden] { display: none; }

/* Home hello (Round 4): greeting and intro beside the Weekly Thing card,
   on the same two columns as the stream and rail. */
.home-hero { align-items: center; margin-bottom: var(--space-8); }
.home-hero__title { font-size: var(--font-size-hero); line-height: 1.05; }
.home-hero__intro { margin-top: var(--space-4); font-size: 1.2em; line-height: 1.45; }
.home-hero__intro > * + * { margin-top: var(--space-3); }

/* The Weekly Thing subscribe card: Weekly Thing blue, white type. The
   button goes to the Weekly Thing's own (Turnstile-checked) form. */
.subscribe-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-wt);
  color: var(--color-on-fill);
  scroll-margin-top: var(--space-5);
}
.subscribe-card__kicker {
  font-size: var(--font-size-label);
  font-weight: var(--weight-strong);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  opacity: 0.9;
}
.subscribe-card__title { margin-top: 6px; font-size: var(--font-size-h2); color: inherit; }
.subscribe-card__blurb { margin-top: 10px; font-size: var(--font-size-ui); line-height: 1.5; }
.subscribe-card__actions {
  margin-top: 1.125rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}
.subscribe-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target-field);
  padding: 0 1.375rem;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #16161a;
  font-family: var(--font-heading);
  font-size: var(--font-size-ui);
  font-weight: var(--weight-heading);
  text-decoration: none;
}
.subscribe-card__button:hover { text-decoration: underline; }
.subscribe-card--hero .subscribe-card__button { flex: 1 1 100%; }
.subscribe-card__more { color: inherit; font-size: var(--font-size-small); font-weight: var(--weight-strong); }
.subscribe-card__proof { margin-top: var(--space-3); font-size: var(--font-size-label); opacity: 0.92; }
.subscribe-card a:focus-visible { outline-color: #ffffff; }

/* The latest Weekly Thing, in the home stream */
.wt-latest {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-wt-soft);
}
.wt-latest__kicker {
  font-family: var(--font-heading);
  font-size: var(--font-size-label);
  font-weight: var(--weight-strong);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-wt-text);
}
.wt-latest__title { margin-top: var(--space-2); font-size: 1.75rem; line-height: 1.15; }
.wt-latest__title a { color: var(--color-ink); text-decoration: none; }
.wt-latest__title a:hover { text-decoration: underline; }
.wt-latest__summary { margin-top: 10px; font-size: 1.125rem; }
.wt-latest__actions {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--font-size-small);
  font-weight: var(--weight-strong);
}
.wt-latest__actions a {
  display: inline-flex;
  align-items: center;
  min-height: var(--target-min);
  padding: 0 1.125rem;
  border-radius: var(--radius-md);
  text-decoration: none;
}
.wt-latest__read { background: var(--color-wt); color: var(--color-on-fill); }
.wt-latest__listen { background: var(--color-bg); color: var(--color-wt-text); }
.wt-latest__actions .wt-latest__email { padding: 0 var(--space-3); color: var(--color-wt-text); text-decoration: underline; }
.wt-latest__read:hover, .wt-latest__listen:hover { text-decoration: underline; }

/* Another Thing as a card (home stream on phones, Keep going) */
.at-card {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-at-soft);
  display: flex;
  flex-direction: column;
}
.at-card__kicker { font-size: var(--font-size-label); font-weight: var(--weight-strong); color: var(--color-at-text); }
.at-card__title { margin-top: 6px; font-size: var(--font-size-h3); line-height: 1.2; }
.at-card__title a { color: var(--color-ink); text-decoration: none; }
.at-card__title a:hover { text-decoration: underline; }
.at-card__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: var(--target-min);
  margin-top: var(--space-1);
  font-size: var(--font-size-meta);
  font-weight: var(--weight-strong);
  color: var(--color-at-text);
}

/* Under a post: the subscribe card, Keep going, Earlier / Later */
.post-after {
  max-width: var(--measure);
  margin: var(--space-8) auto 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}
.post-after .post__nav { margin-top: 0; }
.keep-going {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-4);
}
.keep-going__card { min-width: 0; }
a.keep-going__card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-strip);
  color: var(--color-ink);
  text-decoration: none;
}
.keep-going__kicker { font-size: var(--font-size-label); font-weight: var(--weight-strong); color: var(--color-text-muted); }
.keep-going__title {
  margin-top: 6px;
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  font-weight: var(--weight-heading);
  line-height: 1.2;
  letter-spacing: var(--tracking-heading);
}
a.keep-going__card:hover .keep-going__title { text-decoration: underline; }

/* Stream cards that only make sense when the rail has dropped below
   (phones and narrow windows), and rail parts those cards replace. */
.only-narrow { display: none; }
@media (max-width: 56.25rem) {
  .only-narrow { display: block; }
  .at-card.only-narrow { display: flex; }
  .hide-narrow { display: none; }
}

/* Phones */
@media (max-width: 40rem) {
  .search-result__photo { width: 5.5rem; }
  .stream-photos--two img { aspect-ratio: 1; }
  .sites-strip__inner { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 1.125rem; }
  .sites-strip__label { display: none; }
  .sites-strip__list { flex-wrap: nowrap; gap: 1.125rem; }
  .site-header, .site-header--home { padding-top: 1.25rem; }
  .site-header--home .site-author__photo { width: 48px; height: 48px; }
  .site-author { grid-template-columns: auto minmax(0, 1fr); }
  .site-author__note { grid-column: 1 / -1; margin-top: var(--space-3); }
  .site-header--home .site-author__photo-link { grid-row: auto; }
  .site-header__inner { flex-wrap: wrap; align-items: flex-start; }
  .site-author { flex: 1 1 0; min-width: 0; }
  .site-header__inner > .site-author { padding-right: 0; }
  /* The Menu button (js/nav.js); without script the nav stays open. */
  .js .site-nav__toggle { display: inline-flex; }
  .site-nav { flex: 1 1 100%; }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav__list { flex-direction: column; gap: 0; margin: 0; }
  .js .site-nav__item a { padding: 0; width: 100%; }
  .site-header__subscribe { display: none; }
  .site-nav__item--subscribe { display: block; }
  .js .site-nav__item--subscribe { margin: var(--space-2) 0 0; }
  .js .site-nav__item.site-nav__item--subscribe a { justify-content: center; }
  .home-hero { margin-bottom: var(--space-7); }
  .subscribe-card, .wt-latest { padding: 1.375rem; }
  .content { padding-top: var(--space-6); }
  .post--single { padding-top: var(--space-2); }
  .post-list__header { margin-bottom: var(--space-6); }
  .archive__row { gap: var(--space-3); }
  .archive__date { width: 3.25rem; }
  .archive__thumb { width: 3.5rem; height: 3.5rem; }
  .post__nav-link--later { text-align: left; grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
