@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Roboto+Mono&display=swap');

:root {
  --text-color: #333;
  --secondary-color: #666;
  --link-color: #0066cc;
  --bg-color: #fff;
  --accent-color: #f70;
  --date-color: #888;
  --max-width: 800px;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.8;
  /* Increased for better readability */
  letter-spacing: -0.01em;
  /* Slight letter spacing refinement */
  color: var(--text-color);
  background-color: var(--bg-color);
  padding: 3rem 1.5rem;
  /* More top/side breathing room */
  font-weight: 400;
  /* Ensuring it's not too thick */
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-section a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-section img {
  width: 42px;
  height: 42px;
  display: block;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: #333;
  line-height: 1;
  /* Match line height to help vertical center */
}

nav a {
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 0.95rem;
}

nav a:hover {
  text-decoration: underline;
}

/* Blog list items */
.post-list {
  list-style: none;
}

.post-item {
  margin-bottom: 2.5rem;
}

.post-date {
  font-size: 0.85rem;
  color: var(--date-color);
  margin-bottom: 0.25rem;
  display: block;
}

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

.post-link:hover {
  text-decoration: underline;
}

.post-snippet {
  font-size: 1rem;
  color: #111;
  max-width: 90%;
}

/* Individual Post content */
.post-content {
  margin-top: 3rem;
  font-size: 1.05rem;
  /* Refined from default large size */
  font-weight: 350;
  /* Thinner, more elegant feel */
}

.post-content p {
  margin-bottom: 1.75rem;
  /* Generous spacing between paragraphs */
}

.post-content h1,
.post-content h2,
.post-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
}

.post-header h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Code & Syntax Highlighting */
pre, code {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
}

code {
  padding: 0.2rem 0.4rem;
  background-color: #f6f8fa;
  border-radius: 4px;
  color: #d13531;
}

pre {
  background-color: #f6f8fa;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid #eaecef;
}

pre code {
  background-color: transparent;
  padding: 0;
  color: #24292e;
  border-radius: 0;
}

.highlight {
  background: #f6f8fa;
  border-radius: 8px;
  margin: 2rem 0;
  padding: 1.5rem;
  overflow-x: auto;
}

/* Syntax Highlighting Colors (Rouge) */
.highlight .k { color: #d73a49; } /* Keyword (from, import) */
.highlight .n { color: #24292e; } /* Name */
.highlight .nc { color: #6f42c1; } /* Name.Class (BPETrainer) */
.highlight .nn { color: #24292e; } /* Name.Namespace (microtok) */
.highlight .c1 { color: #6a737d; font-style: italic; } /* Comment (trainer for BPE) */
.highlight .s2 { color: #032f62; } /* String.Double */
.highlight .kd { color: #d73a49; } /* Keyword.Declaration */
.highlight .kn { color: #d73a49; } /* Keyword.Namespace */

.post-meta {
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 3rem 0;
}

/* Footer Styling */
.site-footer {
  margin-top: 5rem;
  padding: 3rem 0;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  color: var(--secondary-color);
  font-size: 0.95rem;
}

.footer-col {
  flex: 1;
}

.footer-col.center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.footer-col.right {
  text-align: right;
}

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

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #444;
  /* Keep footer links separate from main blue links */
  text-decoration: none;
}

.footer-links svg {
  fill: #888;
  flex-shrink: 0;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-links a:hover svg {
  fill: var(--link-color);
}