/* GhostCode blog — long-form article + index pages.
   Loaded alongside ghostcode.css; reuses its :root tokens (--bg, --gold, fonts). */

.blog-main { padding-top: 120px; padding-bottom: 96px; min-height: 72vh; position: relative; }

/* soft gold glow behind the header so the page doesn't read empty */
.blog-main::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(900px, 90vw); height: 420px; pointer-events: none; z-index: -1;
  background: radial-gradient(60% 60% at 50% 0%, rgba(201,148,62,0.10), transparent 70%);
}

.blog-label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 14px; }

/* ── index header ── */
.blog-head { max-width: 720px; margin: 0 auto 44px; }
.blog-head h1 { font-family: var(--sans); font-size: clamp(34px, 6vw, 54px); font-weight: 600; letter-spacing: -0.6px; line-height: 1.1; margin-bottom: 14px; color: var(--cream); }
.blog-head p { color: var(--text-dim); font-size: 17px; line-height: 1.65; max-width: 620px; }

/* ── index post list ── */
.post-list { max-width: 720px; margin: 0 auto; display: grid; gap: 16px; }
.post-card { display: block; padding: 28px 30px; background: var(--bg-card); border: 1px solid rgba(201,148,62,0.10); border-radius: 12px; transition: border-color 0.3s, background 0.3s, transform 0.3s; }
.post-card:hover { border-color: rgba(201,148,62,0.28); background: var(--bg-card-hover); transform: translateY(-2px); opacity: 1; }
.post-card .uc-label { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; margin-bottom: 10px; }
.post-card h2 { font-family: var(--sans); font-size: clamp(20px, 3.4vw, 26px); font-weight: 600; letter-spacing: -0.3px; line-height: 1.25; margin-bottom: 8px; color: var(--cream); }
.post-card p { color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* ── article ── */
.post { max-width: 720px; margin: 0 auto; }
.post-header { margin-bottom: 40px; }
.post-header h1 { font-family: var(--sans); font-size: clamp(30px, 5.4vw, 48px); font-weight: 600; line-height: 1.12; letter-spacing: -0.6px; color: var(--cream); margin-bottom: 16px; }
.post-meta { font-family: var(--mono); font-size: 12px; color: var(--text-dim); letter-spacing: 1px; }
.post-header::after { content: ''; display: block; width: 100%; height: 1px; margin-top: 32px; background: linear-gradient(90deg, var(--gold-dim), transparent); }

.post-body { font-size: 17px; line-height: 1.78; color: var(--text); }
.post-body p { margin-bottom: 22px; }
.post-body h2 { font-family: var(--sans); font-size: clamp(22px, 3.4vw, 30px); font-weight: 600; letter-spacing: -0.3px; line-height: 1.25; color: var(--cream); margin: 46px 0 14px; }
.post-body a { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(201,148,62,0.4); text-underline-offset: 3px; }
.post-body a:hover { text-decoration-color: var(--gold); opacity: 1; }
.post-body strong { color: var(--cream); font-weight: 600; }
.post-body ul { list-style: none; margin: 0 0 22px; padding: 0; }
.post-body li { position: relative; padding-left: 26px; margin-bottom: 13px; color: var(--text); line-height: 1.7; }
.post-body li::before { content: '//'; position: absolute; left: 0; top: 0; color: var(--gold-dim); font-family: var(--mono); font-size: 13px; }

/* ── article CTA ── */
.post-cta { margin-top: 52px; padding: 36px 32px; border: 1px solid rgba(201,148,62,0.18); border-radius: 14px; background: var(--gold-glow); text-align: center; }
.post-cta .blog-label { margin-bottom: 10px; }
.post-cta h2 { font-family: var(--sans); font-size: clamp(20px, 3.4vw, 26px); font-weight: 600; color: var(--cream); margin-bottom: 12px; letter-spacing: -0.3px; }
.post-cta p { color: var(--text-dim); font-size: 15px; line-height: 1.6; max-width: 460px; margin: 0 auto 22px; }
.post-cta .store-buttons { justify-content: center; }

.post-back { display: inline-block; margin-top: 44px; font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.post-back:hover { color: var(--gold); opacity: 1; }
.post-back::before { content: '← '; }
