/* bricolage-grotesque-vietnamese-opsz-normal */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/_astro/bricolage-grotesque-vietnamese-opsz-normal.D9N6E8K1.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* bricolage-grotesque-latin-ext-opsz-normal */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/_astro/bricolage-grotesque-latin-ext-opsz-normal.IcJDqblK.woff2) format('woff2-variations');
  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;
}

/* bricolage-grotesque-latin-opsz-normal */
@font-face {
  font-family: 'Bricolage Grotesque Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/_astro/bricolage-grotesque-latin-opsz-normal.Cre6nC2_.woff2) format('woff2-variations');
  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;
}/* newsreader-vietnamese-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/_astro/newsreader-vietnamese-wght-normal.Czsa-EzN.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* newsreader-latin-ext-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/_astro/newsreader-latin-ext-wght-normal.C-3rgBeH.woff2) format('woff2-variations');
  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;
}

/* newsreader-latin-wght-normal */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/_astro/newsreader-latin-wght-normal.CCVVNp6i.woff2) format('woff2-variations');
  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;
}/* jetbrains-mono-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(data:font/woff2;base64,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) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* jetbrains-mono-cyrillic-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-cyrillic-wght-normal.D73BlboJ.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* jetbrains-mono-greek-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-greek-wght-normal.Bw9x6K1M.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* jetbrains-mono-vietnamese-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-vietnamese-wght-normal.Bt-aOZkq.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* jetbrains-mono-latin-ext-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-latin-ext-wght-normal.DBQx-q_a.woff2) format('woff2-variations');
  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;
}

/* jetbrains-mono-latin-wght-normal */
@font-face {
  font-family: 'JetBrains Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/_astro/jetbrains-mono-latin-wght-normal.B9CIFXIH.woff2) format('woff2-variations');
  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;
}/* jessejohnston.ai, design/bold: an engineer's field notebook.
   Bricolage Grotesque for display and interface, Newsreader for reading,
   JetBrains Mono for the machine voice (dates, labels, code).
   Flourish lives in the frame; article prose stays quiet. */
/* jessejohnston.ai design tokens (design/bold).
   Light paper is #fbfaf5 on purpose: it is the canvas color baked into
   every hand-drawn diagram PNG, so diagrams sit on the page without a box.
   Dark mode puts diagrams on paper plates instead (see .prose figures).
   Text and background pairs are checked against WCAG AA by
   scripts/contrast.mjs; change both together. */
