:root {
  --bg-primary: #000000;
  --bg-secondary: rgba(255, 255, 255, 0.04);
  --bg-tertiary: rgba(255, 255, 255, 0.06);
  --text-primary: #ffffff;
  --text-secondary: #9b9ca2;
  --text-muted: #6e7078;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --accent-purple: #5e6ad2;
  --accent-purple-light: #8b93f7;
  --accent-glow: rgba(94, 106, 210, 0.4);
  --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(ellipse at 25% 15%, rgba(94, 106, 210, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 75%, rgba(94, 106, 210, 0.05) 0%, transparent 45%);
}

.bg-grid {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-purple);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo-text {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-purple);
}

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.nav-link::before {
  content: '$ ';
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-purple);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav-link:hover::before,
.nav-link:hover {
  opacity: 1;
  color: var(--text-primary);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 64px;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-avatar-container {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  box-shadow: 0 0 40px rgba(94, 106, 210, 0.3);
}

.hero-name {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--text-primary);
  font-weight: 600;
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-text {
  flex: 1;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-purple);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-greeting::before {
  content: '>';
  color: var(--accent-purple);
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -2px;
  font-family: var(--font-mono);
}

.hero-title-prefix {
  color: var(--text-primary);
}

.hero-title-text {
  color: var(--accent-purple-light);
}

.typing-cursor {
  color: var(--accent-purple);
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-purple-light) 100%);
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--bg-secondary);
}

.card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.card:hover::before {
  opacity: 1;
}

.section-title {
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
  font-family: var(--font-mono);
}

.section-title-combined {
  color: var(--text-primary);
}

.sub-cursor {
  color: var(--accent-purple);
  animation: blink 1s infinite;
}

.hero-link-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
}

.link-prefix {
  color: var(--accent-purple);
}

