/* BLOG — loaded only on /blog/ and /cs/blog/ pages. Reuses variables from style.css. */

/* Language links in sidenav (anchors styled like .lang-btn) */
a.lang-btn{display:block;text-decoration:none}

/* Page header */
.blog-head{padding:8rem 5rem 4rem;border-bottom:.5px solid var(--border);background:var(--black)}
.blog-head .sec-title{margin-bottom:1.5rem}
.blog-intro{font-size:.98rem;line-height:1.9;color:var(--muted);max-width:640px}
.blog-slogan{font-family:"Cormorant Garamond",serif;font-style:italic;font-size:1.3rem;color:var(--gold-l);margin-top:2rem}

/* Listing */
.blog-section{background:var(--deep);padding:5rem 5rem 8rem}
.blog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem;max-width:1100px}
.blog-card{background:var(--card);border:.5px solid var(--border);padding:2.25rem 2.25rem 2rem;display:flex;flex-direction:column;gap:1rem;position:relative;overflow:hidden;text-decoration:none;color:inherit;transition:border-color .4s}
.blog-card::after{content:"";position:absolute;bottom:0;left:0;width:0;height:1.5px;background:var(--gold);transition:width .5s cubic-bezier(.4,0,.2,1)}
.blog-card:hover{border-color:var(--gold-d)}
.blog-card:hover::after{width:100%}
.blog-card-meta{display:flex;justify-content:space-between;align-items:center;gap:1rem;font-size:.7rem;letter-spacing:.15em;text-transform:uppercase;color:var(--muted)}
.blog-card-title{font-family:"Cormorant Garamond",serif;font-size:1.75rem;font-weight:400;line-height:1.15;color:var(--white)}
.blog-card-excerpt{font-size:.9rem;line-height:1.8;color:var(--muted);flex:1}
.blog-card-more{font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold)}
.blog-empty{margin-top:3rem;font-size:.85rem;color:var(--muted);letter-spacing:.04em;max-width:640px;border-left:.5px solid var(--border);padding-left:1.25rem;line-height:1.8}

/* Draft badge / banner */
.draft-badge{font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;color:#e8b07a;border:.5px solid rgba(232,176,122,.5);padding:.22rem .6rem;white-space:nowrap}
.draft-banner{background:rgba(232,176,122,.08);border-bottom:.5px solid rgba(232,176,122,.4);color:#e8b07a;font-size:.78rem;letter-spacing:.08em;padding:.7rem 5rem;text-align:left}

/* Article */
.post{background:var(--black);padding:7rem 5rem 6rem}
.post-wrap{max-width:720px}
.post-back{display:inline-flex;align-items:center;gap:.5rem;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);text-decoration:none;margin-bottom:2.5rem;transition:color .3s}
.post-back:hover{color:var(--gold)}
.post-title{font-family:"Cormorant Garamond",serif;font-size:clamp(2.4rem,4.5vw,3.8rem);font-weight:300;line-height:1.05;color:var(--white);margin-bottom:1.5rem}
.post-title em{font-style:italic;color:var(--gold)}
.post-meta{display:flex;flex-wrap:wrap;gap:1.25rem;align-items:center;font-size:.72rem;letter-spacing:.15em;text-transform:uppercase;color:var(--muted);padding-bottom:2rem;margin-bottom:2.5rem;border-bottom:.5px solid var(--border)}
.post-lede{font-family:"Cormorant Garamond",serif;font-size:1.55rem;font-weight:300;line-height:1.5;color:var(--white);margin-bottom:2.5rem}
.post-body h2{font-family:"Cormorant Garamond",serif;font-size:1.9rem;font-weight:400;color:var(--white);margin:3rem 0 1rem;line-height:1.2}
.post-body p{font-size:1rem;line-height:1.95;color:rgba(245,240,232,.78);margin-bottom:1.35rem}
.post-body strong{color:var(--white);font-weight:500}
.post-body ul,.post-body ol{margin:0 0 1.5rem;padding:0;list-style:none;display:flex;flex-direction:column;gap:.8rem}
.post-body li{font-size:1rem;line-height:1.8;color:rgba(245,240,232,.78);padding-left:1.4rem;position:relative}
.post-body li::before{content:"—";position:absolute;left:0;color:var(--gold-d)}
.post-body blockquote{border-left:1.5px solid var(--gold);padding:.3rem 0 .3rem 1.5rem;margin:2rem 0;font-family:"Cormorant Garamond",serif;font-style:italic;font-size:1.45rem;line-height:1.5;color:var(--gold-l)}
.post-tip{background:var(--card);border:.5px solid var(--border);padding:1.5rem 1.75rem;margin:2rem 0}
.post-tip-label{font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:.6rem}
.post-tip p{margin-bottom:0}
.post-tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:3rem}
.post-cta{margin-top:4rem;padding-top:2.5rem;border-top:.5px solid var(--border);display:flex;flex-direction:column;gap:1.5rem}
.post-cta p{font-family:"Cormorant Garamond",serif;font-size:1.5rem;font-weight:300;line-height:1.4;color:var(--white)}
.post-cta-btns{display:flex;gap:1rem;flex-wrap:wrap}