:root {
  color-scheme: light;

  --paper: #fbfaf5;
  --paper-2: #f3f0e6;
  --paper-3: #e9e4d6;
  --card: #fffefa;
  --plate: #fbfaf5;
  --ink: #17160f;
  --ink-2: #39372f;
  --muted: #5f5c53;
  --rule: #e2ddcf;
  --rule-strong: #cdc6b3;
  --accent: #b23c09;
  --accent-bright: #d9531a;
  --accent-wash: #fbe7dc;
  --blue: #2742a8;
  --on-accent: #fffefa;
  --band: #15140f;
  --band-ink: #f2eee3;
  --band-muted: #b5b0a2;
  --band-rule: #2f2d27;
  --code-bg: #f1eee4;

  /* Topic hues: swatches, bars and borders; topic TEXT uses --ink. */
  --t-agents: #c1440e;
  --t-homelab: #2f4fbf;
  --t-multi-device: #7b3fb5;
  --t-local-ai: #2b7a4b;
  --t-workflow: #b5790f;
  --t-security: #0e7c80;

  --live: #2b8a50;
  --shakedown: #a8740a;

  --shadow-1: 0 1px 2px rgb(40 30 10 / 0.06), 0 10px 30px -18px rgb(40 30 10 / 0.25);
  --shadow-2: 0 2px 6px rgb(40 30 10 / 0.07), 0 30px 60px -30px rgb(40 30 10 / 0.35);

  --font-display: 'Bricolage Grotesque Variable', 'Bricolage Fallback', 'Bricolage Fallback Android', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-text: 'Newsreader Variable', 'Newsreader Fallback', 'Newsreader Fallback Android', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-mono: 'JetBrains Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;

  --step--2: 0.75rem;
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.45rem, 1.25rem + 1vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 2vw, 3rem);
  --step-4: clamp(2.4rem, 1.7rem + 3.6vw, 4.6rem);
  --step-5: clamp(2.9rem, 1.6rem + 6.6vw, 7.6rem);

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-s: 0.875rem;
  --space-m: 1.25rem;
  --space-l: 2rem;
  --space-xl: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  --space-2xl: clamp(4rem, 2.5rem + 6vw, 8rem);

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --wrap: 78rem;
  --wide: 58rem;
  --measure: 40rem;
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.75rem);
  --header-h: 4rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #13120f;
  --paper-2: #1b1a16;
  --paper-3: #26241f;
  --card: #1c1b17;
  --plate: #fbfaf5;
  --ink: #efebe0;
  --ink-2: #d6d1c4;
  --muted: #aaa597;
  --rule: #2c2a25;
  --rule-strong: #403d35;
  --accent: #ff8a57;
  --accent-bright: #ff9b6c;
  --accent-wash: #33201a;
  --blue: #9db0ff;
  --on-accent: #13120f;
  --band: #0b0b09;
  --band-ink: #efebe0;
  --band-muted: #aaa597;
  --band-rule: #262520;
  --code-bg: #201f1b;
  --t-agents: #f07a45;
  --t-homelab: #7f99ff;
  --t-multi-device: #b88af0;
  --t-local-ai: #5cc48a;
  --t-workflow: #e8b04a;
  --t-security: #47c2c6;
  --live: #5cc48a;
  --shakedown: #e8b04a;
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px -18px rgb(0 0 0 / 0.7);
  --shadow-2: 0 2px 6px rgb(0 0 0 / 0.4), 0 30px 60px -30px rgb(0 0 0 / 0.85);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #13120f;
    --paper-2: #1b1a16;
    --paper-3: #26241f;
    --card: #1c1b17;
    --plate: #fbfaf5;
    --ink: #efebe0;
    --ink-2: #d6d1c4;
    --muted: #aaa597;
    --rule: #2c2a25;
    --rule-strong: #403d35;
    --accent: #ff8a57;
    --accent-bright: #ff9b6c;
    --accent-wash: #33201a;
    --blue: #9db0ff;
    --on-accent: #13120f;
    --band: #0b0b09;
    --band-ink: #efebe0;
    --band-muted: #aaa597;
    --band-rule: #262520;
    --code-bg: #201f1b;
    --t-agents: #f07a45;
    --t-homelab: #7f99ff;
    --t-multi-device: #b88af0;
    --t-local-ai: #5cc48a;
    --t-workflow: #e8b04a;
    --t-security: #47c2c6;
    --live: #5cc48a;
    --shakedown: #e8b04a;
    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 10px 30px -18px rgb(0 0 0 / 0.7);
    --shadow-2: 0 2px 6px rgb(0 0 0 / 0.4), 0 30px 60px -30px rgb(0 0 0 / 0.85);
  }
}

[data-topic='agents'] { --tc: var(--t-agents); }
[data-topic='homelab'] { --tc: var(--t-homelab); }
[data-topic='multi-device'] { --tc: var(--t-multi-device); }
[data-topic='local-ai'] { --tc: var(--t-local-ai); }
[data-topic='workflow'] { --tc: var(--t-workflow); }
[data-topic='security'] { --tc: var(--t-security); }
/* Newsreader italic: a static weight-400 instance subset to Latin
   (about 20 KB instead of the 64 KB variable file). Bold italic, which
   posts rarely use, is synthesized from it. OFL: fonts/OFL-Newsreader.txt */
@font-face {
  font-family: 'Newsreader Variable';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/_astro/newsreader-italic-400-latin.5ctXxgLA.woff2') format('woff2');
}

/* Metric-matched fallbacks, so the swap from a system font to the web
   fonts barely moves the layout. size-adjust is the width ratio measured
   in Chromium with the real files, over the homepage hero, nav, card and
   heading text at their rendered sizes. Bricolage's optical-size axis makes
   its width depend on size, so each weight band uses a value for the sizes
   that wrap on a phone (nav and hero copy near 107%, display headings
   about 97% against Arial Bold). A second family covers Android, which has
   Roboto and Noto Serif instead of Arial and Times. Overrides are each web
   font's own vertical metrics divided by the same ratio (Bricolage ascent
   930 and descent 270 per 1000; Newsreader 1470 and 530 per 2000). */
