/* ============================================================
   Blog — index listing + article typography
   Uses the shared design tokens from styles.css
   ============================================================ */

/* ---------- Index: featured + grid ---------- */
.blog-wrap{max-width:1120px;margin:0 auto;padding:0 24px}

.blog-featured{
  display:grid;grid-template-columns:1.05fr .95fr;gap:0;
  background:#fff;border:1px solid var(--line-2);border-radius:var(--radius-lg);
  overflow:hidden;box-shadow:var(--shadow-sm);margin-bottom:48px;
}
.blog-featured-img{position:relative;min-height:340px;background:var(--cream)}
.blog-featured-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top center}
.blog-featured-body{padding:40px 42px;display:flex;flex-direction:column;justify-content:center}
.blog-featured-body h2{
  font-family:var(--f-display);font-weight:500;color:var(--ink);
  font-size:clamp(1.5rem,2.6vw,2.1rem);line-height:1.18;margin:14px 0 14px;letter-spacing:-.01em;
}
.blog-featured-body p{color:var(--muted);line-height:1.7;font-size:1rem;margin-bottom:22px}

.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.blog-card{
  display:flex;flex-direction:column;background:#fff;
  border:1px solid var(--line-2);border-radius:var(--radius-lg);overflow:hidden;
  text-decoration:none;color:inherit;
  transition:transform .18s ease,box-shadow .22s ease,border-color .2s ease;
}
.blog-card:hover{transform:translateY(-4px);box-shadow:0 22px 44px -22px rgba(10,31,58,.28);border-color:rgba(46,196,212,.4)}
.blog-card-img{aspect-ratio:16/10;background:var(--cream);overflow:hidden}
.blog-card-img img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .4s ease}
.blog-card:hover .blog-card-img img{transform:scale(1.04)}
.blog-card-body{padding:22px 22px 24px;display:flex;flex-direction:column;flex:1}
.blog-card-body h3{
  font-family:var(--f-display);font-weight:500;color:var(--ink);
  font-size:1.18rem;line-height:1.3;margin:10px 0 8px;
}
.blog-card-body p{color:var(--muted);font-size:.92rem;line-height:1.6;margin:0 0 16px;flex:1}

.blog-cat{
  display:inline-flex;align-items:center;align-self:flex-start;gap:6px;
  font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--teal);background:rgba(46,196,212,.1);
  padding:5px 11px;border-radius:100px;
}
.blog-meta{display:flex;align-items:center;gap:10px;font-size:.82rem;color:var(--muted);margin-top:auto}
.blog-meta time{font-weight:600;color:var(--ink-2,var(--ink))}
.blog-readmore{display:inline-flex;align-items:center;gap:7px;color:var(--teal);font-weight:600;font-size:.92rem}
.blog-readmore svg{width:16px;height:16px}

/* ---------- Single article ---------- */
.post-hero{padding:56px 0 0}
.post-hero-in{max-width:760px;margin:0 auto;padding:0 24px;text-align:center}
.post-hero h1{
  font-family:var(--f-display);font-weight:400;color:var(--ink);
  font-size:clamp(2rem,4.2vw,3rem);line-height:1.12;letter-spacing:-.015em;margin:16px 0 18px;
}
.post-hero .post-dek{font-size:1.12rem;color:var(--muted);line-height:1.6;margin-bottom:24px}
.post-byline{display:inline-flex;align-items:center;gap:12px;font-size:.9rem;color:var(--muted)}
.post-byline img{width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:top center;border:1.5px solid rgba(46,196,212,.4)}
.post-byline strong{color:var(--ink);font-weight:600}

.post-cover{max-width:980px;margin:38px auto 0;padding:0 24px}
.post-cover-img{width:100%;aspect-ratio:16/9;object-fit:cover;object-position:top center;border-radius:var(--radius-lg);box-shadow:var(--shadow-lg)}

.post-body{max-width:720px;margin:0 auto;padding:44px 24px 8px;font-size:1.08rem;line-height:1.78;color:var(--ink)}
.post-body > p{margin:0 0 22px}
.post-body h2{font-family:var(--f-display);font-weight:500;color:var(--ink);font-size:1.6rem;line-height:1.25;margin:40px 0 14px;letter-spacing:-.01em}
.post-body h3{font-family:var(--f-display);font-weight:600;color:var(--ink);font-size:1.22rem;margin:30px 0 10px}
.post-body ul,.post-body ol{margin:0 0 22px;padding-left:24px}
.post-body li{margin-bottom:10px}
.post-body a{color:var(--teal);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.post-body strong{color:var(--ink);font-weight:700}
.post-body blockquote{
  margin:28px 0;padding:18px 24px;border-left:3px solid var(--teal);
  background:rgba(46,196,212,.07);border-radius:0 10px 10px 0;
  font-family:var(--f-display);font-style:italic;color:var(--ink);font-size:1.18rem;line-height:1.5;
}
.post-body img{max-width:100%;height:auto;border-radius:var(--radius);margin:24px 0}

/* Key-takeaway / callout box reusable in posts */
.post-callout{
  margin:30px 0;padding:22px 26px;background:var(--cream);
  border:1px solid var(--line-2);border-radius:var(--radius-lg);
}
.post-callout h4{font-family:var(--f-display);color:var(--ink);font-size:1.05rem;margin:0 0 10px}
.post-callout p:last-child{margin-bottom:0}

/* CTA block at end of a post */
.post-cta{
  max-width:720px;margin:36px auto 0;padding:30px 32px;
  background:linear-gradient(135deg,var(--ink) 0%,#0d2747 100%);
  border-radius:var(--radius-lg);color:#fff;text-align:center;
}
.post-cta h3{font-family:var(--f-display);font-weight:500;font-size:1.4rem;margin:0 0 10px;color:#fff}
.post-cta p{color:rgba(255,255,255,.82);line-height:1.6;margin:0 0 20px}

/* Author bio box */
.post-author{
  max-width:720px;margin:44px auto 0;padding:26px 28px;display:flex;gap:20px;align-items:center;
  background:#fff;border:1px solid var(--line-2);border-radius:var(--radius-lg);
}
.post-author img{width:84px;height:84px;border-radius:50%;object-fit:cover;object-position:top center;flex-shrink:0;border:2px solid rgba(46,196,212,.4)}
.post-author h4{font-family:var(--f-display);color:var(--ink);font-size:1.15rem;margin:0 0 6px}
.post-author p{color:var(--muted);font-size:.92rem;line-height:1.6;margin:0}

/* Back / more-posts strip */
.post-more{max-width:980px;margin:50px auto 0;padding:0 24px}

@media (max-width:860px){
  .blog-featured{grid-template-columns:1fr}
  .blog-featured-img{min-height:240px}
  .blog-featured-body{padding:28px 26px}
  .blog-grid{grid-template-columns:repeat(2,1fr);gap:20px}
}
@media (max-width:560px){
  .blog-grid{grid-template-columns:1fr}
  .post-body{font-size:1.02rem}
}
