/* Hallmark · theme: custom · idea: "the home page is a working shell; the rest of the site is its output, reachable from a plain menu bar" · vibe: "graphite terminal, one amber signal, loud mono" · genre: modern-minimal · job: listen (read the latest post) · paper: graphite oklch 97 0.003 100 / dark 17 0.006 270 · accent: amber oklch 79 0.17 65 · faces: JetBrains Mono 400/700/800 throughout · modes: light+dark (auto, toggle in the menu bar, `theme` in the shell)
 * hero: the headline beside a live shell (help, ls, open, cd, git log, history, theme) that prints a real session without JavaScript · nav: menu bar, prompt wordmark, plain links, theme toggle · footer: `exit` and the closed connection, colophon · imagery: library covers on posts, credited · signature: the shell in the hero
 * axes: light/mono/warm · posture: restrained (graphite in both modes, amber the one signal) · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V5 · weakest: R, the shell, the feature, the ls list, the git log and the talk cards are five forms; each is a different command's real output, so the variety is the content */
/* Hallmark · waive 64 · JetBrains Mono sets every label, tag and table head · the owner asked for coder fonts across the site, mono is the material */
/* Hallmark · waive 49b · post titles in the ls list and the contents index wrap under 414px · they are headline links to posts, a title is a real phrase that cannot shorten */
/* Hallmark · waive 77 · the command heads on the writing, talks and about subpages measure under ten columns · a subpage head is that page's banner; the lists and the log under it run the full container */
/* Hallmark · waive 79 · post pages leave room under the title block · the 21:9 cover photograph fills that space on every post that has one */
/* Hallmark · answered F15 · the hero, feature, split and career use one 64px gap; the talk cards sit 24px apart and the footer keeps the 32px column gutter, because cards and a colophon are sets, not columns */
/* Hallmark · owner decision: the shell input has no ring or edge; the block cursor is its focus state (hollow at rest, filled and blinking with focus, filled and still under reduced motion). Gates 26a and 40 report on input.shell__input for this reason. */
@import url("./tokens.css");
@import url("./base.css");

body { font-variant-numeric: tabular-nums; }
h1, h2, h3 { line-height: 1; }
small, figcaption { font-weight: 700; }
a { text-decoration-color: var(--color-rule); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--color-signal); }
.prompt { color: var(--color-signal); font-weight: 800; }
.term .prompt { color: var(--color-signal-term); }

/* Skip link */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-amber); color: var(--color-term-bg); }
.skip:focus-visible { top: var(--space-md); }

/* Terminal surface: the shell and code blocks. Dark in both modes. */
.term { --color-focus: var(--color-focus-term); background: var(--color-term-bg); color: var(--color-term-fg); }

/* Menu bar */
.menubar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-bg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.menubar__inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--space-xl); min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.03em; text-decoration: none; white-space: nowrap; }
.wordmark__path { color: var(--color-signal); }
.cursor { display: inline-block; width: 0.55em; height: 1.05em; margin-left: var(--space-3xs); background: var(--color-amber); animation: blink 1s steps(1) 5; }
@keyframes blink { 50% { opacity: 0; } }
.menubar__links { display: flex; flex-wrap: wrap; column-gap: var(--space-xl); margin: 0; padding: 0; list-style: none; font-weight: 700; }
.menubar__links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.menubar__links a:hover { color: var(--color-signal); }
.menubar__links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--color-signal); }
.mode { min-height: 44px; padding: 0 var(--space-sm); border: var(--rule-hair) solid var(--color-rule); background: transparent; color: var(--color-muted); font: 700 var(--text-sm)/1 var(--font-body); white-space: nowrap; cursor: pointer; transition: border-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1); }
.mode:hover { color: var(--color-fg); }
.mode:active { transform: translateY(1px); }
.mode b { color: var(--color-signal); font-weight: 800; }
html:not(.js) .mode { display: none; }

/* Buttons: square, 2px, a hard block behind that the press closes */
.actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-bar) solid var(--color-rule-strong); background: var(--color-bg-3); color: var(--color-fg); box-shadow: 4px 4px 0 var(--color-amber); font: 800 var(--text-md)/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform var(--dur-micro) var(--ease-out); }
.btn:hover { transform: translate(-2px, -2px); color: var(--color-fg); }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn--primary, .btn--primary:hover { background: var(--color-amber); color: var(--color-term-bg); box-shadow: 4px 4px 0 var(--color-rule-strong); }

