/* ==================================================================
   Wayfinding
   ------------------------------------------------------------------
   A blog about making tangled systems legible, drawn the way transit
   diagrams are drawn: a rail, nodes, four flat line colours, signage
   lettering, and nothing else. The rail is the only ornament in the
   system. There are no cards, borders, shadows or gradients anywhere.
   ================================================================== */

/* ---------- Tokens ---------- */

:root {
  --sans: "Barlow", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --cond: "Barlow Condensed", "Barlow", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --t-micro: 0.75rem;
  --t-small: 0.8125rem;
  --t-meta: 0.875rem;
  --t-body: 1.125rem;
  --t-lead: 1.25rem;
  --t-h3: 1.1875rem;
  --t-h2: 1.5rem;
  --t-h1: 2.25rem;
  --t-display: 2.75rem;

  --lh-body: 1.68;
  --lh-tight: 1.15;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 20px;
  --s5: 32px;
  --s6: 48px;
  --s7: 72px;
  --s8: 112px;

  --col: 600px;
  --rail-x: 34px;
  --page: 760px;
  --page-wide: 1100px;

  --rail-w: 2px;
  --node: 11px;

  /* Dark is the default. These are read at night, on a laptop, by people
     who have a terminal open on the other half of the screen. */
  --bg: #0e1116;
  --bg-lift: #151a21;
  --ink: #eef1f4;
  --ink-2: #aab3be;
  --ink-3: #7d8894;
  --rule: #232a33;
  /* The rail ahead of the reader still has to be visible, so anything that
     carries meaning uses this instead of --rule, which is decorative. */
  --rule-strong: #5e6876;
  --plate-ink: #0e1116;

  --line-infra: #f5a524;
  --line-ai: #3ecf8e;
  --line-proto: #ff6b5a;
  --line-data: #a78bfa;
  --line-practice: #58aaf0;

  --sel-bg: #2b3a4d;
  --line: var(--line-infra);

  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #fafaf8;
  --bg-lift: #f0f0ec;
  --ink: #15171b;
  --ink-2: #4b535d;
  --ink-3: #626b75;
  --rule: #dfe0db;
  --rule-strong: #828b95;
  --plate-ink: #fafaf8;

  --line-infra: #a35c00;
  --line-ai: #0f7a4f;
  --line-proto: #c8372a;
  --line-data: #6d46d6;
  --line-practice: #1560a8;

  --sel-bg: #d9e2f0;

  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fafaf8;
    --bg-lift: #f0f0ec;
    --ink: #15171b;
    --ink-2: #4b535d;
    --ink-3: #626b75;
    --rule: #dfe0db;
    --rule-strong: #828b95;
    --plate-ink: #fafaf8;

    --line-infra: #a35c00;
    --line-ai: #0f7a4f;
    --line-proto: #c8372a;
    --line-data: #6d46d6;
    --line-practice: #1560a8;
  --line-practice: #1560a8;

    --sel-bg: #d9e2f0;

    color-scheme: light;
  }
}

/* Each post carries one line. The class sets the colour once; everything
   downstream reads --line, so nothing else needs to know the topic. */
.ln-infra { --line: var(--line-infra); }
.ln-ai { --line: var(--line-ai); }
.ln-proto { --line: var(--line-proto); }
.ln-data { --line: var(--line-data); }
.ln-practice { --line: var(--line-practice); }

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--ink-3) var(--bg);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

::selection {
  background: var(--sel-bg);
  color: var(--ink);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--ink-3);
  border: 2px solid var(--bg);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--ink-2);
}

:focus-visible {
  outline: 2px solid var(--line, var(--line-infra));
  outline-offset: 3px;
  border-radius: 1px;
}

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

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding-inline: var(--s4);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: var(--s4);
  top: var(--s3);
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: var(--s2) var(--s3);
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Signage bar ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 62px;
}

.brand {
  font-family: var(--cond);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.brand:hover {
  color: var(--line-infra);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.site-header nav a {
  font-family: var(--cond);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1;
  padding-block: var(--s2);
  border-bottom: 2px solid transparent;
}

.site-header nav a:hover {
  color: var(--ink);
}

.site-header nav a.active {
  color: var(--ink);
  border-bottom-color: var(--line-infra);
}

#theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  color: var(--ink-3);
  cursor: pointer;
}

#theme-toggle:hover {
  color: var(--ink);
}

