@font-face { font-family: 'Space Grotesk Variable'; font-style: normal; font-display: swap; font-weight: 300 700; src: url('/assets/fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 400; src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-display: swap; font-weight: 500; src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  font-family: 'Space Grotesk Variable', system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --paper: #f0f1ed;
  --ink: #20231f;
  --muted: #656961;
  --line: #c4c8be;
  --signal: #d9fa38;
  --tone: #e5e8e0;
  --rule: #8c9484;
  --rule-soft: #b7beb0;
  --label: #606958;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: 48px;
  --page-width: 1160px;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; letter-spacing: 0; }
html { scrollbar-gutter: stable; scroll-padding-top: 24px; }
body { overflow-wrap: break-word; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; }
body, h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid #47512b; outline-offset: 5px; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 10; background: var(--signal); padding: 12px; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.section-wrap { padding-inline: max(var(--gutter), calc((100% - var(--page-width)) / 2)); }
.uid { white-space: nowrap; }

.site-header { min-height: 84px; display: flex; align-items: center; padding: 0 max(var(--gutter), calc((100% - var(--page-width)) / 2)); gap: 30px; border-bottom: 1px solid var(--line); }
.brand { font-size: 30px; line-height: 1; font-weight: 700; }
.brand > span { color: #777d61; }
.header-label { font: 10px/1.7 var(--mono); color: var(--muted); text-transform: uppercase; padding-left: 30px; border-left: 1px solid var(--line); }
.site-header nav { display: flex; gap: 31px; align-items: center; margin-left: auto; }
.site-header nav a { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 44px; font: 11px var(--mono); text-transform: uppercase; }
.site-header nav a:hover, .site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }

.section-register { display: flex; align-items: center; justify-content: space-between; gap: 24px; font: 10px/1.6 var(--mono); text-transform: uppercase; color: #5d6555; min-height: 24px; }
.section-register a:hover { text-decoration: underline; text-underline-offset: 4px; }
.intro { padding-top: 28px; border-bottom: 1px solid var(--rule); padding-bottom: 42px; background: linear-gradient(110deg, var(--tone), var(--paper)); }
.intro h1 { font-size: 56px; line-height: 1.08; font-weight: 500; margin-top: 36px; overflow-wrap: anywhere; text-wrap: balance; }
.lead { font-size: 17px; line-height: 1.7; max-width: 570px; margin-top: 18px; color: #50574a; }
.lead a { text-decoration: underline; text-underline-offset: 4px; }

.posts { padding-top: 12px; padding-bottom: 90px; }
.post-list { list-style: none; padding: 0; }
.post-list > li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 40px 0; border-bottom: 1px solid var(--rule-soft); align-items: center; }
.post-list > li.has-image { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.post-entry-copy { min-width: 0; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-bottom: 18px; font: 10px/1.9 var(--mono); text-transform: uppercase; color: var(--label); }
.entry-meta time { font: inherit; }
.entry-image { display: grid; place-items: center; aspect-ratio: 16 / 10; min-width: 0; background: var(--tone); border: 1px solid var(--line); padding: 16px; }
.entry-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.entry-image:hover { border-color: var(--ink); background: #dce1d4; }
.post-list .is-draft { border-left: 2px solid #87916f; padding-left: 24px; }
.post-list h2 { font-size: 30px; line-height: 1.25; font-weight: 500; overflow-wrap: anywhere; text-wrap: pretty; max-width: 770px; }
.post-list h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.post-list p { font-size: 16px; line-height: 1.75; max-width: 620px; margin-top: 16px; color: #50574a; }
.empty { margin-top: 48px; font-size: 17px; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 20px; font: 10px/1.7 var(--mono); text-transform: uppercase; color: var(--label); }
.tags li { border-bottom: 1px solid #adb69e; padding-bottom: 3px; overflow-wrap: anywhere; }
.draft-mark { font: 9px var(--mono); text-transform: uppercase; background: var(--signal); padding: 2px 6px; margin-left: 8px; vertical-align: middle; }
.draft-banner { margin-top: 24px; padding: 10px 14px; background: var(--signal); font: 10px var(--mono); text-transform: uppercase; max-width: 720px; }

.post { padding-top: 28px; padding-bottom: 90px; }
.post-head { max-width: 1024px; margin: 44px auto 0; padding-bottom: 30px; border-bottom: 1px solid var(--rule); }
.post-head .tags { margin-top: 0; }
.post h1 { max-width: 920px; font-size: 50px; line-height: 1.12; font-weight: 500; margin-top: 20px; overflow-wrap: anywhere; text-wrap: balance; }
.post-summary { max-width: 740px; margin-top: 24px; font-size: 19px; line-height: 1.65; color: #50574a; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 26px; font: 11px/1.9 var(--mono); text-transform: uppercase; color: var(--label); }
.post-author { color: var(--ink); font-weight: 500; }
.post-layout { display: grid; grid-template-columns: minmax(0, 760px); justify-content: center; max-width: 1024px; margin: 44px auto 0; }
.post-layout.has-contents { grid-template-columns: 200px minmax(0, 760px); gap: 64px; }
.post-body { min-width: 0; }
.post-aside { align-self: start; position: sticky; top: 28px; max-height: calc(100svh - 56px); overflow-y: auto; }
.contents { border-top: 2px solid var(--ink); }
.contents summary { cursor: pointer; padding: 16px 3px; min-height: 48px; font: 11px/1.5 var(--mono); text-transform: uppercase; }
.contents summary::marker { color: #687255; }
.contents ol { list-style: none; padding: 0; counter-reset: sections; }
.contents li { counter-increment: sections; }
.contents a { display: grid; grid-template-columns: 2ch minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 5px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.contents a::before { content: counter(sections, decimal-leading-zero); font: 10px var(--mono); color: var(--label); }
.contents a:hover { background: var(--tone); }
.prose { font-size: 18px; line-height: 1.85; }
.prose > p, .prose > ul, .prose > ol { max-width: 68ch; }
.prose > * + * { margin-top: 1.4em; }
.prose h2 { font-size: 30px; line-height: 1.2; font-weight: 500; margin-top: 2.4em; padding-top: 28px; border-top: 1px solid var(--rule-soft); scroll-margin-top: 32px; }
.prose h3 { font-size: 22px; line-height: 1.25; font-weight: 500; margin-top: 1.8em; }
.prose h4, .prose h5, .prose h6 { font-size: 18px; font-weight: 600; margin-top: 1.6em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .7em; }
.prose > :first-child { margin-top: 0; }
.prose h2:target { border-top-color: #63742e; }
.prose a { text-decoration: underline; text-decoration-color: #8a957b; text-underline-offset: 3px; }
.prose a:hover { background: var(--signal); text-decoration-color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { border-left: 3px solid var(--rule); padding-left: 20px; color: #3d4239; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4em 0; }
.prose code { font: .86em var(--mono); background: var(--tone); padding: .1em .35em; overflow-wrap: anywhere; }
.prose pre { background: var(--ink); color: #ecece9; padding: 24px; overflow-x: auto; font: 13px/1.8 var(--mono); tab-size: 2; scrollbar-color: #8d9781 var(--ink); scrollbar-width: thin; }
.prose pre code { background: none; padding: 0; font: inherit; overflow-wrap: normal; }
.prose pre:focus-visible, .table-wrap:focus-visible { outline: 2px solid #47512b; outline-offset: 3px; }
.code-block { background: var(--ink); color: #ecece9; border-top: 3px solid #9cad6b; }
.code-block figcaption { padding: 12px 24px; border-bottom: 1px solid #454c3f; font: 10px/1.5 var(--mono); text-transform: uppercase; color: #d7ddcb; }
.code-block pre { margin: 0; }
.prose img { border: 1px solid var(--line); margin-inline: auto; }
.post-figure { padding: 16px 16px 0; background: #e7eae2; border: 1px solid var(--line); }
.post-figure img { border: 0; }
.post-figure figcaption { margin-top: 12px; padding: 10px 0 12px; border-top: 1px solid var(--line); color: var(--label); font: 10px/1.5 var(--mono); text-transform: uppercase; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.6; }
.prose th, .prose td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font: 10px var(--mono); text-transform: uppercase; color: var(--label); background: var(--tone); }
.prose tbody tr:nth-child(even) { background: #e9ece5; }
.post-foot { display: flex; flex-wrap: wrap; gap: 0 40px; margin-top: 64px; padding-top: 14px; border-top: 1px solid var(--rule); }
.post-foot a { display: inline-flex; align-items: center; min-height: 44px; font: 10px var(--mono); text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; }

.site-footer { display: flex; align-items: center; gap: 28px; padding-top: 25px; padding-bottom: 25px; background: #242821; color: var(--paper); }
.footer-brand { font-weight: 700; font-size: 28px; }
.site-footer > span { font: 8px/1.7 var(--mono); color: #b6bfae; text-transform: uppercase; }
.footer-link { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; font: 10px var(--mono); text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 1100px) {
  :root { --gutter: 36px; }
  .intro h1 { font-size: 46px; }
  .post-list > li { gap: 32px; }
  .post-layout.has-contents { grid-template-columns: 160px minmax(0, 1fr); gap: 32px; }
  .post h1 { font-size: 44px; }
}
@media (max-width: 900px) {
  .post-layout.has-contents { grid-template-columns: minmax(0, 760px); gap: 32px; }
  .post-aside { position: static; max-height: none; overflow: visible; }
  .contents ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
  .post-list > li.has-image { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 28px; }
}
@media (max-width: 700px) {
  :root { --gutter: 24px; }
  .site-header { min-height: 76px; gap: 18px; }
  .brand { font-size: 25px; }
  .header-label { display: none; }
  .site-header nav { gap: 20px; }
  .site-header nav a { font-size: 10px; }
  .intro { padding-top: 22px; padding-bottom: 44px; }
  .intro h1 { font-size: 41px; margin-top: 38px; }
  .lead { font-size: 15px; }
  .post-list > li, .post-list > li.has-image { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 28px; }
  .post-list h2 { font-size: 25px; }
  .entry-meta { margin-bottom: 14px; }
  .entry-image { aspect-ratio: 16 / 9; padding: 12px; }
  .post-head { margin-top: 28px; }
  .post h1 { font-size: 34px; margin-top: 18px; }
  .post-summary { font-size: 17px; margin-top: 20px; }
  .post-meta { font-size: 10px; gap: 8px 18px; }
  .post-layout { margin-top: 28px; }
  .contents ol { grid-template-columns: minmax(0, 1fr); }
  .contents a { padding-block: 10px; }
  .prose { font-size: 17px; }
  .prose h2 { font-size: 24px; }
  .prose h3 { font-size: 20px; }
  .post-figure { padding: 10px 10px 0; }
  .prose pre { padding: 18px; font-size: 12px; }
  .code-block figcaption { padding-inline: 18px; }
  .site-footer { flex-wrap: wrap; gap: 14px 16px; }
  .footer-brand { order: 1; }
  .footer-link { order: 2; }
  .site-footer > span { order: 3; flex-basis: 100%; }
}
@media (max-width: 365px) {
  :root { --gutter: 20px; }
  .site-header { min-height: 68px; }
  .site-header nav { gap: 14px; }
  .intro h1 { font-size: 34px; }
  .post h1 { font-size: 31px; }
}
