/*
Theme Name: RepoAnswers Blog
Theme URI: https://blog.repoanswers.com
Author: RepoAnswers / Siteskyline
Author URI: https://repoanswers.com
Description: Ultra-fast, lightweight, bloat-free WordPress theme for blog.repoanswers.com, crafted to match the exact design, typography, header, and footer of RepoAnswers.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
Text Domain: repoanswers-blog
*/

/* Reset & CSS Custom Properties */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #F8FAFC;
  --fg: #0F172A;
  --muted: #64748B;
  --line: #E2E8F0;
  --card: #FFFFFF;
  --card2: #F1F5F9;
  --accent: #3382b9;
  --accent2: #25638f;
  --accent-soft: #E7F1F8;
  --radius: 14px;
  --radius-lg: 20px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }
.tight { font-family: 'Inter Tight', sans-serif; }

/* Subtle Grain Effect */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* Layout Containers */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
@media (min-width: 768px) {
  .wrap {
    padding: 0 32px;
  }
}

.wrap-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
@media (min-width: 768px) {
  .wrap-narrow {
    padding: 0 32px;
  }
}

/* Section Spacing */
.section-spacing {
  padding-top: 40px;
  padding-bottom: 48px;
}
@media (min-width: 768px) {
  .section-spacing {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

/* Header & Navigation (100% identical to homepage) */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 768px) {
  .nav-inner {
    height: 64px;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 17.5px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--fg);
}
@media (min-width: 768px) {
  .brand-name {
    font-size: 18.5px;
  }
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  color: var(--accent2);
  border: 1px solid rgba(51, 130, 185, 0.2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 2px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (min-width: 1024px) {
  .nav-desktop {
    gap: 22px;
  }
}
.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active {
  color: var(--fg);
}
.nav-link.active {
  font-weight: 600;
  color: var(--accent);
}

.nav-mobile-actions {
  display: none;
}
.nav-mobile-drawer {
  display: none;
}

@media (max-width: 960px) {
  .nav-desktop {
    display: none !important;
  }
  .nav-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .nav-toggle {
    background: var(--card2);
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fg);
    cursor: pointer;
    transition: all 0.15s;
  }
  .nav-toggle:hover {
    background: #e2e8f0;
  }
  .nav-mobile-drawer {
    display: none;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 14px 16px 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  }
  .nav-mobile-drawer.open {
    display: block;
    animation: ra-nav-slide 0.2s ease-out forwards;
  }
  .nav-drawer-links {
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .drawer-link {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--fg);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s;
  }
  .drawer-link:hover, .drawer-link:active, .drawer-link.active {
    background: var(--accent-soft);
    color: var(--accent2);
  }
}
@keyframes ra-nav-slide {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Buttons (100% same as homepage) */
.btn-dark {
  font-family: 'Inter Tight', sans-serif;
  height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff !important;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0,0,0,.2), 0 4px 12px rgba(0,0,0,.15);
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .btn-dark {
    height: 38px;
    padding: 0 20px;
    font-size: 13.5px;
  }
}
.btn-dark:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  color: #fff;
}
.btn-dark:active {
  transform: scale(0.98);
}

.btn-light {
  height: 36px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .btn-light {
    height: 38px;
    padding: 0 18px;
  }
}
.btn-light:hover {
  border-color: var(--accent);
  background: var(--card2);
  color: var(--accent);
}

/* Hero / Catalogue Header */
.blog-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% -20%, var(--accent-soft) 0%, transparent 70%);
}
@media (min-width: 768px) {
  .blog-hero {
    padding: 64px 0 48px;
  }
}
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.hero-gradient {
  color: var(--accent);
  display: inline-block;
}
.blog-hero h1 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(28px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 14px;
}
.blog-hero p {
  color: var(--muted);
  font-size: clamp(14.5px, 2.5vw, 16.5px);
  max-width: 58ch;
  line-height: 1.6;
}

/* Category Filter Bar & Search */
.catalogue-toolbar {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .catalogue-toolbar {
    flex-direction: row;
    align-items: center;
    margin-top: 36px;
  }
}
.cat-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.cat-pill {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-pill:hover, .cat-pill.active {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}
.cat-pill.active {
  font-weight: 600;
}

.blog-search-form {
  position: relative;
  width: 100%;
  max-width: 280px;
}
.blog-search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px 0 34px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-family: 'Inter', sans-serif;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.blog-search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  display: flex;
}

/* Featured Post Card */
.featured-post-card {
  margin-top: 36px;
  margin-bottom: 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
@media (min-width: 900px) {
  .featured-post-card {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.featured-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
}
.featured-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .featured-content {
    padding: 40px 36px;
  }
}
.featured-img-wrap {
  background: var(--accent-soft);
  position: relative;
  min-height: 220px;
  overflow: hidden;
}
.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.featured-post-card:hover .featured-img-wrap img {
  transform: scale(1.03);
}

/* Catalogue Post Grid (Exact 3-col grid style inspired by homepage) */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}
@media (min-width: 640px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.post-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
}
.post-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.post-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--card2);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}
.post-card-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.post-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--line);
}
.post-category {
  color: var(--accent);
  font-weight: 600;
}

