a {
 text-decoration: none;
}

.hero-brand {
  position: absolute;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  align-items: center;
  line-height: 1.4;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.site-title {
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 0.4em 0.8em;
  border-radius: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease;
}

.site-title:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.site-title.active {
  outline: 2px solid rgba(0.5, 0.5, 0.5, 0.6);
  outline-offset: 0px;
}
/*
.site-title.active {
  outline: 1px solid #fff;
  outline-offset: 1px;
}
*/
.site-title.left {
  align-self: flex-start;
}

.site-title.right {
  align-self: flex-start;
}

.featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* ensures the full image is shown */
  max-height: 65vh;    /* adjust as needed for best results */
  margin-bottom: 1em;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5em;
  padding: 2em 1.5em;
  max-width: 1200px;
  margin: 0 auto;
}

.post-card {
  background-color: #111;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: scale(1.02);
}

.post-card img {
  width: 100%;
  display: block;
}

.post-card-text {
  padding: 1em;
}

.post-card h2 {
  font-size: 1.1em;
  margin: 0 0 0.3em 0;
  color: #fff;
}

.post-date {
  font-size: 0.9em;
  color: #aaa;
  margin: 0;
}

.cover {
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;  /* Ensures full image is always visible */
  height: auto;
  min-height: 300px;
  padding-top: 40%; /* Adjust to match the aspect ratio you want */
}

@media (max-width: 768px) {
  .cover {
    padding-top: 60%; /* More vertical space on narrow screens */
  }
}
