:root{color-scheme:dark}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:#04080d;color:#eff6ff;font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;line-height:1.5;font-size:16px}
.blog-main a{color:#60a5fa;text-decoration:none}
.blog-main a:hover{color:#93c5fd}

.blog-main{position:relative;z-index:1;max-width:900px;margin:0 auto;padding:48px 24px 64px}
.blog-listing-head h1,.blog-post-head h1{margin:0 0 8px;font-size:clamp(28px,4.5vw,40px);line-height:1.15;letter-spacing:-.02em;color:#eff6ff}
.blog-listing-head p,.blog-lede{color:rgba(147,197,253,.65);margin:0 0 32px;max-width:640px}
.blog-cards{display:grid;gap:22px}
.blog-card{display:flex;flex-direction:column;border:1px solid rgba(96,165,250,.22);border-radius:18px;overflow:hidden;background:rgba(10,18,32,.55);transition:border-color .2s,transform .2s}
.blog-card:hover{border-color:rgba(96,165,250,.55);transform:translateY(-2px)}
.blog-card-cover{aspect-ratio:1200/630;overflow:hidden;background:#0a1220;max-height:360px}
/* Cap the rendered cover so oversized covers cannot dominate the card; the
residual letterbox is hidden by the cover background. */
.blog-card-cover img{width:100%;height:100%;max-height:360px;object-fit:cover;display:block}
/* Cards align in the grid: the body keeps a consistent min-height whether a
card carries a cover, tags, or neither. */
.blog-card-body{padding:20px 22px 22px;min-height:148px}
.blog-card-body h2{margin:0 0 6px;font-size:21px;line-height:1.3}
.blog-card-body h2 a{color:#eff6ff}
.blog-card-body h2 a:hover{color:#60a5fa}
.blog-card-meta{display:flex;align-items:center;gap:10px;font-size:12.5px;color:rgba(147,197,250,.6);margin-bottom:10px}
.blog-card-author{font-weight:700}
.blog-card-excerpt{margin:0;font-size:14.5px;color:rgba(215,245,233,.75)}
.blog-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}
.blog-tag{font-size:11px;font-weight:800;padding:3px 10px;border-radius:999px;border:1px solid rgba(59,130,246,.25);color:#93c5fd;background:rgba(59,130,246,.08)}
.blog-empty{padding:48px 0;color:rgba(147,197,250,.55);text-align:center}
.blog-pager{display:flex;justify-content:space-between;gap:12px;margin-top:34px;font-weight:800;font-size:14px}
.blog-pager a{padding:10px 18px;border:1px solid rgba(59,130,246,.25);border-radius:12px;background:rgba(59,130,246,.06)}
.blog-post{max-width:720px;margin:0 auto}
.blog-breadcrumb{display:flex;align-items:center;gap:8px;font-size:13px;color:rgba(147,197,250,.6);margin-bottom:22px;flex-wrap:wrap}
.blog-breadcrumb span[aria-current]{color:#eff6ff;font-weight:700}
.blog-breadcrumb span{color:rgba(147,197,250,.35)}
.blog-post-meta{display:flex;align-items:center;gap:8px;color:rgba(147,197,250,.65);font-size:13.5px;font-weight:600;margin:10px 0}
.blog-cover{aspect-ratio:1200/630;margin:26px 0;border-radius:18px;overflow:hidden;border:1px solid rgba(59,130,246,.18)}
.blog-cover img{width:100%;height:100%;object-fit:cover;display:block}
.blog-body{font-size:16.5px;color:#dbeafe}
.blog-body h2,.blog-body h3,.blog-body h4{margin:1.6em 0 .5em;line-height:1.3;color:#eff6ff;letter-spacing:-.01em}
.blog-body h2{font-size:24px}
.blog-body h3{font-size:19px}
.blog-body p{margin:.9em 0}
.blog-body a{text-decoration:underline;text-underline-offset:3px}
.blog-body img{max-width:100%;height:auto;border-radius:14px;border:1px solid rgba(59,130,246,.18)}
.blog-body pre{background:#0a1220;border:1px solid rgba(59,130,246,.2);border-radius:14px;padding:16px 18px;overflow-x:auto;font-family:"JetBrains Mono",monospace;font-size:13px;line-height:1.6;color:#bfdbfe}
.blog-body code{font-family:"JetBrains Mono",monospace;font-size:.88em;background:rgba(59,130,246,.1);padding:2px 6px;border-radius:6px;color:#bfdbfe}
.blog-body pre code{background:none;padding:0}
.blog-body blockquote{margin:1.2em 0;padding:4px 18px;border-inline-start:3px solid #3b82f6;color:rgba(147,197,253,.75);background:rgba(59,130,246,.05);border-radius:0 12px 12px 0}
.blog-body ul,.blog-body ol{padding-inline-start:24px}
.blog-body li{margin:.35em 0}
.blog-body table{border-collapse:collapse;width:100%;margin:1.2em 0;font-size:14px}
.blog-body th,.blog-body td{border:1px solid rgba(59,130,246,.2);padding:8px 12px;text-align:start}
.blog-body th{background:rgba(59,130,246,.08)}
.blog-body hr{border:none;border-top:1px solid rgba(59,130,246,.18);margin:2em 0}
.blog-post-foot{margin-top:36px;padding-top:20px;border-top:1px solid rgba(59,130,246,.15)}
.blog-share{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:13px;font-weight:700}
.blog-share-label{color:rgba(147,197,250,.55);text-transform:uppercase;font-size:11px;letter-spacing:.12em}
.blog-share a,.blog-share .blog-copy{padding:7px 14px;border:1px solid rgba(59,130,246,.25);border-radius:999px;background:rgba(59,130,246,.06);color:#93c5fd}
.blog-share a:hover,.blog-share .blog-copy:hover{color:#eff6ff;border-color:rgba(96,165,250,.5)}
.blog-copy{font:inherit;font-size:13px;font-weight:700;cursor:pointer;color:#93c5fd}
.blog-copy.copied{color:#04080d;background:#60a5fa;border-color:#60a5fa}
.blog-neighbors{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:44px;max-width:720px;margin-inline:auto}
.blog-neighbor{display:flex;flex-direction:column;gap:6px;padding:16px 18px;border:1px solid rgba(59,130,246,.2);border-radius:14px;background:rgba(6,15,22,.55)}
.blog-neighbor span{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:rgba(147,197,250,.55)}
.blog-neighbor b{font-size:14.5px;color:#eff6ff;line-height:1.35}
.blog-neighbor.next{text-align:end}
.blog-neighbor-spacer{display:none}
@media (max-width:640px){
.blog-neighbors{grid-template-columns:1fr}
.blog-neighbor.next{text-align:start}
.blog-card{flex-direction:column}
.blog-main{padding:32px 16px 48px}
}

/* Theme sync (owner round): the blog follows the saved/OS light theme -
   html.light set by /theme-sync.js, with prefers-color-scheme as the
   no-JS fallback. Light uses the same blue palette on the paper base. */
@media (prefers-color-scheme: light){
:root:not(.light){color-scheme:light}
html:not(.light) body{background:#f2f7f4;color:#0f172a}
html:not(.light) .blog-main a{color:#2563eb}
html:not(.light) .blog-main a:hover{color:#1d4ed8}
html:not(.light) .blog-listing-head h1,html:not(.light) .blog-post-head h1{color:#0f172a}
html:not(.light) .blog-listing-head p,html:not(.light) .blog-lede{color:rgba(51,65,85,.7)}
html:not(.light) .blog-card{background:rgba(255,255,255,.75);border-color:rgba(37,99,235,.22);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
html:not(.light) .blog-card:hover{border-color:rgba(37,99,235,.5)}
html:not(.light) .blog-card-cover{background:#e8eefb}
html:not(.light) .blog-card-body h2 a{color:#0f172a}
html:not(.light) .blog-card-body h2 a:hover{color:#2563eb}
}
html.light{color-scheme:light}
html.light body{background:#f2f7f4;color:#0f172a}
html.light .blog-main a{color:#2563eb}
html.light .blog-main a:hover{color:#1d4ed8}
html.light .blog-listing-head h1,html.light .blog-post-head h1{color:#0f172a}
html.light .blog-listing-head p,html.light .blog-lede{color:rgba(51,65,85,.7)}
html.light .blog-card{background:rgba(255,255,255,.75);border-color:rgba(37,99,235,.22);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
html.light .blog-card:hover{border-color:rgba(37,99,235,.5)}
html.light .blog-card-cover{background:#e8eefb}
html.light .blog-card-body h2 a{color:#0f172a}
html.light .blog-card-body h2 a:hover{color:#2563eb}
html.light .blog-body{color:#1e293b}
html.light .blog-body pre,html.light .blog-body code{background:#eef2fb;color:#0f172a}
html.light .blog-neighbor{background:rgba(255,255,255,.75);border-color:rgba(37,99,235,.2)}
html.light .blog-neighbor b{color:#0f172a}
html.light .blog-share a,html.light .blog-share .blog-copy{background:rgba(37,99,235,.08);color:#2563eb;border-color:rgba(37,99,235,.25)}
html.light .blog-share a:hover,html.light .blog-share .blog-copy:hover{color:#1d4ed8;border-color:rgba(37,99,235,.5)}
html.light .blog-copy{color:#2563eb}
html.light .blog-copy.copied{color:#fff;background:#2563eb;border-color:#2563eb}
html.light .blog-body th{background:rgba(37,99,235,.08)}
html.light .blog-body th,html.light .blog-body td{border-color:rgba(37,99,235,.2)}
html.light .blog-body hr{border-top-color:rgba(37,99,235,.2)}
html.light .blog-post-foot{border-top-color:rgba(37,99,235,.2)}