/* Hero: the headline beside a live shell */
.hero__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; min-height: calc(100svh - 64px); padding-block: var(--space-2xl); }
.hero__text { display: grid; gap: var(--space-lg); align-content: center; container-type: inline-size; }
/* Two deliberate lines; the type scales with the column so "not ticket queues." (18 characters) always fits */
.hero__head { max-width: none; font-size: clamp(2rem, 9.4cqi, 5rem); line-height: 1.02; }
.hero__head span { display: block; white-space: nowrap; }
.hero .lead { color: var(--color-fg-2); }
.hero .actions { margin-top: var(--space-sm); }

/* The shell: one scrolling screen, the prompt flows right under the last output like a real terminal */
.shell { height: 440px; padding: var(--space-lg); border: var(--rule-bar) solid var(--color-rule-strong); box-shadow: 4px 4px 0 var(--color-amber); font-size: var(--text-sm); line-height: 1.6; cursor: text; }
.shell__screen { height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-color: var(--color-term-rule) var(--color-term-bg); }
.shell__out { display: flex; flex-direction: column; gap: var(--space-2xs); }
.shell__line { margin-top: var(--space-sm); }
.shell__out > :first-child { margin-top: 0; }
.shell__res { max-width: none; color: var(--color-term-fg); }
.shell__muted { color: var(--color-term-muted); }
.shell__res a, .shell__ls a { color: var(--color-term-fg); text-decoration-color: var(--color-term-muted); }
.shell__res a:hover { color: var(--color-signal-term); text-decoration-color: var(--color-signal-term); }
.shell__ls { display: grid; gap: var(--space-3xs); margin: 0; padding: 0; list-style: none; }
.shell__ls li { display: flex; justify-content: space-between; column-gap: var(--space-lg); }
.shell__ls li > a, .shell__ls .shell__item { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell__ls li > :last-child:not(:first-child) { flex-shrink: 0; }
.shell__ls li > span, .shell__ls code + span { color: var(--color-term-muted); }
.shell__ls code { color: var(--color-signal-term); font: inherit; }
.shell__ls b { color: var(--color-signal-term); }
.shell__graph { margin-right: var(--space-xs); color: var(--color-signal-term); }
.shell__item { min-width: 0; }
/* Commands inside the output are buttons that look like text: click to run */
.shell__cmd { padding: 0; border: 0; background: none; color: var(--color-signal-term); font: inherit; text-decoration: underline; text-decoration-color: var(--color-term-rule); text-underline-offset: 0.2em; cursor: pointer; }
.shell__cmd:hover { text-decoration-color: var(--color-signal-term); }
.shell__cmd:focus-visible { outline: 1px solid var(--color-focus-term); outline-offset: 2px; }
/* The prompt line: label, then the invisible input under a mirror that draws the text and a block cursor */
.shell__prompt { display: flex; align-items: baseline; gap: 1ch; margin-top: var(--space-sm); }
.shell__field { position: relative; flex: 1; min-width: 0; min-height: 1.6em; }
.shell__input { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; font: inherit; outline: none; }
.shell__mirror { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--color-term-fg); pointer-events: none; }
.shell__caret { display: inline-block; min-width: 1ch; box-shadow: inset 0 0 0 1px var(--color-amber); }
.shell:focus-within .shell__caret { background: var(--color-amber); color: var(--color-term-bg); box-shadow: none; animation: caret 1.06s steps(1) infinite; }
@keyframes caret { 50% { background: transparent; color: var(--color-term-fg); } }
html:not(.js) .shell__prompt { display: none; }

/* Sections */
.section { padding-block: var(--section-gap-s); }
.band { background: var(--color-bg-2); color: var(--color-fg); }
.cmd { max-width: none; margin-bottom: var(--space-2xl); font-size: clamp(2rem, 1vw + 1.6rem, 2.75rem); letter-spacing: -0.04em; }
.cmd::before { content: "$ "; content: "$ " / ""; color: var(--color-signal); }
.cmd--page { margin-bottom: 0; font-size: clamp(2.5rem, 4vw + 0.75rem, 4.5rem); }
.cmd--small { margin-bottom: var(--space-xl); }
.meta { display: flex; flex-wrap: wrap; gap: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; }
.credit { color: var(--color-muted); font-size: var(--text-sm); }
.tag { display: inline-block; padding: var(--space-3xs) var(--space-xs); border: var(--rule-hair) solid var(--color-rule); color: var(--color-fg-2); font-size: var(--text-sm); font-weight: 400; white-space: nowrap; }

