/* =========================================
   Blog Post SCSS (Bootstrap 5 companion)
   Updated to use sass:color (no deprecated color funcs)
========================================= */
/* -------- Tokens -------- */
/* Breakpoints */
/* Utilities */
/* Root defaults (safe overrides) */
:root {
  --content-max: 100%;
  --sidebar-max: 320px;
}

body {
  color: #212529;
  font-size: 1rem;
  text-rendering: optimizeLegibility;
}

/* =========================================
   Blog Wrapper
========================================= */
.blog-article {
  max-width: var(--content-max);
  margin-inline: auto;
}
.blog-article h1, .blog-article h2 {
  scroll-margin-top: 80px;
}

/* =========================================
   Post Meta
========================================= */
.post-meta {
  color: #6c757d;
  font-size: clamp(0.9rem, 1.5vw, 0.95rem);
}
.post-meta img {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.post-meta span, .post-meta time {
  white-space: nowrap;
}

/* =========================================
   Hero
========================================= */
.post-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #f5f6f7;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================
   Post Body
========================================= */
.post-body {
  max-width: var(--content-max);
}
.post-body p {
  margin: 0 0 1rem;
  line-height: 1.75;
}
.post-body .lead {
  font-size: clamp(1.02rem, 2.2vw, 1.2rem);
  color: #212529;
}
.post-body h1, .post-body h2, .post-body h3, .post-body h4, .post-body h5, .post-body h6 {
  font-weight: 800;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
}
.post-body h1 {
  font-size: clamp(1.6rem, 3.6vw, 2.25rem);
}
.post-body h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}
.post-body h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}
.post-body h4, .post-body h5, .post-body h6 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}
.post-body a {
  color: #0d6efd;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-body a:hover {
  text-decoration-thickness: 2px;
}
.post-body strong {
  font-weight: 800;
}
.post-body em {
  font-style: italic;
}
.post-body ul, .post-body ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}
.post-body ul li, .post-body ol li {
  margin: 0.35rem 0;
}
.post-body .list-unstyled {
  padding-left: 0;
}
.post-body .list-unstyled li {
  list-style: none;
}
.post-body figure {
  margin: 1.25rem 0;
}
.post-body img, .post-body video {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}
.post-body iframe {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.post-body pre, .post-body code, .post-body kbd, .post-body samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.post-body pre {
  padding: 1rem;
  background: #0d1117;
  color: #c9d1d9;
  border-radius: 0.5rem;
  overflow: auto;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  line-height: 1.6;
}
.post-body pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
.post-body code {
  background: #f3f4f6;
  padding: 0.1rem 0.35rem;
  border-radius: 0.375rem;
  font-size: 0.95em;
}
.post-body table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.post-body table th, .post-body table td {
  padding: 0.75rem;
  border: 1px solid #e9ecef;
  vertical-align: top;
}
.post-body table th {
  background: #f8f9fa;
  font-weight: 700;
}
.post-body table tr:nth-child(even) td {
  background: #fcfcfd;
}
.post-body blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 0.25rem solid #0d6efd;
  color: #212529;
}
.post-body blockquote p:last-child {
  margin-bottom: 0;
}
.post-body hr {
  border: 0;
  height: 1px;
  background: #e9ecef;
  margin: 2rem 0;
}

/* =========================================
   Sidebar
========================================= */
.sticky-aside {
  position: sticky;
  top: 90px;
}
.sticky-aside .card {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
}

/* Tags */
.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #f1f3f5;
  border-radius: 999px;
  font-size: 0.875rem;
  color: #212529;
  transition: background-color 0.2s ease;
}
.tag:hover {
  background: #e9ecef;
}

/* Share buttons */
.share a.btn, .share button.btn {
  border-radius: 0.375rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* =========================================
   Header/Footer polish
========================================= */
/* =========================================
   Responsive tweaks
========================================= */
@media (max-width: 1200px) {
  .blog-article {
    padding-inline: 0.25rem;
  }
}
@media (max-width: 768px) {
  .post-meta {
    gap: 0.5rem;
  }
  .post-hero {
    border-radius: 0.5rem;
  }
}
/* =========================================
   Dark mode (prefers-color-scheme)
========================================= */
@media (prefers-color-scheme: dark) {
  .post-meta {
    color: #b5b8bd;
  }
  .post-hero {
    background: #0f1217;
  }
  .post-body a {
    color: rgb(53.4655737705, 134.2459016393, 253.3344262295);
  }
  .post-body code {
    background: #1b1f24;
    color: #cbd5e1;
  }
  .post-body table th, .post-body table td {
    border-color: #2a2f36;
  }
  .post-body table th {
    background: #12161c;
  }
  .post-body table tr:nth-child(even) td {
    background: #0f1318;
  }
  .post-body blockquote {
    border-left-color: rgb(63.5819672131, 140.3073770492, 253.4180327869);
  }
  .post-body hr {
    background: #2a2f36;
  }
  .sticky-aside .card {
    background: #0f1318;
    border-color: #1b2027;
  }
  .tag {
    background: #1b2027;
    color: #e9ecef;
  }
  .tag:hover {
    background: #232a33;
  }
}

/*# sourceMappingURL=blog.css.map */
