/* kfa-default — minimal dark theme */

:root {
  --bg: #0f0f0f;
  --bg-secondary: #1a1a1a;
  --text: #e0e0e0;
  --text-muted: #888;
  --accent: #6C63FF;
  --border: #2a2a2a;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 720px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}
.site-header nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-title {
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.site-title:hover { text-decoration: none; color: var(--accent); }
.nav-links { display: flex; gap: 1.5rem; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Main */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Posts list */
.posts { display: flex; flex-direction: column; gap: 2.5rem; }
.post-summary time {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.post-summary h2 {
  font-size: 1.3rem;
  margin: 0.3rem 0;
}
.post-summary h2 a { color: var(--text); }
.post-summary h2 a:hover { color: var(--accent); }
.post-summary p {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

/* Tags */
.tags { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.tag {
  background: var(--bg-secondary);
  color: var(--text-muted);
  padding: 0.15rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8rem;
}

/* Single post */
.post-header { margin-bottom: 2rem; }
.post-header time {
  color: var(--text-muted);
  font-size: 0.85rem;
}
.post-header h1 {
  font-size: 1.8rem;
  margin: 0.5rem 0;
  line-height: 1.3;
}
.post-content {
  font-family: var(--font-sans);
  font-size: 1rem;
}
.post-content h2 {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  margin: 2rem 0 1rem;
}
.post-content h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
}
.post-content p { margin-bottom: 1rem; }
.post-content ul, .post-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.post-content li { margin-bottom: 0.3rem; }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--text-muted);
  margin: 1rem 0;
}
.post-content code {
  background: var(--bg-secondary);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.post-content pre {
  background: var(--bg-secondary);
  padding: 1.2rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1rem 0;
}
.post-content pre code {
  background: none;
  padding: 0;
}
.post-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 1rem 0;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}
.post-content th, .post-content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.post-content th {
  background: var(--bg-secondary);
  font-family: var(--font-mono);
}

/* Project grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.project-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.2rem;
}
.project-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.project-card p {
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.project-meta { display: flex; gap: 0.75rem; align-items: center; }
.status {
  font-size: 0.8rem;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
}
.status-active { background: #1a3a1a; color: #4ade80; }
.status-wip { background: #3a3a1a; color: #facc15; }
.status-planned { background: #1a1a3a; color: #818cf8; }
.repo-link { font-size: 0.85rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  .site-header { padding: 1rem; }
  main { padding: 2rem 1rem; }
  .post-header h1 { font-size: 1.4rem; }
  .project-grid { grid-template-columns: 1fr; }
}
