/* Layout Wrapper */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sidebar {
  background: #f4f4f4;
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

@media (min-width: 768px) {
  .site-wrapper {
    flex-direction: row;
  }

  .sidebar {
    width: 300px;
    height: 100vh;
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    border-bottom: none;
    border-right: 1px solid #ddd;
    align-self: start;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }

  .content {
    flex: 1;
    padding: 3rem;
  }
}

.posts-container {
  max-width: 800px;
  margin: 0 auto;
}

.post-list {
  list-style: none;
  padding: 0;
}

.post-card {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.post-meta {
  font-size: 0.9rem;
  color: #828282;
}

.post-link {
  font-size: 1.5rem;
  color: #2a7ae2;
  text-decoration: none;
  font-weight: bold;
}

.post-link:hover {
  text-decoration: underline;
}

.post-excerpt {
  color: #333;
  line-height: 1.6;
}

.post-header {
  text-align: left;
  /* Keep text left-aligned for a modern look */
  margin-bottom: 2.5rem;
}

.post-title {
  font-family: var(--heading-font);
  /* Using your DM Serif Display */
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: #828282;
  font-family: var(--body-font);
  /* Using Inter */
  display: block;
  margin-bottom: 2rem;
}

.social-links {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  /* Adds space between icons */
}

.social-icon {
  font-size: 1.5rem;
  /* Makes the icons bigger */
  color: #555;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: #2a7ae2;
  /* Changes color when hovering */
}

/* Specific hover color for Bluesky */
.social-icon[title="Bluesky"]:hover {
  color: #0085ff;
}

/* Specific hover color for GitHub */
.social-icon[title="GitHub"]:hover {
  color: #333;
}

:root {
  --heading-font: 'DM Serif Display', serif;
  --body-font: 'Inter', sans-serif;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: #333;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  /* Smoother on high-res displays */
}

h1,
h2,
h3,
h4 {
  font-family: var(--heading-font);
  font-weight: 400;
  /* DM Serif looks best at regular weight */
  letter-spacing: -0.02em;
  /* Slightly tighter for a modern look */
  margin-top: 2rem;
}

code,
pre {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95em;
  /* Monospace often looks slightly larger than prose */
  tab-size: 2;
}

.highlight {
  /* background: #fbf1c7; */
  /* A warm cream background matching Gruvbox Light */
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  /* Adds scrollbar for long lines */
  margin: 2rem 0;
  font-size: 0.9rem;
  border: 1px solid #ebdbb2;
}

.post-card {
  border-bottom: 1px solid #eee;
  padding: 2rem 0;
  transition: transform 0.2s ease;
}


/* This centers the entire article block on the page */
.post-container {
  max-width: 800px;
  /* Adjust this to your preferred reading width */
  margin: 0 auto;
  padding: 0 20px;
  /* Keeps text off the screen edges on mobile */
}

/* This ensures the title and date line up exactly with the text below */
.post-header,
.post-content {
  text-align: left;
  /* Keep the text itself left-aligned for readability */
  width: 100%;
}

.post-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  /* Use your display font here */
  font-family: 'DM Serif Display', serif;
}

.post-meta {
  display: block;
  margin-bottom: 2rem;
  color: #666;
  font-family: 'Inter', sans-serif;
}

/* Styling for the home page thumbnails */
.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  /* Crops the image to fit without stretching */
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Styling for the full-width post header image */
.featured-header-img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 2rem;
}

/* Optional: Layout for the home page "cards" */
.post-card {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}

.home-link {
  text-decoration: none; /* Remove underline */
  color: inherit;        /* Use the same color as the H2 */
  transition: opacity 0.2s ease;
}

.home-link:hover {
  opacity: 0.7;          /* Subtle feedback when hovering */
  color: #2a7ae2;        /* Or change to your brand color */
}


/* Sidebar Nav Links */
.sidebar-nav {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-item {
  text-decoration: none;
  color: #555;
  font-weight: 600;
  font-size: 1.1rem;
}

.nav-item:hover {
  color: #2a7ae2;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.project-card {
  padding: 1.5rem;
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.project-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.github-link {
  font-size: 0.9rem;
  color: #333;
  text-decoration: none;
  font-weight: 600;
}

.post-img {
  width: 75%;
  height: 75%;
}