/* cat latest.md: the cover beside the post */
.feature { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-2xl); align-items: start; }
.feature__media { display: block; }
.feature__media img { display: block; background: var(--color-bg-2); width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: var(--rule-bar) solid var(--color-rule-strong); box-shadow: 10px 10px 0 var(--color-amber); }
.feature__body { display: grid; gap: var(--space-lg); }
.feature__title { font-size: var(--text-display-s); letter-spacing: -0.04em; }
.feature__title a { text-decoration: none; }
.feature__title a:hover { text-decoration: underline; text-decoration-color: var(--color-amber); }
.feature__desc { color: var(--color-fg-2); font-size: var(--text-lead); line-height: 1.45; }
.toc { margin: 0; padding: 0; list-style: none; counter-reset: c; border-top: var(--rule-bar) solid var(--color-rule-strong); }
.toc li { counter-increment: c; display: grid; grid-template-columns: 4ch minmax(0, 1fr); gap: var(--space-sm); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); font-weight: 700; }
.toc li::before { content: counter(c, decimal-leading-zero); color: var(--color-signal); font-weight: 800; }
.toc a { display: block; padding-block: var(--space-sm); margin-block: calc(-1 * var(--space-sm)); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* Split: a sticky command head beside its output */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); align-items: start; }
.split__head { position: sticky; top: calc(64px + var(--space-xl)); display: grid; gap: var(--space-md); }
.split__head .cmd { margin-bottom: 0; }
.split__head p { color: var(--color-fg-2); }
.split__links { display: flex; flex-wrap: wrap; gap: var(--space-lg); font-weight: 700; }

/* ls -lt writing/: a file per row */
.ls { margin: 0; padding: 0; list-style: none; border-top: var(--rule-bar) solid var(--color-rule-strong); }
.ls + .ls__year { margin-top: var(--space-2xl); }
.ls__year { max-width: none; margin-bottom: var(--space-lg); color: var(--color-muted); font-size: clamp(2rem, 1vw + 1.6rem, 2.75rem); letter-spacing: -0.04em; }
.ls__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xl); align-items: start; padding-block: var(--space-lg); border-bottom: var(--rule-hair) solid var(--color-rule); }
.ls__row--card { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr) auto; align-items: center; }
.ls__card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; border: var(--rule-hair) solid var(--color-rule-strong); box-shadow: 4px 4px 0 var(--color-amber); transition: transform var(--dur-micro) var(--ease-out); }
.ls__row--card:hover .ls__card img { transform: translate(-2px, -2px); }
.ls__link { display: grid; gap: var(--space-xs); text-decoration: none; }
.ls__file { color: var(--color-signal); font-size: var(--text-sm); font-weight: 700; }
.ls__title { font-size: var(--text-title); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.ls__desc { max-width: 60ch; color: var(--color-fg-2); }
.ls__link:hover .ls__title { text-decoration: underline; text-decoration-color: var(--color-amber); text-decoration-thickness: 3px; }
.ls__meta { display: grid; justify-items: end; gap: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; white-space: nowrap; }
.ls__min b { color: var(--color-fg); }
.js [data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity var(--dur-long) var(--ease-out), transform var(--dur-long) var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* About: career and README side by side on wide screens; README on its own panel tone */
.about-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl) var(--gap-columns); align-items: start; }
/* The README stays in view while the long career scrolls past. --readme-top is set by the page script:
   a README taller than the screen scrolls until its end is visible, then sticks. */
@media (min-width: 60.01rem) { html.js .about-body > .readme { position: sticky; top: var(--readme-top, calc(64px + var(--space-xl))); } }
.readme { display: grid; gap: var(--space-md); padding: var(--space-xl); background: var(--color-panel); border: var(--rule-hair) solid var(--color-rule); }
.readme .cmd { margin-bottom: 0; }
.readme__body { padding-block: 0; }
.readme__body > h3:first-child { margin-top: 0; }
.readme__body li::marker { content: "- "; color: var(--color-signal); font-weight: 800; }

/* git log --oneline --graph: one line per role, the description expands under it.
   --when is the date column; the title, the commit message and the body all align to it. */
/* --graph: the rails, one step stronger than the hairline rules */
.cv { --graph: color-mix(in oklch, var(--color-rule) 35%, var(--color-muted)); --when: 6rem; --col-gap: var(--space-md); display: grid; gap: var(--space-lg); }
.cv .cmd { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.cv__bar { position: sticky; top: 64px; z-index: 1; padding-block: var(--space-xs); background: var(--color-bg); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); margin-top: calc(-1 * var(--space-sm)); }
.cv__hint { color: var(--color-muted); font-size: var(--text-sm); }
.cv__toggle { min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-rule-strong); background: transparent; color: var(--color-fg); font: inherit; font-size: var(--text-sm); font-weight: 700; cursor: pointer; }
.cv__toggle::before { content: "$ "; content: "$ " / ""; color: var(--color-signal); }
.cv__toggle:hover { border-color: var(--color-signal); }
.gitlog { margin: 0; padding: 0; list-style: none; }
/* The graph. Every row draws its own slice of each lane over its full height, so the lines never break;
   the commit is a dot centred on its lane at --dot-y (the middle of the row's first line).
   Lane 0 is the employer's line, lane 1 the client branch: its newest commit (--tip) starts the lane,
   its oldest (--fork) joins lane 0 with a "/" at the bottom of the row. */