#theme-toggle svg {
  width: 17px;
  height: 17px;
  display: block;
}

#theme-toggle .moon {
  display: none;
}

:root[data-theme="light"] #theme-toggle .moon {
  display: block;
}
:root[data-theme="light"] #theme-toggle .sun {
  display: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) #theme-toggle .moon {
    display: block;
  }
  :root:not([data-theme="dark"]) #theme-toggle .sun {
    display: none;
  }
}

main {
  display: block;
  padding-bottom: var(--s8);
}

/* ---------- Home ---------- */

.intro {
  padding-block: var(--s7) var(--s6);
  max-width: var(--col);
}

.intro p {
  margin: 0 0 var(--s4);
  color: var(--ink-2);
  max-width: 62ch;
}

/* The destination line. Short by design, set like a sign. */
.intro p:first-child {
  font-family: var(--cond);
  font-size: clamp(2rem, 5.2vw, 3.25rem);
  line-height: 1.02;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin-bottom: var(--s5);
  max-width: 14ch;
}

.intro p:nth-child(2) {
  color: var(--ink);
}

.intro a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.intro a:hover {
  color: var(--line-infra);
  text-decoration-color: var(--line-infra);
}

.section-head {
  font-family: var(--cond);
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 var(--s4);
  padding-bottom: var(--s2);
  border-bottom: 1px solid var(--rule);
}

/* The featured post is the first station, so the rail enters the column here
   rather than starting halfway down the page. */
.featured {
  position: relative;
  margin-bottom: var(--s7);
  padding-left: calc(var(--rail-x) + var(--s5));
}

.featured .section-head {
  margin-left: calc(-1 * (var(--rail-x) + var(--s5)));
}

/* The rail starts below the section label, not through it. */
.featured::before {
  content: "";
  position: absolute;
  left: calc(var(--rail-x) - (var(--rail-w) / 2));
  top: var(--s6);
  bottom: calc(-1 * var(--s7));
  width: var(--rail-w);
  background: var(--line);
}

.featured::after {
  content: "";
  position: absolute;
  left: calc(var(--rail-x) - (var(--node) / 2));
  top: calc(var(--s6) - (var(--node) / 2));
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--line);
  box-shadow: 0 0 0 3px var(--bg);
}

/* The featured post is a plate of its own line colour. Colour owning a
   whole region, rather than a hairline on a card. */
.featured-card {
  display: block;
  text-decoration: none;
  background: var(--line);
  color: var(--plate-ink);
  padding: var(--s5);
  position: relative;
}

.featured-card h3 {
  margin: 0 0 var(--s3);
  text-wrap: balance;
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.018em;
  max-width: 26ch;
}

.featured-card p {
  margin: 0 0 var(--s4);
  font-size: var(--t-meta);
  line-height: 1.6;
  max-width: 54ch;
}

.featured-card .plate-meta {
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  display: flex;
  gap: var(--s3);
  align-items: center;
}

.featured-card:hover h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* ---------- The rail ---------- */

.route {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

/* One continuous line behind every station, stopping at the first and
   last node rather than running off the ends. */
.route::before {
  content: "";
  position: absolute;
  left: calc(var(--rail-x) - (var(--rail-w) / 2));
  top: 15px;
  bottom: 15px;
  width: var(--rail-w);
  background: var(--rule-strong);
}

.stop {
  position: relative;
  padding-left: calc(var(--rail-x) + var(--s5));
  /* Spacing is padding, never margin, so the coloured segments meet at the
     nodes and the line reads as continuous rather than dashed. */
  padding-block: var(--s2) var(--s6);
}

.stop:last-child {
  padding-bottom: var(--s2);
}

/* The segment of rail this stop owns, in its own line colour. */
.stop::before {
  content: "";
  position: absolute;
  left: calc(var(--rail-x) - (var(--rail-w) / 2));
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  background: var(--line);
}

.stop:first-child::before {
  top: 15px;
}

.stop:last-child::before {
  bottom: auto;
  height: 15px;
}

/* The node. A ring by default, so shape carries meaning alongside hue. */
.stop .node {
  position: absolute;
  left: calc(var(--rail-x) - (var(--node) / 2));
  top: 10px;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--bg);
  border: var(--rail-w) solid var(--line);
}