@font-face {
  font-family: 'Bricolage Fallback';
  font-weight: 100 549;
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 105%;
  ascent-override: 88.6%;
  descent-override: 25.7%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Bricolage Fallback';
  font-weight: 550 649;
  src: local('Arial'), local('ArialMT'), local('Liberation Sans'), local('Arimo'), local('Helvetica Neue'), local('Helvetica');
  size-adjust: 107%;
  ascent-override: 86.9%;
  descent-override: 25.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Bricolage Fallback';
  font-weight: 650 900;
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Liberation Sans Bold'), local('Arimo Bold'), local('Helvetica Neue Bold'), local('Helvetica Bold');
  size-adjust: 97%;
  ascent-override: 95.9%;
  descent-override: 27.8%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Bricolage Fallback Android';
  font-weight: 100 549;
  src: local('Roboto'), local('Roboto-Regular');
  size-adjust: 106.3%;
  ascent-override: 87.5%;
  descent-override: 25.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Bricolage Fallback Android';
  font-weight: 550 649;
  src: local('Roboto'), local('Roboto-Regular');
  size-adjust: 107.2%;
  ascent-override: 86.8%;
  descent-override: 25.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Bricolage Fallback Android';
  font-weight: 650 900;
  src: local('Roboto Bold'), local('Roboto-Bold');
  size-adjust: 103.5%;
  ascent-override: 89.9%;
  descent-override: 26.1%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Newsreader Fallback';
  font-weight: 100 900;
  src: local('Times New Roman'), local('TimesNewRomanPSMT'), local('Liberation Serif'), local('Tinos');
  size-adjust: 103.8%;
  ascent-override: 70.8%;
  descent-override: 25.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Newsreader Fallback Android';
  font-weight: 100 900;
  src: local('Noto Serif'), local('NotoSerif'), local('Droid Serif');
  size-adjust: 88.5%;
  ascent-override: 83.1%;
  descent-override: 29.9%;
  line-gap-override: 0%;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins over component display rules
   (the archive filters rely on it). */
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
  overflow-x: clip;
  /* Lets the article's reading-progress bar (outside <article>) follow the
     body's view timeline. */
  timeline-scope: --post-body;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
img, svg, video { max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
p, li, dd, figcaption { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: 0.07em;
  text-underline-offset: 0.18em;
  transition: color 0.2s, text-decoration-color 0.2s;
}
a:hover { text-decoration-thickness: 0.13em; }

:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* On the dark bands the rust ring falls under 3:1; the bright accent clears it. */
.fleet-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--accent-bright); }
::selection { background: var(--accent); color: var(--on-accent); }

/* ---------- Layout primitives ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.wrap-measure { width: min(100% - 2 * var(--gutter), var(--measure)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus-visible, .skip-link:focus { top: 0.75rem; }

/* ---------- Small type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }
.lede {
  font-family: var(--font-text);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0.28rem 0.42rem 0.28rem 0.5rem;
  border-radius: 7px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
}
.brand__cursor {
  display: inline-block;
  width: 0.48em;
  height: 1.05em;
  background: var(--accent-bright);
}
@media (prefers-reduced-motion: no-preference) {
  .brand:hover .brand__cursor { animation: blink 1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}
.brand__name span { color: var(--accent); font-family: var(--font-mono); font-weight: 500; font-size: 0.85em; letter-spacing: 0; }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav__list { display: flex; align-items: center; gap: 0.1rem; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav__list a::after {
  content: '';
  position: absolute;
  left: 0.7rem; right: 0.7rem; bottom: 0.55rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav__list a:hover { color: var(--ink); }
.nav__list a:hover::after, .nav__list a[aria-current='page']::after { transform: scaleX(1); }
.nav__list a[aria-current='page'] { color: var(--ink); font-weight: 750; }

.theme-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 0.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.js .theme-toggle { display: inline-grid; }
.theme-toggle:hover { background: var(--paper-2); color: var(--ink); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme='dark'] .theme-toggle .sun { display: none; }
:root[data-theme='dark'] .theme-toggle .moon { display: block; }

@media (max-width: 720px) {
  .brand__name { display: none; }
}
@media (max-width: 560px) {
  .site-header { position: relative; }
  .site-header__row { gap: 0.25rem; }
  .nav__list a { padding: 0 0.48rem; font-size: 0.94rem; }
  .nav__list a::after { left: 0.48rem; right: 0.48rem; }
  .theme-toggle { margin-left: 0; }
}
@media (max-width: 370px) {
  .nav__list a { padding: 0 0.34rem; font-size: 0.9rem; }
  .nav__list a::after { left: 0.34rem; right: 0.34rem; }
}
/* Small phones and 400% zoom (320px): everything, the theme toggle
   included, still fits the row. */
