:root {
  --bg-main: #090d16;
  --bg-card: #0f172a;
  --bg-card-hover: #172033;
  --bg-code: #131d31;
  --border: #1e293b;
  --border-subtle: #182234;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.12);
  --accent-purple: #818cf8;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: #7dd3fc;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
}
.brand-accent {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text-main);
}
.nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  color: var(--text-main) !important;
  font-size: 0.85rem !important;
}
.nav-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

/* Main */
.site-main {
  flex: 1;
  padding-top: 48px;
  padding-bottom: 72px;
}

/* Hero */
.hero {
  margin-bottom: 56px;
}
.hero-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-glow);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 14px;
}
.hero-bio {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
}

/* Sections */
.section {
  margin-bottom: 64px;
}
.section-header {
  margin-bottom: 24px;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  margin-top: 4px;
}

/* Ventures Grid */
.ventures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .ventures-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
}
.venture-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}
.venture-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}
.venture-domain {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.venture-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.venture-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.venture-link {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 14px;
}

/* Essays List */
.essay-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.essay-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: all 0.15s ease;
  display: block;
  text-decoration: none;
}
.essay-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}
.essay-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.essay-part {
  color: var(--accent);
  font-weight: 600;
}
.essay-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 8px;
}
.essay-card:hover .essay-title {
  color: var(--accent);
}
.essay-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Article Page Typography */
.article-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.article-breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.article-breadcrumbs a {
  color: var(--text-muted);
}
.article-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.article-meta-row {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.article-content {
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.75;
}
.article-content h1 { display: none; }
.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 48px;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.article-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 32px;
  margin-bottom: 12px;
}
.article-content p {
  margin-bottom: 20px;
  color: #cbd5e1;
}
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 12px 20px;
  background: var(--bg-card);
  border-radius: 0 6px 6px 0;
  margin: 28px 0;
  color: #e2e8f0;
  font-style: italic;
}
.article-content blockquote p { margin-bottom: 0; }
.article-content ul, .article-content ol {
  margin: 20px 0 24px 24px;
  color: #cbd5e1;
}
.article-content li {
  margin-bottom: 8px;
}
.article-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-code);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: #7dd3fc;
}
.article-content pre {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  overflow-x: auto;
  margin: 28px 0;
}
.article-content pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: #e2e8f0;
  font-size: 0.9em;
}
.article-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.article-content strong {
  color: #ffffff;
}

/* Post Footer CTA */
.post-cta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin-top: 56px;
}
.post-cta h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}
.post-cta p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}
.post-cta-links {
  display: flex;
  gap: 12px;
}
.btn-primary {
  background: var(--accent);
  color: #090d16 !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
}
.btn-primary:hover {
  background: #7dd3fc;
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main) !important;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  color: var(--text-muted);
}
.footer-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.footer-links {
  display: flex;
  gap: 16px;
}
.footer-links a {
  color: var(--text-dim);
}
.footer-links a:hover {
  color: var(--text-main);
}
@media (max-width: 640px) {
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }
}