@font-face {
  font-family: Geist;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #111111;
  --surface: #181818;
  --ink: #e8e6e3;
  --muted: #aaa7a2;
  --faint: #94918c;
  --line: #30302e;
  --accent: #dedbd5;
  --danger: #d9a59c;
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
button, input, select, textarea { border-radius: 2px; }
::selection { color: var(--bg); background: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-weight: 500; letter-spacing: -.05em; line-height: 1.1; }
h1 em { font: inherit; color: var(--muted); }
.site-shell { display: flex; min-height: 100svh; flex-direction: column; }
.wrap { width: min(100% - 80px, 1080px); margin-inline: auto; }
main { flex: 1; min-width: 0; }
.site-header { display: flex; min-height: 100px; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.site-logo { display: inline-flex; width: 48px; min-height: 48px; flex-shrink: 0; align-items: center; justify-content: center; }
.site-logo img { display: block; width: 44px; height: 44px; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.main-nav a { position: relative; display: inline-flex; min-height: 44px; align-items: center; gap: 5px; color: var(--muted); transition: color .15s ease; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--ink); }
.main-nav a[aria-current]::after { position: absolute; right: 0; bottom: 5px; left: 0; height: 1px; background: var(--ink); content: ''; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { width: 6px; height: 6px; border: 1px solid var(--faint); content: ''; flex-shrink: 0; }
.eyebrow > span:empty { display: none; }
.hero { padding: 80px 0 70px; }
.hero-copy { max-width: 470px; margin-bottom: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.archive-layout { display: grid; grid-template-columns: minmax(0, 1fr) 218px; align-items: start; gap: 64px; padding-bottom: 100px; }
.post-index { min-width: 0; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 0 0 17px; border-bottom: 1px solid var(--line); }
.section-heading h2, .sidebar-heading { margin: 0; font-family: var(--mono); font-size: 11px; font-weight: 400; letter-spacing: .07em; text-transform: uppercase; }
.section-heading > span { flex-shrink: 0; color: var(--faint); font-family: var(--mono); font-size: 10px; }
.archive-search { margin: 18px 0 4px; }
.search-input-wrap { display: flex; min-height: 43px; align-items: center; gap: 11px; padding: 0 12px; border: 1px solid var(--line); background: #141414; }
.search-input-wrap:focus-within { border-color: var(--faint); }
.search-icon { flex-shrink: 0; color: var(--faint); }
.search-input-wrap input { width: 100%; min-width: 0; height: 42px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-family: var(--sans); font-size: 12px; }
.search-input-wrap input::placeholder { color: var(--faint); }
.search-input-wrap button { display: inline-flex; min-height: 36px; flex-shrink: 0; align-items: center; gap: 12px; padding: 0 2px 0 10px; border: 0; color: var(--muted); background: transparent; font-family: var(--mono); font-size: 10px; }
.search-input-wrap button:hover { color: var(--ink); }
.search-input-wrap button > span { color: var(--faint); }
.search-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin: 13px 0 0; color: var(--muted); font-family: var(--mono); font-size: 11px; overflow-wrap: anywhere; }
.search-summary a { text-decoration: underline; text-underline-offset: 3px; }
.post-row { border-bottom: 1px solid var(--line); }
.post-row-link { display: block; padding: 27px 0 24px; }
.post-row-main { min-width: 0; }
.post-row-meta { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 10px; color: var(--faint); font-family: var(--mono); font-size: 10px; }
.post-folder { color: var(--muted); }
.post-row h3 { display: flex; justify-content: space-between; gap: 20px; margin: 0 0 10px; font-size: clamp(1.18rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.35; overflow-wrap: anywhere; transition: color .15s; }
.row-arrow { flex-shrink: 0; padding-top: 2px; color: var(--faint); font-size: 18px; font-weight: 400; transition: color .15s, transform .15s; }
.post-row-link:hover h3 { color: #fff; }
.post-row-link:hover .row-arrow { color: var(--ink); transform: translate(2px, -2px); }
.post-row p { max-width: 590px; margin-bottom: 18px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.post-row-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; align-items: baseline; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px 13px; color: var(--faint); font-family: var(--mono); font-size: 10px; }
.reading-time { color: var(--faint); font-family: var(--mono); font-size: 10px; white-space: nowrap; }
.archive-sidebar { padding-left: 26px; border-left: 1px solid var(--line); }
.sidebar-heading { margin: 0 0 20px; color: var(--faint); }
.topic-nav { display: grid; gap: 3px; }
.topic-nav a { display: flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 10px; color: var(--muted); font-size: 12px; transition: color .15s, background .15s; }
.topic-nav a[aria-current] { color: var(--ink); background: #20201f; }
.topic-nav a:hover { color: var(--ink); background: #1b1b1a; }
.topic-nav a > span:first-child { overflow-wrap: anywhere; }
.topic-count { color: var(--faint); font-family: var(--mono); font-size: 10px; }
.empty-state { padding: 52px 0; color: var(--muted); font-size: 14px; }
.empty-state p { margin: 0; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 26px; font-family: var(--mono); font-size: 11px; }
.pagination span { color: var(--faint); }
.pagination a { min-height: 36px; display: inline-flex; align-items: center; }
.topic-header { padding: 40px 0 56px; }
.topic-header .back-link { margin-bottom: 38px; }
.topic-header .eyebrow { margin-bottom: 16px; }
.topic-header h1 { margin: 0 0 18px; font-size: clamp(2.7rem, 6vw, 4rem); overflow-wrap: anywhere; }
.back-link, .preview-link, .quiet-link { display: inline-flex; min-height: 32px; align-items: center; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 11px; transition: color .15s; }
.back-link:hover, .preview-link:hover, .quiet-link:hover { color: var(--ink); }
.reading-wrap { width: min(100% - 80px, 740px); }
.post { padding: 42px 0 80px; }
.post-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--faint); font-family: var(--mono); font-size: 11px; }
.post-breadcrumb a { display: inline-flex; min-height: 32px; align-items: center; }
.post-breadcrumb a:hover { color: var(--ink); }
.post-breadcrumb > span { color: var(--faint); }
.post-header { padding: 45px 0 28px; border-bottom: 1px solid var(--line); }
.post-header .eyebrow { margin-bottom: 18px; }
.post-header h1 { margin: 0 0 24px; font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.14; overflow-wrap: anywhere; }
.post-deck { max-width: 650px; margin-bottom: 27px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; color: var(--faint); font-family: var(--mono); font-size: 10px; }
.article-meta > span:first-child { color: var(--ink); }
.meta-separator { color: #67645f; }
.article-body { min-width: 0; padding-top: 34px; color: #c9c6c1; font-size: 16px; line-height: 1.85; overflow-wrap: break-word; }
.article-body > * { margin: 0 0 24px; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4, .article-body h5, .article-body h6 { margin: 44px 0 18px; color: var(--ink); font-weight: 500; letter-spacing: -.025em; line-height: 1.35; scroll-margin-top: 28px; }
.article-body h1 { font-size: 1.9rem; }
.article-body h2 { font-size: 1.55rem; }
.article-body h3 { font-size: 1.2rem; }
.article-body a { color: var(--ink); text-decoration: underline; text-decoration-color: #68655f; text-underline-offset: 4px; }
.article-body a:hover { text-decoration-color: var(--ink); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body ul, .article-body ol { padding-left: 1.4em; }
.article-body li { padding-left: .15em; margin-bottom: 8px; }
.article-body li::marker { color: var(--faint); }
.article-body blockquote { margin-left: 0; padding: 2px 0 2px 22px; border-left: 2px solid #68655f; color: var(--muted); }
.article-body blockquote > :last-child { margin-bottom: 0; }
.article-body hr { height: 1px; margin: 38px 0; border: 0; background: var(--line); }
.article-body code { padding: .15em .35em; border: 1px solid var(--line); background: #1b1b1a; color: var(--ink); font-family: var(--mono); font-size: .8em; overflow-wrap: anywhere; }
.article-body pre { overflow-x: auto; max-width: 100%; margin: 30px 0; padding: 27px 24px; border: 1px solid var(--line); background: #161616; tab-size: 2; }
.article-body pre code { padding: 0; border: 0; background: transparent; color: #d0cdc7; font-size: 12px; line-height: 1.8; overflow-wrap: normal; }
.code-block { position: relative; max-width: 100%; margin: 30px 0; }
.code-block pre { margin: 0; padding-top: 42px; }
.copy-code { position: absolute; top: 8px; right: 11px; min-height: 28px; padding: 3px 7px; border: 0; background: #161616; color: var(--faint); font-family: var(--mono); font-size: 10px; }
.copy-code:hover { color: var(--ink); background: #232322; }
.article-body img { display: block; width: auto; max-width: 100%; height: auto; margin: 32px auto; border: 1px solid var(--line); background: var(--surface); }
.article-body table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 13px; }
.article-body th, .article-body td { padding: 10px 13px; border: 1px solid var(--line); text-align: left; }
.article-body th { color: var(--ink); background: var(--surface); font-weight: 500; }
.article-body .toc { padding: 18px 22px; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.article-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 24px; border-top: 1px solid var(--line); }
.preview-notice { padding: 12px 16px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-family: var(--mono); font-size: 11px; }
.not-found { max-width: 760px; padding: 100px 0 120px; }
.not-found-code { margin-bottom: 16px; color: var(--faint); font-family: var(--mono); font-size: 12px; }
.not-found h1 { margin-bottom: 25px; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.not-found-copy { max-width: 500px; margin-bottom: 32px; color: var(--muted); font-size: 15px; }
.button { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 20px; padding: 10px 17px; border: 1px solid #55534e; border-radius: 2px; background: transparent; color: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 500; line-height: 1.4; transition: background .15s, border-color .15s; }
.button:hover { border-color: #aaa7a2; background: #20201f; }
.button-primary { border-color: var(--ink); background: var(--ink); color: #151515; }
.button-primary:hover { border-color: #fff; background: #fff; }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 16px 24px; min-height: 85px; padding-block: 20px; border-top: 1px solid var(--line); color: var(--faint); font-family: var(--mono); font-size: 10px; }
.site-footer a { display: inline-flex; min-height: 36px; align-items: center; gap: 12px; }
.site-footer a:hover { color: var(--ink); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; }
.skip-link { position: absolute; z-index: 10; top: -100px; left: 20px; padding: 12px 18px; background: var(--ink); color: var(--bg); font-size: 13px; }
.skip-link:focus { top: 15px; }
@media (min-width: 1600px) { .wrap { width: min(100% - 120px, 1120px); } .reading-wrap { max-width: 740px; } }
@media (max-width: 800px) {
  .wrap { width: calc(100% - 48px); }
  .site-header { min-height: 82px; }
  .hero { padding: 58px 0 48px; }
  .archive-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; padding-bottom: 70px; }
  .archive-sidebar { grid-row: 1; padding: 0 0 20px; border-left: 0; border-bottom: 1px solid var(--line); }
  .sidebar-heading { margin-bottom: 12px; font-size: 10px; }
  .topic-nav { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 7px; }
  .topic-nav a { flex-shrink: 0; min-height: 40px; gap: 14px; padding-inline: 12px; white-space: nowrap; }
  .reading-wrap { max-width: 700px; }
  .post-header { padding-top: 32px; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 77px; gap: 16px; }
  .main-nav { gap: 18px; font-size: 12px; }
  .hero { padding: 48px 0 42px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: .075em; }
  .hero-copy { font-size: 14px; line-height: 1.75; }
  .eyebrow { font-size: 9px; }
  .post-row-link { padding-block: 25px; }
  .post-row h3 { font-size: 20px; }
  .post-row p { font-size: 13px; }
  .post-row-meta { font-size: 9px; }
  .post-tags, .reading-time { font-size: 9px; }
  .topic-header { padding: 28px 0 38px; }
  .topic-header h1 { font-size: 2.6rem; }
  .topic-header .back-link { margin-bottom: 28px; }
  .post { padding-top: 26px; }
  .post-header h1 { font-size: 2.05rem; letter-spacing: -.04em; }
  .post-deck { font-size: 15px; }
  .article-meta { gap: 7px 10px; font-size: 9px; }
  .article-body { font-size: 15px; }
  .article-body pre { padding-inline: 16px; }
  .article-body pre code { font-size: 11px; }
  .not-found { padding: 70px 0 90px; }
  .site-footer { padding-block: 22px; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
