/* Blog index — clean layout (pairs with glass-metal.css on body.glass-metal-site) */
:root {
  --blog-max: 1100px;
  /* Aligned with glass-metal --gm-text-muted */
  --blog-muted: #9a9a9a;
}

.blog,
.posts,
.posts-grid,
.post-card {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.blog-hero {
  padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1rem, 3vw, 1.5rem);
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.blog-hero .hero-inner {
  width: 100%;
  max-width: var(--blog-max);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-title {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0;
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1.15;
}

.hero-sub {
  color: var(--blog-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 36rem;
}

.hero-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 0.35rem;
}

.blog-search-wrap {
  position: relative;
  flex: 1 1 280px;
  max-width: min(100%, 420px);
}

.blog-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

.blog-search {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.85rem 0.65rem 2.35rem;
  border-radius: var(--gm-radius, 12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.blog-search::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.blog-search:focus {
  border-color: rgba(212, 165, 116, 0.45);
  background: rgba(0, 0, 0, 0.38);
  box-shadow: none;
  transform: none;
}

.blog-results-count {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.blog-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--blog-muted);
  font-size: 0.95rem;
  grid-column: 1 / -1;
}

.posts {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 1.5rem) clamp(3rem, 8vw, 5rem);
}

.posts-grid {
  width: 100%;
  max-width: var(--blog-max);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.post-card[hidden] {
  display: none !important;
}

.post-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.post-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.post-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.post-excerpt {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  flex: 1;
}

.post-cta {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Footer spacing on blog */
.blog + .footer {
  margin-top: 0;
}

@media (max-width: 720px) {
  .hero-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search-wrap {
    max-width: none;
  }

  .blog-results-count {
    align-self: flex-start;
  }

  .post-image {
    height: 140px;
  }
}