@media (max-width: 345px) {
  .site-header__row { gap: 0; }
  .nav__list { gap: 0; }
  .nav__list a { padding: 0 0.2rem; font-size: 0.84rem; letter-spacing: -0.02em; }
  .nav__list a::after { left: 0.2rem; right: 0.2rem; }
  .brand__mark { padding-inline: 0.36rem 0.3rem; }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: var(--space-xl);
  background: var(--band);
  color: var(--band-ink);
  padding-block: var(--space-xl) var(--space-l);
}
.site-footer a { color: var(--band-ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent-bright); text-decoration: underline; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-l);
}
.footer__sign {
  font-family: var(--font-display);
  font-weight: 750;
  font-size: var(--step-3);
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0 0 0.8rem;
}
.footer__sign span { color: var(--accent-bright); }
.footer__tag { color: var(--band-muted); font-size: var(--step-0); max-width: 26rem; margin: 0; }
.footer__col h2 {
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--band-muted);
  margin: 0 0 0.6rem;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: var(--space-l);
  padding-top: var(--space-m);
  border-top: 1px solid var(--band-rule);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--band-muted);
}
@media (max-width: 720px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Chips, badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.22rem 0.62rem 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--rule-strong);
  background: var(--card);
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.chip::before {
  content: '';
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--tc, var(--muted));
  flex: none;
}
a.chip { position: relative; }
a.chip::after { content: ''; position: absolute; inset: calc((44px - 100%) / -2) -2px; }
a.chip:hover { border-color: var(--tc, var(--ink)); color: var(--ink); }
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.type-badge::before {
  content: '';
  width: 0.7em;
  height: 0.7em;
  border: 1.5px solid currentColor;
}
.type-essay::before { border-radius: 50%; }
.type-project::before { border-radius: 2px; background: currentColor; }
.type-note::before { border-radius: 2px; border-style: dashed; }
.type-reference::before { transform: rotate(45deg) scale(0.85); }

.draft-badge {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0.12em 0.55em;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 4px;
}

  .state {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.4rem;
    border-radius: 50%;
    background: var(--muted);
    vertical-align: 0.05em;
  }
  .state--live { background: var(--live); box-shadow: 0 0 0 3px color-mix(in oklab, var(--live) 22%, transparent); }
  .state--shakedown { background: var(--shakedown); box-shadow: 0 0 0 3px color-mix(in oklab, var(--shakedown) 22%, transparent); }

/* Model chip: where an agent runs (local GPU or cloud) */
.runs {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, currentColor 25%, transparent);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.4;
  white-space: nowrap;
}
.runs--local { border-color: color-mix(in oklab, var(--live) 65%, transparent); }
.runs--cloud { border-color: color-mix(in oklab, var(--blue) 65%, transparent); }
.runs--local-cloud {
  border-color: transparent;
  background:
    linear-gradient(var(--chip-bg, var(--card)), var(--chip-bg, var(--card))) padding-box,
    linear-gradient(90deg, color-mix(in oklab, var(--live) 70%, transparent), color-mix(in oklab, var(--blue) 70%, transparent)) border-box;
}

/* ---------- Buttons and arrow links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-1); color: var(--paper); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.btn--ghost:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.arrow, .btn .arrow, .arrow-link .arrow { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.btn .arrow, .arrow-link .arrow { display: inline-block; transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow, .arrow-link:hover .arrow { transform: translateX(3px); }
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}
.arrow-link:hover { color: var(--accent); }

/* ---------- Section heads (home, about, living pages) ---------- */
.section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.4rem 1rem;
  margin-bottom: var(--space-l);
}
.section-head .num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--accent);
}
.section-head h2 { font-size: var(--step-3); margin: 0; }
.section-head p { grid-column: 2; margin: 0; color: var(--muted); max-width: 38rem; font-size: var(--step-0); }
.section-head .arrow-link { grid-column: 2; justify-self: start; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) clamp(1.5rem, 1rem + 2.5vw, 3rem);
  isolation: isolate;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 100%;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.55), transparent 85%);
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 0.55), transparent 85%);
}
.page-hero--compact { padding-block: clamp(1.75rem, 1rem + 3vw, 3.25rem) clamp(1rem, 0.75rem + 1.5vw, 2rem); }
.page-hero--compact .page-title { font-size: var(--step-4); }
.page-hero--compact .lede { margin-top: 0.9rem; }
.page-title {
  font-size: var(--step-5);
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 0.94;
  margin: 0.6rem 0 0;
}
.page-title .dot { color: var(--accent); }
.page-hero .lede { max-width: 40rem; margin: 1.3rem 0 0; }
.page-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.2rem 0 0;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.page-updated::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 1.5px solid var(--muted);
  background: transparent;
}
.living-updated {
  margin: var(--space-xl) 0 0;
  padding-top: var(--space-m);
  border-top: 1px solid var(--rule);
  font-size: var(--step--1);
  color: var(--muted);
  font-style: italic;
}

