/* V3 "AI Boost X" — forked from V1's combined build. Same system: G7's timeline spine + build,
   G5's gradient door cards on the home page, G1's top bar. Three profiles instead of five —
   Engineering (Job + SRE), AI Boost (the AI-coach lane), About (Career + Public profile) — plus
   the blog. */

:root {
  --bg: #f2f0ea;
  --bg-raised: #ffffff;
  --ink: #17191c;
  --ink-soft: #4a4d52;
  --line: #b7401f;
  --line-dim: #d9c9bd;
  --node: #b7401f;
  --node-role: #17191c;
  --accent: #275c66;
  --focus: #1451c9;
  --border: #ddd8ce;
  --tag-bg: #ece6d8;
  --tag-ink: #5a4a2f;
  --sample-bg: #fbeee3;
  --sample-border: #c07a3f;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif-head: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  /* door accents — one per profile, light mode */
  --eng: #2a5f8f;        --eng-tint: #d9e6f2;
  --boost: #6a3f91;      --boost-tint: #e6dcf2;
  --about: #1f5c5a;      --about-tint: #d9ece9;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14161a;
    --bg-raised: #1c1f24;
    --ink: #ecebe6;
    --ink-soft: #a9adb4;
    --line: #e08a54;
    --line-dim: #4a4038;
    --node: #e08a54;
    --node-role: #ecebe6;
    --accent: #6fb3ad;
    --focus: #7fb0ff;
    --border: #33363c;
    --tag-bg: #2a2d24;
    --tag-ink: #d8cba8;
    --sample-bg: #2a231c;
    --sample-border: #c07a3f;
    --eng: #7fb1e0;      --eng-tint: #16283a;
    --boost: #c6a3e6;    --boost-tint: #2a2038;
    --about: #6fc6bf;    --about-tint: #163431;
  }
}
:root[data-theme="dark"] {
  --bg: #14161a;
  --bg-raised: #1c1f24;
  --ink: #ecebe6;
  --ink-soft: #a9adb4;
  --line: #e08a54;
  --line-dim: #4a4038;
  --node: #e08a54;
  --node-role: #ecebe6;
  --accent: #6fb3ad;
  --focus: #7fb0ff;
  --border: #33363c;
  --tag-bg: #2a2d24;
  --tag-ink: #d8cba8;
  --sample-bg: #2a231c;
  --sample-border: #c07a3f;
  --eng: #7fb1e0;      --eng-tint: #16283a;
  --boost: #c6a3e6;    --boost-tint: #2a2038;
  --about: #6fc6bf;    --about-tint: #163431;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  font-size: 17px;
}
h1, h2, h3 { font-family: var(--serif-head); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; }
a { color: var(--accent); text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
img { max-width: 100%; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--focus); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* header / nav — G1's top bar: sticky, monogram brand, pill nav items, six entries */
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  position: sticky; top: 0; z-index: 10;
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1040px; margin: 0 auto; padding: 12px 20px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark {
  width: 42px; height: 32px; border-radius: 8px; background: var(--accent); color: var(--bg-raised);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono);
  font-size: 12px; font-weight: 700; flex: none; letter-spacing: .02em;
}
.brand strong { font-family: var(--serif-head); font-size: 17px; }
nav.tabs { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
nav.tabs a {
  text-decoration: none; color: var(--ink-soft); font-size: 13.5px; padding: 7px 10px;
  border-radius: 999px; border: 1px solid transparent;
}
nav.tabs a[aria-current="page"] { color: var(--bg-raised); background: var(--accent); font-weight: 700; }
nav.tabs a:hover { color: var(--ink); border-color: var(--border); }
.theme-toggle {
  font-family: var(--mono); font-size: 12px; background: transparent; color: var(--ink-soft);
  border: 1px solid var(--border); border-radius: 999px; padding: 7px 10px; cursor: pointer; margin-left: 4px;
}
.theme-toggle:hover { color: var(--ink); }

main { display: block; }
.hero { padding: 44px 0 8px; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero h1 { font-size: 40px; margin-top: .25em; }
.hero p.lede { font-size: 18px; color: var(--ink-soft); max-width: none; }
.hero p.hero-card {
  display: inline-block; margin: 14px 0 0; padding: 16px 22px; border-radius: 10px;
  border: 2px solid var(--boost); background: linear-gradient(135deg, var(--boost-tint), var(--bg-raised) 75%);
  font-size: 19px; font-weight: 600; color: var(--ink); max-width: none; line-height: 1.4;
}

/* ===== the spine ===== */
.spine {
  position: relative;
  margin: 28px 0 8px;
  padding-left: 34px;
}
.spine::before {
  content: "";
  position: absolute; left: 9px; top: 4px; bottom: 4px; width: 2px;
  background: linear-gradient(to bottom, var(--line-dim), var(--line) 6%, var(--line) 94%, var(--line-dim));
}
.spine-stop {
  position: relative;
  padding: 6px 0 30px 28px;
}
.spine-stop::before {
  content: "";
  position: absolute; left: -34px; top: 8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--node);
}
.spine-stop.era::before { border-radius: 3px; }
.spine-stop h2 { font-size: 15px; }
.spine-stop .stop-eyebrow {
  font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .04em;
}
.spine-stop .stop-title { font-family: var(--serif-head); font-size: 26px; margin: 2px 0 6px; }
.spine-stop p { margin: 6px 0; color: var(--ink-soft); max-width: 62ch; }
.spine-stop .open-link { font-weight: 700; }

/* ===== home: gradient door cards (G5), five doors ===== */
.doors {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 28px 0 10px;
}
.door {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  border: 2px solid var(--border); border-radius: 10px; padding: 22px 18px 20px; min-width: 0;
  background: var(--bg-raised); transition: transform .15s ease, box-shadow .15s ease;
}
.door:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(0,0,0,.35); }
.door .door-kicker { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.door h2 { font-family: var(--sans); font-size: 20px; margin: 8px 0 6px; }
.door p { margin: 0 0 14px; color: var(--ink-soft); font-size: 14px; flex-grow: 1; }
.door .door-cta { font-weight: 700; font-size: 13px; }
.door--eng { border-color: var(--eng); background: linear-gradient(180deg, var(--eng-tint), var(--bg-raised) 60%); }
.door--eng .door-kicker, .door--eng .door-cta { color: var(--eng); }
.door--boost { border-color: var(--boost); background: linear-gradient(180deg, var(--boost-tint), var(--bg-raised) 60%); }
.door--boost .door-kicker, .door--boost .door-cta { color: var(--boost); }
.door--about { border-color: var(--about); background: linear-gradient(180deg, var(--about-tint), var(--bg-raised) 60%); }
.door--about .door-kicker, .door--about .door-cta { color: var(--about); }
.blog-teaser { margin: 18px 0 60px; }
.blog-teaser a { font-weight: 700; }

/* ===== home containers (VOTE 2): the proving run + latest from the blog ===== */
.home-container { margin: 26px 0; }
.container-heading { font-size: 20px; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin: 0 0 4px; }
.proving-card {
  display: block; text-decoration: none; color: var(--ink); border: 2px solid var(--boost); border-radius: 12px;
  padding: 22px 24px; background: linear-gradient(120deg, var(--boost-tint), var(--bg-raised) 70%);
  transition: transform .15s ease, box-shadow .15s ease;
}
.proving-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(0,0,0,.35); }
.proving-kicker {
  font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--boost);
}
.proving-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 14px 0 16px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--serif-head); font-size: 30px; font-weight: 700; line-height: 1; color: var(--ink); }
.stat-label { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.recovery-lead { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; }
.recovery-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.recovery-chips li {
  font-family: var(--mono); font-size: 12px; color: var(--tag-ink); background: var(--tag-bg);
  padding: 4px 9px; border-radius: 999px;
}

/* ===== dated artefact cards (G3), used on Job and other profiles ===== */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 16px 0 30px; }
.card {
  position: relative; border: 1px solid var(--border); border-radius: 8px; padding: 16px 40px 14px 16px;
  background: var(--bg-raised);
}
.card .stamp {
  position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 12px; color: var(--accent);
}
.card .card-meta {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft);
  margin: 0 0 4px;
}
.card h3 { font-family: var(--sans); font-size: 16px; margin: 0 0 4px; }
.card .card-note { margin: 0; color: var(--ink-soft); font-size: 13.5px; }
.band-note { color: var(--ink-soft); margin: -6px 0 4px; }

