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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: #0d1117;
  color: #e6edf3;
  min-height: 100vh;
  padding: 2rem;
  line-height: 1.7;
}

a {
  color: #58a6ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Layout */
.container {
  max-width: 720px;
  margin: 0 auto;
}

/* Header / Nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #21262d;
}

.site-header .logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #e6edf3;
}

.site-header .logo span {
  color: #58a6ff;
}

.site-header nav a {
  color: #8b949e;
  margin-left: 1.5rem;
  font-size: 0.9rem;
}

.site-header nav a:hover {
  color: #e6edf3;
}

/* Blog index */
.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: #8b949e;
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

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

.post-list li {
  margin-bottom: 1.25rem;
}

.post-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid #21262d;
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
}

.post-card:hover {
  border-color: #58a6ff;
  background: rgba(88, 166, 255, 0.05);
  text-decoration: none;
}

.post-card .post-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #e6edf3;
  margin-bottom: 0.35rem;
}

.post-card .post-meta {
  font-size: 0.8rem;
  color: #484f58;
  margin-bottom: 0.5rem;
}

.post-card .post-excerpt {
  color: #8b949e;
  font-size: 0.95rem;
}

/* Tag pills */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.1);
  color: #58a6ff;
  font-weight: 500;
}

/* Post page */
.post-header {
  margin-bottom: 2.5rem;
}

.post-header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.post-header .post-meta {
  color: #484f58;
  font-size: 0.85rem;
}

.post-body h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: #e6edf3;
}

.post-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: #e6edf3;
}

.post-body p {
  margin-bottom: 1.25rem;
  color: #c9d1d9;
}

.post-body ul, .post-body ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.post-body li {
  margin-bottom: 0.4rem;
  color: #c9d1d9;
}

.post-body strong {
  color: #e6edf3;
}

.post-body code {
  font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  background: #161b22;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: #e6edf3;
}

.post-body pre {
  background: #161b22;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-body pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
  line-height: 1.6;
}

.post-body blockquote {
  border-left: 3px solid #58a6ff;
  padding-left: 1rem;
  margin-bottom: 1.25rem;
  color: #8b949e;
  font-style: italic;
}

.post-body img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #21262d;
  margin: 1rem 0;
}

.post-body .callout {
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.post-body .callout p:last-child {
  margin-bottom: 0;
}

/* Tables */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.post-body table td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #21262d;
  color: #c9d1d9;
}

.post-body table td:first-child {
  color: #8b949e;
  font-weight: 500;
  white-space: nowrap;
}

.post-body table td:last-child {
  font-family: 'SF Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.85rem;
}

/* Post nav */
.post-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #21262d;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid #21262d;
  color: #484f58;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    padding: 1.25rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .post-header h1 {
    font-size: 1.6rem;
  }
}
