/* ════════════════════════════════════════════════════════════════════════
   BLOG — public, server-rendered pages.
   Reuses the marketing design system (01-core.css tokens + nav + footer +
   .container + .label + .btn-lime). These rules only add blog-specific layout
   (hero, featured, cards, article, author, related) in the same language.
   ════════════════════════════════════════════════════════════════════════ */

/* The blog uses the same custom cursor as the rest of the site (added via the
   #cur / #cur-r elements + a small script in the server-rendered shell). The
   cursor:none / touch / reduced-motion handling all comes from 01-core.css. */

body { padding-top: 70px; }                 /* clear the fixed nav */
.blog-page { padding-bottom: 40px; }

/* ── hero ── */
.b-hero { position: relative; padding: 56px 0 8px; overflow: hidden; }
.b-grid-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 25% -10%, #000, transparent 62%);
  mask-image: radial-gradient(circle at 25% -10%, #000, transparent 62%); }
.b-hero .container { position: relative; z-index: 1; }
.b-title { font-family: var(--ff-d); font-size: clamp(3rem, 8vw, 6.5rem); line-height: .9; letter-spacing: .02em; margin: 16px 0 0; }
.b-title .ital { font-family: var(--ff-s); font-style: italic; color: var(--lime); }
.b-sub { color: var(--gray3); max-width: 540px; line-height: 1.8; margin-top: 18px; font-size: 1rem; }

/* ── controls: search + category chips ── */
.b-controls { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 40px 0 28px; }
.b-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.b-chip { padding: 7px 16px; font-size: .7rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--border); color: var(--gray3); transition: all .2s var(--ease); }
.b-chip:hover, .b-chip.active { background: var(--lime); color: var(--black); border-color: var(--lime); }
.b-search { position: relative; }
.b-search input { background: var(--gray2); border: 1px solid var(--border); color: var(--cream);
  padding: 10px 16px 10px 38px; font-size: .85rem; width: 240px; outline: none; transition: border-color .2s; font-family: var(--ff-b); }
.b-search input:focus { border-color: rgba(200,241,53,.4); }
.b-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--gray3); }

/* ── shared meta row ── */
.b-eyebrow { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.b-metarow { display: flex; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .04em; color: var(--gray3); }
.b-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray4); flex-shrink: 0; }

/* ── featured ── */
.b-featured { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--border); background: var(--gray2);
  margin-bottom: 2px; text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.b-featured:hover { border-color: rgba(200,241,53,.3); transform: translateY(-4px); }