/* dense record rows used in job/career/marketing */
.record {
  position: relative; padding: 10px 0 10px 28px; border-bottom: 1px dashed var(--border);
}
.record:last-child { border-bottom: none; }
.record::before {
  content: ""; position: absolute; left: -34px; top: 17px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--node); border: 2px solid var(--bg);
}
.record.kind-role::before { border-radius: 2px; background: var(--node-role); }
.record.kind-talk::before { transform: rotate(45deg); border-radius: 2px; }
.record.kind-span::before {
  width: 6px; height: 24px; top: 8px; border-radius: 3px; background: var(--accent); border: none;
}
.record .rec-year { font-family: var(--mono); font-size: 12px; color: var(--accent); display: block; }
.record h3 { font-size: 17px; margin: 2px 0 4px; font-family: var(--sans); font-weight: 700; }
.record p { margin: 2px 0; color: var(--ink-soft); }
.rec-tag {
  display: inline-block; font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--tag-ink); background: var(--tag-bg); padding: 2px 6px; border-radius: 3px;
  margin-right: 6px;
}

.now-band {
  border: 1px solid var(--border); background: var(--bg-raised); border-radius: 8px;
  padding: 14px 16px; margin: 0 0 20px 0;
}
.now-band .stop-eyebrow { margin-bottom: 4px; display: block; }

