/* Shared styles for the blog: same tokens as the homepage and 404 page. */
:root {
  --bg: #0a0a0a;
  --panel: #0d0d0d;
  --fg: oklch(0.94 0.012 80);
  --body: oklch(0.9 0.012 80);
  --soft: oklch(0.78 0.012 80);
  --dim: oklch(0.68 0.012 80);
  --faint: oklch(0.6 0.012 80);
  --line: rgba(245,240,228,0.14);
  --line-soft: rgba(245,240,228,0.08);
  --accent: oklch(0.78 0.18 35);   /* coral */
  --accent2: oklch(0.86 0.14 95);  /* mustard */
  --green: oklch(0.78 0.16 145);
  --chart: #e76444;                /* coral stepped into the dark-mode chart band */
  --sans: "Geist", "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --hand: "Caveat", "Bradley Hand", cursive;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
::selection { background: var(--accent); color: #0a0a0a; }
a { color: inherit; }
em.s { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -0.01em; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 32px 48px 56px; }

/* ── top bar ── */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 13px;
}
.topbar .brand { text-decoration: none; font-weight: 600; letter-spacing: -0.01em; font-size: 14px; }
.topbar .brand .dot { color: var(--accent); margin-right: 6px; }
.topbar nav { display: flex; gap: 24px; color: var(--soft); }
.topbar nav a { text-decoration: none; transition: color .2s; }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--fg); }
.topbar nav a[aria-current="page"]::before { content: "●"; color: var(--accent); font-size: 8px; margin-right: 6px; vertical-align: 2px; }

/* ── labels ── */
.kicker {
  font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.kicker .sep { color: var(--line); }

/* ── footer rail ── */
.rail {
  margin-top: 96px; padding-top: 18px; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 11px; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase;
}
.rail a { text-decoration: none; }
.rail a:hover { color: var(--fg); }

/* ═════════ Writing index ═════════ */
.index-head { padding: 72px 0 40px; }
.index-head h1 {
  font-weight: 500; font-size: clamp(72px, 12vw, 180px); line-height: 0.86;
  letter-spacing: -0.05em; margin: 20px 0 0;
}
.index-head p { max-width: 560px; margin: 28px 0 0; font-size: 17px; line-height: 1.6; color: var(--body); text-wrap: pretty; }

.posts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.posts li { border-bottom: 1px solid var(--line); }
.posts a {
  display: grid; grid-template-columns: 60px 1fr 200px 80px; gap: 24px; align-items: baseline;
  padding: 28px 0; text-decoration: none; transition: background .2s, padding .2s;
}
.posts a:hover { background: rgba(245,240,228,0.025); padding-left: 8px; }
.posts .num { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.posts .title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.posts .title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.posts .excerpt { display: block; margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--soft); max-width: 620px; letter-spacing: 0; }
.posts .tags { font-size: 12px; color: var(--dim); }
.posts .date { font-family: var(--mono); font-size: 12px; color: var(--dim); text-align: right; }

/* ═════════ Post ═════════ */
.post-head { padding: 72px 0 48px; }
.post-head h1 {
  font-weight: 500; font-size: clamp(64px, 10vw, 156px); line-height: 0.88;
  letter-spacing: -0.05em; margin: 24px 0 0; text-wrap: balance;
}
.dek { max-width: 720px; margin: 32px 0 0; font-size: 20px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
.byline { margin-top: 28px; display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--soft); flex-wrap: wrap; }
.byline .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: inline-block; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.35} }

/* story at a glance */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip a { display: block; padding: 22px 24px 22px 0; text-decoration: none; transition: background .2s; }
.strip a + a { padding-left: 24px; border-left: 1px solid var(--line); }
.strip a:hover { background: rgba(245,240,228,0.025); }
.strip .yr { font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.strip a:last-child .yr { color: var(--accent); }
.strip .where { font-size: 12px; color: var(--dim); margin-top: 10px; text-transform: uppercase; letter-spacing: 0.08em; }
.strip .lesson { font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.2; margin-top: 8px; color: var(--fg); }

/* two-column body */
.post-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; margin-top: 64px; }
.toc { position: sticky; top: 32px; align-self: start; }
.toc .kicker { margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: flex; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--soft); text-decoration: none; transition: color .2s; }
.toc a span { font-family: var(--mono); font-size: 11px; color: var(--faint); padding-top: 2px; }
.toc a:hover, .toc a.on { color: var(--fg); }
.toc a.on span { color: var(--accent); }

