/* Blog pages only (linked after site.css). Same tokens, type scale, and radii as the rest of the site. */
.blog-hero{padding-top:88px;padding-bottom:80px}
.blog-list{padding-top:64px;padding-bottom:128px;display:flex;flex-direction:column;gap:48px}
.blog-cats{display:flex;flex-wrap:wrap;gap:8px}
.blog-cat{display:inline-flex;align-items:center;min-height:46px;padding:0 20px;border-radius:999px;font-size:16px;font-weight:600;text-decoration:none;color:var(--ink)!important;background:#fff;border:1.5px solid #D0D0D0;transition:border-color .15s ease}
.blog-cat:hover{border-color:var(--ink)}
.blog-cat[aria-current="page"]{position:relative;padding-left:34px;background:var(--ink);color:#fff!important;border-color:var(--ink)}
.blog-cat[aria-current="page"]::before{content:"";position:absolute;left:16px;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;background:var(--cyan)}
.post-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:48px 32px}
.post-card{display:flex;flex-direction:column;gap:20px}
.post-card-img{position:relative;display:block;border-radius:24px;overflow:hidden;background:var(--paper)}
.post-card-img img{width:100%;aspect-ratio:16/9;object-fit:cover;transition:transform .3s}
.post-card-img:hover img{transform:scale(1.02)}
.post-card-img::before{content:"";position:absolute;z-index:1;left:24px;right:24px;top:0;height:4px;border-radius:0 0 4px 4px;background:var(--acc,var(--cyan));transform:scaleX(0);transition:transform .25s ease}
.post-card-img:hover::before{transform:scaleX(1)}
.post-grid>:nth-child(3n+1){--acc:var(--cyan)}
.post-grid>:nth-child(3n+2){--acc:var(--magenta)}
.post-grid>:nth-child(3n){--acc:var(--yellow)}
.post-card-noimg{display:grid;grid-template-columns:repeat(3,40px);height:6px;border-radius:3px;overflow:hidden;margin:calc(28.125% - 3px) auto}
.post-card-noimg i:nth-child(1){background:var(--cyan)}
.post-card-noimg i:nth-child(2){background:var(--magenta)}
.post-card-noimg i:nth-child(3){background:var(--yellow)}
.post-card-body{display:flex;flex-direction:column;gap:12px;padding:0 4px}
.post-card-h{margin:0;font-size:26px;line-height:1.15;font-weight:600;letter-spacing:-.01em}
.post-card-h a{color:var(--ink);text-decoration:none}
.post-card-h a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.post-card-x{margin:0;font-size:17px;line-height:1.55;color:var(--grey);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.post-meta{margin:0;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:16px;color:var(--grey)}
.dark .post-meta{color:var(--dim);font-size:18px}
.blog-more{padding-top:8px}
.blog-empty{max-width:760px;display:flex;flex-direction:column;gap:16px;padding:40px;border-radius:28px;background:var(--paper)}
.blog-empty a{font-weight:600}
/* Post page */
.post-hero{padding-top:88px;padding-bottom:72px}
.post-title{max-width:16em;font-size:clamp(40px,6vw,84px);line-height:1.02}
.post-hero-cover .post-hero{padding-bottom:200px}
.post-cover{position:relative;z-index:2}
.post-cover .wrap{margin-top:-160px}
.post-cover img{width:100%;max-width:1080px;margin:0 auto;aspect-ratio:16/9;object-fit:cover;border-radius:32px;background:var(--paper);box-shadow:0 40px 100px rgba(0,0,0,.14)}
.post-wrap{padding-top:72px;padding-bottom:112px;display:flex;flex-direction:column;align-items:center;gap:56px}
.post-body{width:100%;max-width:760px;font-size:20px;line-height:1.7;color:#222}
.post-body>*{margin:0 0 24px}
.post-body>:last-child{margin-bottom:0}
.post-body p:empty{display:none}
.post-body h2{margin:56px 0 18px;font-size:clamp(30px,3.2vw,40px);line-height:1.12;font-weight:600;letter-spacing:-.02em;color:var(--ink)}
.post-body h3{margin:40px 0 12px;font-size:25px;line-height:1.25;font-weight:600;color:var(--ink)}
.post-body h4,.post-body h5,.post-body h6{margin:32px 0 10px;font-size:21px;line-height:1.3;font-weight:600;color:var(--ink)}
.post-body>h2:first-child,.post-body>h3:first-child{margin-top:0}
.post-body a{color:var(--cyan-t);text-decoration-thickness:1.5px;text-underline-offset:3px}
.post-body strong{font-weight:600;color:var(--ink)}
.post-body ul,.post-body ol{padding-left:28px}
.post-body li{margin:8px 0}
.post-body li>p{margin:0}
.post-body ul li::marker{color:var(--magenta)}
.post-body blockquote{margin:32px 0;padding:4px 0 4px 24px;border-left:4px solid var(--cyan);font-size:22px;line-height:1.55;color:var(--ink)}
.post-body blockquote p{margin:0}
.post-body img{width:100%;border-radius:24px;margin:8px 0}
.post-body figure.rc-figure{display:block;margin:40px 0}
.post-body figure.rc-figure img{width:100%;aspect-ratio:auto;object-fit:contain;margin:0;border-radius:20px}
.post-body figcaption{margin-top:14px;font-size:16px;line-height:1.5;color:var(--grey)}
.post-body figure:not(.rc-figure){margin:32px 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:12px}
.post-body figure:not(.rc-figure) img{margin:0;aspect-ratio:4/3;object-fit:cover}
.post-body hr{border:0;height:6px;width:120px;margin:48px 0;background:linear-gradient(90deg,var(--cyan) 0 33.33%,var(--magenta) 33.33% 66.66%,var(--yellow) 66.66%);border-radius:3px}
.post-body table{width:100%;border-collapse:collapse;font-size:17px;line-height:1.5;display:block;overflow-x:auto}
.post-body td{padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:top}
.post-body pre{padding:20px;border-radius:16px;background:var(--paper);font-size:16px;overflow-x:auto}
.post-updated{width:100%;max-width:760px;margin:-24px 0 0;font-size:16px;color:var(--grey)}
.post-cta{width:100%;max-width:760px}
.post-cta .btn{flex:none}
@media (max-width:700px){
  .blog-hero,.post-hero{padding-top:56px;padding-bottom:56px}
  .post-hero-cover .post-hero{padding-bottom:120px}
  .post-cover .wrap{margin-top:-88px}
  .post-cover img{border-radius:20px;max-height:45vh}
  .post-body{font-size:19px}
  .post-wrap{padding-top:48px;padding-bottom:88px}
  .blog-list{padding-top:48px;padding-bottom:96px}
  .blog-empty{padding:28px 24px}
}
@media print{section.paper{break-inside:avoid}.post-body figure.rc-figure{break-inside:avoid}.post-card,.post-cta,.post-body li,.post-body blockquote,.post-body img{break-inside:avoid}.post-body h2,.post-body h3,.paper h2{break-after:avoid}.post-cover{break-inside:avoid}}