.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-soft); margin: 6px 0 26px; }
.legend .dot, .legend .sq, .legend .dm {
  display: inline-block; width: 9px; height: 9px; background: var(--node); margin-right: 6px; vertical-align: middle;
}
.legend .sq { border-radius: 2px; background: var(--node-role); }
.legend .dm { transform: rotate(45deg); border-radius: 2px; }

section.block { margin: 34px 0; }
section.block h2 { font-size: 22px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }

.sample {
  background: var(--sample-bg); border: 1px dashed var(--sample-border); border-radius: 8px; padding: 12px 14px;
  position: relative;
}
.sample-tag {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .06em;
  background: var(--sample-border); color: #fff; padding: 2px 6px; border-radius: 3px; margin-right: 8px;
}

footer.site {
  border-top: 1px solid var(--border); margin-top: 50px; padding: 24px 0 40px; color: var(--ink-soft); font-size: 14px;
}
footer.site .links a { margin-right: 14px; }
footer.site p { margin: 6px 0; }

.tag-list a {
  display: inline-block; font-family: var(--mono); font-size: 12px; background: var(--tag-bg); color: var(--tag-ink);
  padding: 3px 8px; border-radius: 4px; margin: 0 6px 6px 0; text-decoration: none;
}

.post-list article { padding: 16px 0; border-bottom: 1px dashed var(--border); }
.post-list h2 { font-size: 20px; margin-bottom: 4px; }
.post-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }

/* ===== blog post body: headings/lists/tables from the extended markdown parser ===== */
article h2 { font-size: 22px; border-bottom: 1px solid var(--border); padding-bottom: 8px; margin: 34px 0 14px; }
article h2:first-child { margin-top: 8px; }
article p { color: var(--ink-soft); max-width: 68ch; }
article ul, article ol { margin: 10px 0 20px; padding-left: 1.3em; max-width: 68ch; }
article li { margin: 6px 0; color: var(--ink-soft); }
article strong { color: var(--ink); }

/* a pipe table: horizontal scroll stays INSIDE the wrapper, never the page, at phone width */
.table-wrap { overflow-x: auto; margin: 4px 0 26px; border: 1px solid var(--border); border-radius: 8px; -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 15px; }
.table-wrap th, .table-wrap td { padding: 9px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td { border-bottom: none; }
.table-wrap thead th {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft); background: var(--bg); border-bottom: 2px solid var(--border);
}
.table-wrap tbody th[scope="row"] { font-weight: 700; color: var(--ink); white-space: nowrap; background: var(--bg); }
.table-wrap strong { color: var(--ink); }

/* a small "not published yet" flag on a post card and on the post page itself */
.draft-badge {
  display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--sample-border); background: var(--sample-bg);
  border: 1px solid var(--sample-border); padding: 3px 8px; border-radius: 4px;
}
p.draft-badge { margin: 6px 0 4px; }