.gitlog { --lane0: 7px; --lane1: calc(var(--lane0) + 1.25rem); --dot-y: 1.95rem; --dot: 12px; --rail: var(--rule-bar); --join: 1.25rem; --line: linear-gradient(var(--graph), var(--graph)); }
.gitlog__commit { position: relative; padding-left: var(--space-2xl); background: var(--line) no-repeat calc(var(--lane0) - var(--rail) / 2) 0 / var(--rail) 100%; }
.gitlog__commit:first-child { background-position-y: var(--dot-y); background-size: var(--rail) calc(100% - var(--dot-y)); }
.gitlog__commit:last-child { background-size: var(--rail) var(--dot-y); }
.gitlog__commit::before { content: ""; position: absolute; left: calc(var(--lane0) - var(--dot) / 2); top: calc(var(--dot-y) - var(--dot) / 2); width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--color-signal); box-shadow: 0 0 0 3px var(--color-bg); }
.gitlog__commit--branch::before { left: calc(var(--lane1) - var(--dot) / 2); }
.gitlog__commit--branch {
  background-image: var(--line), var(--line);
  background-repeat: no-repeat;
  background-position: calc(var(--lane0) - var(--rail) / 2) 0, calc(var(--lane1) - var(--rail) / 2) 0;
  background-size: var(--rail) 100%, var(--rail) 100%; }
.gitlog__commit--tip { background-position: calc(var(--lane0) - var(--rail) / 2) 0, calc(var(--lane1) - var(--rail) / 2) var(--dot-y); background-size: var(--rail) 100%, var(--rail) calc(100% - var(--dot-y)); }
.gitlog__commit--fork {
  background-image: var(--line), var(--line), linear-gradient(to bottom right, transparent calc(50% - 1.5px), var(--graph) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px));
  background-position: calc(var(--lane0) - var(--rail) / 2) 0, calc(var(--lane1) - var(--rail) / 2) 0, var(--lane0) 100%;
  background-size: var(--rail) 100%, var(--rail) calc(100% - var(--join)), calc(var(--lane1) - var(--lane0)) var(--join); }
.gitlog__commit--tip.gitlog__commit--fork { background-position: calc(var(--lane0) - var(--rail) / 2) 0, calc(var(--lane1) - var(--rail) / 2) var(--dot-y), var(--lane0) 100%; background-size: var(--rail) 100%, var(--rail) calc(100% - var(--dot-y) - var(--join)), calc(var(--lane1) - var(--lane0)) var(--join); }
/* Row rules sit on the details, so they start after the graph instead of cutting through it */
.gitlog__details { border-bottom: var(--rule-hair) solid var(--color-rule); }
.gitlog__line { display: grid; gap: var(--space-2xs); min-height: 44px; padding-block: var(--space-md); cursor: pointer; list-style: none; }
.gitlog__line::-webkit-details-marker { display: none; }
.gitlog__title { display: grid; grid-template-columns: var(--when) minmax(0, 1fr) auto; column-gap: var(--col-gap); align-items: baseline; max-width: none; font-size: var(--text-base); line-height: 1.35; }
.gitlog__title::after { content: "[+]"; content: "[+]" / ""; color: var(--color-signal); font-size: var(--text-sm); font-weight: 800; }
.gitlog__details[open] .gitlog__title::after { content: "[-]"; content: "[-]" / ""; }
.gitlog__when { color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gitlog__what { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-sm); }
.gitlog__role { font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.02em; }
.gitlog__line:hover .gitlog__role { text-decoration: underline; text-decoration-color: var(--color-signal); text-underline-offset: 0.2em; }
.gitlog__org { color: var(--color-fg-2); font-weight: 400; }
.gitlog__org abbr { text-decoration: none; }
.gitlog__via { color: var(--color-muted); }
.gitlog__ref { align-self: center; padding: 0 var(--space-xs); background: var(--color-amber); color: var(--color-term-bg); font-size: var(--text-sm); font-weight: 800; }
.gitlog__subject { padding-left: calc(var(--when) + var(--col-gap)); color: var(--color-muted); }
.gitlog__body { display: grid; gap: var(--space-md); padding: var(--space-xs) 0 var(--space-xl) calc(var(--when) + var(--col-gap)); }
.gitlog__msg { display: grid; gap: var(--space-sm); max-width: 68ch; line-height: 1.75; }
.gitlog__msg :where(p, li) { max-width: none; text-wrap: pretty; }
.gitlog__msg ul { display: grid; gap: var(--space-2xs); margin: 0; padding-left: 2ch; }
.gitlog__msg li::marker { content: "- "; color: var(--color-signal); font-weight: 800; }
.gitlog__stack { display: flex; flex-wrap: wrap; gap: var(--space-xs); max-width: 68ch; margin: 0; padding: 0; list-style: none; }
/* Close an open role from its end, so a long one does not need scrolling back up */
.gitlog__close { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-signal); font: inherit; font-size: var(--text-sm); font-weight: 800; cursor: pointer; }
.gitlog__close::before { content: "[-] "; content: "[-] " / ""; }
.gitlog__close:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.cv__end { margin-top: var(--space-md); font-weight: 700; }
.cv__end .prompt { margin-right: 1ch; }
.cv__end a { display: inline-block; padding-block: 0.25em; }