@media(max-width:900px){
  .blog-head{padding:4rem 1.25rem 2.5rem}
  .blog-section{padding:3rem 1.25rem 5rem}
  .blog-grid{grid-template-columns:1fr}
  .blog-card{padding:1.75rem}
  .draft-banner{padding:.7rem 1.25rem}
  .post{padding:3.5rem 1.25rem 4rem}
  .post-lede{font-size:1.3rem}
  .post-body h2{font-size:1.6rem}
  .post-body p,.post-body li{font-size:.95rem}
}

/* Articles: charts, closing line, sources */
.post-fig{margin:2.25rem 0 2.5rem;background:var(--card);border:.5px solid var(--border);padding:1.75rem 1.75rem 1.25rem}
.post-fig figcaption{font-size:.74rem;letter-spacing:.04em;line-height:1.6;color:var(--muted);margin-top:1rem;border-top:.5px solid var(--border);padding-top:.8rem}
.post-close{font-family:"Cormorant Garamond",serif;font-size:1.75rem;font-weight:300;line-height:1.4;color:var(--white);margin:3rem 0 1rem;padding:2rem 0 0;border-top:.5px solid var(--gold-d)}
.post-close em{color:var(--gold);font-style:italic}
.post-sources{margin-top:3.5rem;padding-top:2rem;border-top:.5px solid var(--border)}
.post-sources h2{font-family:"Cormorant Garamond",serif;font-size:1.5rem;font-weight:400;color:var(--white);margin-bottom:.6rem}
.post-sources p{font-size:.8rem;color:var(--muted);margin-bottom:1rem;line-height:1.7}
.post-sources ol{padding-left:1.4rem;display:flex;flex-direction:column;gap:.35rem}
.post-sources li{font-size:.78rem;line-height:1.55;color:var(--muted)}
.post-sources a{color:var(--gold-d);text-decoration:none;word-break:break-word}
.post-sources a:hover{color:var(--gold)}
.post-body sup{font-size:.7em}
@media(max-width:900px){.post-fig{padding:1rem .75rem .9rem}.post-close{font-size:1.4rem}}

/* Blog index: tag filter + cards with cover */
.blog-filter{display:flex;flex-wrap:wrap;gap:.6rem;margin-bottom:2.5rem;max-width:1100px}
.blog-filter button{font-family:"Exo 2",sans-serif;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);background:transparent;border:.5px solid var(--border);padding:.5rem 1rem;cursor:pointer;transition:color .3s,border-color .3s}
.blog-filter button:hover{color:var(--gold-l);border-color:var(--gold-d)}
.blog-filter button.active{color:var(--black);background:var(--gold);border-color:var(--gold)}
.blog-card{padding:0;gap:0}
.blog-card[hidden]{display:none}
.blog-card-img{aspect-ratio:1200/630;overflow:hidden;border-bottom:.5px solid var(--border);background:var(--black)}
.blog-card-img img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s cubic-bezier(.4,0,.2,1)}
.blog-card:hover .blog-card-img img{transform:scale(1.03)}
.blog-card-text{display:flex;flex-direction:column;gap:1rem;padding:1.75rem 2rem 2rem;flex:1}
.blog-card-excerpt{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:0 0 auto}
.blog-card-tags{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:auto}
.blog-other{margin-top:3rem;font-size:.82rem;color:var(--muted);letter-spacing:.04em}
.blog-other a{color:var(--gold);text-decoration:none}
.blog-other a:hover{color:var(--gold-l)}
.post-meta time{color:inherit}
.post-tags{margin-top:2.5rem}
@media(max-width:900px){.blog-card-text{padding:1.4rem 1.25rem 1.5rem}.blog-filter{gap:.45rem}.blog-filter button{padding:.45rem .8rem;font-size:.64rem}}

/* Readability (Nov 2026): sans body text, softer contrast, dark grey reading surface. Headings keep Cormorant Garamond. */
.post{--read-bg:#1a1a1a;--read-text:#d6d6d6;--read-muted:#a3a39b;background:var(--read-bg)}
.post-wrap{font-family:"Inter","Source Sans 3",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:1.15rem;max-width:68ch}
.post-back,.post-meta,.post-sources p{color:var(--read-muted)}
.post-meta{font-family:"Exo 2",sans-serif;font-size:.72rem}
.post-lede{color:#ececec}
.post-body p,.post-body li{font-family:inherit;font-size:1.15rem;font-weight:400;line-height:1.7;color:var(--read-text);letter-spacing:0}
.post-body p{margin-bottom:1.4em}
.post-body ul,.post-body ol{gap:.6em;margin-bottom:1.4em}
.post-body h2{margin:2.6em 0 .7em}
.post-body strong{font-weight:600;color:#f2f2f2}
.post-fig{background:#141415;border-color:rgba(201,168,76,.18);margin:2.5rem 0 2.75rem}
.post-fig figcaption{font-family:inherit;font-size:.8rem;letter-spacing:0;line-height:1.55;color:var(--read-muted)}
.post-sources p{font-size:.85rem;line-height:1.65}
.post-cta p{color:#ececec}
.blog-section{background:#1a1a1a}
.blog-card{background:#1e1f22}
.blog-card-excerpt{font-family:"Inter","Source Sans 3",system-ui,sans-serif;font-size:.98rem;line-height:1.65;color:#cfcfcf}
.blog-card-meta,.blog-other{color:var(--read-muted,#a3a39b)}
.blog-card-meta{color:#a3a39b}
.blog-intro{color:#b8b8b0}
@media(max-width:900px){
  .post-wrap{font-size:1.05rem}
  .post-body p,.post-body li{font-size:1.05rem;line-height:1.7}
}
