@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,600,700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #050506;
  --card: #303028;
  --text: #f5f4f0;
  --muted: #B0B0A8;
  --border: #505048;
  --primary: #32CD32;
  --accent: #FF4500;
  --gold: #FFD700;
  --radius: 0.75rem;
  --gradient: linear-gradient(90deg, #FF4500, #FFD700, #32CD32);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 740px; margin: 0 auto; padding: 0 2rem; }

/* ── Header ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
header.scrolled {
  background: rgba(5,5,6,0.85);
  backdrop-filter: blur(12px);
  border-color: var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo img { height: 28px; width: auto; }
.logo-text { font-family: 'Satoshi', sans-serif; font-weight: 700; font-size: 1.125rem; color: var(--text); letter-spacing: 0.05em; }
nav { display: flex; align-items: center; gap: 2rem; }
nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
nav a:hover, nav a.active { color: var(--text); }
.btn-primary {
  background: var(--primary); color: #000; font-weight: 600; font-size: 0.875rem;
  padding: 0.5rem 1.25rem; border-radius: var(--radius); text-decoration: none;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

/* ── Blog index ── */
.blog-hero { padding: 8rem 0 3rem; }
.blog-hero h1 { font-family: 'Satoshi', sans-serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 0.75rem; }
.blog-hero p { color: var(--muted); font-size: 1.125rem; }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.posts-grid { display: grid; gap: 1.5rem; padding: 2rem 0 6rem; }
.post-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; text-decoration: none; color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}
.post-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.post-meta { font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.75rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.post-tag { background: rgba(50,205,50,0.12); color: var(--primary); border-radius: 999px; padding: 0.15rem 0.6rem; font-size: 0.75rem; font-weight: 500; }
.post-card h2 { font-family: 'Satoshi', sans-serif; font-size: 1.375rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.3; }
.post-card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }
.read-more { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.25rem; font-size: 0.875rem; font-weight: 600; color: var(--primary); }
.read-more::after { content: '→'; }

/* ── Article ── */
.article-header { padding: 8rem 0 3rem; border-bottom: 1px solid var(--border); }
.article-header .tag-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.article-header h1 { font-family: 'Satoshi', sans-serif; font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.2; margin-bottom: 1.25rem; }
.article-meta { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.article-meta span { font-size: 0.875rem; color: var(--muted); }
.author { display: flex; align-items: center; gap: 0.5rem; }
.author-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--primary); }

.article-body { padding: 3rem 0 6rem; }
.article-body p { margin-bottom: 1.5rem; color: var(--text); line-height: 1.8; font-size: 1.0625rem; }
.article-body h2 { font-family: 'Satoshi', sans-serif; font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.article-body h3 { font-family: 'Satoshi', sans-serif; font-size: 1.1875rem; font-weight: 600; margin: 2rem 0 0.75rem; }
.article-body strong { color: #fff; font-weight: 600; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.article-body blockquote { border-left: 3px solid var(--primary); padding: 1rem 1.5rem; background: rgba(50,205,50,0.06); border-radius: 0 var(--radius) var(--radius) 0; margin: 2rem 0; }
.article-body blockquote p { margin: 0; font-style: italic; color: var(--text); }
.stat-callout { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem 2rem; margin: 2rem 0; }
.stat-callout .stat-number { font-family: 'Satoshi', sans-serif; font-size: 3rem; font-weight: 700; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 0.25rem; }
.stat-callout .stat-label { font-size: 0.9375rem; color: var(--muted); }

.author-bio {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; margin: 2.5rem 0 2rem;
}
.author-bio-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--gradient); display: flex; align-items: center; justify-content: center;
  font-family: 'Satoshi', sans-serif; font-size: 0.875rem; font-weight: 700; color: #000;
}
.author-bio-name { font-weight: 600; margin-bottom: 0.25rem; }
.author-bio-body p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.6; }
.author-bio-body a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); transition: border-color 0.2s; }
.author-bio-body a:hover { border-color: var(--primary); }

.article-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: gap; padding: 2rem 0; border-top: 1px solid var(--border); gap: 1rem; }
.back-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.back-link:hover { color: var(--text); }
.back-link::before { content: '←'; }
.share-links { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; color: var(--muted); }
.share-links a { color: var(--muted); text-decoration: none; transition: color 0.2s; font-weight: 500; }
.share-links a:hover { color: var(--text); }

/* ── Footer ── */
footer { border-top: 1px solid var(--border); background: rgba(5,5,6,0.5); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 0 2rem; }
.footer-brand p { font-size: 0.875rem; color: var(--muted); margin-top: 1rem; max-width: 220px; line-height: 1.6; }
.footer-col h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 1.5rem 0; font-size: 0.875rem; color: var(--muted); text-align: center; }

@media (max-width: 768px) {
  nav { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