/* history | grep talk: one card per talk */
.talks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; padding: 0; list-style: none; }
.talk { display: grid; align-content: start; gap: var(--space-sm); padding: var(--space-lg); border: var(--rule-bar) solid var(--color-rule-strong); background: var(--color-bg-3); }
.talk time { justify-self: start; padding: var(--space-3xs) var(--space-xs); background: var(--color-amber); color: var(--color-term-bg); font-size: var(--text-sm); font-weight: 800; }
.talk h3 { font-size: var(--text-title); letter-spacing: -0.03em; line-height: 1.2; }
.talk h3 a { text-decoration: none; }
.talk__kind { color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.talk h3 a:hover { text-decoration: underline; text-decoration-color: var(--color-signal); }
.talk__event { color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; }
.talk__links { display: flex; flex-wrap: wrap; gap: var(--space-lg); margin: auto 0 0; padding: 0; list-style: none; font-size: var(--text-sm); font-weight: 700; }
.talk__links:empty { display: none; }

/* Facts (about page): a compact row of label-over-value pairs under the name */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-md) var(--gap-columns); margin: 0; padding-top: var(--space-md); border-top: var(--rule-bar) solid var(--color-rule-strong); }
.facts div { display: grid; gap: var(--space-3xs); align-content: start; }
.facts dt { color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; }
.facts dd { margin: 0; font-weight: 700; line-height: 1.4; }
.facts dd a { display: inline-block; padding-block: 0.25em; }
.facts .facts__role { font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.02em; }
.fill { padding: 0 0.25em; border: var(--rule-hair) dashed currentColor; color: var(--color-muted); font-weight: 400; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); }
.more { margin-top: var(--space-xl); font-weight: 700; }

/* Subpage heads */
.page-head { border-bottom: var(--rule-hair) solid var(--color-rule); }
.page-head__inner { display: grid; gap: var(--space-lg); padding-block: var(--space-3xl) var(--space-2xl); }
.page-head .lead { color: var(--color-fg-2); }
.about-head__text { display: grid; gap: var(--space-lg); align-content: end; }
.about-head__text .lead { max-width: 60ch; }
/* About: the profile photo beside the name, square, in the site's frame */
.about-head { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--space-2xl); }
.portrait { margin: 0; width: 280px; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: var(--color-bg-2); border: var(--rule-bar) solid var(--color-rule-strong); box-shadow: 8px 8px 0 var(--color-amber); }
/* The illustrated portrait's cream ground is the brightest thing on a dark page; take it down a step. */
:root[data-mode="dark"] .portrait img { filter: brightness(0.78); }
@media (prefers-color-scheme: dark) { :root:not([data-mode]) .portrait img { filter: brightness(0.78); } }
.page-body { padding-block: var(--space-2xl) var(--section-gap-s); }