/* ===== inline SVG data visuals inside a post body ===== */
.post-visual { margin: 8px 0 28px; padding: 0; }
.visual-caption { font-family: var(--mono); font-size: 12.5px; color: var(--ink-soft); margin: 0 0 10px; max-width: 68ch; }
.chart-svg { display: block; max-width: 640px; height: auto; }
.chart-svg text { font-family: var(--sans); }
.chart-svg .chart-label { font-size: 12px; fill: var(--ink-soft); }
.chart-svg .chart-value { font-size: 12px; font-weight: 700; fill: var(--ink); font-family: var(--mono); }
.diagram-svg .diagram-title { font-size: 13px; font-weight: 700; fill: var(--ink); }
.diagram-svg .diagram-sub { font-size: 10.5px; fill: var(--ink-soft); }
.diagram-svg .diagram-arrow-label {
  font-size: 10px; fill: var(--ink-soft); font-family: var(--mono);
}

/* watched-write flow: five real, readable steps, not an image */
.flow-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 68ch; }
.flow-steps li {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; color: var(--ink-soft);
  border: 1px solid var(--border); border-radius: 8px; background: var(--bg-raised);
}
.flow-num {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--bg-raised);
  display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 12px;
}
.flow-stats { margin-top: 14px; gap: 22px; }

@media (max-width: 900px) {
  .doors { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 30px; }
  .wrap { padding: 0 16px; }
  .spine { padding-left: 26px; }
  .spine::before { left: 7px; }
  .spine-stop, .record { padding-left: 22px; }
  .spine-stop::before { left: -27px; }
  .record::before { left: -27px; }
  .nav-row { padding: 10px 14px; }
  nav.tabs a { padding: 6px 8px; font-size: 12.5px; }
  .doors { grid-template-columns: 1fr; }
  .wall { grid-template-columns: 1fr; }
}

/* Featured post: one highlighted card on home and at the top of the blog index */
.featured-post {
  display: block; text-decoration: none; color: var(--ink); border: 2px solid var(--eng); border-radius: 12px;
  padding: 22px 24px; margin: 16px 0 6px; background: linear-gradient(120deg, var(--eng-tint), var(--bg-raised) 70%);
  transition: transform .15s ease, box-shadow .15s ease;
}
.featured-post:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(0,0,0,.35); }
.featured-kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--eng); }
.featured-title { font-size: 22px; margin: 6px 0 10px; line-height: 1.3; }
.featured-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.featured-chip {
  font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--bg-raised); border: 1px solid var(--eng); color: var(--ink);
}
.featured-summary { margin: 0 0 10px; color: var(--ink-soft); }
.featured-cta { font-weight: 600; color: var(--eng); }

/* Spotlight post: a framed card with a small thumbnail, under the featured card on home */
.spotlight-post {
  display: flex; gap: 18px; align-items: center; text-decoration: none; color: var(--ink);
  border: 2px solid var(--boost); border-radius: 12px; padding: 14px; margin: 14px 0 6px;
  background: linear-gradient(120deg, var(--boost-tint), var(--bg-raised) 70%);
  transition: transform .15s ease, box-shadow .15s ease;
}
.spotlight-post:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -14px rgba(0,0,0,.35); }
.spotlight-thumb { width: 180px; height: 101px; object-fit: cover; border-radius: 8px; flex: none; }
.spotlight-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spotlight-post .featured-kicker { color: var(--boost); }
.spotlight-title { font-family: var(--serif-head); font-size: 19px; font-weight: 700; line-height: 1.3; }
.spotlight-summary { font-size: 14px; color: var(--ink-soft); }
.spotlight-post .featured-cta { color: var(--boost); font-size: 15px; }
@media (max-width: 560px) {
  .spotlight-post { flex-direction: column; align-items: stretch; }
  .spotlight-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}

