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

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-hover: #1a1a1a;
  --border: #2a2a2a;
  --text: #e0e0e0;
  --text-dim: #888;
  --accent: #ffd700;
  --accent-dim: #b8960f;
  --radius: 8px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-dim);
}

/* Layout */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.site-title {
  font-size: 18px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

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

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--text);
}


/* Hero */
.hero {
  padding: 60px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero p {
  color: var(--text-dim);
  font-size: 15px;
}

/* Post List */
.post-list {
  padding-bottom: 60px;
}

.post-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.post-card:hover {
  border-color: var(--accent);
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.post-card-date {
  font-size: 13px;
  color: var(--text-dim);
}

.post-card-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 215, 0, 0.1);
  color: var(--accent);
  font-weight: 500;
}

.post-card h2 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.post-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.post-card-arrow {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
}

/* Post Page */
.post-header {
  padding: 48px 0 32px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}

.post-back:hover {
  color: var(--accent);
}

.post-header h1 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.post-meta-tag {
  font-size: 12px;
  padding: 2px 10px;
  border-radius: 4px;
  background: rgba(255, 215, 0, 0.1);
  color: var(--accent);
  font-weight: 500;
}

/* Post Content */
.post-content {
  padding-bottom: 60px;
}

.post-content h2 {
  font-size: 22px;
  color: #fff;
  margin: 32px 0 12px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.post-content h3 {
  font-size: 18px;
  color: #fff;
  margin: 24px 0 10px;
  font-weight: 600;
}

.post-content p {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text);
}

.post-content ul,
.post-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.post-content li {
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--text);
}

.post-content strong {
  color: #fff;
  font-weight: 600;
}

.post-content em {
  color: var(--text-dim);
}

.post-content blockquote {
  background: rgba(255, 215, 0, 0.06);
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-dim);
}

.post-content code {
  background: rgba(255, 215, 0, 0.1);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.post-content pre code {
  background: none;
  color: var(--text);
  padding: 0;
  font-size: 13px;
  line-height: 1.7;
}

.post-content img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

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

.post-content a:hover {
  color: var(--accent-dim);
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* About Page */
.about-content {
  padding: 48px 0 60px;
}

.about-content h1 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.about-content p {
  margin-bottom: 16px;
  font-size: 15px;
  color: var(--text);
}

.about-links {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.about-link {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
}

.about-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  color: var(--text-dim);
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 0;
  color: var(--text-dim);
}

.empty-state p {
  font-size: 15px;
}

/* Responsive */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 40px 0 32px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .post-card {
    padding: 20px;
  }

  .post-card h2 {
    font-size: 16px;
  }

  .post-header h1 {
    font-size: 24px;
  }

  .post-meta {
    flex-wrap: wrap;
    gap: 8px;
  }

  .about-links {
    flex-direction: column;
  }
}
