/* =========================================================================
   SafeWalkr blog
   Loads after theme.css, which owns the tokens, the topbar, the wordmark and
   the .btn pill (see docs/DESIGN_SYSTEM.md). This sheet adds only what the blog
   needs: the reading column, the listing, the footer and the figures.
   One accent per surface: the blog reads the site accent (--accent-*) through
   the --blog-* aliases below; blog/config.json may override them per build,
   but the defaults keep the blog on the same accent as the rest of the site.
   Body text is a reading serif (Source Serif 4) because posts are long-form;
   headings, labels and chrome stay in the site faces.
   ========================================================================= */

:root {
  --blog-accent: var(--accent);
  --blog-accent-strong: var(--accent-strong);
  --blog-wash: var(--accent-wash);
  --blog-wash-line: var(--accent-wash-line);
  --blog-body-font: "Source Serif 4", "Source Serif 4 Fallback", Georgia, "Times New Roman", serif;
  /* Measure: resolved where the prose lives (.article sets the prose font
     and size, so 66ch here is 66 prose characters, the long-form rule). */
  --measure: 66ch;
  --blog-gutter: var(--gutter, 16px);
}

/* Reading serif, self-hosted like Overpass and Public Sans (theme.css).
   Latin subset, opsz pinned at 16, wght 400-700; the upright face is
   preloaded by build_blog.py with the same ?v= so the two requests dedupe. */
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4-var.woff2?v=1") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4-var-italic.woff2?v=1") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4 Fallback";
  src: local("Georgia"), local("Times New Roman"), local("Liberation Serif");
  size-adjust: 97%;
  ascent-override: 92%;
  descent-override: 27%;
  line-gap-override: 0%;
}

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

body.blog {
  margin: 0;
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blog-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}
a:hover {
  color: var(--blog-accent-strong);
}

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

/* One outer container: the footer and the listing sit on the same verticals
   as the topbar's gutter; the reading column is a narrower measure centred
   inside it. */
.wrap {
  width: min(1200px, 100% - 2 * var(--blog-gutter));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent-fill);
  color: var(--on-accent);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
}
.skip:focus {
  left: 1rem;
}

/* Secondary pill (theme.css owns .btn and .btn--primary). */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

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

.foot {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 5vw, 4rem) 0 4rem;
  font-size: 0.9rem;
  color: var(--ink-quiet);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.7fr;
  gap: 2.5rem;
  align-items: start;
}
.foot__col h2 {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.9rem;
}
.foot__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  line-height: 1.5;
  max-width: 46ch;
}
.foot__col a:not(.btn) {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  padding: 0.3rem 0;
}
.foot__col a:not(.btn):hover {
  color: var(--blog-accent-strong);
  text-decoration: underline;
}
.foot__col--end {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.foot__mail {
  margin: 0;
}
@media (max-width: 900px) {
  .foot__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ----------------------------------------------------------- shared bits */

.crumb {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.crumb a {
  color: var(--blog-accent-strong);
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 0;
}
.crumb a:hover {
  text-decoration: underline;
}

.meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-text);
  font-size: 0.9rem;
  color: var(--ink-quiet);
}
.meta__sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-quiet);
  display: inline-block;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--blog-accent-strong);
  background: var(--blog-wash);
  border: 1px solid var(--blog-wash-line);
  border-radius: 999px;
  padding: 0.2rem 0.75rem 0.15rem;
  line-height: 1.2;
  transition: background-color 0.15s, border-color 0.15s;
}
.chip:hover {
  background: var(--blog-wash-line);
  border-color: var(--blog-accent);
  color: var(--blog-accent-strong);
}
.tagList {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.tagList li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.tagCount {
  font-size: 0.9rem;
  color: var(--ink-quiet);
}

/* --------------------------------------------------------------- listing */

.listing {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  width: min(880px, 100% - 2 * var(--blog-gutter));
}
.listing__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.listing__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.listing__lead {
  margin: 0;
  max-width: 60ch;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--ink-quiet);
}

