/* Override bamboo.css defaults with minimal custom CSS */
body {
  max-width: 90ch;
}

:root {
  --accent-pink: #ff006e;
  --accent-blue: #0066ff;
}

/* Navigation styling */
a[aria-current="true"] { 
  text-decoration: underline;
}

nav { 
  display: flex; 
  gap: 2rem;
  margin-top: 1rem;
}

header { 
   margin-bottom: 3rem;
}

.blog-subtitle {
  font-style: italic;
  color: var(--b-txt);
  opacity: 0.75;
  margin: 0.5rem 0 0 0;
  font-size: 0.95rem;
}

/* Syntax highlighting colors for code blocks */
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-section, .hljs-link {
  color: var(--accent-pink);
}

.hljs-string, .hljs-title, .hljs-name, .hljs-type, .hljs-attribute, 
.hljs-symbol, .hljs-bullet, .hljs-addition, .hljs-variable, 
.hljs-template-tag, .hljs-template-variable {
  color: #4ade80;
}

.hljs-comment, .hljs-quote, .hljs-deletion, .hljs-meta {
  color: var(--b-txt);
  opacity: 0.6;
}

.hljs-number, .hljs-regexp, .hljs-literal, .hljs-link {
  color: #fbbf24;
}

.hljs-function .hljs-title {
  color: var(--accent-blue);
}

/* Code block enhancements */
pre {
  transition: all 0.3s ease;
}

pre:hover {
  border-color: var(--accent-pink);
  transform: translateY(-2px);
}

/* Inline code */
:not(pre) > code {
  background: rgba(255, 0, 110, 0.1);
  color: var(--accent-pink);
}

/* Year grouping */
.all-posts {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.year-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.year-heading {
  font-size: 1.75rem;
  font-weight: bold;
  color: var(--b-txt);
  margin: 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--b-line);
}

/* Posts list - minimal styling using bamboo.css defaults */
.posts-list { 
  display: flex; 
  flex-direction: column; 
  gap: 1.5rem;
}

.post-card {
  padding: 1rem;
  border: none;
  border-left: 3px solid var(--b-line);
  border-radius: 0;
  transition: all 0.3s ease;
}

.post-card:hover {
  border-left-color: var(--accent-pink);
  padding-left: 1.25rem;
}

.post-header {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: var(--b-txt);
  opacity: 0.6;
}

.post-date {
  font-size: 0.875rem;
  color: var(--b-txt);
  opacity: 0.6;
}

.post-reading-time {
  font-size: 0.875rem;
  color: var(--b-txt);
  opacity: 0.6;
}

.post-title {
  display: block;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--b-link);
  text-decoration: none;
  margin-bottom: 0.5rem;
}

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

.post-description {
  margin: 0.5rem 0 0;
  color: var(--b-txt);
  opacity: 0.7;
  font-size: 0.95rem;
  font-style: italic;
}
