:root { color-scheme: light; --link: #1659a0; --muted: #777; --line: #ddd; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: #222; font: 15px/1.9 -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
.site-header, main, .site-footer { width: min(100% - 40px, 760px); margin-inline: auto; }
.site-header { padding: 36px 0 18px; border-bottom: 1px solid var(--line); }
.brand { color: #222; font-size: 25px; font-weight: 500; text-decoration: none; }
nav { display: flex; gap: 20px; margin-top: 8px; font-size: 13px; }
nav a { color: #555; text-decoration: none; }
main { min-height: 65vh; }
.section-label { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 26px; }
.section-label h1 { margin: 0; font-size: 16px; font-weight: 500; }
.section-label > span { color: var(--muted); font-size: 12px; }
.post-row { margin: 0 0 28px; }
.post-row h2 { font-size: 19px; font-weight: 500; line-height: 1.65; margin: 0 0 4px; overflow-wrap: anywhere; }
.post-row h2 a { text-decoration: none; }
.post-row h2 a:hover { text-decoration: underline; }
.post-row time { display: block; color: var(--muted); font-size: 12px; }
.site-footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 16px 0 28px; font-size: 12px; color: var(--muted); }
.archive-header { margin: 32px 0 28px; }
.archive-header h1 { font-size: 23px; font-weight: 500; margin: 0; }
.article-header { padding: 28px 0 0; margin-bottom: 32px; }
.back { font-size: 12px; }
.article-header h1 { font-size: 28px; line-height: 1.6; font-weight: 600; margin: 18px 0 10px; overflow-wrap: anywhere; }
.article-date { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; font-size: 12px; color: var(--muted); }
.post-cats { display: flex; flex-wrap: wrap; gap: 0; font-size: 12px; }
.post-cats a + a::before { content: "/"; display: inline-block; padding: 0 8px; color: #aaa; }
.prose { overflow-wrap: anywhere; }
.prose p { margin: 1.5em 0; }
.prose h2 { font-size: 22px; font-weight: 600; line-height: 1.6; margin: 2.3em 0 1em; }
.prose h3 { font-size: 18px; font-weight: 600; margin-top: 2em; }
.prose img, .prose video { max-width: 100%; height: auto; }
.prose iframe { max-width: 100%; }
.prose figure { margin: 24px 0; }
.prose figcaption { color: var(--muted); font-size: 12px; }
.prose pre { overflow: auto; padding: 16px; border: 1px solid #e2e2e2; background: #f6f6f6; color: #222; font-size: 12px; line-height: 1.8; white-space: pre; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose :not(pre) > code { background: #f1f1f1; padding: 1px 4px; font-size: .9em; }
.prose blockquote { margin: 24px 0; padding: 0 20px; border-left: 3px solid #ddd; color: #555; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose .twitter-tweet { margin: 24px auto !important; }
.link-card { border-left: 3px solid #ddd; padding: 12px 20px; }
.embed-source { font-size: 12px; }
.gist-frame { display: block; width: 100%; height: 180px; margin: 24px 0; border: 0; color-scheme: light; }
.article-end { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.category-list a { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; text-decoration: none; }
.category-list a span:last-child { color: var(--muted); font-size: 12px; }
@media (max-width: 600px) {
  .site-header, main, .site-footer { width: calc(100% - 32px); }
  .site-header { padding-top: 24px; }
  .brand { font-size: 23px; }
  .post-row h2 { font-size: 17px; }
  .article-header h1 { font-size: 24px; }
  .prose { font-size: 14px; }
  .prose pre { padding: 12px; }
}