.prose { min-width: 0; max-width: 680px; font-size: 18px; line-height: 1.75; color: var(--body); }
.prose > * + *, .layer > * + * { margin-top: 1.1em; }
.prose p { margin-bottom: 0; text-wrap: pretty; }
.layer > p, .layer > ul, .layer > ol { margin-bottom: 0; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent); transition: color .2s; }
.prose a:hover { color: var(--accent); }
.prose code { font-family: var(--mono); font-size: 0.84em; color: var(--fg); background: rgba(245,240,228,0.06); padding: 1px 6px; border-radius: 4px; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 0; }
.prose li + li { margin-top: 0.45em; }
.prose ul li::marker { color: var(--accent); }

.prose .lede { font-size: 20px; line-height: 1.6; color: var(--fg); }

.layer { scroll-margin-top: 24px; padding-top: 72px; }
.layer:first-of-type { padding-top: 8px; }
.layer h2 {
  font-weight: 500; font-size: clamp(40px, 5.2vw, 64px); line-height: 0.95; letter-spacing: -0.04em;
  margin: 0; color: var(--fg);
}
.layer h2 .n { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 16px; font-weight: 400; }
.prose h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: var(--fg); margin: 2em 0 0; }
.prose h3 + * { margin-top: 0.6em; }

/* terminal-style code */
.term { border: 1px solid var(--line); background: var(--panel); font-family: var(--mono); font-size: 13px; color: var(--body); }
.term-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.term-bar .lights { display: flex; gap: 6px; }
.term-bar .lights i { width: 9px; height: 9px; border-radius: 50%; background: rgba(245,240,228,0.18); }
.term pre { margin: 0; padding: 16px; line-height: 1.65; overflow-x: auto; white-space: pre; }
.term .c { color: var(--faint); }
.term .p { color: var(--accent); }
.term .ok { color: var(--green); }

/* keybinding table */
.keys { width: 100%; border-collapse: collapse; font-size: 15px; }
.keys td { padding: 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.55; }
.keys tr:first-child td { border-top: 1px solid var(--line-soft); }
.keys td:first-child { width: 88px; white-space: nowrap; padding-right: 16px; }
kbd {
  display: inline-block; min-width: 22px; text-align: center; font-family: var(--mono); font-size: 11.5px; line-height: 1.35;
  color: var(--fg); padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--panel);
}
.keys td strong { display: block; }
.combo { white-space: nowrap; }

/* pipeline */
.pipeline { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 10px 0; font-size: 13px; }
.pipeline li { display: flex; align-items: center; margin: 0 !important; }
.pipeline li:not(:last-child)::after { content: "→"; color: var(--faint); margin: 0 10px; }
.pipeline .step { border: 1px solid var(--line); padding: 7px 12px; color: var(--fg); background: var(--panel); white-space: nowrap; }
.pipeline .step.wait { border-color: color-mix(in oklch, var(--accent2), transparent 55%); }
.pipeline .step.wait::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); margin-right: 8px; vertical-align: 1px; }
.pipeline .step.tier { border-style: dashed; color: var(--soft); }
.legend-row { margin-top: 14px !important; display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.legend-row span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -2px; border: 1px solid var(--line); background: var(--panel); }
.legend-row .wait::before { border-color: color-mix(in oklch, var(--accent2), transparent 55%); background: radial-gradient(circle, var(--accent2) 0 3px, var(--panel) 3.5px); }
.legend-row .tier::before { border-style: dashed; }

/* "who / why" summary at the end of each layer */
.recap { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); margin-top: 2em !important; }
.recap > div { padding: 18px 20px; font-size: 15px; line-height: 1.55; }
.recap > div + div { border-left: 1px solid var(--line); }
.recap .kicker { margin-bottom: 8px; }

/* handwritten margin note */
.hand { font-family: var(--hand); font-size: 24px; line-height: 1.2; color: var(--accent2); transform: rotate(-1.5deg); display: block; }