.b-fimg { position: relative; min-height: 360px; background: #0c0c0c; overflow: hidden; }
.b-fimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.b-featured:hover .b-fimg img { transform: scale(1.04); }
.b-flag { position: absolute; top: 18px; left: 18px; z-index: 2; background: var(--lime); color: var(--black);
  font-size: .6rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 12px; }
.b-fbody { padding: 46px; display: flex; flex-direction: column; justify-content: center; }
.b-fbody h2 { font-family: var(--ff-d); font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.02; letter-spacing: .02em; color: var(--cream); margin: 14px 0 14px; }
.b-fbody p { color: var(--gray3); line-height: 1.75; font-size: .96rem; margin-bottom: 22px; }

/* ── card grid ── */
.b-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.b-card { display: flex; flex-direction: column; background: var(--gray2); border: 1px solid var(--border);
  text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.b-card:hover { border-color: rgba(200,241,53,.3); transform: translateY(-4px); }
.b-cimg { position: relative; aspect-ratio: 16 / 10; background: #0c0c0c; overflow: hidden; }
.b-cimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.b-card:hover .b-cimg img { transform: scale(1.05); }
.b-cnoimg { aspect-ratio: 16 / 10; background: linear-gradient(135deg, #141414, #0c0c0c); position: relative; overflow: hidden; }
.b-cnoimg::after { content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(200,241,53,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(200,241,53,.05) 1px, transparent 1px);
  background-size: 26px 26px; }
.b-cbody { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.b-card h3 { font-family: var(--ff-d); font-size: 1.5rem; line-height: 1.04; letter-spacing: .02em; color: var(--cream); margin: 12px 0 10px; }
.b-card p { color: var(--gray3); font-size: .88rem; line-height: 1.65; flex: 1; }
.b-card .b-metarow { margin-top: 20px; }
.b-hidden { display: none; }
.b-loadmore { text-align: center; margin-top: 40px; }
.b-empty { padding: 64px; text-align: center; color: var(--gray3); border: 1px solid var(--border); background: var(--gray2); }
.no-results { display: none; padding: 48px; text-align: center; color: var(--gray3); }

/* ── article ── */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-back { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gray3); transition: color .2s; }
.article-back:hover { color: var(--lime); }
.article-hero { padding: 30px 0 6px; }
.article-hero h1 { font-family: var(--ff-d); font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .98; letter-spacing: .02em; margin: 14px 0 18px; }
.article-cover { width: 100%; border: 1px solid var(--border); margin: 26px 0 6px; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.prose { font-size: 1.08rem; line-height: 1.85; color: #d8d3c8; padding: 26px 0 8px; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-family: var(--ff-d); font-size: 1.95rem; letter-spacing: .02em; color: var(--cream); margin: 38px 0 12px; line-height: 1.1; }
.prose h3 { font-family: var(--ff-d); font-size: 1.45rem; letter-spacing: .02em; color: var(--cream); margin: 30px 0 10px; }
.prose p { margin: 0 0 22px; }
.prose ul, .prose ol { margin: 0 0 22px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--cream); }
.prose blockquote { border-left: 2px solid var(--lime); padding: 4px 0 4px 22px; margin: 0 0 22px; color: var(--cream); font-style: italic; }
.prose img { max-width: 100%; border: 1px solid var(--border); margin: 10px 0 22px; }

/* author + share */
.author-box { display: flex; gap: 16px; align-items: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; margin: 26px 0; }
.author-av { width: 52px; height: 52px; border-radius: 50%; background: rgba(200,241,53,.1); border: 1px solid rgba(200,241,53,.3);
  display: flex; align-items: center; justify-content: center; font-family: var(--ff-d); font-size: 1.3rem; color: var(--lime); flex-shrink: 0; }
.author-box .a-name { font-family: var(--ff-d); font-size: 1.1rem; letter-spacing: .04em; color: var(--cream); }
.author-box .a-role { font-size: .82rem; color: var(--gray3); }
.article-cta { margin: 36px 0; padding: 36px; border: 1px solid var(--border); background: var(--gray2); text-align: center; }
.article-cta h3 { font-family: var(--ff-d); font-size: 1.8rem; letter-spacing: .02em; margin: 0 0 8px; }
.article-cta p { color: var(--gray3); margin: 0 0 20px; font-size: .92rem; }

/* related */
.related { margin-top: 64px; }
.related .rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 22px; }
.rel-card { display: block; background: var(--gray2); border: 1px solid var(--border); padding: 24px; text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.rel-card:hover { border-color: rgba(200,241,53,.3); transform: translateY(-4px); }
.rel-card h4 { font-family: var(--ff-d); font-size: 1.2rem; line-height: 1.08; letter-spacing: .02em; color: var(--cream); margin: 10px 0 0; }

/* reveal-on-scroll (lightweight, no dependency on marketing scripts) */
.b-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.b-reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1000px) {
  .b-grid, .related .rel-grid { grid-template-columns: repeat(2, 1fr); }
  .b-featured { grid-template-columns: 1fr; }
  .b-fimg { min-height: 240px; }
}
@media (max-width: 640px) {
  .b-grid, .related .rel-grid { grid-template-columns: 1fr; }
  .b-fbody { padding: 30px; }
  .b-controls { flex-direction: column; align-items: stretch; }
  .b-search input { width: 100%; }
}