.hero-link {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.hero-link:hover {
  color: var(--accent-purple);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.about-text {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.skill-item:hover::before {
  opacity: 1;
}

.skill-item:hover::after {
  opacity: 1;
}

.skill-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 20px;
  color: var(--text-secondary);
}

.skill-name {
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.3px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.project-card:hover {
  text-decoration: none;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.link-icon {
  width: 18px;
  text-align: center;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover::before {
  opacity: 1;
}

.project-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.project-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 20px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.project-meta {
  flex: 1;
}

.project-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.project-language {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-stats {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.project-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-stats i {
  font-size: 14px;
}

.view-repo {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-purple);
  transition: color 0.2s ease;
}

.project-card:hover .view-repo {
  color: var(--accent-purple-light);
}

.contact-card {
  text-align: center;
  padding: 64px 32px;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text-secondary);
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-email::before {
  content: 'mailto:';
  color: var(--accent-purple);
}

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: all 0.3s ease;
}

.menu-icon::before,
.menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

.menu-icon::before {
  top: -8px;
}

.menu-icon::after {
  top: 8px;
}

.menu-toggle.active .menu-icon {
  background: transparent;
}

.menu-toggle.active .menu-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.active .menu-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hero-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }

  .hero-avatar {
    width: 150px;
    height: 150px;
  }

  .hero-title {
    font-size: 40px;
  }

  .about-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  section {
    padding: 80px 0;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .section-title {
    font-size: 32px;
  }

  .hero-link-line {
    font-size: 12px;
    word-break: break-all;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-avatar {
    width: 120px;
    height: 120px;
  }

  .section-title {
    font-size: 28px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .skill-item,
  .project-card {
    padding: 20px;
  }

  section {
    padding: 60px 0;
  }

  .hero-subtitle {
    font-size: 14px;
  }
}

/* --- Linear & CLI Animations & Blog Styles --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

.cli-cursor {
  display: inline-block;
  width: 12px;
  height: 1em;
  background-color: var(--accent-purple);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 4px;
}

/* Blog Filters (Tags & Categories) */
.blog-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.filter-group {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

@media (max-width: 600px) {
  .filter-group {
    flex-direction: column;
    gap: 8px;
  }
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-purple);
  white-space: nowrap;
  padding-top: 6px;
}

.filter-label::before {
  content: '$ ';
  color: var(--text-muted);
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.tag-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.tag-pill.active {
  background: rgba(94, 106, 210, 0.15);
  border-color: var(--accent-purple);
  color: var(--accent-purple-light);
  box-shadow: 0 0 12px rgba(94, 106, 210, 0.2);
}

.tag-pill.category {
  border-radius: 6px;
}

/* Post Item Enhancements */
.post-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.post-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.post-item:hover {
  border-color: var(--border-subtle);
  background: rgba(255, 255, 255, 0.01);
}

.post-item:hover::before {
  opacity: 1;
}

.post-item > * {
  position: relative;
  z-index: 1;
}

.post-item-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-item-tags {
  display: flex;
  gap: 6px;
}

.post-item-tags .tag-pill {
  padding: 2px 8px;
  font-size: 11px;
  cursor: default;
}

.post-item-tags .tag-pill:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

/* Post Page Enhancements */
.post-meta-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.post-meta-header .post-date {
  margin-bottom: 0;
}

.post-meta-header .divider {
  color: var(--border-subtle);
}

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(94, 106, 210, 0.9);
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(94, 106, 210, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  box-shadow: 0 8px 30px rgba(94, 106, 210, 0.5);
}

.back-to-top.visible {
  display: flex;
}

.blog-hero {
  min-height: auto;
  padding-top: 120px;
  padding-bottom: 60px;
}

.blog-section {
  padding: 0 0 120px 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-profile {
  text-align: center;
  padding-bottom: 16px;
}

.sidebar-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  margin: 0 auto 16px;
}

.sidebar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-name {
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 16px;
}

.sidebar-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.sidebar-links {
  margin-top: 12px;
  padding-left: 20px;
}

.sidebar-link {
  display: block;
  margin: 8px 0;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
}

.sidebar-link:hover {
  color: var(--accent-purple);
}

.sidebar-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.posts-header {
  margin-bottom: 32px;
}

.post-card {
  margin-bottom: 24px;
  cursor: pointer;
}

.post-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.post-excerpt {
  margin-bottom: 12px;
}

.read-more {
  color: var(--accent-purple);
  font-family: var(--font-mono);
  font-size: 14px;
}

.post-hero {
  min-height: auto;
  padding-top: 120px;
  padding-bottom: 40px;
}

.post-section {
  padding: 0 0 120px 0;
}

.post-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.post-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-nav-section {
  margin-top: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.post-content-card {
  padding: 32px;
}

.post-meta-header {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-family: var(--font-mono);
}

.post-body {
  color: var(--text-primary);
  line-height: 1.8;
}

.post-body h1 {
  font-size: 28px;
  margin: 0 0 24px;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.post-body h2 {
  font-size: 22px;
  margin: 32px 0 16px;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.post-body h3 {
  font-size: 18px;
  margin: 24px 0 12px;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.post-body h4 {
  font-size: 16px;
  margin: 16px 0 8px;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.post-body p {
  margin: 16px 0;
}

.post-body ol,
.post-body ul {
  margin: 16px 0;
  padding-left: 24px;
}

.post-body li {
  margin: 8px 0;
}

.post-body code {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .blog-section {
    padding: 0 0 80px 0;
  }

  .post-title {
    font-size: 18px;
  }
}

.post-body blockquote {
  border-left: 4px solid var(--accent-purple);
  padding-left: 16px;
  margin: 16px 0;
  color: var(--text-secondary);
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 32px 0;
}

.post-body pre {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14px;
  margin: 16px 0;
}

.post-body pre code {
  background: transparent;
  padding: 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.post-body table thead tr {
  background: var(--bg-secondary);
}

.post-body table th,
.post-body table td {
  border: 1px solid var(--border-subtle);
  padding: 12px;
  text-align: left;
}

.post-body a {
  color: var(--accent-purple);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar,
  .post-sidebar {
    position: static;
  }

  .blog-hero,
  .post-hero {
    padding-top: 100px;
    padding-bottom: 40px;
  }

  .blog-section,
  .post-section {
    padding: 0 0 80px 0;
  }

  .post-title {
    font-size: 18px;
  }

  .post-content-card {
    padding: 24px;
  }

  .post-body h1 {
    font-size: 24px;
  }

  .post-body h2 {
    font-size: 20px;
  }

  .post-body h3 {
    font-size: 17px;
  }

  .post-body table {
    font-size: 14px;
  }

  .post-body table th,
  .post-body table td {
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .blog-hero,
  .post-hero {
    padding-top: 90px;
    padding-bottom: 30px;
  }

  .blog-section,
  .post-section {
    padding: 0 0 60px 0;
  }

  .sidebar-avatar {
    width: 100px;
    height: 100px;
  }

  .post-title {
    font-size: 16px;
  }

  .post-meta,
  .post-meta-header {
    font-size: 12px;
  }

  .post-content-card {
    padding: 20px;
  }

  .post-body h1 {
    font-size: 22px;
  }

  .post-body h2 {
    font-size: 18px;
  }

  .post-body h3 {
    font-size: 16px;
  }

  .post-body pre {
    font-size: 12px;
    padding: 16px;
  }

  .post-body table {
    font-size: 12px;
    display: block;
    overflow-x: auto;
  }
}
