/* Blog: latest-posts grid (Blog page) and article typography (Single Post template). */

/* ---- Latest posts grid ---- */
:root .post-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}
:root .post-card{
  display:flex;
  flex-direction:column;
  background:#fff;
  border:1px solid var(--line);
  color:var(--ink);
  transition:transform .3s ease, box-shadow .3s ease;
}
:root .post-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(0,0,0,.08);}
:root .post-card-img{aspect-ratio:16/10;overflow:hidden;background:var(--line);}
:root .post-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s ease;}
:root .post-card:hover .post-card-img img{transform:scale(1.05);}
:root .post-card-body{padding:26px 24px 28px;display:flex;flex-direction:column;flex:1;}
:root .post-card-meta{
  font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--sub);font-weight:600;margin-bottom:12px;
}
:root .post-card h3{font-size:22px;line-height:1.25;margin-bottom:12px;color:var(--base);}
:root .post-card p{font-size:14.5px;line-height:1.65;color:var(--gray);margin-bottom:20px;}
:root .post-card-link{margin-top:auto;font-size:13.5px;font-weight:600;color:var(--accent);}
:root .post-grid-empty{color:var(--gray);font-size:15px;}

:root .post-pagination{margin-top:40px;display:flex;gap:8px;flex-wrap:wrap;}
:root .post-pagination .page-numbers{
  min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);background:#fff;font-size:14px;color:var(--ink);padding:0 12px;
}
:root .post-pagination .page-numbers.current{background:var(--base);color:#fff;border-color:var(--base);}
:root .post-pagination a.page-numbers:hover{border-color:var(--accent);color:var(--accent);}

@media(max-width:900px){ :root .post-grid{grid-template-columns:1fr 1fr;} }
@media(max-width:600px){ :root .post-grid{grid-template-columns:1fr;} }

/* ---- Single post article ---- */
:root .cwc-article{max-width:760px;margin:0 auto;}
:root .cwc-article p,
:root .cwc-article li{font-size:17px;line-height:1.8;color:#333;}
:root .cwc-article p{margin-bottom:1.3em;}
:root .cwc-article h2{font-size:30px;line-height:1.2;margin:1.8em 0 .6em;}
:root .cwc-article h3{font-size:23px;line-height:1.25;margin:1.6em 0 .5em;}
:root .cwc-article h2:first-child,
:root .cwc-article h3:first-child{margin-top:0;}
:root .cwc-article ul,
:root .cwc-article ol{margin:0 0 1.4em 1.3em;padding:0;}
:root .cwc-article ul{list-style:disc;}
:root .cwc-article ol{list-style:decimal;}
:root .cwc-article li{margin-bottom:.45em;padding-left:.2em;}
:root .cwc-article li::marker{color:var(--accent);}
:root .cwc-article a{color:#2e7d32;text-decoration:underline;text-underline-offset:3px;}
:root .cwc-article strong{font-weight:600;color:var(--base);}
:root .cwc-article blockquote{
  margin:1.8em 0;padding:4px 0 4px 24px;border-left:3px solid var(--accent);
}
:root .cwc-article blockquote p{
  font-family:'Fraunces',serif;font-style:italic;font-size:22px;line-height:1.5;color:var(--base);margin:0;
}
:root .cwc-article img{max-width:100%;height:auto;margin:1.5em 0;}
:root .cwc-article figure{margin:1.5em 0;}
:root .cwc-article figcaption{font-size:13px;color:var(--gray);margin-top:-1em;}
:root .post-back{max-width:760px;margin:48px auto 0;padding-top:28px;border-top:1px solid var(--line);}
:root .post-back a{font-size:14px;font-weight:600;color:var(--accent);}

/* The latest-posts section follows straight on from the section above it on the Blog page. */
:root section.blog-latest{padding-top:0;}