/* ---------- Prose (articles and text pages) ---------- */
.prose {
  font-family: var(--font-text);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  line-height: 1.68;
  color: var(--ink);
}
.prose > * { width: min(100%, var(--measure)); margin-inline: auto; }
.prose p { margin-block: 0 1.15em; }
.prose h2 {
  font-size: var(--step-2);
  letter-spacing: -0.02em;
  margin-block: 2.2em 0.6em;
}
.prose h3 { font-size: var(--step-1); margin-block: 1.8em 0.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-block: 0 1.15em; }
.prose li + li { margin-top: 0.35em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; }
.prose em { font-style: italic; }
.prose a { text-decoration-color: color-mix(in oklab, var(--accent) 45%, transparent); }
.prose a:hover { text-decoration-color: var(--accent); }
.prose hr {
  border: 0;
  height: 1.5rem;
  margin-block: 2.2rem;
  background: radial-gradient(circle, var(--rule-strong) 2px, transparent 2.5px) center / 1.4rem 1.5rem repeat-x;
  width: 6rem;
}
.prose blockquote {
  margin-block: 1.8em;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--code-bg);
  border: 1px solid var(--rule);
  padding: 0.05em 0.32em;
  border-radius: 4px;
}
pre {
  font-family: var(--font-mono);
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.6;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; }
/* Shiki emits both themes as CSS variables (astro.config.mjs); the block
   itself always sits on the warm code token. */
pre.astro-code { background-color: var(--code-bg) !important; color: var(--ink) !important; }
pre.astro-code span { color: var(--shiki-light, inherit); }
:root[data-theme='dark'] pre.astro-code span { color: var(--shiki-dark, inherit); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) pre.astro-code span { color: var(--shiki-dark, inherit); }
}
.prose pre { width: min(100%, calc(var(--measure) + 4rem)); margin-block: 1.6em; }

/* Images and figures. Markdown images arrive as <p><img></p>; those and
   raw <figure>s step out of the text column so diagrams get room. */
.prose img { display: block; margin-inline: auto; }
.prose > p:has(> img:only-child),
.prose > p:has(> .diagram-link:only-child),
.prose > p:has(> .image-link:only-child),
.prose > figure {
  width: min(100%, var(--wide));
  margin-block: 2.6rem;
}
.prose > p:has(> .diagram-link:only-child) img,
.prose > p:has(> .image-link:only-child) img,
.prose > p:has(> img:only-child) img,
.prose > figure img {
  border-radius: var(--radius-m);
}
.prose img[src^='/photos/'] {
  box-shadow: var(--shadow-1);
  border: 1px solid var(--rule);
}
/* Diagrams sit on their own paper. In light mode the plate is the page
   color (hairline only); in dark mode it is a lit sheet of the same paper. */
.prose img[src^='/diagrams/'] {
  /* --dw and --ar come from scripts/image-attrs.mjs, so the box is reserved
     before a lazy diagram loads. The width is the drawing's own width, the
     column, or what fits 85vh, each plus the plate padding, so the content
     box keeps the drawing's exact ratio. */
  --pad: clamp(0.5rem, 0.2rem + 1.5vw, 1.4rem);
  width: min(100%, calc(var(--dw, 100vw) + 2 * var(--pad)), calc((85vh - 2 * var(--pad)) * var(--ar, 1) + 2 * var(--pad)));
  max-height: 85vh;
  object-fit: contain;
  background: var(--plate);
  padding: var(--pad);
  border: 1px solid var(--rule);
}
/* Full-size access for diagrams and screenshots (scripts/diagram-links.mjs
   and scripts/image-links.mjs wrap each). */
