/* Orion Forge blog: shared styles for /blog/. Palette matches soulscript-engine.html. */
:root {
  --bg-primary: #080c1a; --bg-card: rgba(13,18,36,.7); --bg-glass: rgba(255,255,255,.03);
  --border-glass: rgba(255,255,255,.08); --border-glow: rgba(99,102,241,.3);
  --primary: #6366f1; --primary-light: #818cf8; --accent: #a78bfa;
  --cyan: #22d3ee; --emerald: #34d399; --amber: #fbbf24;
  --text-primary: #f1f5f9; --text-secondary: rgba(241,245,249,.74); --text-muted: rgba(241,245,249,.5);
  --gradient-primary: linear-gradient(135deg,#6366f1 0%,#8b5cf6 50%,#a78bfa 100%);
  --radius: 16px; --radius-sm: 10px;
  --font-sans: 'Inter',-apple-system,BlinkMacSystemFont,system-ui,sans-serif;
  --font-mono: 'JetBrains Mono','Fira Code',monospace;
}
*,*::before,*::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-secondary);
  line-height: 1.75; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(ellipse at 20% 0%,rgba(99,102,241,.10) 0%,transparent 55%),
                    radial-gradient(ellipse at 90% 10%,rgba(139,92,246,.08) 0%,transparent 50%);
  background-attachment: fixed;
}
a { color: var(--primary-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
.wrap { max-width: 740px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 980px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
  background: rgba(8,12,26,.82); border-bottom: 1px solid var(--border-glass); }
.topbar-inner { max-width: 980px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-primary); white-space: nowrap; }
.brand i { color: var(--amber); }
.brand img { height: 44px; width: auto; display: block; }
.topbar nav { display: flex; align-items: center; gap: 18px; font-size: .9rem; font-weight: 500; }
.topbar nav a { color: var(--text-secondary); white-space: nowrap; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--text-primary); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .9rem; border: 1px solid var(--border-glass); background: var(--bg-glass);
  color: var(--text-primary); transition: .2s; }
.btn:hover { border-color: var(--border-glow); transform: translateY(-1px); color: var(--text-primary); }
.btn.primary { background: var(--gradient-primary); border: none; }

/* Blog index */
.blog-hero { padding: 64px 0 34px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary-light); margin-bottom: 12px; }
.blog-hero h1 { font-size: clamp(2.1rem,5vw,3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--text-primary); margin-bottom: 14px; }
.blog-hero p { font-size: 1.12rem; max-width: 640px; }
.post-list { display: grid; gap: 16px; padding-bottom: 56px; }
.post-card { display: block; background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius);
  padding: 24px 26px; color: var(--text-secondary); transition: border-color .2s, transform .2s; }
.post-card:hover { border-color: var(--border-glow); transform: translateY(-2px); color: var(--text-secondary); }
.post-card h2 { font-size: 1.35rem; line-height: 1.3; font-weight: 700; color: var(--text-primary); letter-spacing: -.01em; margin: 6px 0 8px; }
.post-card p { font-size: .98rem; }

