/* Blog: builds on ../styles.css (same tokens, dock, tiles, buttons, footer). */
:root { --g-project: #b45309; --g-note: #7c3aed; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --g-project: #f59e0b; --g-note: #a78bfa; } }
:root[data-theme="dark"] { --g-project: #f59e0b; --g-note: #a78bfa; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.blog-main { padding-top: 120px; }
@media (max-width: 720px) { .blog-main { padding-top: 96px; } }

/* Hero */
.blog-hero { max-width: 760px; margin-bottom: 40px; }
.blog-hero .label { margin-bottom: 14px; }
.blog-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 600; letter-spacing: -.045em; line-height: 1.06; }
.blog-hero h1 em { color: var(--accent-ink); font-size: 1.1em; }
.blog-hero .lede { color: var(--muted); margin: 18px 0 22px; max-width: 62ch; }
.blog-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.blog-stats li { font-family: var(--mono); font-size: var(--fs-xs); padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.blog-stats b { color: var(--accent-ink); font-weight: 500; }

/* Graph */
.graph-canvas { --g-post: var(--accent); --g-current: var(--accent); --g-visited: var(--accent-ink); --g-tag: var(--muted); --g-line: var(--border-strong); --g-line-active: var(--accent); --g-text: var(--text); --g-bg: var(--surface-2);
  --g-font-family: "Geist", system-ui, sans-serif; display: block; width: 100%; height: 480px; border-radius: 14px; touch-action: none; cursor: grab;
  background: radial-gradient(120% 90% at 50% 40%, color-mix(in srgb, var(--accent) 7%, var(--surface-2)), var(--surface-2) 70%); }
.graph-canvas { --g-star: var(--muted); }
/* Sidebar local graph, Quartz-style: grey nodes, the current page in the accent colour */
.graph-canvas.small { --g-post: var(--muted); --g-visited: var(--accent-ink); }
.graph-canvas:active { cursor: grabbing; }
.graph-canvas.small { height: 280px; }
@media (max-width: 720px) { .graph-canvas { height: 380px; } }
/* Touch screens: vertical swipes scroll the page; horizontal drags still move nodes */
@media (pointer: coarse) { .graph-canvas { touch-action: pan-y; height: 340px; } .graph-canvas.small { height: 240px; } .graph-hint { font-size: var(--fs-xs); } }
.graph-tile { padding: 20px; margin-bottom: 72px; }
.graph-tile:hover { transform: none; }
.graph-bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; padding: 4px 6px 0; }
.graph-title { font-size: var(--fs-h5); font-weight: 600; letter-spacing: -.02em; }
.graph-hint { font-size: var(--fs-sm); color: var(--muted); min-height: 1.5em; }
.graph-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.graph-find { width: 190px; font: 14px var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 7px 14px; }
.graph-find:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 6px 12px; }
.lg { display: inline-flex; align-items: center; gap: 7px; font: 500 13px var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; cursor: pointer; transition: opacity .2s, border-color .2s; }
.lg:hover { border-color: var(--border-strong); }
.lg[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.lg i { width: 10px; height: 10px; border-radius: 50%; }
.lg-post { background: var(--accent); } .lg-project { background: var(--g-project); } .lg-note { background: var(--g-note); } .lg-tag { background: var(--muted); width: 7px !important; height: 7px !important; }
.graph-stage { position: relative; }
.graph-tip { position: absolute; z-index: 2; max-width: 260px; pointer-events: none; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); font-size: var(--fs-xs); line-height: 1.45; transform: translate(-50%, calc(-100% - 14px)); }
.graph-tip small { display: block; font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.graph-tip b { display: block; font-weight: 600; margin-bottom: 2px; }
.graph-tip span { color: var(--muted); }
@media (max-width: 720px) { .graph-find { width: 100%; order: -1; } .graph-tools { width: 100%; } }
.gbtn-s { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: 500 16px var(--sans); cursor: pointer; }
.gbtn-s:hover { border-color: var(--accent); }

/* Post list */
.posts-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.posts-head .section-title { font-size: clamp(2rem, 4vw, 3rem); }
.count { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; }
.search { flex: 1 1 260px; font: 16px var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 11px 18px; }
.search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { font: 500 14px var(--sans); color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 13px; cursor: pointer; }
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter[aria-pressed="true"] { color: var(--on-btn); background: var(--btn); border-color: var(--btn); }
.post-list { display: grid; gap: 14px; }
.post-card { display: grid; grid-template-columns: 130px 1fr; gap: 24px; text-decoration: none; color: inherit; }
.post-card time { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); padding-top: 4px; }
.post-card h3 { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 6px; }
.post-card:hover h3 { color: var(--accent-ink); }
.post-card p { color: var(--muted); }
.post-card .chips { margin-top: 14px; }
.chip-note { border-color: color-mix(in srgb, var(--g-note) 45%, var(--border)) !important; color: var(--g-note) !important; }
.chip-proj { border-color: color-mix(in srgb, var(--g-project) 45%, var(--border)) !important; color: var(--g-project) !important; }
@media (max-width: 640px) { .post-card { grid-template-columns: 1fr; gap: 4px; } }
.empty { color: var(--muted); padding: 28px; border: 1px dashed var(--border-strong); border-radius: 16px; text-align: center; }

