/* Color palette */
:root {
  --primary-blue: #0055aa;
  --accent-orange: #e67e22;
  --accent-green: #27ae60;
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #888;
  --border-light: #eee;
  --bg-code: #f8f9fa;
  --bg-quote: #f9f9f9;
}

body {
  font-family: Georgia, serif;
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.6;
  color: var(--text-primary);
}

h1, h2, h3 {
  font-family: "Helvetica Neue", sans-serif;
  color: #222;
}

h1 {
  margin-bottom: 2rem;
}

h2 {
  margin: 2.5rem 0 1rem 0;
  font-size: 1.4rem;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 0.5rem;
}

h3 {
  margin: 2rem 0 1rem 0;
  font-size: 1.2rem;
  color: var(--text-primary);
}

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

a:hover {
  color: var(--accent-orange);
  text-decoration: underline;
}

.index-section {
  margin-bottom: 3rem;
}

.section-description {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

/* Code styling */
code {
  background: var(--bg-code);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
  color: var(--text-primary);
}

pre {
  background: var(--bg-code);
  padding: 1rem;
  border-radius: 6px;
  overflow-x: auto;
  border: 1px solid var(--border-light);
  margin: 1.5rem 0;
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 0.85em;
}

/* Blockquote styling */
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--bg-quote);
  border-left: 4px solid var(--accent-orange);
  font-style: italic;
  color: var(--text-secondary);
}

blockquote p {
  margin: 0;
}

blockquote p:last-child {
  margin-bottom: 0;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.post-list .date {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: "Helvetica Neue", sans-serif;
  display: inline-block;
  width: 5.5rem;
  margin-right: 1rem;
}

.post-list a {
  font-weight: 500;
  font-size: 1.05rem;
}

.tags {
  margin-left: 1rem;
  font-size: 0.85rem;
}

.tags a {
  color: var(--text-secondary);
  background: #f5f5f5;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.3rem;
  font-weight: normal;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.tags a:hover {
  background: var(--accent-orange);
  color: white;
  text-decoration: none;
}

.tag-cloud {
  line-height: 2;
}

.tag-cloud .tag {
  background: #f0f0f0;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  margin: 0.2rem 0.3rem 0.2rem 0;
  display: inline-block;
  font-size: 0.9rem;
  color: #555;
}

.tag-cloud .tag:hover {
  background: var(--accent-orange);
  color: white;
  text-decoration: none;
}

/* Post metadata (postamble) styling */
#postamble {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: "Helvetica Neue", sans-serif;
}

.status {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.status p {
  margin: 0;
  display: flex;
  align-items: center;
}

.status .date::before {
  content: "📅 ";
  margin-right: 0.3rem;
}

.status .author::before {
  content: "✍️ ";
  margin-right: 0.3rem;
}