/* Post */
.meta { font-size: .85rem; color: var(--text-muted); }
.post-head { padding: 56px 0 26px; border-bottom: 1px solid var(--border-glass); margin-bottom: 30px; }
.post-head h1 { font-size: clamp(2rem,5vw,2.9rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; color: var(--text-primary); margin: 2px 0 14px; }
.post-head .dek { font-size: 1.15rem; margin-bottom: 14px; }
article h2 { font-size: clamp(1.35rem,3vw,1.65rem); font-weight: 750; line-height: 1.25; letter-spacing: -.01em; color: var(--text-primary); margin: 40px 0 12px; scroll-margin-top: 72px; }
article h3 { font-size: 1.1rem; font-weight: 700; line-height: 1.35; color: var(--text-primary); margin: 26px 0 8px; }
article p { margin-bottom: 16px; }
article ul, article ol { margin: 0 0 18px 22px; }
article li { margin-bottom: 8px; padding-left: 2px; }
article li::marker { color: var(--primary-light); }
article strong { color: var(--text-primary); font-weight: 600; }
article a { text-decoration: underline; text-decoration-color: var(--border-glow); text-underline-offset: 3px; }
article img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border-glass); margin: 10px 0 22px; display: block; }
code { font-family: var(--font-mono); font-size: .86em; background: rgba(255,255,255,.06); border-radius: 5px; padding: 2px 5px; color: var(--text-primary); }
pre { background: #050814; border: 1px solid var(--border-glass); border-radius: var(--radius-sm); padding: 16px 18px; overflow-x: auto; margin: 6px 0 22px; line-height: 1.6; }
pre code { background: none; padding: 0; font-size: .82rem; color: #d7ddf0; }
.table-wrap { overflow-x: auto; margin: 6px 0 22px; border: 1px solid var(--border-glass); border-radius: var(--radius-sm); }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .92rem; line-height: 1.55; }
th { text-align: left; color: var(--text-primary); font-weight: 600; background: var(--bg-glass); }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--border-glass); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.callout { margin: 8px 0 24px; padding: 16px 18px; border-radius: var(--radius-sm); border-left: 3px solid var(--primary); background: rgba(99,102,241,.07); }
.callout p:last-child { margin-bottom: 0; }

/* Example block (soul script samples) */
.sample { background: var(--bg-card); border: 1px solid var(--border-glass); border-radius: var(--radius-sm); padding: 18px 20px; margin: 6px 0 24px; font-size: .95rem; }
.sample dt { color: var(--text-primary); font-weight: 600; margin-top: 12px; }
.sample dt:first-child { margin-top: 0; }

.crumbs { font-size: .85rem; color: var(--text-muted); margin-bottom: 12px; }
.crumbs span { margin: 0 4px; }
.callout.answer { margin: 0 0 26px; }
pre.template { white-space: pre-wrap; overflow-wrap: anywhere; }
article h2:first-of-type { margin-top: 34px; }

/* End of post */
.post-cta { margin: 44px 0 0; padding: 24px 26px; background: var(--bg-card); border: 1px solid var(--border-glow); border-radius: var(--radius); }
.post-cta h2 { margin: 0 0 8px; font-size: 1.25rem; }
.post-cta .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.post-cta a { text-decoration: none; }
.post-cta.fix-cta { margin: 0 0 30px; }
.post-cta.fix-cta h2 { margin-top: 0; }
.post-video { max-width: 300px; margin: 28px auto 6px; }
.post-cta .post-video { margin: 18px auto 18px; }
.post-video video { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border-glass); background: #000; }
.post-video figcaption { text-align: center; font-size: .85rem; color: var(--text-muted); margin-top: 8px; }
.post-cta.fix-cta ul { margin-bottom: 12px; }
.sources { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--border-glass); font-size: .88rem; }
.sources h2 { font-size: 1rem; margin: 0 0 10px; }
.sources li { margin-bottom: 6px; }
.related { margin: 36px 0 56px; }
.related h2 { font-size: 1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.related .post-card { padding: 16px 20px; margin-bottom: 10px; }
.related .post-card h3 { font-size: 1.02rem; color: var(--text-primary); font-weight: 600; line-height: 1.4; }

/* Footer */
footer { border-top: 1px solid var(--border-glass); padding: 30px 0; text-align: center; }
.footer-links { display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; font-size: .9rem; }
.footer-bottom { color: var(--text-muted); font-size: .82rem; }

@media (max-width: 560px) {
  .topbar nav { gap: 12px; font-size: .84rem; }
  .blog-hero { padding: 44px 0 26px; }
  .post-head { padding: 38px 0 22px; }
  .post-card { padding: 20px; }
  table { min-width: 0; font-size: .86rem; }
  th, td { padding: 9px 10px; }
}
