/* =========================================================
   Blog: list page, article page, and the home-page strip
   ========================================================= */

/* --- shared post card --- */
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2vw,26px)}
.post-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;text-decoration:none;transition:transform .4s var(--ease),box-shadow .4s var(--ease),border-color .3s}
.post-card:hover{transform:translateY(-4px);box-shadow:0 24px 50px -28px rgba(30,36,39,.4);border-color:rgba(30,36,39,.2)}
.post-card .pc-img{aspect-ratio:16/10;background:var(--concrete);overflow:hidden}
.post-card .pc-img img{width:100%;height:100%;object-fit:cover;transition:transform 1s var(--ease)}
.post-card:hover .pc-img img{transform:scale(1.05)}
.post-card .pc-body{padding:18px 20px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.pc-meta{font-size:13px;color:var(--ink-soft);display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.pc-meta i{width:4px;height:4px;border-radius:50%;background:var(--slab);display:inline-block}
.post-card h3{font-size:clamp(18px,1.5vw,21px);line-height:1.22;font-weight:780;letter-spacing:-.01em}
.post-card p{color:var(--ink-soft);font-size:15px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.read-more{margin-top:auto;padding-top:6px;font-weight:700;font-size:14.5px;display:inline-flex;align-items:center;gap:6px}
.read-more span{display:inline-block;transition:transform .25s}
.post-card:hover .read-more span{transform:translateX(4px)}
.read-more::after{content:"";flex:none}

/* skeleton */
.sk-card{border-radius:20px;background:#fff;border:1px solid var(--line);overflow:hidden}
.sk-card .a{aspect-ratio:16/10}
.sk-card .b{height:14px;margin:18px 20px 0;border-radius:6px}
.sk-card .c{height:22px;margin:12px 20px 0;border-radius:6px;width:75%}
.sk-card .d{height:14px;margin:12px 20px 22px;border-radius:6px;width:55%}
.sk-card .a,.sk-card .b,.sk-card .c,.sk-card .d{background:linear-gradient(90deg,#eceee9 25%,#f6f7f3 50%,#eceee9 75%);background-size:200% 100%;animation:sk 1.2s infinite}
@keyframes sk{to{background-position:-200% 0}}

/* --- home strip --- */
.home-blog{background:var(--paper);border-top:1px solid var(--line)}
.home-blog .sec-head{margin-bottom:clamp(26px,3.5vw,44px)}
.all-link{display:inline-flex;align-items:center;gap:8px;font-weight:700;text-decoration:none;border-bottom:2px solid var(--safety);padding-bottom:2px;justify-self:start}

/* --- blog list page --- */
.blog-hero{padding:calc(var(--head) + clamp(40px,6vw,80px)) 0 clamp(30px,4vw,48px);background:
  radial-gradient(ellipse 60% 70% at 90% 0%,rgba(44,107,214,.08),transparent 60%),
  radial-gradient(ellipse 50% 60% at 0% 40%,rgba(245,197,24,.10),transparent 60%),
  linear-gradient(180deg,#F6F7F3,var(--bg))}
.blog-hero .k{margin-bottom:14px;display:inline-flex;align-items:center;gap:10px}
.blog-hero .k::before{content:"";width:26px;height:3px;background:var(--safety)}
.blog-hero h1{font-size:clamp(2.3rem,5vw,4.4rem);max-width:16ch}
.blog-hero p{color:var(--ink-soft);font-size:clamp(16px,1.3vw,18.5px);max-width:52ch;margin-top:16px}
.blog-list{padding:clamp(20px,3vw,40px) 0 clamp(80px,9vw,120px)}

.featured{display:grid;grid-template-columns:1.25fr 1fr;background:#fff;border:1px solid var(--line);border-radius:26px;overflow:hidden;text-decoration:none;margin-bottom:clamp(22px,3vw,36px);transition:box-shadow .4s var(--ease),transform .4s var(--ease)}
.featured:hover{box-shadow:0 30px 60px -32px rgba(30,36,39,.45);transform:translateY(-3px)}
.featured .f-img{min-height:340px;background:var(--concrete);overflow:hidden;position:relative}
.featured .f-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--ease)}
.featured:hover .f-img img{transform:scale(1.04)}
.featured .f-body{padding:clamp(24px,3.5vw,48px);display:flex;flex-direction:column;justify-content:center;gap:14px}
.f-tag{align-self:flex-start;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:var(--graphite);color:#fff;padding:5px 11px;border-radius:999px}
.featured h2{font-size:clamp(1.7rem,3vw,2.6rem);line-height:1.06}
.featured p{color:var(--ink-soft);font-size:clamp(15.5px,1.2vw,17.5px)}

.blog-empty{text-align:center;background:#fff;border:1px dashed rgba(30,36,39,.25);border-radius:24px;padding:clamp(40px,6vw,72px) 24px}
.blog-empty h2{font-size:clamp(1.6rem,3vw,2.2rem);margin-bottom:10px}
.blog-empty p{color:var(--ink-soft);max-width:46ch;margin:0 auto 22px}
.blog-empty .btn{width:auto}

/* --- article page --- */
.article-top{padding:calc(var(--head) + clamp(28px,4vw,56px)) 0 clamp(22px,3vw,36px);background:linear-gradient(180deg,#F6F7F3,var(--bg))}
.crumbs{display:flex;gap:8px;align-items:center;font-size:14px;color:var(--ink-soft);margin-bottom:22px;flex-wrap:wrap}
.crumbs a{text-decoration:none;font-weight:600;color:var(--graphite)}
.crumbs a:hover{text-decoration:underline}
.article-head{max-width:860px}
.article-head h1{font-size:clamp(2rem,4.4vw,3.6rem);line-height:1.04}
.article-head .lead{font-size:clamp(17px,1.5vw,20px);color:var(--ink-soft);margin-top:18px;max-width:60ch}
.byline{display:flex;align-items:center;gap:12px;margin-top:24px;font-size:14.5px;color:var(--ink-soft);flex-wrap:wrap}
.byline .who{display:flex;align-items:center;gap:10px;color:var(--graphite);font-weight:650}
.byline .who img{height:30px;width:auto;background:#fff;border-radius:8px;padding:3px 5px;border:1px solid var(--line)}
.byline i{width:4px;height:4px;border-radius:50%;background:var(--slab)}
.article-cover{margin-top:clamp(26px,3.5vw,44px);border-radius:24px;overflow:hidden;background:var(--concrete);aspect-ratio:16/8}
.article-cover img{width:100%;height:100%;object-fit:cover}
.article-wrap{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:clamp(30px,5vw,80px);padding-top:clamp(30px,4vw,56px);padding-bottom:clamp(70px,8vw,110px);align-items:start}
.prose{font-size:clamp(17px,1.25vw,18.5px);line-height:1.8;color:#2a3135;max-width:72ch}
.prose > * + *{margin-top:1.1em}
.prose h2{font-size:clamp(1.5rem,2.4vw,2rem);line-height:1.15;font-weight:820;letter-spacing:-.015em;margin-top:1.7em;font-variation-settings:"wdth" 108;color:var(--graphite)}
.prose h3{font-size:clamp(1.2rem,1.8vw,1.45rem);line-height:1.25;font-weight:780;margin-top:1.5em;color:var(--graphite)}
.prose h4{font-size:1.08em;font-weight:760;color:var(--graphite)}
.prose a{color:var(--water);text-underline-offset:3px}
.prose strong{color:var(--graphite)}
.prose ul,.prose ol{padding-left:1.25em}
.prose ul{list-style:none;padding-left:0}
.prose ul li{position:relative;padding-left:1.5em}
.prose ul li::before{content:"";position:absolute;left:.2em;top:.72em;width:8px;height:8px;background:var(--safety);transform:rotate(45deg)}
.prose ol{list-style:decimal}
.prose ol li::marker{font-weight:800;color:var(--epoxy)}
.prose li + li{margin-top:.45em}
.prose blockquote{border-left:4px solid var(--safety);background:#fff;border-radius:0 14px 14px 0;padding:18px 22px;font-size:1.08em;color:var(--graphite);font-weight:550}
.prose blockquote p + p{margin-top:.6em}
.prose code{background:var(--concrete);padding:.12em .4em;border-radius:6px;font-size:.88em}
.prose figure{margin-top:1.6em;margin-bottom:1.6em}
.prose figure img{border-radius:16px;width:100%}
.prose figcaption{font-size:.85em;color:var(--ink-soft);margin-top:.6em;text-align:center}
.prose hr{border:0;height:4px;width:60px;background:var(--safety);margin:2.2em 0}
.article-side{position:sticky;top:calc(var(--head) + 24px);display:grid;gap:14px}
.share{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px}
.share h4,.side-cta h4{font-size:13px;font-weight:750;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-soft);margin-bottom:12px}
.share .btns{display:flex;gap:8px;flex-wrap:wrap}
.share a,.share button{height:40px;padding:0 14px;border-radius:10px;border:1px solid var(--line);display:inline-flex;align-items:center;gap:8px;font-weight:650;font-size:14px;text-decoration:none;transition:border-color .2s,background .2s}
.share a:hover,.share button:hover{border-color:var(--graphite)}
.share svg{width:18px;height:18px}
.side-cta{background:var(--graphite);color:#fff;border-radius:18px;padding:20px}
.side-cta h4{color:var(--safety)}
.side-cta p{color:#C7CFD3;font-size:15px;margin-bottom:14px}
.side-cta .btn{width:100%;justify-content:center;padding:12px 14px;font-size:15px}
.article-cta{margin-top:clamp(36px,5vw,56px);background:var(--graphite);color:#fff;border-radius:22px;padding:clamp(22px,3vw,34px);display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
.article-cta h3{font-size:clamp(1.3rem,2.2vw,1.8rem);max-width:22ch;line-height:1.1}
.article-cta p{color:#AEB8BD;margin-top:6px}
.related{background:var(--paper);border-top:1px solid var(--line)}
.post-missing{padding:calc(var(--head) + 80px) 0 120px;text-align:center}
.post-missing h1{font-size:clamp(2rem,4vw,3rem);margin-bottom:12px}
.post-missing p{color:var(--ink-soft);margin-bottom:22px}
.post-missing .btn{width:auto}

@media (max-width:1000px){
  .post-grid{grid-template-columns:repeat(2,1fr)}
  .featured{grid-template-columns:1fr}
  .featured .f-img{min-height:0;aspect-ratio:16/9}
  .article-wrap{grid-template-columns:1fr}
  .article-side{position:static;grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .post-grid{grid-template-columns:1fr}
  .article-side{grid-template-columns:1fr}
  .article-cover{aspect-ratio:16/10;border-radius:16px}
  .article-cta .btn{width:100%;justify-content:center}
}
