body {
  max-width: 640px;
  margin: 64px auto;
  padding: 0 20px;
  font: 17px/1.65 system-ui, -apple-system, sans-serif;
  color: #1a1a1a;
  background: #fff;
}
body { --accent: #492ae8; }
@media (prefers-color-scheme: dark) {
  body { color: #e6e6e6; background: #111; --accent: #9d8cff; }
}
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1 { font-size: 28px; margin: 0 0 8px; }
.flag { width: 24px; height: 16px; border-radius: 2px; vertical-align: 2px; margin-left: 4px; }
h2 { font-size: 16px; margin: 48px 0 12px; }
.post h2 { font-size: 23px; line-height: 1.3; letter-spacing: -0.01em; margin: 56px 0 14px; }
.head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.avatar-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; transition: transform .2s; }
.avatar-btn:hover { transform: rotate(-6deg) scale(1.05); }
dialog { padding: 0; border: 0; background: none; max-height: 92vh; cursor: zoom-out; }
dialog::backdrop { background: rgba(0,0,0,.85); }
dialog img { display: block; max-height: 92vh; width: auto; max-width: 92vw; }
dialog[open] { animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: block; }
.icons { display: flex; gap: 18px; }
.icons a { display: flex; filter: grayscale(1); opacity: .55; transition: filter .2s, opacity .2s; }
.icons a:hover { filter: none; opacity: 1; color: inherit; }
.icons svg { width: 22px; height: 22px; }
.intro { margin: 16px 0 0; }
.aside { margin: 14px 0 0; color: #888; font-style: italic; }
.date { color: #888; font-variant-numeric: tabular-nums; }
.posts { list-style: none; padding: 0; }
.posts li { margin: 6px 0; }
.posts .date { margin-right: 12px; }
pre, code { font-size: 14px; }
pre { overflow-x: auto; padding: 12px; background: rgba(127,127,127,.1); }
img { max-width: 100%; }
table { display: block; overflow-x: auto; border-collapse: collapse; margin: 16px 0; font-size: 15px; font-variant-numeric: tabular-nums; }
th, td { padding: 4px 12px 4px 0; border-bottom: 1px solid rgba(127,127,127,.3); text-align: left; vertical-align: top; }
th { font-weight: 600; white-space: nowrap; }
figure { margin: 24px 0; }
.hl { position: relative; isolation: isolate; display: inline-block; white-space: nowrap; font-weight: 600; }
.hl::before {
  position: absolute; inset: 0.62em -0.08em 0.02em -0.06em; z-index: -1; content: '';
  border-radius: 0.14em; background: #f7cc09; transform: rotate(0.6deg);
}
@media (prefers-color-scheme: dark) { .hl::before { background: rgba(247,204,9,.45); } }
.callout { margin: 28px 0; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; background: rgba(127,127,127,.07); }
.question { margin: 0; font-size: 18px; line-height: 1.5; font-weight: 650; letter-spacing: -0.01em; }
.answer { margin-top: 10px; font-size: 15px; }
.answer summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; width: max-content; }
.answer p { margin: 8px 0 0; }
.hl-long {
  background: linear-gradient(transparent 58%, #f7cc09 58%, #f7cc09 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.08em;
}
@media (prefers-color-scheme: dark) {
  .hl-long { background: linear-gradient(transparent 58%, rgba(247,204,9,.45) 58%, rgba(247,204,9,.45) 94%, transparent 94%); }
}
.viz-b04 {
  --surface: #fff; --ink-2: #52514e; --ink-3: #7a7974; --grid: rgba(127,127,127,.22);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s0: #a3a29d;
}
@media (prefers-color-scheme: dark) {
  .viz-b04 {
    --surface: #111; --ink-2: #c3c2b7; --ink-3: #8f8e88; --grid: rgba(127,127,127,.28);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s0: #6e6d68;
  }
}
.viz-b04 svg { display: block; width: 100%; height: auto; font-family: inherit; }
.viz-b04 .grid { stroke: var(--grid); stroke-width: 1; }
.viz-b04 .tick, .viz-b04 .note { fill: var(--ink-3); font-size: 12px; }
.viz-b04 .axis, .viz-b04 .legend, .viz-b04 .label { fill: var(--ink-2); font-size: 12.5px; }
.viz-b04 .dot { stroke: var(--surface); stroke-width: 2; }
.viz-b04 .tif { fill: var(--s0); }
.viz-b04 .zarr { fill: var(--s2); }
.viz-b04 .rumi { fill: var(--s1); }
.viz-b04 .img { fill: var(--s3); }
.viz-b04 .dot.dist { fill: var(--surface); stroke-width: 2.5; }
.viz-b04 .dot.dist.zarr { stroke: var(--s2); }
.viz-b04 .dot.dist.img { stroke: var(--s3); }
.viz-b04 .ring { fill: none; stroke-width: 1.5; }
.viz-b04 .ring.zarr { stroke: var(--s2); }
.viz-b04 .front { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.viz-b04 .front-label { fill: var(--ink-2); font-size: 12px; font-style: italic; }
.viz-b04 .hit { fill: transparent; }
.viz-b04 .pt:hover .dot { r: 7; }
.viz-b04 .pt:hover .label { fill: currentColor; font-weight: 600; }
.viz-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 190px;
  padding: 8px 10px; border-radius: 6px; font-size: 13px; line-height: 1.4;
  background: #fff; color: #1a1a1a; border: 1px solid rgba(127,127,127,.35);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.viz-tip strong { display: block; margin-bottom: 4px; }
.viz-tip dl { display: grid; grid-template-columns: auto auto; gap: 1px 12px; margin: 0; }
.viz-tip dt { color: #7a7974; }
.viz-tip dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.viz-tip dd span { color: #7a7974; }
@media (prefers-color-scheme: dark) {
  .viz-tip { background: #1c1c1b; color: #e6e6e6; border-color: rgba(127,127,127,.45); }
  .viz-tip dt, .viz-tip dd span { color: #8f8e88; }
}
blockquote.quote { margin: 24px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); }
blockquote.quote p { margin: 0; font-size: 18px; line-height: 1.5; font-style: italic; }
blockquote.quote cite { display: block; margin-top: 8px; font-size: 14px; font-style: normal; color: #888; }
.viz-bars {
  --surface: #fff; --ink-2: #52514e; --ink-3: #7a7974; --grid: rgba(127,127,127,.22);
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s0: #a3a29d;
}
@media (prefers-color-scheme: dark) {
  .viz-bars {
    --surface: #111; --ink-2: #c3c2b7; --ink-3: #8f8e88; --grid: rgba(127,127,127,.28);
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s0: #6e6d68;
  }
}
.viz-bars svg { display: block; width: 100%; height: auto; font-family: inherit; }
.viz-bars .grid { stroke: var(--grid); stroke-width: 1; }
.viz-bars .tick { fill: var(--ink-3); font-size: 12px; }
.viz-bars .axis, .viz-bars .label { fill: var(--ink-2); font-size: 12.5px; }
.viz-bars .value { fill: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.viz-bars .tif { fill: var(--s0); }
.viz-bars .zarr { fill: var(--s2); }
.viz-bars .rumi { fill: var(--s1); }
.viz-bars .img { fill: var(--s3); }
.viz-bars .need { stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.viz-bars .need-label { fill: var(--ink-2); font-size: 12px; font-style: italic; }
.viz-bars .need-value { fill: var(--ink-2); font-size: 12px; font-weight: 600; }
.viz-bars .bar:hover .label, .viz-bars .bar:hover .value { fill: currentColor; font-weight: 600; }
.hero { margin: 8px 0 28px; }
.hero img { display: block; width: 100%; height: auto; }
.posts li.has-thumb { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.posts .thumb { flex: 0 0 auto; }
.posts .thumb img { display: block; width: 132px; height: auto; border-radius: 6px; }
.comments { margin-top: 48px; }
.comments .utterances { max-width: 100%; }
