:root {
  --bg-color: #111111;
  --text-color: #f4f4f4;
  --card-color: #1a1a1a;
  --link-color: #66ccff;
  --nav-bg: #1a1a1a;
}

html, body {
  margin: 0;
  height: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

h1, h2 {
  text-align: center;
  color: var(--text-color);
}

/* Header and Footer shared styles here... */
/* Responsive card grid for previews */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}


/* Card style for blog and project previews */
.post-card {
  background: var(--card-color);
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(255,255,255,0.05);
  padding: 1.5rem;
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
}

.post-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 0.75rem 0;
}

.post-card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.post-card p {
  margin-bottom: 0.75rem;
}

.post-card a {
  display: inline-block;
  font-weight: bold;
  color: var(--link-color);
}

img.avatar {
  width: 150px;           
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;          
}





/* Responsive */
@media (max-width: 768px) {
  header, .home-intro {
    flex-direction: column;
    text-align: center;
  }

  nav {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }

  .post-card, .blog-card, .resume {
    padding: 1rem;
  }

  .contact-section {
    padding: 1rem;
  }

  input[type="email"] {
    max-width: 100%;
  }
  form button {
    width: fit-content;
  }
  .contact-links {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
  padding-bottom: 0.5rem;
  gap: 1rem;
}
  .blog-wrapper {
    padding: 1rem;
    margin: 1rem;
  }
.contact-links a {
  flex: 0 0 auto;
  white-space: nowrap;
}
}
.template-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.7;
}

.template-content img {
  max-width: 100%;
  height: auto;
}

.template-content pre {
  overflow-x: auto;
  background: #111;
  padding: 1rem;
  border-radius: 8px;
}

.template-content h1, .template-content h2, .template-content h3 {
  margin-top: 2rem;
}
.markdown-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
}
.markdown-body h1 {
  font-size: 1.8rem;
  margin-top: 2rem;
}
.markdown-body h2 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
}
.markdown-body h3 {
  font-size: 1.2rem;
  margin-top: 1rem;
}
.blog-wrapper {
  background: var(--card-color, #1f1f1f);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  margin: 2rem auto;
  transition: background 0.3s;
}
