/* Blog posts, case studies and the /blog/ index. Pages are generated by capabilities/build.py
   and use the tokens, header, buttons and cards of capabilities.css. */

/* ---------- hero ---------- */
.art-hero{padding-bottom:clamp(3.2rem,6vw,5rem)}
.art-hero h1{max-width:22ch;font-size:clamp(2.1rem,4.1vw,3.9rem);line-height:.98}
.art-hero .lede{max-width:44rem}
.art-meta{display:flex;flex-wrap:wrap;gap:.35rem 1.2rem;margin:1.6rem 0 0;font-size:.68rem;font-weight:750;letter-spacing:.16em;text-transform:uppercase;color:rgba(255,253,248,.6)}
.art-meta span+span::before{content:"·";margin-right:1.2rem;color:var(--gold-light)}

/* ---------- article body ---------- */
.art{padding-top:clamp(3rem,6vw,5rem)}
.art-wrap{display:block;width:min(46rem,calc(100% - 2 * var(--gut)));margin-inline:auto}
.art-img,.mock{width:100%;height:auto;margin:0 0 2.4rem}
.art-img{border:1px solid var(--line-dark)}
.prose{font-size:clamp(1.04rem,1.2vw,1.13rem);line-height:1.75;color:var(--muted-dark)}
.prose>*{margin:0 0 1.2rem}
.prose>:first-child{color:var(--text-dark);font-size:clamp(1.1rem,1.45vw,1.25rem);line-height:1.65;font-weight:550}
.prose h2{margin:2.8rem 0 1rem;font-size:clamp(1.5rem,2.4vw,2.05rem);font-weight:900;line-height:1.05;letter-spacing:-.035em;color:var(--text-dark);text-wrap:balance}
.prose h3{margin:2.1rem 0 .8rem;font-size:1.22rem;font-weight:850;line-height:1.2;color:var(--text-dark)}
.prose strong{color:var(--text-dark)}
.prose a{color:var(--text-dark);font-weight:650;text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:.2em;overflow-wrap:anywhere;transition:color .2s}
.prose a:hover{color:var(--gold-deep)}
.prose ul,.prose ol{padding-left:1.3rem}
.prose li{margin:.5rem 0}
.prose li::marker{color:var(--gold-deep)}
.prose img{width:100%;height:auto;margin:.6rem 0;border:1px solid var(--line-dark)}
.prose blockquote{margin:1.8rem 0;padding:.3rem 0 .3rem 1.2rem;border-left:3px solid var(--gold);color:var(--text-dark)}

/* ---------- video (loads only on play) ---------- */
.vid{position:relative;aspect-ratio:16/9;margin:0 0 2.4rem;background:var(--ink);overflow:hidden;border:1px solid var(--line-dark)}
.vid img{width:100%;height:100%;object-fit:cover}
.vid iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vid-play{position:absolute;inset:0;margin:auto;width:5.2rem;height:5.2rem;border:0;border-radius:50%;background:var(--gold);cursor:pointer;display:grid;place-items:center;box-shadow:0 14px 44px -12px rgba(0,0,0,.65);transition:transform .25s var(--ease),background .25s}
.vid-play::before{content:"";margin-left:.35rem;border-style:solid;border-width:.85rem 0 .85rem 1.35rem;border-color:transparent transparent transparent var(--ink)}
.vid-play:hover,.vid-play:focus-visible{transform:scale(1.06);background:var(--gold-light)}
.vid-link{position:absolute;left:1rem;bottom:1rem;padding:.6rem .9rem;background:var(--gold);color:var(--ink);font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}

/* ---------- case study facts ---------- */
.facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;margin:0 0 2.4rem;background:var(--line-dark);border:1px solid var(--line-dark)}
.facts div{background:var(--white);padding:1.2rem 1.35rem}
.facts dt{margin:0 0 .45rem;font-size:.63rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-deep)}
.facts dd{margin:0;font-size:1.02rem;line-height:1.45;font-weight:650;color:var(--text-dark)}

/* ---------- cards (/blog/ index and "keep reading") ---------- */
.post-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem}
.post-card{display:flex;flex-direction:column;height:100%;background:var(--white);border:1px solid var(--line-dark);transition:border-color .3s,transform .3s var(--ease),box-shadow .3s}
.post-card:hover,.post-card:focus-visible{border-color:var(--gold);transform:translateY(-3px);box-shadow:0 18px 40px -26px rgba(9,19,27,.45)}
.pc-img{display:block;aspect-ratio:16/9;background:var(--navy);overflow:hidden}
.pc-img img{width:100%;height:100%;object-fit:cover}
.pc-img.pc-mock{display:grid;place-items:center;padding:.9rem}
.pc-img.pc-mock img{object-fit:contain}
.pc-body{display:flex;flex-direction:column;gap:.6rem;padding:1.3rem 1.4rem 1.6rem}
.pc-body small{font-size:.62rem;font-weight:800;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-deep)}
.pc-body strong{font-size:1.16rem;font-weight:900;line-height:1.12;letter-spacing:-.025em;color:var(--text-dark);text-wrap:balance}
.pc-body>span{font-size:.93rem;line-height:1.5;color:var(--muted-dark)}

@media (max-width:1080px){
  .post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .post-grid,.facts{grid-template-columns:1fr}
  .art-hero h1{font-size:clamp(1.9rem,8.4vw,2.6rem)}
  .vid-play{width:4.2rem;height:4.2rem}
}
@media (prefers-reduced-motion:reduce){
  .post-card,.vid-play{transition:none}
  .post-card:hover,.post-card:focus-visible,.vid-play:hover{transform:none}
}
