/* ============================================
   SIMON VELA — Dark Theme
   Minimalistisch. Dunkel. Feuer-Akzente.
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-hover: #1a1a1a;
  --text: #e0e0e0;
  --text-muted: #888888;
  --text-dim: #555555;
  --fire: #ff6b35;
  --fire-glow: #ff8c5a;
  --fire-dark: #cc4400;
  --ember: #ff4444;
  --gold: #ffaa00;
  --link: #ff6b35;
  --link-hover: #ff8c5a;
  --border: #222222;
  --code-bg: #161616;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --max-width: 720px;
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- HEADER --- */
header {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

header .container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-title:hover {
  color: var(--fire);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--fire);
}

/* --- MAIN --- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  flex: 1;
  width: 100%;
}

/* --- HERO (Homepage) --- */
.hero {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--fire), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- POST LIST --- */
.post-list {
  list-style: none;
}

.post-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.post-item:last-child {
  border-bottom: none;
}

.post-item a {
  text-decoration: none;
  display: block;
}

.post-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
  transition: color 0.2s;
}

.post-item a:hover .post-title {
  color: var(--fire);
}

.post-meta {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}

.post-summary {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* --- SINGLE POST --- */
article h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

article .meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

article .content {
  font-size: 1rem;
}

article .content p {
  margin-bottom: 1.5rem;
}

article .content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: var(--fire-glow);
}

article .content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.8rem;
  color: var(--text);
}

article .content a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

article .content a:hover {
  color: var(--link-hover);
}

article .content blockquote {
  border-left: 3px solid var(--fire);
  padding: 0.5rem 1.2rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: 0 4px 4px 0;
}

article .content code {
  background: var(--code-bg);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--fire-glow);
}

article .content pre {
  background: var(--code-bg);
  padding: 1.2rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

article .content pre code {
  background: none;
  padding: 0;
  color: var(--text);
}

article .content ul, article .content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

article .content li {
  margin-bottom: 0.4rem;
}

article .content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

article .content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 1.5rem 0;
}

/* --- TAGS --- */
.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tag {
  background: var(--bg-card);
  color: var(--text-muted);
  padding: 0.2rem 0.7rem;
  border-radius: 3px;
  font-size: 0.75rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.tag:hover {
  border-color: var(--fire);
  color: var(--fire);
}

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

footer .fire {
  color: var(--fire);
}

/* --- RESPONSIVE --- */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 1.8rem; }
  article h1 { font-size: 1.5rem; }
  header .container { flex-direction: column; gap: 0.8rem; }
  nav a { margin-left: 0; margin-right: 1rem; }
}
