/* TheClimatology — blog (index + posts) */

/* ---- index ---- */
.blog-main { max-width: 60rem; margin: 0 auto; padding: 11rem 1.5rem 4rem; position: relative; z-index: 1; }
.blog-head { text-align: center; margin-bottom: 3.5rem; }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.post-card { padding: 1.75rem; transition: transform .3s ease, border-color .3s ease; display: block; text-decoration: none; }
.post-card:hover { transform: translateY(-4px); border-color: rgba(201,169,98,0.4); }
.post-card .eyebrow { margin-bottom: 0.6rem; }
.post-card h3 { font-size: 1.35rem; color: #fff; margin-bottom: 0.5rem; line-height: 1.25; }
.post-card p { color: rgba(255,255,255,0.5); font-size: 0.92rem; line-height: 1.6; }
.post-card .more { color: var(--gold); font-size: 0.88rem; margin-top: 0.9rem; display: inline-block; }
.post-card.soon { opacity: 0.85; }
.post-card .tag-soon { font-size: 0.72rem; color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; padding: 2px 8px; margin-left: 6px; }

/* ---- single post ---- */
.post { max-width: 44rem; margin: 0 auto; padding: 10rem 1.5rem 4rem; position: relative; z-index: 1; }
.post .backlink { color: rgba(255,255,255,0.5); font-size: 0.9rem; text-decoration: none; }
.post .backlink:hover { color: var(--gold); }
.post h1 { font-size: clamp(28px,4.2vw,46px); color: #fff; margin: 1rem 0 2rem; line-height: 1.18; }
.post .lede { font-size: 1.2rem; color: rgba(255,255,255,0.7); line-height: 1.7; margin-bottom: 2rem; }
.post .body p { color: rgba(255,255,255,0.68); line-height: 1.85; margin-bottom: 1.15rem; font-size: 1.05rem; }
.post .body h2 { color: var(--gold); font-family: 'Playfair Display', serif; font-size: 1.35rem; margin: 2.4rem 0 0.8rem; }
.post .body em { color: rgba(255,255,255,0.85); font-style: italic; }
.post .body strong { color: #fff; font-weight: 600; }
.post .body ul { margin: 0 0 1.2rem 1.1rem; padding: 0; }
.post .body li { color: rgba(255,255,255,0.68); line-height: 1.75; margin-bottom: 0.7rem; font-size: 1.05rem; padding-left: 0.3rem; }
.post .body li::marker { color: var(--gold); }

/* figures + math deep-dive */
.body figure { margin: 1.6rem 0; }
.body figure img { width: 100%; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: #0c0e1d; }
.body figcaption { font-size: 0.85rem; color: rgba(255,255,255,0.42); margin-top: 0.6rem; text-align: center; line-height: 1.5; }
.body details { margin: 2.2rem 0; border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; background: rgba(255,255,255,0.03); }
.body details summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; color: var(--gold); list-style: none; }
.body details summary::-webkit-details-marker { display: none; }
.body details summary::before { content: "▸  "; }
.body details[open] summary::before { content: "▾  "; }
.body details .inner { padding: 0 1.25rem 1.25rem; }
.body details .inner p { font-size: 0.98rem; }
.katex { color: #eef0f6; }
.katex-display { margin: 1.1rem 0; overflow-x: auto; overflow-y: hidden; padding: 2px 0; }

/* post footer CTA */
.post-cta { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: center; }
.post-cta .lbl { color: rgba(255,255,255,0.45); font-size: 0.9rem; margin-right: auto; }

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