.post-card-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.25;
  margin-bottom: 10px;
}
.post-card:hover .post-card-title {
  color: var(--accent);
}

.post-card-excerpt {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}
.read-link {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.15s ease;
}
.post-card:hover .read-link {
  transform: translateX(3px);
  color: var(--accent2);
}

/* Pagination */
.pagination-wrap {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s ease;
}
.page-numbers:hover {
  background: var(--card2);
  color: var(--fg);
  border-color: #cbd5e1;
}
.page-numbers.current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}
.page-numbers.dots {
  border: none;
  background: transparent;
}

/* Single Post Page Layout */
.single-post-hero {
  padding: 40px 0 28px;
}
@media (min-width: 768px) {
  .single-post-hero {
    padding: 60px 0 36px;
  }
}
.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--muted);
}
.breadcrumb a:hover {
  color: var(--fg);
}
.breadcrumb-sep {
  color: #94a3b8;
}

.single-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(30px, 5.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 18px;
}

.single-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.author-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.author-details {
  display: flex;
  flex-direction: column;
}
.author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
}
.post-date-read {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
}

.share-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: all 0.15s;
  cursor: pointer;
}
.share-btn:hover {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}

.single-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.single-featured-image img {
  width: 100%;
  height: auto;
}

/* Post Typography & Content (Clean, Beautiful & Legible) */
.post-content {
  font-size: 16.5px;
  line-height: 1.8;
  color: #1e293b;
}
.post-content p {
  margin-bottom: 24px;
}
.post-content h2 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--fg);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.2;
}
.post-content h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-top: 36px;
  margin-bottom: 12px;
  line-height: 1.3;
}
.post-content h4 {
  font-family: 'Inter Tight', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-top: 28px;
  margin-bottom: 10px;
}
.post-content ul, .post-content ol {
  margin: 0 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.post-content li {
  padding-left: 4px;
}
.post-content blockquote {
  margin: 32px 0;
  padding: 18px 24px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #1e293b;
}
.post-content blockquote p:last-child {
  margin-bottom: 0;
}
.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.post-content a:hover {
  color: var(--accent2);
}
.post-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  background: var(--card2);
  color: #0f172a;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.post-content pre {
  margin: 28px 0;
  background: #0f172a;
  color: #e2e8f0;
  padding: 18px 20px;
  border-radius: 12px;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  position: relative;
}
.post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border: none;
  font-size: inherit;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.post-content th, .post-content td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.post-content th {
  background: var(--card2);
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  color: var(--fg);
}
.post-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

/* Post Tags */
.post-tags {
  margin-top: 40px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.post-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  transition: all 0.15s;
}
.post-tag:hover {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}

/* Product CTA Card inside blog post */
.blog-product-cta {
  margin: 48px 0;
  background: linear-gradient(135deg, #12141C 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.15);
}
@media (min-width: 768px) {
  .blog-product-cta {
    padding: 48px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
}
.blog-product-cta h3 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 10px;
}
.blog-product-cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  max-width: 48ch;
  line-height: 1.6;
}
.blog-product-cta .btn-cta {
  margin-top: 20px;
  height: 42px;
  padding: 0 22px;
  font-size: 14px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(51, 130, 185, 0.4);
  transition: all 0.2s ease;
  text-decoration: none;
}
@media (min-width: 768px) {
  .blog-product-cta .btn-cta {
    margin-top: 0;
  }
}
.blog-product-cta .btn-cta:hover {
  background: #25638f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(51, 130, 185, 0.6);
}

/* Author Box */
.author-box {
  margin-top: 48px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.author-box-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.author-box-avatar img {
  border-radius: 999px;
}
.author-box-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 750;
  color: var(--fg);
  margin-bottom: 4px;
}
.author-box-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Post Navigation (Prev/Next) */
.post-nav {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .post-nav {
    grid-template-columns: 1fr 1fr;
  }
}
.post-nav-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s;
}
.post-nav-card:hover {
  border-color: #cbd5e1;
  background: var(--card2);
}
.post-nav-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
}
.post-nav-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fg);
}

/* Related Posts */
.related-posts {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.related-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}

/* Clean Comments */
.comments-area {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
.comments-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  font-weight: 750;
  margin-bottom: 24px;
  color: var(--fg);
}
.comment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}
.comment-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.comment-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 700;
}
.comment-author img {
  width: 28px;
  height: 28px;
  border-radius: 999px;
}
.comment-metadata {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.comment-content {
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
}

/* Comment Form */
.comment-respond {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.comment-reply-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 750;
  margin-bottom: 16px;
}
.comment-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comment-form label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--fg);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--fg);
  outline: none;
  transition: border-color 0.15s;
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--accent);
}
.comment-form-cookies-consent {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-submit input[type="submit"] {
  height: 38px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  padding: 0 20px;
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.form-submit input[type="submit"]:hover {
  background: var(--accent2);
}

/* Footer (100% identical to homepage) */
.footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 40px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
@media (min-width: 640px) {
  .footer {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    margin-top: 80px;
    padding-top: 32px;
    padding-bottom: 48px;
  }
}
.footer a {
  color: var(--muted);
  transition: color 0.2s;
}
.footer a:hover {
  color: var(--fg);
}
