/* Blog layer on top of the field-guide styles: a site bar, a single reading column, walkthrough lists and numbered stops. */
.site-bar { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-bar .in { max-width: 1040px; margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-bar .me { font: 700 17px var(--display); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.site-bar nav { display: flex; gap: 16px; margin-left: auto; font-size: 14.5px; }
.site-bar nav a { color: var(--ink-2); text-decoration: none; }
.site-bar nav a:hover, .site-bar nav a[aria-current="page"] { color: var(--accent-ink); }

.post { max-width: 760px; margin: 0 auto; padding: 40px max(16px, env(safe-area-inset-left, 0px)) 96px; }
.post > header h1 { margin: 6px 0 12px; }
.post .meta { font: 500 13px/1.6 var(--mono); color: var(--muted); margin: 0 0 6px; }
.post .meta a { color: var(--accent-ink); }
.post .standfirst { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin: 0 0 8px; max-width: none; }
.post .asof { font: 500 12px/1.6 var(--mono); color: var(--muted); border-left: 2px solid var(--line-strong); padding-left: 10px; margin: 18px 0 0; }
.post section { margin-top: 44px; }
.post p, .post ul, .post ol { max-width: none; }
.post .fig { margin: 26px 0 8px; }

/* series box */
.series { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 28px 0 0; font-size: 14.5px; }
.series summary { cursor: pointer; font-weight: 600; }
.series ol { margin: 10px 0 2px; padding-left: 22px; }
.series li { margin: 3px 0; color: var(--muted); }
.series li a { color: var(--ink-2); }
.series li.cur { color: var(--ink); font-weight: 600; }
.series li .soon { font: 500 11.5px var(--mono); color: var(--muted); margin-left: 6px; }

/* walkthrough list under a diagram */
.walk { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 8px; counter-reset: none; }
.walk > li { position: relative; display: block; padding: 10px 12px 10px 48px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; font-size: 15px; line-height: 1.55; color: var(--ink-2); transition: border-color .15s, background .15s; margin: 0; }
.walk > li:hover { border-color: var(--line-strong); }
.walk > li.on { border-color: var(--accent); background: var(--accent-wash); }
.walk > li > .stopno { position: absolute; left: 12px; top: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 12.5px/24px var(--mono); text-align: center; }
.walk > li.on > .stopno { background: var(--human); }
.walk > li > .lbl { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.walk-title { font: 600 12.5px var(--mono); color: var(--muted); margin: 18px 0 0; letter-spacing: .02em; }

/* numbered stops drawn on the SVG */
.stops .stop { cursor: pointer; }
.stops .stop circle { fill: var(--accent); stroke: var(--surface); stroke-width: 2.5; }
.stops .stop text { fill: #fff; font: 600 12px var(--mono); pointer-events: none; }
.stops .stop.on circle { fill: var(--human); }
.anim.focus .stops .stop:not(.on) { opacity: .55; }

/* bridges between figures and prose */
.post .bridge { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; color: var(--ink-2); }
.post .read { font-size: 15px; color: var(--ink-2); }

/* prev / next */
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.pn a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; background: var(--surface); }
.pn a:hover { border-color: var(--accent); }
.pn small { display: block; font: 500 12px var(--mono); color: var(--muted); }
.pn span { color: var(--ink); font-weight: 600; }
.pn .next { text-align: right; grid-column: 2; }
.author { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.author a { color: var(--accent-ink); }

/* writing index */
.wlist { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.wlist li a { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); }
.wlist li a:hover { border-color: var(--accent); }
.wlist .d { font: 500 12.5px var(--mono); color: var(--muted); }
.wlist h2 { font-size: 20px; margin: 4px 0 6px; color: var(--ink); }
.wlist p { margin: 0; color: var(--ink-2); font-size: 15px; }

@media (max-width: 560px) {
  .post { padding-top: 26px; }
  .post .standfirst { font-size: 17px; }
  .pn { grid-template-columns: 1fr; }
  .pn .next { grid-column: 1; }
}

/* static figures: highlight layer boxes too */
.anim .lit .box-a, .anim .lit .box-q, .anim .lit.box-a, .anim .lit.box-q { stroke: var(--accent); stroke-width: 2.4; }
.anim.focus .nd:not(.lit) { opacity: .25; }
.post section { border-top: 1px solid var(--line); margin-top: 52px; padding-top: 36px; }
.post section:first-of-type { margin-top: 36px; }
@media (min-width: 1000px) {
  .post .fig { margin-left: -70px; margin-right: -70px; }
}
.themebtn { background: none; border: 1px solid var(--line); border-radius: 8px; width: 34px; height: 30px; display: inline-grid; place-items: center; color: var(--ink-2); cursor: pointer; }
.themebtn:hover { color: var(--accent-ink); border-color: var(--accent); }
.themebtn svg { width: 16px; height: 16px; }

/* quieter, neutral palette to match the homepage */
:root { --bg: #f8f8f7; --bg-2: #efefec; --surface: #ffffff; --line: #e3e3df; --grid: #ececea; --accent: #3d6b8e; --accent-ink: #2f5675; --accent-wash: rgba(61,107,142,.08); --code-bg: #f1f1ef; --s1: #3d6b8e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #141518; --bg-2: #1a1b1f; --surface: #1c1d21; --line: #2c2d33; --grid: #24252a; --accent: #8fb3d1; --accent-ink: #a9c6de; --accent-wash: rgba(143,179,209,.10); --code-bg: #1f2024; --s1: #8fb3d1; } }
:root[data-theme="dark"] { --bg: #141518; --bg-2: #1a1b1f; --surface: #1c1d21; --line: #2c2d33; --grid: #24252a; --accent: #8fb3d1; --accent-ink: #a9c6de; --accent-wash: rgba(143,179,209,.10); --code-bg: #1f2024; --s1: #8fb3d1; }