.stop.interchange .node {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--line);
}

.stop-date {
  display: block;
  margin-top: 0;
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: var(--s1);
}

.stop-title {
  display: inline-block;
  text-wrap: balance;
  font-family: var(--cond);
  font-size: 1.4375rem;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.005em;
  color: var(--ink);
  text-decoration: none;
  max-width: 30ch;
}

.stop-title::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.stop-title:hover::after,
.stop-title:focus-visible::after {
  transform: scaleX(1);
}

.stop-desc {
  margin: var(--s2) 0 0;
  font-size: var(--t-meta);
  line-height: 1.58;
  color: var(--ink-2);
  max-width: 58ch;
}

.more {
  margin: var(--s5) 0 0;
  padding-left: calc(var(--rail-x) + var(--s5));
}

.more a {
  font-family: var(--cond);
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 2px;
}

.more a:hover {
  color: var(--ink);
  border-bottom-color: var(--line-infra);
}

/* ---------- Legend ---------- */

.legend {
  margin-bottom: var(--s7);
  padding: var(--s4);
  background: var(--bg-lift);
}

.legend .section-head {
  border-bottom: 0;
  padding-bottom: 0;
  margin-bottom: var(--s3);
}

.legend-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
}

.legend-items li {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--cond);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.legend-items .swatch {
  width: 28px;
  height: 14px;
  background: var(--line);
  flex: none;
}

.legend-items .count {
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  color: var(--ink-3);
  text-transform: none;
}

/* ---------- Page heads ---------- */

.page-head {
  padding-block: var(--s7) var(--s6);
  max-width: var(--col);
}

.page-head h1 {
  margin: 0 0 var(--s3);
  font-family: var(--cond);
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.page-head p {
  margin: 0;
  color: var(--ink-2);
  max-width: 56ch;
}

/* ---------- Post ---------- */

.post-head {
  padding-block: var(--s6) 0;
  max-width: var(--col);
}

/* The full-width rule in the post's own line colour: the one place the
   colour gets real width on a reading page. */
.post-head::before {
  content: "";
  display: block;
  height: 4px;
  width: 100%;
  background: var(--line);
  margin-bottom: var(--s4);
}

.post-head h1 {
  margin: 0 0 var(--s4);
  font-size: var(--t-h1);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  max-width: 27ch;
  text-wrap: balance;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3);
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin: 0;
}

.post-meta .dot {
  color: var(--ink-3);
  opacity: 0.6;
}

.tag {
  color: var(--ink-3);
}

.tag::before {
  content: "#";
  color: var(--line);
}

.prose {
  max-width: var(--col);
  padding-top: var(--s6);
}

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

.prose p {
  margin: 0 0 var(--s4);
}

/* A standalone page (about, 404) opens with the same signage heading the
   writing index uses, so the two do not look like different sites. */
.prose > h1:first-child {
  font-family: var(--cond);
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 var(--s5);
}

.prose h2 {
  margin: var(--s7) 0 var(--s3);
  font-family: var(--cond);
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--ink);
  scroll-margin-top: var(--s5);
}

.prose h3 {
  margin: var(--s6) 0 var(--s2);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  scroll-margin-top: var(--s5);
}

.prose h4 {
  margin: var(--s5) 0 var(--s2);
  font-size: var(--t-body);
  font-weight: 600;
  color: var(--ink-2);
}

.prose a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--line);
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 var(--s4);
  padding-left: var(--s4);
}

.prose li {
  margin-bottom: var(--s2);
  padding-left: var(--s1);
}

.prose li::marker {
  color: var(--line);
  font-variant-numeric: tabular-nums;
}

.prose blockquote {
  margin: 0 0 var(--s4);
  padding-left: var(--s4);
  border-left: var(--rail-w) solid var(--line);
  color: var(--ink-2);
}

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

.prose code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--bg-lift);
  padding: 0.1em 0.34em;
  border-radius: 2px;
}

.prose pre {
  margin: 0 0 var(--s4);
  padding: var(--s4);
  background: var(--bg-lift);
  border-left: var(--rail-w) solid var(--line);
  overflow-x: auto;
  font-size: var(--t-small);
  line-height: 1.6;
  tab-size: 2;
}

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

.prose hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--s6) 0;
}

/* Scanned rather than read, so these get more room than the prose measure. */
.table-wrap,
.prose pre {
  width: min(100%, 680px);
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 var(--s4);
}

