/* Arbor Minimal Theme */

:root {
  --text-color: #2d3748;
  --text-muted: #718096;
  --bg-color: #ffffff;
  --link-color: #3182ce;
  --border-color: #e2e8f0;
  --max-width: 680px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #e2e8f0;
    --text-muted: #a0aec0;
    --bg-color: #1a202c;
    --link-color: #63b3ed;
    --border-color: #4a5568;
  }
}

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

html {
  font-size: 18px;
  line-height: 1.7;
}

body {
  font-family: var(--font-sans);
  color: var(--text-color);
  background: var(--bg-color);
  padding: 2rem 1.5rem;
  width: 65%;
  min-width: 320px;
  margin: 0 auto;
}

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

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}

.site-description {
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

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

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 1.5rem;
  font-size: 0.9rem;
}

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

.social-links {
  margin-top: 0.75rem;
}

.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin-right: 1rem;
  font-size: 0.85rem;
}

.social-links a:hover {
  color: var(--link-color);
}

/* Content */
.site-content {
  min-height: 50vh;
}

/* Posts List */
.post-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
  align-items: baseline;
}

.post-item time {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  min-width: 90px;
}

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

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

.collab-badge {
  background: linear-gradient(135deg, rgba(107, 99, 82, 0.15), rgba(107, 99, 82, 0.05));
  color: #6B6352;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

@media (prefers-color-scheme: dark) {
  .collab-badge {
    color: #A09882;
  }
}

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

.post-title {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.post-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-content {
  font-family: var(--font-serif);
}

.post-content h2 {
  font-family: var(--font-sans);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.post-content h3 {
  font-family: var(--font-sans);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

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

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

.post-content blockquote {
  border-left: 3px solid var(--border-color);
  margin: 1.5rem 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-style: italic;
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

@media (prefers-color-scheme: dark) {
  .post-content code {
    background: rgba(255, 255, 255, 0.1);
  }
}

.post-content pre {
  background: rgba(0, 0, 0, 0.05);
  padding: 1rem;
  border-radius: 4px;
  overflow-x: auto;
  margin: 1.5rem 0;
}

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

@media (prefers-color-scheme: dark) {
  .post-content pre {
    background: rgba(255, 255, 255, 0.05);
  }
}

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

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

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

  .post-item {
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }

  .post-title {
    font-size: 1.6rem;
  }
}