/* A post */
.post__head { display: grid; gap: var(--space-lg); padding-block: var(--space-3xl) var(--space-md); }
.post__title { display: grid; gap: var(--space-lg); min-width: 0; }
.post__head h1 { max-width: none; font-size: var(--text-display-s); letter-spacing: -0.04em; }
.post__head .lead { max-width: none; color: var(--color-fg-2); }
.post__meta { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); margin: 0; padding-top: var(--space-md); border-top: var(--rule-hair) solid var(--color-rule); font-size: var(--text-sm); }
.post__meta div { display: flex; gap: var(--space-xs); }
.post__meta dt { color: var(--color-muted); font-weight: 400; }
.post__meta dd { margin: 0; font-weight: 800; }
.post__body { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--space-2xl); align-items: start; }
.post__contents { position: sticky; top: calc(64px + var(--space-xl)); margin-top: var(--space-lg); }
/* Text, figures, tables and code share one width: the full content column */
.prose { display: grid; gap: var(--space-lg); min-width: 0; padding-block: var(--space-lg) var(--space-2xl); line-height: 1.8; }
.prose :where(p, li) { text-wrap: pretty; }
.prose p { max-width: none; }
.prose :is(h2, h3) { max-width: none; }
.prose h2 { margin-top: var(--space-2xl); font-size: var(--text-xl); line-height: 1.2; }
.prose h2::before { content: "## "; content: "## " / ""; color: var(--color-signal); }
.prose .has-anchor::before { content: none; }
.prose .anchor { color: var(--color-signal); text-decoration: none; }
.prose .anchor:hover { text-decoration: underline; text-decoration-color: var(--color-signal); }
.prose h3 { margin-top: var(--space-lg); font-size: var(--text-lg); }
.prose h3::before { content: "### "; content: "### " / ""; color: var(--color-signal); }
.prose ul, .prose ol { margin: 0; padding-left: 3ch; }
.prose blockquote { position: relative; margin: 0; padding-left: 3ch; color: var(--color-fg-2); }
.prose blockquote::before { content: ">"; content: ">" / ""; position: absolute; left: 0; color: var(--color-signal); font-weight: 800; }
.prose code { padding: 0 0.25em; background: var(--color-bg-2); color: var(--color-fg); font-size: 0.9375em; }
.prose pre { margin: 0; padding: var(--space-lg); overflow-x: auto; border: var(--rule-bar) solid var(--color-rule-strong); background: var(--color-term-bg); color: var(--color-term-fg); box-shadow: 8px 8px 0 var(--color-amber); font-size: var(--text-sm); line-height: 1.6; }
.code pre { box-shadow: none; }
.prose pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.prose img { display: block; max-width: 100%; height: auto; border: var(--rule-bar) solid var(--color-rule-strong); }
.prose figure { display: grid; gap: var(--space-sm); margin: 0; }
.prose figcaption { color: var(--color-muted); font-size: var(--text-sm); font-weight: 400; }
.prose .note { color: var(--color-muted); font-size: var(--text-sm); }
.prose .note em { font-style: normal; }
.sev { display: inline-block; padding: var(--space-3xs) var(--space-xs); color: var(--color-term-bg); font-weight: 700; line-height: 1.3; white-space: nowrap; }
.sev--critical { background: var(--color-sev-critical); }
.sev--warning { background: var(--color-sev-warning); }
.sev--info { background: var(--color-sev-info); }
.shot { display: grid; gap: var(--space-sm); margin: var(--space-sm) 0; }
.shot a { display: block; cursor: zoom-in; }
.shot img { width: 100%; box-shadow: 8px 8px 0 var(--color-amber); }
.shot figcaption { padding-top: var(--space-xs); }
/* Lightbox: the figure at full size over a dimmed page; any click closes it */
.lightbox { max-width: 100vw; max-height: 100dvh; width: 100vw; height: 100dvh; margin: 0; padding: var(--space-xl); border: 0; background: transparent; cursor: zoom-out; }
.lightbox[open] { display: grid; place-items: center; gap: var(--space-sm); align-content: center; }
.lightbox::backdrop { background: color-mix(in oklch, var(--color-term-bg) 88%, transparent); }
.lightbox img { max-width: min(100%, 1600px); max-height: calc(100dvh - 2 * var(--space-xl) - 3rem); width: auto; height: auto; border: var(--rule-bar) solid var(--color-rule-strong); box-shadow: 8px 8px 0 var(--color-amber); }
.lightbox__hint { color: var(--color-term-muted); font-size: var(--text-sm); }
.lightbox__cap { max-width: 80ch; color: var(--color-term-fg); font-size: var(--text-sm); text-align: center; }
.lightbox__close { position: fixed; top: var(--space-md); right: var(--space-md); min-height: 44px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-term-rule); background: var(--color-term-bg); color: var(--color-term-fg); font: 700 var(--text-sm)/1 var(--font-body); cursor: pointer; }
.lightbox__close:hover { color: var(--color-signal-term); border-color: var(--color-signal-term); }
.lightbox__close:focus-visible { outline: 2px solid var(--color-focus-term); outline-offset: 2px; }
.shot__frame { position: relative; min-width: 0; }
.toc-fab { position: fixed; right: var(--space-md); bottom: var(--space-md); z-index: var(--z-sticky); display: none; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: var(--rule-bar) solid var(--color-rule-strong); background: var(--color-term-bg); color: var(--color-term-fg); box-shadow: 4px 4px 0 var(--color-amber); font-weight: 700; text-decoration: none; }
.toc-fab::before { content: "$ cd "; content: "$ cd " / ""; color: var(--color-signal-term); white-space: pre; }
.toc-fab:hover { color: var(--color-signal-term); }
.prose table { width: 100%; border-collapse: collapse; border-top: var(--rule-bar) solid var(--color-rule-strong); font-size: var(--text-sm); line-height: 1.5; }
.prose th, .prose td { padding: var(--space-sm) var(--space-md) var(--space-sm) 0; border-bottom: var(--rule-hair) solid var(--color-rule); text-align: left; vertical-align: top; }
.prose th { color: var(--color-muted); font-weight: 700; }
.prose td:last-child, .prose th:last-child { padding-right: 0; }
/* Shiki (css-variables theme) reads these; they point at the syntax tokens */
.prose pre.astro-code { --astro-code-foreground: var(--color-term-fg); --astro-code-background: var(--color-term-bg);
  --astro-code-token-keyword: var(--color-syn-keyword); --astro-code-token-string: var(--color-syn-string); --astro-code-token-string-expression: var(--color-syn-string);
  --astro-code-token-constant: var(--color-syn-constant); --astro-code-token-function: var(--color-syn-function); --astro-code-token-parameter: var(--color-term-fg);
  --astro-code-token-comment: var(--color-syn-comment); --astro-code-token-punctuation: var(--color-syn-punct); --astro-code-token-link: var(--color-syn-keyword); }