.diagram-link,
.image-link {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}
.diagram-link img,
.image-link img { margin-inline: auto; }
/* A screenshot's link is as wide as the image, so the label sits under the
   image's own right edge, even for a narrow phone screenshot. */
.image-link { width: fit-content; max-width: 100%; margin-inline: auto; }
.diagram-link__label,
.image-link__label {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}
.diagram-link__label::after,
.image-link__label::after { content: '\2197'; margin-left: 0.35em; font-family: system-ui, sans-serif; }
.diagram-link:hover .diagram-link__label,
.image-link:hover .image-link__label { text-decoration: underline; }
.diagram-link:focus-visible,
.image-link:focus-visible { outline-offset: 4px; }

/* In dark mode the lit plates are dimmed a touch so they don't glare.
   Brightness only: hues, including the accent AI node, stay true. */
:root[data-theme='dark'] .prose img[src^='/diagrams/'],
:root[data-theme='dark'] .work-card__plate { filter: brightness(0.8); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .prose img[src^='/diagrams/'],
  :root:not([data-theme='light']) .work-card__plate { filter: brightness(0.8); }
}
.prose figcaption {
  width: min(100%, var(--measure));
  margin: 0.9rem auto 0;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}
/* Phone screenshots read at phone-ish width on desktop */
.prose img.phone-shot { max-width: min(100%, 400px); }
.prose .image-link:has(> img.phone-shot) { max-width: min(100%, 400px); }
/* The intrinsically narrow diagram */
.prose img[src='/diagrams/12-how-i-ai.png'] { max-width: min(100%, 520px); }

/* Tables: scroll inside themselves, never the page */
.prose table {
  display: block;
  width: min(100%, var(--wide));
  max-width: max-content;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 2rem auto;
  font-family: var(--font-display);
  font-size: 0.86rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  border: 1px solid var(--rule);
  border-radius: var(--radius-m);
  -webkit-overflow-scrolling: touch;
}
.prose th, .prose td {
  padding: 0.6em 0.9em;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
  min-width: 7ch;
}
.prose td { overflow-wrap: break-word; }
/* Short cells (numbers, yes/no, model names) never break mid-value;
   the article script marks them. */
.prose td.is-short { white-space: nowrap; }
/* Scroll cue, only where a table really overflows: shadows on the edge
   that has more content (background-attachment trick, no JS needed to
   draw them; the script only marks the table as focusable). */
.prose table {
  background:
    linear-gradient(to right, var(--card) 30%, transparent) left center / 3rem 100% no-repeat local,
    linear-gradient(to left, var(--card) 30%, transparent) right center / 3rem 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(0 0 0 / 0.16), transparent) left center / 1rem 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(0 0 0 / 0.16), transparent) right center / 1rem 100% no-repeat scroll,
    var(--card);
}
.prose thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  border-bottom: 2px solid var(--accent);
}
.prose tbody tr:last-child td { border-bottom: 0; }


/* Pending-artifact placeholder */
.img-pending {
  margin: 1.5rem auto;
  padding: 1.4rem 1rem;
  border: 2px dashed var(--accent);
  border-radius: var(--radius-m);
  text-align: center;
  font-style: italic;
  opacity: 0.8;
}

/* ---------- Plain text pages (about, compliance, 404) ---------- */
.text-page { padding-bottom: var(--space-l); }
.text-page h2 { font-size: var(--step-2); margin-block: 2.2em 0.6em; }
.compliance { padding-top: var(--space-xl); }
.compliance .page-title { font-size: var(--step-4); margin: 0 0 1rem; }
.compliance p, .compliance li { line-height: 1.65; }
.compliance .nowrap { white-space: nowrap; }
.compliance img { border: 1px solid var(--rule); border-radius: var(--radius-m); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  /* A short crossfade between pages; nothing waits on scroll position. */
  ::view-transition-old(root) { animation: vt-out 0.18s ease-out both; }
  ::view-transition-new(root) { animation: vt-in 0.24s ease-out both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; } }
  ::view-transition-group(*) { animation-duration: 0.42s; animation-timing-function: var(--ease-out); }
  ::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }
  .site-header { view-transition-name: site-header; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