/* pull quote */
.pull { border-left: 2px solid var(--accent); padding: 4px 0 4px 22px; font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.3; color: var(--fg); letter-spacing: -0.01em; }

/* who cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); }
.cards > div { padding: 20px; font-size: 15px; line-height: 1.55; }
.cards > div + div { border-left: 1px solid var(--line); }
.cards h4, .prose .cards h3.card-title { margin: 0 0 8px; font-size: 18px; font-weight: 500; color: var(--fg); letter-spacing: -0.02em; }
.cards h4 em, .cards h3.card-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }

.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.fit ul { padding-left: 0; list-style: none; }
.fit li { padding-left: 22px; position: relative; font-size: 15px; line-height: 1.55; }
.fit li::before { position: absolute; left: 0; top: 0; font-family: var(--mono); }
.fit .yes li::before { content: "+"; color: var(--green); }
.fit .no li::before { content: "–"; color: var(--dim); }

/* benefits list */
.benefits { list-style: none; padding: 0 !important; counter-reset: b; border-top: 1px solid var(--line); }
.benefits li { counter-increment: b; display: grid; grid-template-columns: 56px 1fr; gap: 8px; padding: 20px 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
.benefits li::before { content: counter(b, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--accent); }
.benefits strong { display: block; font-size: 18px; letter-spacing: -0.01em; margin-bottom: 4px; }

/* "what I carried forward" callout */
.carry { border: 1px solid var(--line); border-left: 2px solid var(--accent2); background: var(--panel); padding: 16px 20px; font-size: 15px; line-height: 1.6; color: var(--fg); margin-top: 1.6em !important; }
.carry .kicker { margin-bottom: 6px; color: var(--accent2); }

/* iteration timeline */
.timeline { list-style: none; padding: 0 !important; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding: 0 0 22px 28px; margin: 0 !important; font-size: 15px; line-height: 1.6; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--dim); }
.timeline li.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent), transparent 80%); }
.timeline .when { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 3px; text-transform: uppercase; letter-spacing: 0.06em; }
.timeline strong { display: block; color: var(--fg); font-size: 16px; }

