/* Blog: index listing and article layout. Shares tokens with styles.css. */

/* Blog pages run on the shared ground (site.css, assist world); the article itself stays a light
   reading panel, so the typography below is unchanged. The old palette tokens are kept here for it. */
:root{--plum:#7C2DAB;--violet:#7C5CFF;--teal:#19C3B1;--lilac:#F4F2FF;--lilac-2:#EDEAFB;--text:#1B1333;--muted:#5C5476;--pline:#E3DEF6;--pink:#2A1670}
.section{padding:72px 0;position:relative}
.feature-post,.post-card,article.section > .shell{--ink:#2A1670}
.bloghead{color:#fff;padding:clamp(40px,7vh,80px) 0 clamp(20px,3vh,34px)}
.eyebrow--on-dark{color:var(--accent)}
.lede--on-dark{color:var(--fg2)}
.section--mesh{padding-top:12px}
.section--mesh + .section h2{color:#fff}
.section--mesh + .section > .shell > .lede{color:var(--fg2)}
.bloghead h1{font-size:clamp(2.2rem,4.6vw,3.4rem);margin-top:14px}

.post-meta{font-size:.84rem;color:var(--muted);line-height:1.6;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tag{background:var(--lilac-2);color:var(--plum);border-radius:999px;padding:.18rem .7rem;font-weight:600;font-size:.76rem}

/* featured post — a small thumbnail beside the text, not a full-bleed photo: the words are what's
   being sold, the image is a hint of what the article is about. */
.feature-post{
  display:flex;align-items:center;gap:28px;text-decoration:none;color:inherit;
  background:#fff;color:var(--text);border:1px solid var(--pline);border-radius:var(--radius);
  padding:26px 32px;box-shadow:0 26px 54px -30px rgba(42,22,112,.42);transition:.2s ease;
}
.feature-post:hover{transform:translateY(-2px);box-shadow:0 32px 60px -30px rgba(42,22,112,.5)}
.feature-post__media{flex-shrink:0;width:340px;border-radius:12px;overflow:hidden}
.feature-post__media img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block}
.feature-post__body{display:flex;flex-direction:column;justify-content:center;min-width:0}
.feature-post__body h2{color:var(--ink);margin:10px 0 10px;font-size:clamp(1.3rem,2vw,1.7rem)}
.readmore{margin-top:14px;color:var(--plum);font-weight:600}
.feature-post .lede{color:var(--muted);font-size:1rem;margin-top:0;max-width:60ch}

/* list of posts — a thumbnail small enough to read as an icon for the piece, not a photo */
.postgrid{display:flex;flex-direction:column;gap:16px}
.post-card{background:#fff;color:var(--text);border:1px solid var(--pline);border-radius:var(--radius);overflow:hidden;display:flex;align-items:center;gap:22px;padding:18px 22px}
.post-card__media{flex-shrink:0;width:200px;border-radius:12px;overflow:hidden}
.post-card__media img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;display:block}
.post-card__body{min-width:0}
.post-card h3{color:var(--ink);font-size:1.05rem;margin:6px 0 6px;line-height:1.3}
.post-card p{font-size:.9rem;color:var(--muted)}

/* article */
.article-head{padding:clamp(36px,6vh,72px) 0 40px;color:#fff}
.article-head .post-meta{color:var(--fg2)}
.article-head .post-meta a{color:var(--accent)!important}
.article-head .tag{background:rgba(255,255,255,.14);color:#fff}
.article-head h1{color:#fff;max-width:19ch;margin:16px 0 18px;font-size:clamp(2rem,4.4vw,3.1rem)}
.article-head .standfirst{font-size:1.18rem;color:var(--fg2);max-width:60ch;line-height:1.6}
.byline{display:flex;align-items:center;gap:12px;margin-top:26px;font-size:.9rem;color:var(--fg2)}
.byline__mark{width:34px;height:34px;border-radius:999px;background:linear-gradient(135deg,var(--violet),var(--teal));display:grid;place-items:center}
.byline__mark img{width:20px;height:20px}

.article-hero{margin:0 auto;max-width:var(--shell);padding:0 var(--gutter)}
.article-hero img{width:100%;height:auto;aspect-ratio:21/9;object-fit:cover;object-position:center 38%;display:block;border-radius:var(--radius);border:1px solid var(--line)}
/* the reading panel: light, as the article was designed */
article.section{padding:0 0 72px}
article.section > .shell{max-width:calc(var(--shell) - 160px)}
article.section .prose,article.section .article-foot{color:var(--text)}
article.section > .shell{background:#fff;color:var(--text);border-radius:var(--radius);padding:clamp(28px,5vw,64px) var(--gutter);margin-top:32px}

.prose{max-width:44rem;margin:0 auto;font-size:1.06rem;line-height:1.75}
.prose > * + *{margin-top:1.25em}
.prose h2{color:var(--ink);font-size:1.6rem;margin-top:2.2em}
.prose h3{color:var(--ink);font-size:1.22rem;margin-top:1.8em}
.prose blockquote{
  margin:1.8em 0;padding:4px 0 4px 26px;border-left:3px solid var(--plum);
  font-size:1.1rem;color:var(--ink);font-style:italic;
}
.prose blockquote cite{display:block;margin-top:10px;font-style:normal;font-size:.88rem;color:var(--muted)}
.prose ul{padding-left:1.2em}
.prose li + li{margin-top:.5em}
.prose a{color:var(--plum)}
.prose .callout{
  background:var(--lilac);border-radius:14px;padding:22px 26px;font-size:1rem;
  border:1px solid var(--pline);
}
.prose .callout p:first-child{margin-top:0}
.prose figure{margin:2em 0}
.prose figure img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:var(--radius);display:block}
.prose figcaption{margin-top:12px;font-size:.88rem;color:var(--muted);text-align:center}

.article-foot{border-top:1px solid var(--pline);margin-top:56px;padding-top:30px;max-width:44rem;margin-left:auto;margin-right:auto;font-size:.92rem;color:var(--muted)}

@media (max-width:640px){
  .feature-post{flex-direction:column;align-items:stretch;text-align:left;padding:22px}
  .feature-post__media{width:100%}
  .post-card{flex-direction:column;align-items:stretch;text-align:left}
  .post-card__media{width:100%}
}
@media (max-width:980px){
  .article-hero img{aspect-ratio:3/2}
}

/* The reading panel is white, so the stuck header is given a real tint here; on the ground alone the homepage's glass is enough. */
.hdr.is-stuck{background:rgba(18,4,8,.86)}
