@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --bg: #0c0c0e;
  --surface: #141418;
  --border: #23232a;
  --text: #e4e4e7;
  --text-dim: #8b8b94;
  --accent: #506e86;
  --accent-dim: #3d5568;
  --code-bg: #1a1a22;
  --success: #22c55e;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ── */
header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span { color: var(--text-dim); }

.header-yt a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.header-yt a:hover { color: var(--accent); }

/* ── Homepage ── */
.hero {
  padding: 60px 0 40px;
}

.hero h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero p {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 540px;
}

.posts-grid {
  padding: 0 0 80px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.post-card {
  display: block;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.post-card:hover {
  border-color: var(--accent-dim);
  background: #18181e;
}

.post-card h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 4px;
}

.post-card .meta {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ── Post Page ── */
.post-header {
  padding: 48px 0 24px;
}

.post-header .breadcrumb {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.post-header .breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

.post-header h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.post-header .post-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* Video embed */
.video-wrap {
  margin: 24px 0 32px;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Fix content */
.fix-content {
  padding-bottom: 80px;
}

.fix-content h2 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--accent);
}

.fix-content p {
  margin-bottom: 16px;
  color: var(--text);
}

.fix-content ol, .fix-content ul {
  margin: 0 0 16px 24px;
  color: var(--text);
}

.fix-content li {
  margin-bottom: 8px;
}

.fix-content code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--code-bg);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 0.88em;
  color: var(--accent);
}

.fix-content .step-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 4px;
  margin-bottom: 16px;
}

/* CTA */
.channel-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  text-align: center;
  margin: 40px 0;
}

.channel-cta p {
  color: var(--text-dim);
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.channel-cta a {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s;
}

.channel-cta a:hover {
  background: #6a8ba3;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-dim);
}

footer a { color: var(--accent); text-decoration: none; }

/* Mobile */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.3rem; }
  .post-header h1 { font-size: 1.2rem; }
  .post-card h2 { font-size: 0.85rem; }
}
