:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --muted: #888;
  --accent: #4fc3f7;
  --font: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Fira Code", monospace;
}

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

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

.container { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

header {
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  margin-bottom: 3rem;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.tagline { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

.back {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.back:hover { color: var(--accent); }

main { flex: 1; }

/* Index */
.post-list { display: flex; flex-direction: column; gap: 2.5rem; }

.post-list article { border-bottom: 1px solid var(--border); padding-bottom: 2.5rem; }
.post-list article:last-child { border-bottom: none; }

.post-list time {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--mono);
}

.post-list h2 { margin-top: 0.5rem; font-size: 1.2rem; font-weight: 600; }
.post-list h2 a { color: var(--text); text-decoration: none; transition: color 0.15s; }
.post-list h2 a:hover { color: var(--accent); }
.post-list p { color: var(--muted); margin-top: 0.5rem; font-size: 0.95rem; }

/* Post */
.post time { font-size: 0.8rem; color: var(--muted); font-family: var(--mono); }
.post h1 { font-size: 1.8rem; font-weight: 700; margin-top: 0.5rem; margin-bottom: 2rem; line-height: 1.3; }

.content h2 { font-size: 1.15rem; font-weight: 600; margin: 2rem 0 0.75rem; color: var(--accent); }
.content h3 { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
.content p { margin-bottom: 1rem; }
.content ul, .content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.content li { margin-bottom: 0.25rem; }
.content strong { color: #fff; }
.content em { color: var(--muted); }
.content a { color: var(--accent); text-decoration: none; }
.content a:hover { text-decoration: underline; }
.content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  margin: 1.5rem 0;
  color: var(--muted);
  background: var(--surface);
  border-radius: 0 4px 4px 0;
}
.content code {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--surface);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: var(--accent);
}
.content pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.content pre code { background: none; padding: 0; }
.content hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: 4rem;
  color: var(--muted);
  font-size: 0.85rem;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
  header { padding: 1.5rem 0; margin-bottom: 2rem; }
  .post h1 { font-size: 1.4rem; }
}
