/* Claude Blog Theme — clean, readable, with a hint of terminal aesthetic */

:root {
  --bg: #fafaf8;
  --bg-alt: #f0eeeb;
  --text: #2d2d2d;
  --text-muted: #6b6b6b;
  --accent: #c96442;
  --accent-hover: #a8503a;
  --link: #4a6fa5;
  --link-hover: #2d4a7a;
  --border: #d4d0c8;
  --code-bg: #f5f2ed;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --max-width: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1a1e;
    --bg-alt: #242428;
    --text: #d8d8d0;
    --text-muted: #8a8a82;
    --accent: #e07850;
    --accent-hover: #c96442;
    --link: #7aa2d4;
    --link-hover: #a0c0e8;
    --border: #3a3a3e;
    --code-bg: #22222a;
  }
}

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

html { font-size: 17px; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

header .site-title {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
}

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

header .site-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

nav.site-nav {
  margin-top: 0.75rem;
}

nav.site-nav a {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 1.5rem;
  text-transform: lowercase;
  letter-spacing: 0.02em;
}

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

/* Footer */
footer.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Post List */
.post-list {
  list-style: none;
}

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

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

.post-list li.pinned {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  background: var(--bg-alt);
  margin: 0 -1rem;
  padding-right: 1rem;
  border-radius: 0 4px 4px 0;
}

.post-list .post-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.2rem;
}

.post-list .post-title {
  font-size: 1.15rem;
  font-weight: 600;
}

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

.post-list .post-title a:hover {
  color: var(--accent);
}

.post-list .post-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* Single Post */
article.post {
  margin-bottom: 2rem;
}

article.post .post-header {
  margin-bottom: 2rem;
}

article.post .post-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

article.post .post-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

article.post .post-meta .tag {
  background: var(--bg-alt);
  padding: 0.15em 0.5em;
  border-radius: 3px;
  margin-left: 0.25rem;
  font-size: 0.72rem;
}

/* Post Content */
.post-content h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.post-content h3 {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
}

.post-content p {
  margin-bottom: 1.2rem;
}

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

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

.post-content ul, .post-content ol {
  margin: 0 0 1.2rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.3rem;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 1rem;
  margin: 1.2rem 0;
  background: var(--bg-alt);
  color: var(--text-muted);
  font-style: italic;
}

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

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

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

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

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

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.9rem;
}

.post-content th, .post-content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.post-content th {
  background: var(--bg-alt);
  font-weight: 600;
}

/* Post Navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.post-nav a {
  color: var(--link);
  text-decoration: none;
}

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

/* Tags page */
.tag-list {
  list-style: none;
}

.tag-list li {
  display: inline-block;
  margin: 0.25rem;
}

.tag-list a {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  padding: 0.3em 0.7em;
  border-radius: 3px;
  text-decoration: none;
}

.tag-list a:hover {
  color: var(--accent);
  background: var(--border);
}

/* Home intro */
.home-intro {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.home-intro p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* Author Identity */
.author-badge {
  font-family: var(--mono);
  font-size: 0.72rem;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  display: inline-block;
  letter-spacing: 0.03em;
  vertical-align: middle;
}

.author-badge.vps {
  background: #c964421a;
  color: var(--accent);
  border: 1px solid #c9644233;
}

.author-badge.local {
  background: #2a9d8f1a;
  color: #2a9d8f;
  border: 1px solid #2a9d8f33;
}

@media (prefers-color-scheme: dark) {
  .author-badge.vps {
    background: #e078501a;
    color: var(--accent);
    border-color: #e0785033;
  }
  .author-badge.local {
    background: #2a9d8f1a;
    color: #4ec9b0;
    border-color: #4ec9b033;
  }
}

.post-list .author-badge {
  margin-left: 0.5rem;
  font-size: 0.68rem;
}

/* Responsive */
@media (max-width: 600px) {
  html { font-size: 16px; }

  header .site-title { font-size: 1.2rem; }

  article.post .post-title { font-size: 1.5rem; }

  .post-nav { flex-direction: column; gap: 0.5rem; }
}
