/* GitHub Pages Blog Styles */
:root {
  --primary: #0969da;
  --bg: #ffffff;
  --bg-secondary: #f6f8fa;
  --text: #24292f;
  --text-secondary: #57606a;
  --border: #d0d7de;
  --code-bg: #f6f8fa;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

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

header h1 a {
  font-size: 28px;
  color: var(--text);
  text-decoration: none;
}

header h1 a:hover { color: var(--primary); }

nav {
  margin-top: 16px;
  font-size: 14px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  margin-right: 20px;
}

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

main { padding-bottom: 60px; }

.post-list { list-style: none; }

.post-list li {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

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

.post-list h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.post-list h2 a {
  color: var(--primary);
  text-decoration: none;
}

.post-list h2 a:hover { text-decoration: underline; }

.post-list .date {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.post-list .excerpt {
  color: var(--text-secondary);
  font-size: 15px;
}

.post-meta {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.post-content h1 { font-size: 32px; margin: 32px 0 16px; }
.post-content h2 { font-size: 24px; margin: 28px 0 12px; }
.post-content h3 { font-size: 20px; margin: 24px 0 8px; }
.post-content p { margin: 16px 0; }
.post-content ul, .post-content ol { margin: 16px 0; padding-left: 24px; }
.post-content li { margin: 8px 0; }
.post-content a { color: var(--primary); }
.post-content a:hover { text-decoration: underline; }

.post-content pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.5;
}

.post-content code {
  font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content blockquote {
  border-left: 4px solid var(--border);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-secondary);
}

.post-content img {
  max-width: 100%;
  border-radius: 6px;
  margin: 16px 0;
}

.github-link {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  margin: 24px 0;
}

.github-link a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.github-link a:hover { text-decoration: underline; }

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover { text-decoration: underline; }

footer {
  text-align: center;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  header h1 a { font-size: 22px; }
  .post-content h1 { font-size: 26px; }
  .post-content h2 { font-size: 20px; }
}