/* Article page */
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 120px; align-items: start; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: minmax(0, 1fr); } }
.post-layout > * { min-width: 0; }   /* wide code blocks scroll inside instead of stretching the column */
.prose-body { overflow-wrap: break-word; }
.prose-body :not(pre) > code, .prose-body a { overflow-wrap: anywhere; }
@media (max-width: 720px) { .post-layout { padding-top: 96px; } }
.post { max-width: 720px; }
.back { font-size: var(--fs-md); color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent-ink); }
.post-head { margin: 24px 0 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.post-tags a { font-family: var(--mono); font-size: var(--fs-xs); color: var(--accent-ink); text-decoration: none; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); }
.post-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.1; }
.post-meta { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); margin-top: 16px; }
.prose-body { font-family: "Nunito", var(--sans); font-size: var(--fs-lead); line-height: 1.75; }
@media (max-width: 720px) { .prose-body { font-size: var(--fs-base); } }
.prose-body h2, .prose-body h3 { font-family: var(--display); }
.prose-body table, .prose-body .term { font-family: var(--sans); }
.prose-body > * + * { margin-top: 1.15em; }
.prose-body h2, .prose-body h3 { letter-spacing: -.025em; line-height: 1.25; margin-top: 2em; font-weight: 600; }
.prose-body h2 { font-size: var(--fs-h3); }
.prose-body h3 { font-size: var(--fs-h4); }
.prose-body p, .prose-body li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose-body a { color: var(--accent-ink); text-underline-offset: 3px; }
.prose-body a.wikilink { text-decoration: none; background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }
.prose-body a.wikilink.note { color: var(--g-note); background: color-mix(in srgb, var(--g-note) 12%, transparent); }
.prose-body a.wikilink.proj { color: var(--g-project); background: color-mix(in srgb, var(--g-project) 12%, transparent); }
.prose-body ul, .prose-body ol { padding-left: 1.3em; }
.prose-body li + li { margin-top: .4em; }
.prose-body li::marker { color: var(--accent); }
.prose-body blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--accent); color: var(--muted); font-style: italic; }
.prose-body code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }
.prose-body pre { background: #0c0c0e; color: #e4e4e7; border-radius: 14px; padding: 18px 20px; overflow-x: auto; line-height: 1.6; border: 1px solid #232327; }
.prose-body pre code { background: none; border: 0; padding: 0; color: inherit; font-size: var(--fs-sm); }
/* Terminal-window code blocks (built in blog.js) */
.prose-body .term { margin: 1.5em 0; border-radius: 14px; border: 1px solid #232327; background: #0c0c0e; overflow: hidden; box-shadow: 0 18px 40px -24px rgba(0,0,0,.55); }
.prose-body .term-bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: #17171a; border-bottom: 1px solid #232327; }
.prose-body .term-dots { flex: none; width: 52px; height: 12px; background:
  radial-gradient(circle at 6px 6px, #ff5f57 5.5px, transparent 6px),
  radial-gradient(circle at 26px 6px, #febc2e 5.5px, transparent 6px),
  radial-gradient(circle at 46px 6px, #28c840 5.5px, transparent 6px); }
.prose-body .term-title { flex: 1; min-width: 0; text-align: center; font-family: var(--mono); font-size: var(--fs-2xs); color: #8b8b94; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prose-body .term-copy { flex: none; font: 500 12px var(--mono); color: #a1a1aa; background: transparent; border: 1px solid #2e2e33; border-radius: 7px; padding: 3px 9px; cursor: pointer; transition: color .2s, border-color .2s; }
.prose-body .term-copy:hover, .prose-body .term-copy:focus-visible { color: #fafafa; border-color: #45b5c2; }
.prose-body .term pre { margin: 0; border: 0; border-radius: 0; }
.prose-body .t-prompt { color: #4ade80; font-weight: 500; user-select: none; }
.prose-body .t-cmd { color: #f4f4f5; }
.prose-body .t-out { color: #a1a1aa; }
.prose-body .t-comment { color: #6cc5cf; font-style: italic; }
.prose-body img { border-radius: 14px; border: 1px solid var(--border); }
.prose-body hr { border: 0; border-top: 1px solid var(--border); margin: 2.2em 0; }
.prose-body .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.4em 0; }
.prose-body table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: var(--fs-md); }
@media (min-width: 721px) { .prose-body table { min-width: 0; } }
.prose-body th, .prose-body td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 56px; }
.post-nav a { display: block; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; transition: border-color .2s; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav small { display: block; font-family: var(--mono); font-size: var(--fs-2xs); color: var(--muted); margin-bottom: 4px; }
.post-nav b { font-weight: 600; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: auto; text-align: left; } }
.post-side { position: sticky; top: 96px; display: grid; gap: 14px; }
@media (max-width: 1000px) { .post-side { position: static; } }
.side-tile { padding: 18px; }
.side-tile:hover { transform: none; }
.side-tile .tile-label { margin-bottom: 12px; }
.side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.side-list a { display: block; text-decoration: none; font-weight: 500; font-size: var(--fs-md); line-height: 1.4; }
.side-list a:hover { color: var(--accent-ink); }
.side-list small { display: block; color: var(--muted); font-size: var(--fs-xs); font-weight: 400; }
.side-list .none { color: var(--muted); font-size: var(--fs-sm); }

/* Graph expand button + fullscreen global graph */
.side-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.side-head .tile-label { margin-bottom: 0; }
.graph-expand { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.graph-expand:hover { color: var(--accent-ink); border-color: var(--accent); }
.graph-expand svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.graph-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: modalIn .2s ease-out; }
@keyframes modalIn { from { opacity: 0; } }
.graph-modal-box { width: min(1200px, 100%); height: min(820px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); }
.graph-modal-head { display: flex; align-items: center; gap: 14px; padding: 2px 4px; }
.graph-modal-head h2 { font-size: var(--fs-h5); font-weight: 600; letter-spacing: -.02em; }
.graph-modal-hint { color: var(--muted); font-size: var(--fs-xs); }
.graph-modal-close { margin-left: auto; }
.graph-canvas.modal { flex: 1; height: auto; min-height: 0; touch-action: none; }
@media (max-width: 600px) { .graph-modal { padding: 0; } .graph-modal-box { border-radius: 0; height: 100%; } .graph-modal-hint { display: none; } }

/* Table of contents ("On this page") */
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 5px 0 5px 12px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: var(--fs-sm); line-height: 1.4; transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 500; }
.toc .lvl3 a { padding-left: 24px; font-size: var(--fs-xs); }
.toc-mobile { display: none; margin: 0 0 28px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 12px 16px; }
.toc-mobile summary { cursor: pointer; font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.toc-mobile .toc { margin-top: 10px; }
@media (max-width: 1000px) { #tocTile { display: none !important; } .toc-mobile:not([hidden]) { display: block; } }
/* Heading anchors */
.prose-body h2, .prose-body h3 { position: relative; scroll-margin-top: 96px; }
.h-anchor { position: absolute; left: -1.1em; top: 0; padding-right: .3em; color: var(--muted); text-decoration: none; opacity: 0; transition: opacity .15s, color .15s; font-weight: 400; }
.prose-body h2:hover .h-anchor, .prose-body h3:hover .h-anchor, .h-anchor:focus-visible { opacity: 1; }
.h-anchor:hover { color: var(--accent-ink); }
.h-anchor.copied::after { content: "copied"; position: absolute; left: 100%; top: .2em; margin-left: 4px; font: 500 11px var(--mono); color: var(--accent-ink); white-space: nowrap; }
@media (max-width: 720px) { .h-anchor { position: static; opacity: .5; margin-left: .3em; padding: 0; } }
/* Click-to-zoom images */
.prose-body img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, #000 80%, transparent); cursor: zoom-out; animation: lbIn .2s ease-out; }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; border-radius: 10px; background: #fff; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
@keyframes lbIn { from { opacity: 0; } }

/* ---------- sharing ---------- */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.sh { display: inline-flex; align-items: center; gap: 7px; height: 36px; min-width: 36px; padding: 0 10px; justify-content: center; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 500 var(--fs-sm) var(--sans); text-decoration: none; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s, transform .15s; }
.sh svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sh:hover { border-color: var(--accent); color: var(--accent-ink); transform: translateY(-1px); }
.sh-main { background: var(--text); color: var(--bg); border-color: var(--text); padding: 0 14px; }
.sh-main:hover { background: var(--accent); border-color: var(--accent); color: #04181b; }
.sh-x:hover { color: var(--text); border-color: var(--text); }
.sh-li:hover { color: #0a66c2; border-color: #0a66c2; }
.sh-wa:hover { color: #25d366; border-color: #25d366; }
.sh-sep { width: 1px; height: 22px; background: var(--border-strong); margin: 0 4px; }
.sh-save[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.sh-save[aria-pressed="true"] svg { fill: currentColor; }
.share-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 48px; padding: 22px 24px;
  border: 1px solid var(--border); border-radius: 16px; background: radial-gradient(420px 160px at 100% 0%, var(--accent-soft), transparent 70%), var(--surface); }
.share-end .share-bar { margin-top: 0; }
.share-end-k { font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.share-end-t { margin-top: 4px; color: var(--muted); font-size: var(--fs-md); max-width: 40ch; }
@media (max-width: 560px) {
  .sh span { display: none; } .sh-main span { display: inline; } .share-end { padding: 18px; }
  .share-bar { gap: 5px; } .sh-mail, .sh-sep { display: none; }
  /* the phone's own share sheet already covers X, LinkedIn, WhatsApp and email */
  .has-native .sh-x, .has-native .sh-li, .has-native .sh-wa { display: none; }
}
/* quote sharing popover */
.quote-pop { position: absolute; z-index: 90; display: flex; gap: 2px; padding: 4px; border-radius: 10px; background: #0c0c0e; border: 1px solid #2e2e33; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); }
.quote-pop[hidden] { display: none; }
.quote-pop button { border: 0; background: transparent; color: #e4e4e7; font: 500 12.5px var(--sans); padding: 7px 10px; border-radius: 7px; cursor: pointer; white-space: nowrap; }
.quote-pop button:hover { background: #1d1d21; color: #6cc5cf; }
.share-toast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 10px 16px; border-radius: 10px;
  background: #0c0c0e; color: #fafafa; border: 1px solid #2e2e33; font: 500 var(--fs-sm) var(--sans); box-shadow: 0 12px 30px -10px rgba(0,0,0,.5); transition: opacity .2s, transform .2s; }
.share-toast.show { opacity: 1; transform: translate(-50%, 0); }
/* saved articles on the blog index */
.filter-saved { border-color: var(--accent); color: var(--accent-ink); }
.saved-star { color: var(--accent-ink); }
/* ---------- print / save as PDF: just the article ---------- */
@media print {
  .dock, .progress, .bg-fx, .post-side, .share-bar, .share-end, .post-nav, .footer, .back, .fab-top, .toc-mobile, .quote-pop, .share-toast, .h-anchor, .term-copy, .skip { display: none !important; }
  body { background: #fff !important; color: #111 !important; }
  .post-layout { display: block; padding-top: 0; }
  .prose-body, .prose-body p, .prose-body li { color: #111 !important; font-size: 12pt; }
  .prose-body a { color: #0b5f69 !important; }
  .prose-body pre, .prose-body .term { break-inside: avoid; }
  .post-tags a { border-color: #999 !important; color: #333 !important; }
}
@media (max-width: 400px) { .share-bar:not(.has-native) .sh-main span { display: none; } }

/* ---------- loading state: skeleton until the article arrives, then everything fades in together ---------- */
.share-end[hidden], .share-bar[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.is-loading .post-side, .is-loading .post-nav, .is-loading .toc-mobile, .is-loading .footer { visibility: hidden; }
.skel { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 55%, var(--border-strong)) 50%, var(--surface-2) 75%) 0 0 / 200% 100%; animation: skel 1.3s ease-in-out infinite; }
.skel-title { height: .9em; width: min(560px, 85%); border-radius: 10px; margin: .1em 0; }
.skel-block { display: grid; gap: 12px; padding-top: 6px; }
.skel.gap { margin-top: 14px; }
.skel.w100 { width: 100%; } .skel.w97 { width: 97%; } .skel.w95 { width: 95%; } .skel.w92 { width: 92%; } .skel.w90 { width: 90%; } .skel.w85 { width: 85%; } .skel.w70 { width: 70%; } .skel.w60 { width: 60%; }
@keyframes skel { to { background-position: -200% 0; } }
.is-ready .post-head, .is-ready #article, .is-ready .post-side, .is-ready .share-end, .is-ready .post-nav { animation: postIn .35s ease-out both; }
.is-ready .post-side { animation-delay: .08s; }
@keyframes postIn { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .skel, .is-ready .post-head, .is-ready #article, .is-ready .post-side, .is-ready .share-end, .is-ready .post-nav { animation: none; } }
/* blog index: placeholder chips keep the stats row's height while it loads (no jump) */
.blog-stats .stat-skel { width: 104px; height: 33.4px; padding: 0; border-color: transparent; background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--surface-2) 55%, var(--border-strong)) 50%, var(--surface-2) 75%) 0 0 / 200% 100%; animation: skel 1.3s ease-in-out infinite; }
.blog-stats .stat-skel:nth-child(2) { width: 135px; } .blog-stats .stat-skel:nth-child(3) { width: 158px; } .blog-stats .stat-skel:nth-child(4) { width: 96px; }
