@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-regular.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-medium.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-semibold.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f3edde;
  --surface: #e9e0cd;
  --ink: #34342b;
  --muted: #706c5c;
  --line: #cfc5ad;
  --rust: #8b4931;
  --olive: #5b643c;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.9 var(--mono); -webkit-font-smoothing: antialiased; }
a { color: var(--rust); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible, pre:focus-visible, .table-scroll:focus-visible { outline: 2px solid var(--rust); outline-offset: 5px; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: #ded1ae; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 16px; }
.skip-link:focus { top: 12px; }
.site-shell { width: min(1140px, calc(100% - 96px)); margin: 0 auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 30px; min-height: 94px; border-bottom: 1px dashed var(--line); }
.wordmark { color: var(--ink); font-size: 24px; font-weight: 500; letter-spacing: -.06em; text-decoration: none; line-height: 1.2; }
.wordmark span { color: var(--rust); }
.main-nav { display: flex; gap: 28px; font-size: 12px; line-height: 1.5; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 12px 0; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--rust); }
.main-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.index-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
.directory { padding-top: 51px; font-size: 12px; line-height: 1.85; }
.directory-label { color: var(--olive); margin-bottom: 26px; }
.tree-root { color: var(--rust); margin-bottom: 8px; }
.tree-link { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tree-link[aria-current], .tree-link:hover { color: var(--rust); }
.directory-note { color: var(--muted); font-size: 10px; line-height: 1.9; margin-top: 34px; }
.intro { min-width: 0; padding: 51px 0 43px; }
.command { font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.command-user { color: var(--olive); }
.command-path { color: var(--rust); }
.prompt { color: var(--rust); margin: 0 9px 0 4px; }
.hash { color: var(--rust); font-weight: 400; }
.intro h1 { font-size: 31px; font-weight: 500; line-height: 1.3; letter-spacing: -.055em; margin: 25px 0 20px; }
.about-copy { max-width: 720px; }
.about-copy p { margin: 0 0 18px; }
.intro-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; font-size: 11px; line-height: 1.6; }
.intro-links a { text-decoration: none; }
.intro-links > span { color: var(--muted); }
.writing { min-width: 0; padding-top: 51px; }
.writing-topline { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 17px; border-bottom: 1px dashed var(--line); }
.writing h1 { font-size: 13px; font-weight: 500; line-height: 1.6; margin: 0; }
.writing h1 .prompt { margin-left: 0; }
.entry-count { color: var(--muted); font-size: 10px; white-space: nowrap; }
.post-entry { display: grid; grid-template-columns: 93px minmax(0, 1fr) 18px; gap: 19px; padding: 24px 0; border-bottom: 1px dashed var(--line); }
.post-entry time { padding-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.6; white-space: nowrap; }
.post-entry h2 { margin: 0 0 8px; font-size: 17px; font-weight: 500; line-height: 1.45; letter-spacing: -.04em; overflow-wrap: anywhere; }
.post-entry h2 a { text-decoration: none; }
.post-entry h2 a:hover { background: var(--rust); color: var(--paper); }
.post-entry p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.post-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; list-style: none; padding: 0; margin: 9px 0 0; color: var(--olive); font-size: 10px; line-height: 1.6; }
.post-tags li::before { content: "#"; }
.post-arrow { color: var(--rust); font-size: 17px; line-height: 1.4; }
.empty-archive { color: var(--muted); padding: 24px 0; }
.site-footer { display: flex; justify-content: flex-end; margin-top: 72px; padding: 24px 0 35px; border-top: 1px dashed var(--line); font-size: 10px; line-height: 1.8; }
.site-footer a { color: var(--muted); text-decoration: none; }

.article-heading { margin-left: 248px; padding: 31px 0; }
.back-link { display: inline-block; color: var(--muted); font-size: 11px; text-decoration: none; margin-bottom: 26px; }
.article-heading h1 { margin: 21px 0; font-size: clamp(28px, 3vw, 33px); line-height: 1.25; font-weight: 500; letter-spacing: -.05em; overflow-wrap: anywhere; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 10px; line-height: 1.6; color: var(--muted); }
.meta-separator { color: var(--muted); }
.article-tags { color: var(--olive); }
.article-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; }
.contents { grid-column: 1; grid-row: 1; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 5px 15px 8px 0; border-right: 1px dashed var(--line); font-size: 11px; line-height: 1.65; scrollbar-width: thin; }
.contents summary { color: var(--olive); font-weight: 500; cursor: pointer; }
.contents ol { list-style: none; padding: 0; margin: 22px 0 0; }
.contents li { padding-left: calc(var(--depth, 0) * 10px); margin: 0 0 14px; }
.contents a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contents a:hover, .contents a[aria-current] { color: var(--rust); }
.toc-number { color: var(--rust); margin-right: 6px; font-size: 10px; }
.prose { grid-column: 2; grid-row: 1; min-width: 0; font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.prose p { max-width: 68ch; margin: 0 0 22px; }
.prose h2, .prose h3, .prose h4, .prose h5, .prose h6 { margin: 36px 0 18px; font-weight: 500; line-height: 1.45; letter-spacing: -.04em; scroll-margin-top: 24px; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 20px; }
.prose h4 { font-size: 17px; }
.prose h5, .prose h6 { font-size: 15px; }
.prose h2::before { content: "## "; color: var(--rust); font-weight: 400; }
.prose h3::before { content: "### "; color: var(--rust); font-weight: 400; }
.prose h4::before { content: "#### "; color: var(--rust); font-weight: 400; }
.heading-anchor { font-size: .8em; color: var(--muted); margin-left: 10px; text-decoration: none; opacity: 0; }
.prose :is(h2, h3, h4, h5, h6):hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
.prose :not(pre) > code { background: var(--surface); padding: 2px 3px; font: .88em/1.7 var(--mono); overflow-wrap: anywhere; }
.prose :not(pre) > code::before, .prose :not(pre) > code::after { content: "`"; color: var(--muted); }
.prose ul, .prose ol { padding-left: 2em; margin: 0 0 22px; }
.prose li + li { margin-top: 7px; }
.prose li > p { margin-bottom: 10px; }
.prose blockquote { margin: 24px 0; padding-left: 20px; border-left: 3px solid var(--line); color: var(--muted); }
.prose hr { border: 0; border-top: 1px dashed var(--line); margin: 35px 0; }
.prose img { display: block; max-width: 100%; height: auto; margin: 20px 0; }
.prose figure { max-width: 100%; margin: 24px 0; }
.prose figcaption { color: var(--muted); font-size: 12px; }
.prose table { display: block; max-width: 100%; border-collapse: collapse; overflow-x: auto; margin: 24px 0; font-size: 13px; }
.prose th, .prose td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--surface); font-weight: 500; }
.table-scroll { overflow-x: auto; }
.table-scroll table { display: table; width: 100%; }
.prose pre { margin: 24px 0; border: 1px solid var(--line); padding: 20px; max-width: 100%; overflow-x: auto; background: var(--surface); color: var(--ink); font: 12px/1.9 var(--mono); tab-size: 4; overflow-wrap: normal; }
pre code { font: inherit; white-space: pre; }
.code-block { margin: 25px 0; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 9px 17px; border-bottom: 1px dashed var(--line); color: var(--muted); font-size: 11px; line-height: 1.5; }
.copy-code { padding: 5px 7px; border: 1px solid transparent; background: none; color: var(--muted); font-size: 10px; }
.copy-code:hover { border-color: var(--line); color: var(--ink); }
.code-block pre { margin: 0; border: 0; }
.code-block figure.highlight { margin: 0; }
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs, .highlight .cp, .highlight .ch { color: #666050; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .ow { color: #8b4634; }
.highlight .kt, .highlight .nc, .highlight .nn { color: #675582; }
.highlight .nf, .highlight .nb, .highlight .na, .highlight .nt { color: #506141; }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .se, .highlight .sh, .highlight .si, .highlight .sr, .highlight .ss { color: #63612c; }
.highlight .m, .highlight .mi, .highlight .mf, .highlight .mh, .highlight .mo, .highlight .il { color: #91501b; }
.highlight .gd { background: #ead2c4; color: #803723; }
.highlight .gi { background: #dfe3c9; color: #45532b; }
.highlight .ge { font-style: italic; }
.highlight .gs { font-weight: 600; }

@media (max-width: 1000px) {
  .site-shell { width: calc(100% - 64px); }
  .index-layout, .article-layout { grid-template-columns: 165px minmax(0, 1fr); gap: 30px; }
  .article-heading { margin-left: 195px; }
  .main-nav { gap: 18px; }
}
@media (max-width: 760px) {
  .site-shell { width: calc(100% - 40px); }
  .site-header { flex-direction: column; align-items: flex-start; justify-content: center; gap: 15px; padding: 20px 0 14px; }
  .wordmark { font-size: 22px; }
  .main-nav { width: 100%; justify-content: space-between; gap: 10px; font-size: 11px; }
  .main-nav a { padding: 7px 0; }
  .index-layout { display: block; }
  .directory { display: none; }
  .intro { padding: 32px 0 30px; }
  .intro h1 { font-size: 28px; }
  .command { font-size: 10px; }
  .writing { padding-top: 32px; }
  .writing-topline { gap: 10px; }
  .writing h1 { font-size: 12px; }
  .entry-count { font-size: 10px; }
  .post-entry { grid-template-columns: minmax(0, 1fr) 18px; gap: 8px 12px; }
  .post-entry time { grid-column: 1; padding: 0 0 3px; }
  .post-entry > div { grid-column: 1; }
  .post-entry h2 { font-size: 16px; }
  .post-arrow { grid-column: 2; grid-row: 2; }
  .site-footer { margin-top: 46px; }
  .article-heading { margin-left: 0; padding: 25px 0 24px; }
  .article-heading h1 { font-size: 28px; }
  .article-meta { font-size: 10px; gap: 6px 9px; }
  .article-layout { display: flex; flex-direction: column; gap: 26px; }
  .contents { position: static; width: 100%; max-height: none; padding: 16px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .contents ol { margin-top: 15px; }
  .contents li { margin-bottom: 12px; }
  .prose { width: 100%; font-size: 14px; }
  .prose h2 { font-size: 20px; }
  .prose h3 { font-size: 18px; }
  .prose h4 { font-size: 16px; }
  .prose pre { padding: 15px; font-size: 11px; }
  .code-toolbar { padding: 8px 11px; font-size: 10px; }
  .copy-code { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  body { background: white; color: black; }
  .site-shell { width: 100%; }
  .site-header, .site-footer, .directory, .contents, .copy-code, .back-link, .heading-anchor { display: none; }
  .index-layout, .article-layout { display: block; }
  .article-heading { margin-left: 0; }
  .prose pre, pre code { white-space: pre-wrap; overflow-wrap: anywhere; }
}
