/* Typography and layout */
.content-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  font-family: Georgia, serif;
  padding-top: 5rem; /* Add padding to account for fixed navbar */
}

.article-title {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-meta {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.article-meta time {
  color: #555;
}

.article-body {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #222;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.article-footer a {
  margin-right: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.article-tags {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  color: #888;
  font-size: 0.9rem;
}

.article-tags .tag {
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-tags .tag:hover {
  color: #333;
}

/* Navigation Bar */
.navbar {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: top 0.3s ease-in-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  flex: 0 0 auto;
}

.navbar-menu {
  flex: 0 0 auto;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.navbar-item {
  text-decoration: none;
  color: #333;
  transition: color 0.2s ease;
}

.navbar-item:hover {
  color: #666;
}

.navbar-item.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.navbar-brand .site-title {
  font-size: 1.5rem;
  font-weight: lighter;
  color: #333;
  text-decoration: none;
}

.navbar.navbar-hidden {
  top: -100px; /* Adjust based on navbar height */
}

/* Post List Styles */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem;
}

.story-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.story-card article {
  padding: 1.5rem;
}

.story-title {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  line-height: 1.3;
}

.story-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.story-title a:hover {
  color: #666;
}

.story-meta {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.story-meta time {
  color: #555;
}

.reading-time {
  color: #777;
}

.story-description {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
}

.story-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

.story-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.tag:hover {
  color: #333;
}

.read-more {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #666;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
  }
  .navbar-brand .site-title {
    font-size: 1.25rem;
  }
  .navbar-menu {
    gap: 1rem;
  }
  .content-wrapper {
    padding: 1rem;
    padding-top: 4rem;
  }
  .article-title {
    font-size: 2rem;
  }
  .article-body {
    font-size: 1rem;
  }
  .story-card article {
    padding: 1rem;
  }
  .story-title {
    font-size: 1.25rem;
  }
  .story-description {
    font-size: 0.95rem;
  }
  .story-footer {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}
