:root {
  --primary-color: #1E3A8A;
  --bg-light:      #f9fafb;
  --border-light:  #ccd0da;
  --text-dark:     #111827;
  --text-light:    #4B5563;
}

/* Container */
.blog-read-page {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  color: var(--text-dark);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Header */
.post-header h1 {
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
  line-height: 1.2;
  color: var(--primary-color);
}
.post-meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.post-meta a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
}
.post-image img {
  width: 100%;
  border-radius: 6px;
  margin: 1.5rem 0;
}

/* Tags */
.post-tags {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}
.post-tags li {
  display: inline-block;
  margin-right: 0.5rem;
}
.post-tags a {
  background: var(--border-light);
  color: var(--primary-color);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.85rem;
}

/* Body styling */
.post-body h2, .post-body h3, .post-body h4 {
  margin-top: 2rem;
  color: var(--primary-color);
}
.post-body p {
  margin: 1rem 0;
  line-height: 1.6;
  display:inline;
}
.post-body img {
  max-width: 100%;
  display: block;
  margin: 1.5rem auto;
}

/* Blockquote */
.post-body blockquote {
  border-left: 4px solid var(--border-light);
  margin: 1.5rem 0;
  padding-left: 1rem;
  color: var(--text-light);
  font-style: italic;
}

/* Code and Pre */
.post-body pre {
  position: relative;
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 1rem 1rem 1rem 2.5rem;
  border-radius: 6px;
  overflow-x: auto;
  counter-reset: line;
  margin: 1.5rem 0;
}
.post-body pre code {
  background: none;
  padding: 0;
  display: block;
  white-space: pre;
}
/* Line numbers */
.post-body pre code span.cl {
  display:block;
  counter-increment: line;
  padding-left: 1rem;
}
.post-body pre code span.cl::before {
  content: counter(line);
  position:absolute;
  left:0.5rem;
  width:2rem;
  text-align:right;
  color:#888;
}



/* Inline code */
.post-body code {
  background: #eef0f3;
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

/* Lists */
.post-body ul, .post-body ol {
  margin: 1rem 0 1rem 1.5rem;
}
.post-body ul li::marker {
  color: var(--primary-color);
}

/* Tables */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.post-body th, .post-body td {
  border: 1px solid var(--border-light);
  padding: 0.6rem 1rem;
  text-align: left;
}
.post-body th {
  background: var(--border-light);
}

/* Center wrapper & highlight (if used) */
.post-body .text-center {
  text-align: center;
  margin: 1.5rem 0;
}
.post-body mark {
  background: #fffa8b;
  padding: 0.1em 0.2em;
}