/* Blog index: featured card with the hierarchy thumbnail, and a bigger spotlight card */
.featured-post--thumb { display: flex; gap: 22px; align-items: center; }
.featured-thumb { width: 300px; height: auto; border-radius: 8px; flex: none; background: #f2f0ea; }
.featured-body { display: flex; flex-direction: column; min-width: 0; }
.featured-post--thumb .featured-chips { display: flex; }
.featured-post--thumb .featured-summary { display: block; }
.spotlight-post--big { padding: 18px; gap: 22px; }
.spotlight-post--big .spotlight-thumb { width: 300px; height: 169px; }
.spotlight-post--big .spotlight-title { font-size: 23px; }
.spotlight-post--big .spotlight-summary { font-size: 16px; }
@media (max-width: 720px) {
  .featured-post--thumb, .spotlight-post--big { flex-direction: column; align-items: stretch; }
  .featured-thumb, .spotlight-post--big .spotlight-thumb { width: 100%; height: auto; }
}

/* Home: the featured card's thumbnail at the same small size as the spotlight card's */
.featured-post--small .featured-thumb { width: 180px; }
.featured-post--small { gap: 18px; padding: 16px 20px; }
@media (max-width: 560px) {
  .featured-post--small { flex-direction: column; align-items: stretch; }
  .featured-post--small .featured-thumb { width: 100%; }
}

/* Header logo: the AI Coach mark (his original SVG) */
.brand .mark-img { width: 44px; height: 44px; display: block; flex: none; }

/* /boost/ — Long-Horizon banner (fixed dark palette, reads the same in both themes) */
.lh-banner { background: linear-gradient(135deg, #0f1f4d 0%, #1e3a8a 60%, #274690 100%); color: #fff; border-radius: 14px; padding: 26px 26px 22px; margin: 14px 0 18px; }
.lh-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #93c5fd; margin: 0 0 6px; }
.lh-title { font-family: var(--serif-head); font-size: 28px; line-height: 1.2; margin: 0 0 18px; color: #fff; }
.lh-flow { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.lh-node { flex: 1 1 170px; display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,.08); border: 1.5px solid #60a5fa; border-radius: 10px; padding: 12px 14px; }
.lh-node--wide { flex: 1.4 1 220px; }
.lh-node-title { font-weight: 700; font-size: 16px; }
.lh-node-sub { font-size: 13px; color: #bfdbfe; }
.lh-arrow { align-self: center; font-size: 22px; color: #93c5fd; }
.lh-ticks { display: grid; grid-template-columns: repeat(8, 14px); gap: 4px; }
.lh-tick { width: 14px; height: 14px; border-radius: 3px; background: #4ade80; box-shadow: inset 0 0 0 2px rgba(0,0,0,.15); }
.lh-pips { display: grid; grid-template-columns: repeat(7, 22px); gap: 5px; }
.lh-pip { width: 22px; height: 22px; border-radius: 50%; background: #93c5fd; color: #0f1f4d; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.lh-stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 20px 0 6px; }
.lh-stat { display: flex; flex-direction: column; }
.lh-num { font-family: var(--serif-head); font-size: 34px; font-weight: 700; line-height: 1.1; }
.lh-lbl { font-size: 13px; color: #bfdbfe; }
.lh-survived { font-size: 13px; color: #bfdbfe; margin: 10px 0 6px; }
.lh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lh-chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid #60a5fa; background: rgba(255,255,255,.08); }
@media (max-width: 640px) { .lh-arrow { transform: rotate(90deg); width: 100%; text-align: center; } .lh-title { font-size: 23px; } }

/* /boost/ — agent-team flow */
.tf { margin: 12px 0 16px; }
.tf-band { margin: 0 0 10px; padding: 10px 14px; border-radius: 10px; font-size: 14px; background: #1e3a8a; color: #fff; border: 2px solid #60a5fa; }
.tf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: none; }
.tf-step { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 10px; border: 2px solid var(--boost); background: linear-gradient(180deg, var(--boost-tint), var(--bg-raised) 80%); }
.tf-step:last-child { border-color: var(--ink); background: var(--bg-raised); }
.tf-n { font-family: var(--mono); font-size: 12px; color: var(--boost); }
.tf-title { font-weight: 700; font-size: 16px; }
.tf-sub { font-size: 13px; color: var(--ink-soft); }
.tf-step:not(:last-child)::after { content: "\2192"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); font-size: 16px; }
@media (max-width: 760px) { .tf-steps { grid-template-columns: 1fr; } .tf-step:not(:last-child)::after { content: "\2193"; right: auto; left: 50%; top: auto; bottom: -15px; transform: translateX(-50%); } }

/* /boost/ — the boost as three range bars on a log scale */
.bb { margin: 16px 0 8px; padding: 18px 18px 10px; border: 2px solid var(--boost); border-radius: 12px; background: var(--bg-raised); }
.bb-row { margin: 0 0 14px; }
.bb-label { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 5px; }
.bb-name { font-weight: 600; font-size: 15px; color: var(--ink); }
.bb-range { font-family: var(--serif-head); font-weight: 700; font-size: 20px; color: var(--ink); white-space: nowrap; }
.bb-track { position: relative; height: 18px; border-radius: 4px; background: var(--boost-tint); }
.bb-bar { position: absolute; top: 0; bottom: 0; min-width: 6px; border-radius: 4px; background: var(--boost); }
.bb-axis { position: relative; height: 22px; margin-top: 2px; border-top: 1px solid var(--border); }
.bb-tick { position: absolute; top: 4px; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: var(--ink-soft); }
.bb-tick:first-child { transform: none; }
.bb-tick:last-child { transform: translateX(-100%); }

/* Post bar charts (model-test benchmark): the same bar look as /boost/, with a chart title */
.bb-title { font-family: var(--serif-head); font-weight: 700; font-size: 17px; margin: 0 0 12px; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--bg-raised); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }

/* Long link text (sources, URLs) wraps instead of pushing the page wider on phones */
main a { overflow-wrap: anywhere; }

/* Post pages: a heading index on the left, text that fills the window, the list of all posts on the right */
html { scroll-behavior: smooth; }
.post-layout {
  max-width: 1600px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 230px minmax(0, 1fr) 270px; gap: 36px; align-items: start;
}
.post-layout article p, .post-layout article ul, .post-layout article ol, .post-layout .visual-caption { max-width: none; }
.post-layout article h2[id], .post-layout article h3[id] { scroll-margin-top: 84px; }
.toc, .postlist {
  position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; font-size: 14px;
  padding-top: 24px;
}
.toc summary { cursor: pointer; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 10px; }
.toc ol, .postlist ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0 0 7px; line-height: 1.35; }
.toc li.toc-l3 { padding-left: 14px; font-size: 13px; }
.toc a, .postlist a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover, .postlist a:hover { color: var(--accent); text-decoration: underline; }
.pl-head { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin: 0 0 10px; }
.postlist li { margin: 0 0 12px; line-height: 1.35; padding-left: 10px; border-left: 2px solid var(--border); }
.postlist li.current { border-left-color: var(--accent); }
.postlist li.current a { color: var(--ink); font-weight: 700; }
.pl-date { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
.pl-all { margin-top: 14px; }
@media (max-width: 1100px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 0 16px; }
  .toc, .postlist { position: static; max-height: none; overflow: visible; padding-top: 12px; }
  .toc { border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; margin-top: 12px; }
  .postlist { border-top: 1px solid var(--border); margin-top: 24px; padding-top: 18px; }
}

/* post title frame with decoration images */
.title-frame{background-size:cover;background-position:right center;border-radius:12px;padding:clamp(48px,9vw,96px) clamp(18px,4vw,36px) clamp(20px,3vw,32px);margin:0 0 10px}
.title-frame h1{margin:0;color:#f4f2ec;text-shadow:0 2px 14px rgba(5,12,30,.7);max-width:20ch}
.deco-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0 0 14px}
.deco-strip img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:8px;display:block}
@media (max-width:520px){.deco-strip{grid-template-columns:repeat(2,1fr)}}

/* beautified post side panels */
.toc, .postlist { background: var(--bg-raised); border: 1px solid var(--border); border-radius: 12px; padding: 16px 16px 14px; box-shadow: 0 1px 2px rgba(20,30,40,.05); }
.toc summary, .pl-head { display: flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .1em; color: var(--accent); margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.toc summary { list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::before, .pl-head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.toc ol { position: relative; }
.toc li { margin: 0; }
.toc li a { display: block; padding: 5px 8px 5px 12px; border-left: 2px solid transparent; border-radius: 0 6px 6px 0; font-size: 13.5px; transition: background .15s, color .15s; }
.toc li.toc-l3 { padding-left: 0; }
.toc li.toc-l3 a { padding-left: 24px; font-size: 12.5px; }
.toc a:hover { background: var(--tag-bg); color: var(--ink); text-decoration: none; }
.toc a.on { border-left-color: var(--accent); background: var(--about-tint); color: var(--ink); font-weight: 600; }
.postlist li { margin: 0 0 8px; padding: 0; border-left: 0; }
.postlist li a { display: block; padding: 9px 11px; border: 1px solid transparent; border-radius: 9px; font-size: 13.5px; line-height: 1.35; }
.postlist li a:hover { background: var(--tag-bg); color: var(--ink); text-decoration: none; }
.postlist li.current a { background: var(--about-tint); border-color: var(--accent); color: var(--ink); }
.postlist li .pl-date { display: block; margin: 3px 0 0; padding: 0; }
.pl-all a { font-family: var(--mono); font-size: 12px; color: var(--accent); }
@media (max-width: 1100px) { .toc { padding: 12px 14px; } }

/* home banner card */
.banner-post { display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; min-height: 220px; padding: 26px clamp(18px,4vw,34px); margin: 0 0 16px; border-radius: 14px; background-size: cover; background-position: right center; color: #f4f2ec; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.banner-post:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(5,12,30,.6); }
.banner-post .featured-kicker { color: #f0b072; }
.banner-title { font-family: var(--serif-head); font-size: clamp(24px,3.4vw,34px); font-weight: 700; line-height: 1.2; max-width: 20ch; text-shadow: 0 2px 14px rgba(5,12,30,.7); }
.banner-summary { font-size: 15px; color: #dfe6ea; max-width: 46ch; text-shadow: 0 1px 8px rgba(5,12,30,.7); }
.banner-cta { font-family: var(--mono); font-size: 13px; color: #f0b072; }
/* "Why 100x is easier than 1x" banner. Wide screens (over 820px) use /assets/posts/why-100x-rings.svg as the frame image, with the art kept right of the title.
   Phones and tablets (820px and under) draw /assets/posts/why-100x-rings-phone.svg as a block above the text on the site's own gradient, so the text never sits on the art.
   Scoped to the rings variant only. */
@media (max-width: 820px) {
  .title-frame--rings, .banner-post--rings { background-image: linear-gradient(90deg, #12143a, #1a2d4d 55%, #1f4a56) !important; }
  .title-frame--rings { padding-top: 14px; }
  .title-frame--rings::before, .banner-post--rings::before { content: ""; display: block; flex: none; width: 100%; max-width: 560px; margin: 0 0 12px auto; aspect-ratio: 1200 / 420; background: url(/assets/posts/why-100x-rings-phone.svg) right center / 100% 100% no-repeat; }
}
/* "Riding two AI horses" banner. On phones and tablets (820px and under) the picture sits as a block above the headline, so the text never crosses the art. Scoped to the horses variant only. */
@media (max-width: 820px) {
  .title-frame--horses, .banner-post--horses { background-image: none !important; background-color: #0a1028; }
  .title-frame--horses, .banner-post--horses { padding-top: 0; overflow: hidden; }
  .title-frame--horses::before, .banner-post--horses::before { content: ""; display: block; flex: none; margin: 0 calc(-1 * clamp(18px, 4vw, 36px)) 14px; aspect-ratio: 840 / 560; background: url(/assets/posts/two-horses-banner-phone.jpg) center / cover no-repeat; }
}
/* Keep the horses banner at the same height now that its title is two lines. */
@media (min-width: 821px) { .title-frame--horses { min-height: 246px; display: flex; flex-direction: column; justify-content: center; } }
/* TOC v2: rail, numbers, progress */
.toc-progress { height: 3px; background: var(--border); border-radius: 3px; margin: -2px 0 12px; overflow: hidden; }
.toc-progress i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 3px; transition: width .1s linear; }
.toc ol { counter-reset: sec; margin-left: 4px; border-left: 2px solid var(--border); }
.toc li a { position: relative; border-left: 0; padding: 6px 8px 6px 20px; border-radius: 0 8px 8px 0; }
.toc li.toc-l2 { counter-increment: sec; }
.toc li.toc-l2 > a::before { content: counter(sec, decimal-leading-zero); font-family: var(--mono); font-size: 10.5px; color: var(--accent); opacity: .75; margin-right: 8px; }
.toc li.toc-l3 a { padding-left: 42px; }
.toc li a::after { content: ""; position: absolute; left: -6px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--bg-raised); border: 2px solid var(--border); }
.toc li.toc-l3 a::after { width: 6px; height: 6px; margin-top: -3px; left: -4px; }
.toc a.on::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--about-tint); }
.toc a.on { background: linear-gradient(90deg, var(--about-tint), transparent); }

/* model-coloured bar charts: green Sonnet, yellow Opus, orange Fable (same colours as the maps) */
.bb--models { border-color: var(--border); --m-son:#2e9e5b; --m-sont:#dcefe2; --m-opu:#e6b422; --m-oput:#f6ecc8; --m-fab:#e8772e; --m-fabt:#fbe3d2; --m-gf:#3a8fe0; --m-gft:#dce9f8; --m-arg:#c2457a; --m-argt:#f6dce7; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bb--models { --m-son:#4cc27f; --m-sont:#173324; --m-opu:#f0c93c; --m-oput:#332b10; --m-fab:#f08a44; --m-fabt:#3a2412; --m-gf:#4a97ea; --m-gft:#14283f; --m-arg:#d95f94; --m-argt:#3a1a2b; } }
:root[data-theme="dark"] .bb--models { --m-son:#4cc27f; --m-sont:#173324; --m-opu:#f0c93c; --m-oput:#332b10; --m-fab:#f08a44; --m-fabt:#3a2412; --m-gf:#4a97ea; --m-gft:#14283f; --m-arg:#d95f94; --m-argt:#3a1a2b; }
.bb--models .m-son .bb-bar { background: var(--m-son); } .bb--models .m-son .bb-track { background: var(--m-sont); }
.bb--models .m-opu .bb-bar { background: var(--m-opu); } .bb--models .m-opu .bb-track { background: var(--m-oput); }
.bb--models .m-fab .bb-bar { background: var(--m-fab); } .bb--models .m-fab .bb-track { background: var(--m-fabt); }
.bb--models .m-gf .bb-bar { background: var(--m-gf); } .bb--models .m-gf .bb-track { background: var(--m-gft); }
.bb--models .m-arg .bb-bar { background: var(--m-arg); } .bb--models .m-arg .bb-track { background: var(--m-argt); }

/* alternate row shading for multi-row lists: contents index, all-posts list, post tables */
.toc ol > li:nth-child(even) > a:not(.on) { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.postlist li:nth-child(even):not(.current) > a { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.post-layout article tbody tr:nth-child(even) > td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
/* A post's second title line, from the optional "subtitle:" front-matter field. */
.post-subtitle { font-family: var(--serif-head); font-size: clamp(19px, 2.4vw, 23px); line-height: 1.35; color: var(--ink-soft); margin: 4px 0 10px; max-width: 46ch; }
/* A picture floated right beside a post's opening text (visual_side). Hidden on phones, where the banner shows the same art. */
.post-side { float: right; width: min(340px, 42%); margin: 4px 0 14px 22px; }
.post-side img { display: block; }
@media (max-width: 820px) { .post-side { display: none; } }
/* "A curated LLM eval package" banner (control panel). Wide screens use agent-eval-banner-panel.svg as the frame image, with the art kept right of the title.
   Phones and tablets (820px and under) draw agent-eval-banner-panel-phone.svg as a block above the text on the site's own gradient. Scoped to the panel variant only. */
@media (max-width: 820px) {
  .title-frame--panel, .banner-post--panel { background-image: linear-gradient(90deg, #12143a, #1a2d4d 55%, #1f4a56) !important; }
  .title-frame--panel { padding-top: 14px; }
  .title-frame--panel::before, .banner-post--panel::before { content: ""; display: block; flex: none; width: 100%; max-width: 560px; margin: 0 0 12px auto; aspect-ratio: 1200 / 420; background: url(/assets/posts/agent-eval-banner-panel-phone.svg) right center / 100% 100% no-repeat; }
}
@media (min-width: 821px) { .title-frame--panel h1 { max-width: min(20ch, 50%); } }
/* "PHP2Shell response" banner (response board): same frame pattern as the panel variant, with this post's own phone image. Scoped to the board variant only. */
@media (max-width: 820px) {
  .title-frame--board, .banner-post--board { background-image: linear-gradient(90deg, #12143a, #1a2d4d 55%, #1f4a56) !important; }
  .title-frame--board { padding-top: 14px; }
  .title-frame--board::before, .banner-post--board::before { content: ""; display: block; flex: none; width: 100%; max-width: 560px; margin: 0 0 12px auto; aspect-ratio: 1200 / 420; background: url(/assets/posts/php2shell-banner-alarm-phone.svg) right center / 100% 100% no-repeat; }
}
@media (min-width: 821px) { .title-frame--board h1 { max-width: min(20ch, 50%); } }
/* Links inside tables wrap between words, not mid-word (main a uses overflow-wrap:anywhere, which split "Anthropic"). */
.table-wrap a { overflow-wrap: break-word; }
/* Fenced code blocks in posts (parse_markdown, 2026-10-25). */
.post-layout article pre { background: color-mix(in srgb, var(--accent) 8%, transparent); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; }
.post-layout article pre code { font-family: var(--mono); font-size: 14px; line-height: 1.5; background: none; padding: 0; border: 0; }
