/* Blog styles, generated by scripts/build-blog.mjs. Do not edit by hand. */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --line: #d1d9e0;
  --text: #1f2328;
  --muted: #59636e;
  --cyan: #0969da;
  --teal: #0969da;
  --amber: #a35c00;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 72ch;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background:
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.7 var(--sans);
  text-rendering: optimizeLegibility;
}
.wrap { width: 100%; max-width: calc(var(--measure) + 3rem); margin: 0 auto; padding: 0 1.5rem; }
a { color: var(--cyan); text-decoration-color: rgba(11, 92, 173, .35); text-underline-offset: .18em; }
a:hover { color: var(--teal); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 2px; }

/* header / footer */
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); position: sticky; top: 0; z-index: 10; }
.site-header nav { display: flex; justify-content: space-between; align-items: center; height: 3.25rem; font: 500 .85rem/1 var(--mono); letter-spacing: .04em; }
.site-header a { color: var(--muted); text-decoration: none; }
.site-header a:hover { color: var(--cyan); }
.site-header .arch { text-transform: uppercase; }
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 1.5rem 0 2.5rem; color: var(--muted); font: .8rem/1.5 var(--mono); }

/* banner */
.banner {
  margin: 2rem 0 0; padding: .7rem 1rem;
  border: 1px solid rgba(163, 92, 0, .3); border-left: 3px solid var(--amber);
  background: #fff3e0; border-radius: 6px;
  color: #6b3d00; font: .82rem/1.5 var(--mono);
}

/* post head */
.post-head { margin: 2rem 0 1.5rem; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 650; letter-spacing: -.01em; scroll-margin-top: 4.5rem; }
.post-head h1, .index h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: 0 0 .6rem; }
.meta { margin: 0 0 .75rem; color: var(--muted); font: .85rem/1.4 var(--mono); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.tags li { font: .72rem/1 var(--mono); color: var(--teal); border: 1px solid #c9dcf0; background: #e8f1fb; padding: .3rem .5rem; border-radius: 999px; }
.cover { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); margin: 0 0 2rem; }

/* content */
.content { overflow-wrap: break-word; }
.content h2 { font-size: 1.5rem; margin: 2.5rem 0 .75rem; padding-bottom: .35rem; border-bottom: 1px solid var(--line); }
.content h3 { font-size: 1.2rem; margin: 2rem 0 .5rem; color: #1d1d1f; }
.content h4, .content h5, .content h6 { font-size: 1rem; margin: 1.5rem 0 .5rem; color: var(--teal); }
.content p, .content ul, .content ol, .content blockquote, .content pre, .content figure, .content .table-wrap { margin: 0 0 1.1rem; }
.content ul, .content ol { padding-left: 1.5rem; }
.content li { margin: .25rem 0; }
.content li > ul, .content li > ol { margin: .25rem 0; }
.content li::marker { color: var(--muted); }
.content strong { color: #fff; }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.content blockquote { padding: .5rem 1rem; border-left: 3px solid var(--cyan); background: var(--panel); border-radius: 0 6px 6px 0; color: #56585c; }
.content blockquote > :last-child { margin-bottom: 0; }
.content img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); vertical-align: middle; }
.content figure { margin-left: 0; margin-right: 0; }
.content figure img { display: block; margin: 0 auto; }
.content figcaption { margin-top: .4rem; text-align: center; color: var(--muted); font: .78rem/1.4 var(--mono); }
.content code { font: .86em/1.5 var(--mono); }
.content :not(pre) > code { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: .1em .35em; color: #8a1f3d; }
.content pre { background: #f6f8fa; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content pre code { display: block; padding: 1rem 1.1rem; font-size: .84rem; line-height: 1.6; tab-size: 4; white-space: pre; }
.content pre code.hljs { background: transparent; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.content table { border-collapse: collapse; width: 100%; font-size: .92rem; }
.content th, .content td { padding: .55rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.content th { background: var(--panel); color: var(--cyan); font: 600 .78rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.content tr:last-child td { border-bottom: 0; }
.content tbody tr:hover { background: #f6f8fa; }

/* pager */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: .25rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); text-decoration: none; color: var(--text); }
.pager a:hover { border-color: rgba(11, 92, 173, .5); }
.pager .next { text-align: right; grid-column: 2; }
.pager .dir { font: .72rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pager .t { font-size: .95rem; line-height: 1.35; }

/* index */
.index h1 { margin-top: 2.5rem; }
.lede { color: var(--muted); margin: 0 0 2rem; }
.year h2 { font: 600 .85rem/1 var(--mono); color: var(--amber); letter-spacing: .12em; margin: 2.25rem 0 .75rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.entry { border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: .75rem; transition: border-color .15s; }
.entry:hover { border-color: rgba(11, 92, 173, .45); }
.entry > a { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; align-items: center; text-decoration: none; color: var(--text); }
.entry .thumb { width: 112px; height: 70px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); display: block; }
.entry .info { display: flex; flex-direction: column; gap: .2rem; }
.entry time { font: .75rem/1 var(--mono); color: var(--muted); }
.entry .title { font-weight: 600; line-height: 1.35; }
.entry > a:hover .title { color: var(--cyan); }
.entry .tags { margin: .6rem 0 0 calc(112px + 1rem); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 1rem; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .entry > a { grid-template-columns: 80px 1fr; gap: .75rem; }
  .entry .thumb { width: 80px; height: 56px; }
  .entry .tags { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* --- highlight.js: github theme (BSD-3-Clause, highlight.js) --- */
pre code.hljs {
  display: block;
  overflow-x: auto;
  padding: 1em
}
code.hljs {
  padding: 3px 5px
}
.hljs {
  color: #24292e;
  background: #ffffff
}
.hljs-doctag,
.hljs-keyword,
.hljs-meta .hljs-keyword,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-variable.language_ {
  
  color: #d73a49
}
.hljs-title,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-title.function_ {
  
  color: #6f42c1
}
.hljs-attr,
.hljs-attribute,
.hljs-literal,
.hljs-meta,
.hljs-number,
.hljs-operator,
.hljs-variable,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-id {
  
  color: #005cc5
}
.hljs-regexp,
.hljs-string,
.hljs-meta .hljs-string {
  
  color: #032f62
}
.hljs-built_in,
.hljs-symbol {
  
  color: #e36209
}
.hljs-comment,
.hljs-code,
.hljs-formula {
  
  color: #6a737d
}
.hljs-name,
.hljs-quote,
.hljs-selector-tag,
.hljs-selector-pseudo {
  
  color: #22863a
}
.hljs-subst {
  
  color: #24292e
}
.hljs-section {
  
  color: #005cc5;
  font-weight: bold
}
.hljs-bullet {
  
  color: #735c0f
}
.hljs-emphasis {
  
  color: #24292e;
  font-style: italic
}
.hljs-strong {
  
  color: #24292e;
  font-weight: bold
}
.hljs-addition {
  
  color: #22863a;
  background-color: #f0fff4
}
.hljs-deletion {
  
  color: #b31d28;
  background-color: #ffeef0
}
.hljs-char.escape_,
.hljs-link,
.hljs-params,
.hljs-property,
.hljs-punctuation,
.hljs-tag {
  
  
}