.featured {
  display: grid;
  gap: 1.4rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.featured--only {
  border-bottom: 0;
  padding-bottom: 0;
}
.featured .cover {
  display: block;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.featured .cover img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.featured__label {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blog-accent-strong);
}
.featured__title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}
.featured__title a {
  color: var(--ink);
  text-decoration: none;
}
.featured__title a:hover {
  color: var(--blog-accent-strong);
}
.featured__desc {
  margin: 0 0 0.9rem;
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.featured .meta {
  margin-bottom: 0.9rem;
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.row {
  border-bottom: 1px solid var(--line);
  padding: 0 0 1.1rem;
  transition: border-color 0.2s;
}
.row:hover {
  border-bottom-color: var(--blog-accent);
}
.row__link {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 0 1.5rem;
  align-items: baseline;
  padding: 1.25rem 0 0.6rem;
  text-decoration: none;
  color: inherit;
}
.row__date,
.row__time {
  font-family: var(--font-text);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-quiet);
  white-space: nowrap;
}
.row__body {
  min-width: 0;
}
.row__title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.15s;
}
.row__link:hover .row__title {
  color: var(--blog-accent-strong);
}
.row__desc {
  display: block;
  margin-top: 0.3rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.5;
  max-width: 62ch;
}
.row .chips {
  margin-left: 9rem;
}
.empty {
  margin: 3rem 0;
  color: var(--ink-quiet);
}

@media (max-width: 600px) {
  .row__link {
    grid-template-columns: 1fr auto;
    gap: 0.25rem 1rem;
  }
  .row__date {
    grid-column: 1 / -1;
    order: -1;
  }
  .row__time {
    display: none;
  }
  .row .chips {
    margin-left: 0;
  }
}

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

.post {
  padding: clamp(2.2rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
}
/* The article IS the prose context: its font and size are the reading
   face, so the ch-based measure counts characters of the text it bounds. */
.article {
  font-family: var(--blog-body-font);
  font-size: 18px;
  line-height: 1.65;
  width: min(var(--measure), 100% - 2 * var(--blog-gutter));
  margin-inline: auto;
}
.article__head {
  margin-bottom: 2rem;
}
.article__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--ink);
  text-wrap: balance;
}
.article__lede {
  margin: 0 0 1.1rem;
  font-family: var(--blog-body-font);
  font-size: clamp(1.1rem, 1.6vw, 1.28rem);
  line-height: 1.5;
  color: var(--ink-quiet);
}
.article__head .chips {
  margin-top: 1rem;
}
.draftNote {
  margin: 1rem 0 0;
  padding: 0.6rem 0.9rem;
  background: var(--blog-wash);
  border: 1px solid var(--blog-wash-line);
  border-radius: var(--radius-s);
  font-family: var(--font-text);
  font-size: 0.9rem;
  color: var(--blog-accent-strong);
}

.article > .cover {
  margin: 0 0 2.2rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}
.article > .cover img {
  width: 100%;
}

/* reading body */
.prose {
  font-family: var(--blog-body-font);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.prose > :not(:first-child) {
  margin-top: 1.25em;
}
.prose p {
  margin-top: 0;
  margin-bottom: 0;
}
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.15;
  margin: 2.2em 0 0.7em;
  text-wrap: balance;
  scroll-margin-top: calc(var(--topbar-h, 56px) + 16px);
}
.prose h2 {
  font-size: 1.75rem;
  font-weight: 800;
}
.prose h3 {
  font-size: 1.3rem;
  font-weight: 700;
}
.prose h4 {
  font-size: 1.05rem;
  font-weight: 700;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose a {
  color: var(--blog-accent-strong);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  transition: text-decoration-thickness 0.15s;
}
.prose a:hover {
  color: var(--blog-accent-strong);
  text-decoration-thickness: 2px;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose li > ul,
.prose li > ol {
  margin-top: 0.4em;
}
.prose li::marker {
  color: var(--blog-accent-strong);
}
.prose hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.5em auto;
  width: 6rem;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--blog-accent);
  color: var(--ink-quiet);
  font-style: italic;
}
.prose blockquote p + p {
  margin-top: 0.8em;
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.35em;
  color: var(--ink);
}
.prose pre {
  margin: 1.6em 0;
  padding: 1.1rem 1.25rem;
  background: var(--asphalt);
  color: var(--thermo);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.6;
  position: relative;
}
.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
.prose pre[data-lang]::before {
  content: attr(data-lang);
  position: absolute;
  top: 0.55rem;
  right: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(242, 244, 240, 0.55);
}

