/* ============================================================
   KREAMOS — Blog styles
   ============================================================ */

/* ARTICLE HERO */
.article-hero { padding: 120px 0 56px; }
.article-hero__inner { max-width: 780px; }
.article-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.6); margin-bottom: 28px; transition: color .2s; }
.article-back:hover { color: #fff; }
.article-cat { font-family: var(--font-body); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-400); margin-bottom: 20px; }
.article-title { font: var(--text-display-2); letter-spacing: var(--track-display); color: #fff; text-wrap: balance; margin-bottom: 22px; }
.article-lead { font: var(--text-body-lg); color: rgba(255,255,255,0.75); max-width: 58ch; margin-bottom: 32px; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.5); flex-wrap: wrap; }
.article-meta strong { color: rgba(255,255,255,0.85); }

/* COVER IMAGE */
.article-cover { aspect-ratio: 21/9; border-radius: var(--radius-lg); margin: 40px 0; display: grid; place-items: center; overflow: hidden; }
@media (max-width: 720px) { .article-cover { aspect-ratio: 16/9; border-radius: var(--radius-md); } }

/* ARTICLE BODY */
.article-body { max-width: 780px; padding-bottom: var(--space-10); }
.article-intro { font: var(--text-body-lg); color: var(--fg-muted); margin-bottom: 48px; padding-bottom: 48px; border-bottom: var(--hairline); line-height: 1.8; }
.article-body h2 { font: var(--text-h2); letter-spacing: var(--track-tight); margin: 48px 0 18px; }
.article-body h3 { font: var(--text-h3); letter-spacing: var(--track-tight); margin: 36px 0 14px; }
.article-body p { font: var(--text-body-lg); color: var(--fg-muted); margin-bottom: 20px; line-height: 1.8; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 24px; }
.article-body li { font: var(--text-body-lg); color: var(--fg-muted); margin-bottom: 10px; line-height: 1.7; }
.article-body strong { color: var(--ink); font-weight: 700; }

/* TIP BOX */
.article-tip { background: var(--blue-50); border-left: 4px solid var(--brand); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 24px; margin: 32px 0; font: var(--text-body); color: var(--fg-muted); line-height: 1.7; }
.article-tip strong { color: var(--brand); }

/* CTA INSIDE ARTICLE */
.article-cta { background: var(--bg-inverse); border-radius: var(--radius-lg); padding: 44px 48px; margin: 56px 0 0; }
.article-cta h3 { font: var(--text-h2); color: #fff; margin-bottom: 10px; }
.article-cta p { font: var(--text-body-lg); color: rgba(255,255,255,0.75); margin-bottom: 28px; }
@media (max-width: 600px) { .article-cta { padding: 32px 24px; } }

/* NAV OVER DARK HERO (article pages) */
.nav--light { background: transparent !important; box-shadow: none !important; }
.nav--light .nav__link { color: rgba(255,255,255,0.85); }
.nav--light .nav__link:hover,
.nav--light .nav__link.is-active { color: #fff; }
.nav--light .wordmark { color: #fff; }
.nav--light .nav__burger svg { stroke: #fff; }
.nav--light.scrolled { background: #fff !important; box-shadow: 0 1px 0 rgba(0,0,0,0.08) !important; }
.nav--light.scrolled .nav__link { color: var(--ink); }
.nav--light.scrolled .nav__link:hover,
.nav--light.scrolled .nav__link.is-active { color: var(--brand); }
.nav--light.scrolled .wordmark { color: var(--ink); }
.nav--light.scrolled .nav__burger svg { stroke: var(--ink); }

/* BLOG LISTING — improved cards */
.blog-grid-v2 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.post-card { border: var(--hairline); border-radius: var(--radius-md); overflow: hidden; background: var(--bg); transition: all var(--dur-base) var(--ease-out); display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.post-card:hover { transform: translateY(-5px); border-color: var(--ink); box-shadow: var(--shadow-md); }
.post-card__img { aspect-ratio: 16/10; display: grid; place-items: center; position: relative; overflow: hidden; }
.post-card__img .mark { font-family: var(--font-display); font-weight: 900; font-size: 72px; color: rgba(255,255,255,0.14); letter-spacing: -0.04em; }
.post-card__img .post-card__tag { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; }
.post-card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.post-card__title { font: var(--text-h4); letter-spacing: var(--track-tight); line-height: 1.2; }
.post-card__excerpt { font: var(--text-body-sm); color: var(--fg-muted); flex: 1; line-height: 1.6; }
.post-card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: var(--hairline); margin-top: 4px; }
.post-card__time { font: var(--text-caption); color: var(--fg-subtle); display: flex; align-items: center; gap: 6px; }
.post-card__arrow { font-size: 18px; color: var(--brand); transition: transform var(--dur-base) var(--ease-out); }
.post-card:hover .post-card__arrow { transform: translate(3px,-3px); }

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