.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--t-meta);
  font-variant-numeric: tabular-nums;
}

.prose th,
.prose td {
  padding: var(--s2) var(--s4) var(--s2) 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
  line-height: 1.5;
}

.prose th {
  font-family: var(--cond);
  font-weight: 600;
  font-size: var(--t-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-bottom-color: var(--line);
  white-space: nowrap;
}

/* ---------- Contents: a live route indicator ---------- */

.toc {
  margin: var(--s5) 0 0;
  padding: var(--s4) 0 0;
  border-top: 1px solid var(--rule);
}

.toc-head {
  margin: 0 0 var(--s3);
  font-family: var(--cond);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.toc ol::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  bottom: 9px;
  width: var(--rail-w);
  background: var(--rule-strong);
}

.toc li {
  position: relative;
  padding-left: var(--s4);
  margin-bottom: var(--s2);
  line-height: 1.35;
}

.toc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  border: var(--rail-w) solid var(--rule-strong);
  transition: background-color 0.15s linear, border-color 0.15s linear,
    transform 0.15s linear;
}

.toc a {
  font-size: var(--t-small);
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s linear;
}

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

/* The station the reader is standing at. */
.toc li.here::before {
  background: var(--line);
  border-color: var(--line);
}

.toc li.here a {
  color: var(--ink);
  font-weight: 500;
}

.toc li.passed::before {
  border-color: var(--line);
  transform: scale(0.62);
}

.toc li.passed a {
  color: var(--ink-2);
}

/* ---------- Post navigation ---------- */

.post-nav {
  max-width: var(--col);
  margin-top: var(--s7);
  padding-top: var(--s4);
  border-top: 1px solid var(--rule);
  display: flex;
  gap: var(--s5);
  justify-content: space-between;
}

.post-nav a {
  display: block;
  max-width: 45%;
  text-decoration: none;
  color: var(--ink-2);
  line-height: 1.3;
  font-family: var(--cond);
  font-size: 1.0625rem;
  font-weight: 500;
}

.post-nav a:hover {
  color: var(--ink);
}

.post-nav a > span {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--s1);
}

.post-nav .next {
  text-align: right;
  margin-left: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: var(--s4);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.site-footer .links {
  display: flex;
  gap: var(--s4);
}

.site-footer a {
  font-family: var(--cond);
  font-size: var(--t-meta);
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

/* ---------- Wide: the contents move into the margin ---------- */

@media (min-width: 1120px) {
  body.wide .wrap {
    max-width: var(--page-wide);
  }

  body.wide .post-layout.has-toc {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 216px;
    column-gap: var(--s7);
    align-items: start;
  }

  body.wide .post-layout.has-toc > .prose {
    grid-column: 1;
    grid-row: 1;
  }

  body.wide .post-layout.has-toc > .toc {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: var(--s5);
    margin-top: var(--s7);
    max-height: calc(100vh - 140px);
    overflow-y: auto;
  }
}

/* ---------- Narrow ---------- */

@media (max-width: 640px) {
  :root {
    --t-display: 2rem;
    --t-h1: 1.75rem;
    --t-h2: 1.3125rem;
    --t-body: 1.0625rem;
    --rail-x: 22px;
    --s7: 52px;
    --s8: 72px;
  }

  .wrap {
    padding-inline: var(--s4);
  }

  .site-header .wrap {
    min-height: 56px;
    gap: var(--s3);
  }

  .brand {
    font-size: 1.125rem;
    letter-spacing: 0.05em;
  }

  .site-header nav {
    gap: var(--s3);
  }

  .site-header nav a {
    font-size: 0.9375rem;
    letter-spacing: 0.06em;
  }

  .stop {
    padding-left: calc(var(--rail-x) + var(--s4));
  }

  .more {
    padding-left: calc(var(--rail-x) + var(--s4));
  }

  .stop-title {
    font-size: 1.25rem;
  }

  .featured-card {
    padding: var(--s4);
  }

  .post-nav {
    flex-direction: column;
    gap: var(--s4);
  }

  .post-nav a {
    max-width: 100%;
  }

  .post-nav .next {
    text-align: left;
    margin-left: 0;
  }
}

@media (max-width: 400px) {
  .site-header nav a[href="/"] {
    display: none;
  }
}