/* images, gifs, video */
.prose img,
.prose video {
  margin: 1.8em auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.prose p > img:only-child,
.prose p > video:only-child {
  margin: 0 auto;
}
.prose p:has(> img:only-child),
.prose p:has(> video:only-child) {
  margin-top: 1.8em;
  margin-bottom: 1.8em;
  text-align: center;
}
.prose figure {
  margin: 1.8em 0;
}
.prose figure img,
.prose figure video {
  margin: 0 auto;
}
.prose figcaption,
.prose .caption {
  margin-top: 0.6rem;
  text-align: center;
  font-family: var(--font-text);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-quiet);
}
.prose figure.wide {
  width: min(1080px, 100vw - 2 * var(--blog-gutter));
  margin-left: 50%;
  transform: translateX(-50%);
}
.prose figure.wide img,
.prose figure.wide video {
  width: 100%;
}
.prose iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
  border-radius: var(--radius);
  margin: 1.8em 0;
  background: var(--asphalt);
}

/* Animated figures (GIF): a still poster by default; blog.js swaps in the
   animation only when motion is allowed, and the toggle gives the reader a
   pause control at all times (WCAG 2.2.2). Without JS the poster stands. */
.anim {
  position: relative;
}
.anim__frame {
  position: relative;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
}
.anim__frame img {
  margin: 0;
}
.anim__toggle {
  display: none;
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.35rem 0.85rem;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 27, 28, 0.82);
  color: var(--thermo);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.js .anim__toggle {
  display: inline-flex;
}
.anim__toggle:hover {
  background: var(--ink);
}
.anim__toggle:focus-visible {
  outline: 3px solid var(--thermo);
  outline-offset: 2px;
}
.anim__toggle::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 8px solid currentColor;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.anim--playing .anim__toggle::before {
  width: 8px;
  height: 10px;
  border: 0;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

/* The cost ledger: how a route is priced, drawn in the app's own route
   language. A miniature walk on top (origin ring -> casing/accent line with
   a busy stretch, a no-sidewalk stretch and a crossing tick -> school dot),
   then the formula as a ledger of factor rows whose swatches repeat the
   strip's idioms, so the formula and the map legend read as one system.
   Real text in real rows: it reflows to the column instead of scaling a
   raster down to 5px type on a phone. */
.costLedger {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem 0.6rem;
  font-family: var(--font-text);
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.costLedger__title {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.costLedger__strip {
  display: flex;
  align-items: center;
  height: 18px;
}
.costLedger__seg {
  height: 6px;
  background: var(--blog-accent);
}
.costLedger__seg--safe {
  flex: 2.2 1 0;
  border-radius: 3px 0 0 3px;
}
.costLedger__seg--busy {
  flex: 1.6 1 0;
  background: var(--route-busy, #8a5a9e);
}
.costLedger__seg--nosw {
  flex: 2 1 0;
  background: repeating-linear-gradient(
    90deg,
    var(--hazard) 0 9px,
    var(--surface) 9px 15px
  );
}
.costLedger__seg--end {
  border-radius: 0 3px 3px 0;
}
.costLedger__cross {
  width: 5px;
  height: 15px;
  margin: 0 2px;
  border-radius: 2px;
  background: var(--ink);
  flex: none;
}
.costLedger__origin {
  width: 11px;
  height: 11px;
  margin-right: 3px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--surface);
  flex: none;
}
.costLedger__school {
  width: 13px;
  height: 13px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ink);
  flex: none;
}
.costLedger__stripNote {
  margin: 0.45rem 0 0.9rem;
  font-size: 0.8rem;
  color: var(--ink-quiet);
}
.costRow {
  display: grid;
  grid-template-columns: 1.6rem 2.6rem minmax(0, 1fr);
  gap: 0 0.7rem;
  align-items: center;
  padding: 0.65rem 0;
  border-top: 1px solid var(--line-soft);
}
.costRow__op {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--blog-accent-strong);
  text-align: center;
}
.costRow--total {
  border-top: 1px solid var(--line);
}
.costRow__swatch {
  height: 6px;
  border-radius: 3px;
  background: var(--blog-accent);
}
.costRow__swatch--distance {
  background: var(--ink-quiet);
}
.costRow__swatch--sidewalk {
  background: repeating-linear-gradient(
    90deg,
    var(--hazard) 0 8px,
    var(--surface) 8px 13px
  );
  border-radius: 0;
}
.costRow__swatch--traffic {
  background: var(--route-busy, #8a5a9e);
}
.costRow__swatch--crossing {
  height: 14px;
  width: 5px;
  justify-self: center;
  border-radius: 2px;
  background: var(--ink);
}
.costRow__swatch--total {
  background: var(--blog-accent);
  box-shadow: 0 0 0 2px var(--paper);
}
.costRow__body p {
  margin: 0;
}
.costRow__term {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.costRow__note {
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink-quiet);
}
.costRow__num {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 480px) {
  .costRow {
    grid-template-columns: 1.4rem 2rem minmax(0, 1fr);
    gap: 0 0.55rem;
  }
}

/* tables */
.md-table {
  margin: 1.8em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-text);
  font-size: 0.93rem;
  line-height: 1.45;
}
.prose th,
.prose td {
  padding: 0.65rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.prose th {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--blog-wash);
}
.prose tbody tr:last-child td {
  border-bottom: 0;
}

/* footnotes */
.fnref a {
  text-decoration: none;
  font-family: var(--font-text);
  font-weight: 600;
  padding: 0 0.15em;
}
.footnotes {
  margin-top: 3em;
  font-size: 0.9rem;
  color: var(--ink-quiet);
}
.footnotes hr {
  margin: 0 0 1.2em;
  width: 6rem;
}
.footnotes ol {
  padding-left: 1.4em;
}
.fnback {
  text-decoration: none;
  margin-left: 0.3em;
}

/* prev / next */
.postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--blog-body-font);
  font-size: 18px;
  width: min(var(--measure), 100% - 2 * var(--blog-gutter));
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}
.pn {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--ink);
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.15s, transform 0.18s var(--ease-out);
}
.pn:hover {
  border-color: var(--blog-accent);
  transform: translateY(-1px);
}
.pn--next {
  text-align: right;
  align-items: flex-end;
}
.pn--empty {
  border: 0;
  background: transparent;
  pointer-events: none;
}
.pn__label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-accent-strong);
}
.pn__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
@media (max-width: 600px) {
  .postnav {
    grid-template-columns: 1fr;
  }
  .pn--empty {
    display: none;
  }
  .pn--next {
    text-align: left;
    align-items: flex-start;
  }
}

/* ------------------------------------------------------------------- 404 */

.notfound__main {
  padding-top: clamp(3rem, 10vh, 7rem);
}
.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.8rem 0 0;
}

/* The house reduced-motion clamp: durations go to ~0 (so transitionend
   still fires) and nothing loops. blog.js reads the same query for GIFs. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