/* credits */
.credits { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.credits li { margin: 0 !important; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.credits li span { color: var(--dim); font-size: 13px; text-align: right; }
.credits .pair { font-weight: 400; }

/* ═════════ Images ═════════ */
picture { display: block; }
.post-hero { margin: 0 0 48px; }
.post-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line-soft); border-radius: 4px; background: var(--panel); }
.post-hero figcaption { margin-top: 10px; font-size: 12px; color: var(--faint); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.post-hero figcaption a { text-decoration: none; border-bottom: 1px solid var(--line); }
.post-hero figcaption a:hover { color: var(--fg); }

/* ═════════ Blog index ═════════ */
.blog-head { padding: 72px 0 40px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.blog-head h1 { font-weight: 500; font-size: clamp(72px, 11vw, 168px); line-height: 0.86; letter-spacing: -0.05em; margin: 20px 0 0; }
.blog-head .intro { font-size: 18px; line-height: 1.6; color: var(--body); margin: 0; text-wrap: pretty; }
.blog-head .intro strong { color: var(--fg); font-weight: 500; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { font: inherit; font-size: 13px; color: var(--soft); background: transparent; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--fg); border-color: var(--soft); }
.chip[aria-pressed="true"] { color: #0a0a0a; background: var(--accent); border-color: var(--accent); }

.meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--dim); letter-spacing: 0.02em; }
.meta .dot-sep { color: var(--line); }
.meta .new { color: #0a0a0a; background: var(--accent2); padding: 2px 8px; font-weight: 600; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.tagrow { display: flex; gap: 6px; flex-wrap: wrap; }
.tagrow span { font-size: 11px; color: var(--soft); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }

.featured { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; text-decoration: none; padding: 32px 0 48px; border-top: 1px solid var(--line); }
.featured .ph { overflow: hidden; border: 1px solid var(--line-soft); }
.featured img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.featured:hover img { transform: scale(1.02); }
.featured .kicker { margin-bottom: 14px; color: var(--accent); }
.featured h2 { margin: 12px 0 0; font-weight: 500; font-size: clamp(36px, 4.4vw, 60px); line-height: 0.98; letter-spacing: -0.04em; }
.featured h2 em, .pcard h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent); }
.featured p { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: var(--body); }
.featured .tagrow { margin-top: 20px; }
.readmore { display: inline-flex; gap: 8px; align-items: center; margin-top: 22px; font-size: 14px; color: var(--fg); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

.section-label { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 28px; }
.section-label h2 { margin: 0; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.section-label span { font-size: 12px; color: var(--faint); }

.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.pcard { display: flex; flex-direction: column; text-decoration: none; }
.pcard[hidden] { display: none; }
.pcard .ph { overflow: hidden; border: 1px solid var(--line-soft); margin-bottom: 16px; }
.pcard img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.pcard:hover img { transform: scale(1.03); }
.pcard h3 { margin: 10px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; transition: color .2s; }
.pcard:hover h3 { color: #fff; }
.pcard p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--soft); }
.pcard .tagrow { margin-top: 14px; }
.empty-note { color: var(--dim); font-size: 15px; }

/* keep reading, at the end of a post */
.more { margin-top: 96px; }
.more .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── responsive ── */
@media (max-width: 1000px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .toc { position: static; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
  .toc ol { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
}
@media (max-width: 1000px) {
  .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .wrap { padding: 24px 16px 40px; }
  .blog-head { grid-template-columns: 1fr; gap: 20px; padding: 48px 0 28px; }
  .featured { grid-template-columns: 1fr; gap: 20px; padding: 24px 0 36px; }
  .pcards, .more .pcards { grid-template-columns: 1fr; gap: 36px; }
  .topbar nav { gap: 16px; }
  .index-head, .post-head { padding: 48px 0 32px; }
  .dek { font-size: 18px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip a { padding: 18px 16px 18px 0; }
  .strip a + a { padding-left: 16px; }
  .strip a:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .strip .yr { font-size: 36px; }
  .strip .lesson { font-size: 18px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .posts a { grid-template-columns: 40px 1fr; gap: 12px; }
  .posts .tags { display: none; }
  .posts .date { grid-column: 2; text-align: left; }
  .recap, .fit, .credits { grid-template-columns: 1fr; }
  .recap > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .cards > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .prose { font-size: 16px; }
  .pull { font-size: 23px; }
  .keys td:first-child { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ═════════ Site footer links ═════════ */
.rail-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ═════════ About page ═════════ */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.about-photo { margin: 0; justify-self: center; position: relative; background: #efeae2; padding: 14px 14px 52px; transform: rotate(3deg); box-shadow: 0 30px 60px rgba(0,0,0,0.5); max-width: 320px; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.about-photo figcaption { position: absolute; left: 18px; bottom: 12px; font-family: var(--hand); font-size: 26px; color: #2a2724; }
.about-prose { margin: 24px auto 0; }

@media (max-width: 880px) {
  .about-intro { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 240px; }
}

/* ═════════ Recognition ═════════ */
.recognition { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.recognition li { margin: 0 !important; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.recognition li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.recog-title { font-size: 17px; font-weight: 500; color: var(--fg); letter-spacing: -0.01em; line-height: 1.35; }
.recog-title a { border-bottom: 1px solid var(--accent); }
.recognition p { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--soft); }
.recog-meta { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
@media (max-width: 880px) {
  .recognition { grid-template-columns: 1fr; }
  .recognition li:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ═════════ Uses page ═════════ */
.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; margin-top: 16px; }
.uses-group h2 { display: flex; gap: 14px; align-items: baseline; margin: 0 0 12px; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }
.uses-group h2 .n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); font-weight: 400; }
.uses-group dl { margin: 0; border-top: 1px solid var(--line); }
.uses-group dl > div { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.uses-group dt { font-size: 15px; font-weight: 500; color: var(--fg); }
.uses-group dd { margin: 0; font-size: 15px; line-height: 1.55; color: var(--body); }
.uses a, .post-head .dek a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent); }
.uses a:hover { color: var(--accent); }
.uses code { font-family: var(--mono); font-size: 0.84em; color: var(--fg); background: rgba(245,240,228,0.06); padding: 1px 6px; border-radius: 4px; }
@media (max-width: 1000px) { .uses { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .uses-group dl > div { grid-template-columns: 1fr; gap: 4px; } }

/* ═════════ Profile page ═════════ */
.profile { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 64px; align-items: start; }
.profile-card { position: sticky; top: 32px; border: 1px solid var(--line); background: var(--panel); padding: 20px; }
.profile-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.profile-name { margin-top: 18px; font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.profile-role { margin-top: 4px; font-size: 14px; color: var(--soft); }
.profile-facts { margin: 18px 0 0; border-top: 1px solid var(--line); }
.profile-facts > div { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.profile-facts dt { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.profile-facts dd { margin: 4px 0 0; font-size: 14px; color: var(--body); }
.profile-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; font-size: 14px; }
.profile-actions .btn { background: var(--accent); color: #0a0a0a; text-decoration: none; padding: 11px 16px; font-weight: 500; text-align: center; }
.profile-actions .ghost { text-decoration: none; color: var(--fg); border: 1px solid var(--line); padding: 10px 16px; text-align: center; transition: border-color .2s; }
.profile-actions .ghost:hover { border-color: var(--accent); }
.profile-main section + section { margin-top: 56px; }
.profile-main h2 { display: flex; gap: 14px; align-items: baseline; margin: 0 0 18px; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; }
.profile-main h2 .n { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--accent); font-weight: 400; }
.bio { border: 1px solid var(--line); padding: 18px 20px; }
.bio + .bio { margin-top: 12px; }
.bio-head { display: flex; justify-content: space-between; align-items: center; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.bio p { margin: 10px 0 0; font-size: 16px; line-height: 1.65; color: var(--fg); }
.copy { font: inherit; font-size: 12px; letter-spacing: 0.04em; text-transform: none; color: var(--soft); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.copy:hover { color: var(--fg); border-color: var(--accent); }
.profile-topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.profile-topics li { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; line-height: 1.6; color: var(--body); }
.profile-topics strong { display: block; font-size: 17px; font-weight: 500; color: var(--fg); margin-bottom: 4px; }
.profile-topics a, .profile .credits a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent); }
.profile .credits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.profile .credits li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; display: flex; justify-content: space-between; gap: 12px; }
.profile .credits li span { color: var(--dim); font-size: 13px; }
@media (max-width: 1000px) {
  .profile { grid-template-columns: 1fr; gap: 40px; }
  .profile-card { position: static; max-width: 420px; }
}
@media (max-width: 880px) { .profile .credits { grid-template-columns: 1fr; } }

/* ═════════ Topics & series ═════════ */
a.chip { display: inline-block; text-decoration: none; }
.topics-index { margin-top: 72px; }
.topic-head .kicker a { text-decoration: none; }
.topic-head .kicker a:hover { color: var(--fg); }
.series-box { margin: 0 0 48px; border: 1px solid var(--line); border-left: 2px solid var(--accent); background: var(--panel); padding: 18px 22px; }
.series-title { margin-top: 4px; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); }
.series-box ol { margin: 12px 0 0; padding-left: 1.3em; display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 14px; }
.series-box li { color: var(--dim); }
.series-box li::marker { color: var(--accent); font-family: var(--mono); font-size: 12px; }
.series-box a { color: var(--soft); text-decoration: none; }
.series-box a:hover { color: var(--fg); }
.series-box li[aria-current="true"] a { color: var(--fg); border-bottom: 1px solid var(--accent); }

/* ═════════ Newsletter ═════════ */
.newsletter { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; padding: 28px; border: 1px solid color-mix(in oklch, var(--accent), transparent 60%); background: color-mix(in oklch, var(--accent), var(--bg) 94%); }
.newsletter h2 { margin: 6px 0 0; font-size: 32px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.newsletter p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.newsletter p a, .nl-privacy a, .nl-card a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--accent); }
.nl-form label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 8px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; font: inherit; font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line); padding: 11px 14px; }
.nl-row input:focus { outline: none; border-color: var(--accent); }
.nl-row button, .nl-button { font: inherit; font-size: 15px; font-weight: 500; color: #0a0a0a; background: var(--accent); border: 0; padding: 11px 18px; cursor: pointer; }
.nl-row button:disabled { opacity: 0.6; cursor: progress; }
.nl-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nl-status { min-height: 1.5em; margin: 10px 0 0 !important; font-size: 14px !important; color: var(--soft) !important; }
.nl-landing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; max-width: 1000px; }
.nl-landing .nl-form { padding: 28px; border: 1px solid color-mix(in oklch, var(--accent), transparent 60%); background: color-mix(in oklch, var(--accent), var(--bg) 94%); }
.nl-privacy h2 { margin: 0 0 12px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.nl-privacy ul { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.6; color: var(--body); }
.nl-privacy li + li { margin-top: 6px; }
.nl-privacy li::marker { color: var(--accent); }
.nl-privacy p { font-size: 15px; color: var(--body); }
.nl-page, main:has(> .nl-card) { display: block; }
.nl-card { max-width: 620px; margin: 96px 0 48px; }
.nl-card h1 { margin: 16px 0 0; font-size: clamp(48px, 7vw, 96px); font-weight: 500; line-height: 0.95; letter-spacing: -0.045em; }
.nl-card p { margin: 20px 0 0; font-size: 18px; line-height: 1.6; color: var(--body); }
.nl-card form { margin-top: 28px; }
@media (max-width: 880px) {
  .newsletter, .nl-landing { grid-template-columns: 1fr; }
  .newsletter { padding: 22px; }
}

/* ═════════ End of post: sign-off ═════════ */
.prose .signoff { margin-top: 88px; }
.signoff a { border-bottom: 0; }
.signoff .kicker { margin: 0; }
.signoff-meta { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.post-topics, .share { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 14px; }
.post-topics > span, .share > span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.prose .post-topics a { color: var(--fg); text-decoration: none; border-bottom: 1px solid color-mix(in oklch, var(--accent), transparent 40%); }
.prose .post-topics a:hover { color: var(--accent); }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--soft); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover { color: var(--fg); border-color: var(--accent); background: color-mix(in oklch, var(--accent), transparent 90%); }
.icon-btn.done { color: var(--green); border-color: var(--green); }

.author { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 40px; }
.author-photo img { display: block; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px color-mix(in oklch, var(--accent), transparent 45%); }
.prose .author-name { display: inline-block; margin-top: 4px; font-size: 26px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; color: var(--fg); text-decoration: none; }
.prose .author-name:hover { color: var(--accent); }
.author-role { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.prose .author-role a { color: var(--fg); text-decoration: underline; text-decoration-color: color-mix(in oklch, var(--accent), transparent 40%); text-underline-offset: 3px; }
.prose .author-bio { margin: 20px 0 0; font-size: 16px; line-height: 1.65; color: var(--body); }
.author-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: 14px; }
.prose .author-links a { color: var(--soft); text-decoration: none; }
.prose .author-links a::after { content: " →"; color: var(--faint); transition: color .2s; }
.prose .author-links a:hover { color: var(--fg); }
.prose .author-links a:hover::after { color: var(--accent); }

.talk { margin-top: 40px; padding: 28px 28px 30px; border: 1px solid color-mix(in oklch, var(--accent), transparent 70%); background: linear-gradient(135deg, color-mix(in oklch, var(--accent), var(--bg) 91%), var(--panel) 70%); }
.talk h2 { margin: 0; font-size: clamp(32px, 4.2vw, 46px); font-weight: 500; line-height: 1.02; letter-spacing: -0.035em; color: var(--fg); text-wrap: balance; }
.prose .talk p { margin: 10px 0 0; font-size: 15px; color: var(--soft); }
.talk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.prose .btn, .prose .btn-ghost { display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; text-decoration: none; padding: 11px 20px; border-radius: 999px; transition: transform .2s, border-color .2s, background .2s; }
.prose .btn { color: #0a0a0a; background: var(--accent); }
.prose .btn:hover { transform: translateY(-1px); color: #0a0a0a; }
.prose .btn-ghost { color: var(--fg); border: 1px solid var(--line); }
.prose .btn-ghost:hover { border-color: var(--accent); color: var(--fg); }

@media (max-width: 880px) {
  .prose .signoff { margin-top: 64px; }
  .author { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; margin-top: 32px; }
  .author-photo img { width: 64px; height: 64px; }
  .prose .author-name { font-size: 22px; }
  .talk { padding: 22px; }
}