.prose pre .line.c { color: var(--color-syn-comment); }
.code { position: relative; }
.code.is-clipped::after { content: ""; position: absolute; top: 48px; right: var(--rule-bar); bottom: var(--rule-bar); width: 56px; background: linear-gradient(to right, transparent, var(--color-term-bg)); pointer-events: none; }
.prose pre:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.post__end { margin-top: var(--space-xl); padding: var(--space-lg) 0 var(--section-gap-s); border-top: var(--rule-hair) solid var(--color-rule); color: var(--color-fg-2); }
.post__end a { font-weight: 700; }
.post__next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg); margin-block: var(--space-xl) var(--space-2xl); padding-top: var(--space-xl); border-top: var(--rule-bar) solid var(--color-rule-strong); }
.post__step { display: grid; gap: var(--space-2xs); font-size: var(--text-title); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; text-decoration: none; }
.post__step span { color: var(--color-muted); font-size: var(--text-sm); font-weight: 700; letter-spacing: 0; }
.post__step:hover { text-decoration: underline; text-decoration-color: var(--color-signal); }
.post__step--newer { text-align: right; }
.post__toc { display: none; margin-top: var(--space-md); border: var(--rule-hair) solid var(--color-rule); }
.post__toc summary { min-height: 44px; display: flex; align-items: center; gap: 1ch; padding: 0 var(--space-md); font-weight: 700; cursor: pointer; list-style: none; }
.post__toc summary::-webkit-details-marker { display: none; }
.post__toc summary::before { content: "+"; content: "+" / ""; color: var(--color-signal); }
.post__toc[open] summary::before { content: "-"; content: "-" / ""; }
.post__toc .toc { margin: 0 var(--space-md) var(--space-md); }
.post__contents a[aria-current="true"] { color: var(--color-signal); text-decoration: underline; text-decoration-color: var(--color-signal); }
.prose .code { gap: 0; }
.code { display: grid; margin: 0; box-shadow: 8px 8px 0 var(--color-amber); }
.code__bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding: 0 0 0 var(--space-lg); border: var(--rule-bar) solid var(--color-rule-strong); border-bottom: 0; background: var(--color-term-bg); color: var(--color-term-muted); font-size: var(--text-sm); font-weight: 700; }
.code__bar button { min-width: 17ch; min-height: 44px; padding: 0 var(--space-lg); border: 0; border-left: var(--rule-hair) solid var(--color-term-rule); background: transparent; color: var(--color-term-fg); font: 700 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: color var(--dur-micro) steps(1); }
.code__bar button:hover { color: var(--color-signal-term); }
.code__bar button:focus-visible { outline: 2px solid var(--color-focus-term); outline-offset: -4px; }
.code__bar button:active { transform: translateY(1px); }
.code pre { border-top: var(--rule-hair) solid var(--color-term-rule); }
.cover { display: grid; gap: var(--space-sm); margin: 0; }
.cover img { display: block; background: var(--color-bg-2); width: 100%; height: auto; max-height: min(30svh, 320px); aspect-ratio: 21 / 9; object-fit: cover; object-position: top; border: var(--rule-bar) solid var(--color-rule-strong); box-shadow: 10px 10px 0 var(--color-amber); }
/* The generated card keeps its own 1200:630 shape */
.feature__media--card img { aspect-ratio: 1200 / 630; }
.cover figcaption { padding-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }

/* Footer: exit, then the colophon */
.footer { border-top: var(--rule-hair) solid var(--color-rule); background: var(--color-bg-2); color: var(--color-fg); }
.footer__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); padding-block: var(--space-3xl) var(--space-2xl); }
.footer__exit { grid-column: 1 / -1; font-size: var(--text-2xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.3; }
.footer__closed { color: var(--color-muted); font-size: var(--text-md); font-weight: 400; letter-spacing: 0; }
.footer__text { grid-column: 1 / span 7; color: var(--color-fg-2); }
.footer__links { grid-column: 9 / span 4; display: grid; align-content: start; gap: var(--space-2xs); margin: 0; padding: 0; list-style: none; font-weight: 700; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__legal { grid-column: 1 / -1; padding-top: var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.footer__legal small { color: var(--color-muted); }

@media (min-width: 60.01rem) and (max-width: 80rem) { .about-body .cmd--small { font-size: 1.75rem; } }
@media (max-width: 60rem) {
  .hero__inner, .feature, .split, .post__body, .post__next { grid-template-columns: minmax(0, 1fr); }
  .hero__inner { min-height: 0; gap: var(--space-2xl); }
  .post__step--newer { text-align: left; }
  .split__head, .post__contents { position: static; }
  .post__contents { display: none; }
  .post__toc { display: block; }
  .shell { height: 360px; padding: var(--space-md); }
  .talks { grid-template-columns: minmax(0, 1fr); }
  .footer__text, .footer__links { grid-column: 1 / -1; }
  .about-body { grid-template-columns: minmax(0, 1fr); }
  .ls__row { grid-template-columns: minmax(0, 1fr); gap: var(--space-sm); }
  .ls__row--card { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ls__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); white-space: normal; }
}
@media (max-width: 40rem) {
  /* Compact head: a small portrait beside the name, so the career starts higher */
  .about-head { grid-template-columns: minmax(0, 1fr) 96px; align-items: center; padding-bottom: var(--space-xl); }
  .about-head__text { display: contents; }
  .about-head :is(.lead, .facts) { grid-column: 1 / -1; }
  .portrait { grid-column: 2; grid-row: 1; width: 96px; }
  .portrait img { box-shadow: 4px 4px 0 var(--color-amber); }
  /* Every row leaves room for the branch column, so the text column lines up */
  .gitlog { --dot-y: 1.55rem; }
  .gitlog__commit { padding-left: calc(var(--lane1) + var(--space-md)); }
  .readme { padding: var(--space-lg) var(--space-md); }
  .gitlog__title { grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-2xs); }
  .gitlog__what { grid-column: 1 / -1; grid-row: 2; }
  .gitlog__subject, .gitlog__body { padding-left: 0; }
  html { scroll-padding-top: var(--space-md); }
  .post__meta { gap: var(--space-xs) var(--space-md); }
  .toc-fab:not([hidden]) { display: inline-flex; }
  .shot--wide .shot__frame { box-shadow: 8px 8px 0 var(--color-amber); }
  .shot--wide img { box-shadow: none; }
  .shot__frame.is-clipped::after { content: ""; position: absolute; top: var(--rule-bar); right: var(--rule-bar); bottom: var(--rule-bar); width: 48px; background: linear-gradient(to right, transparent, var(--color-term-bg)); pointer-events: none; }
  html.js .shot figcaption::after { content: "Tap to enlarge."; display: block; margin-top: var(--space-2xs); }
  /* On a phone the full-size image may be wider than the screen: scroll it, tap to close */
  .lightbox { padding: var(--space-md); overflow: auto; }
  .lightbox[open] { place-items: start; align-content: start; }
  .lightbox img { max-width: none; max-height: none; width: 960px; }
  .shot--wide a { overflow-x: auto; overscroll-behavior-x: contain; }
  .shot--wide img { width: 640px; max-width: none; }
  html.js .shot--wide figcaption::after { content: "Scroll sideways, or tap to enlarge."; }
    .shell__ls li { flex-wrap: wrap; column-gap: var(--space-sm); }
  .shell__ls li > a, .shell__ls .shell__item { white-space: normal; overflow-wrap: anywhere; }
  .btn { padding: 0 var(--space-md); }
  .menubar { position: static; }
  .cv__bar { position: static; }
  .menubar__inner { column-gap: var(--space-lg); padding-block: var(--space-xs); }
  .menubar__links { order: 2; flex-basis: 100%; column-gap: var(--space-lg); }
  .post__head, .page-head__inner { padding-top: var(--space-2xl); }
}
@media (prefers-reduced-motion: reduce) {
  .cursor, .shell:focus-within .shell__caret { animation: none; }
  .ls__row--card:hover .ls__card img { transform: none; }
  .btn, .btn:hover, .btn:active, .mode:active, .code__bar button:active { transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
.shell__now .shell__item { white-space: normal; color: var(--color-term-fg); }
.shell__help { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-3xs) var(--space-lg); }
.shell__help li { display: contents; }
.notfound { height: auto; max-width: 48rem; grid-template-rows: auto; }
