/* ============================================================
   Blog Hub — Index Page
   Matches local-home-v2.css design system:
   Open Sans (body/headings) + PT Mono (brand)
   ============================================================ */

/* ---------- Hero ---------- */
.blog-hub-hero {
  padding: 64px 0 0;
  text-align: center;
}

.blog-hub-hero h1 {
  font-size: clamp(31px, 3.6vw, 42px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.blog-hub-subtitle {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.6;
}

.blog-hub-attribution {
  font-size: 13px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.5;
  opacity: 0.7;
}

.blog-hub-attribution a {
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.blog-hub-attribution a:hover {
  color: var(--orange);
}

/* ---------- Category Filters ---------- */
.blog-hub-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.blog-filter-btn {
  appearance: none;
  border: 1px solid var(--line-medium);
  background: transparent;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0;
}

.blog-filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.blog-filter-btn.is-active {
  background: var(--brown);
  border-color: var(--brown);
  color: var(--bg);
}

/* ---------- Featured Card ---------- */
.blog-hub-featured {
  margin-bottom: 40px;
}

.blog-featured-card {
  background: var(--brown);
  padding: 44px 48px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(77, 38, 0, 0.3);
  transition: box-shadow 0.3s ease;
}

.blog-featured-card:hover {
  box-shadow: 0 12px 36px rgba(42, 24, 11, 0.18);
}

.blog-featured-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.blog-featured-card .blog-tag {
  background: var(--gold);
  color: var(--ink);
  border-color: rgba(77, 38, 0, 0.2);
}

.blog-featured-meta {
  font-size: 13px;
  color: rgba(246, 239, 230, 0.5);
}

.blog-featured-card h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--bg);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
  max-width: 720px;
}

.blog-featured-card h2 a {
  color: inherit;
}

.blog-featured-card h2 a:hover {
  color: var(--gold);
}

.blog-featured-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(246, 239, 230, 0.65);
  max-width: 600px;
  margin-bottom: 22px;
}

.blog-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: gap 0.2s ease;
}

.blog-featured-card .blog-read-link {
  color: var(--gold);
}

.blog-read-link:hover {
  gap: 10px;
}

/* ---------- Tag Pill ---------- */
.blog-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  border: 1px solid var(--line-medium);
  background: rgba(255, 255, 255, 0.6);
  color: var(--orange);
}

/* ---------- Grid ---------- */
.blog-hub-grid-section {
  padding-bottom: 56px;
}

.blog-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- Grid Cards ---------- */
.blog-entry {
  background: var(--surface);
  border: 1px solid var(--line-medium);
  padding: 22px 24px 20px;
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: no-preference) {
  .blog-entry {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
  }

  .blog-entry:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(77, 38, 0, 0.1);
  }
}

.blog-entry-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.blog-entry-meta {
  font-size: 12px;
  color: var(--muted);
  opacity: 0.6;
}

.blog-entry h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.blog-entry h3 a {
  color: inherit;
  transition: color 0.2s;
}

.blog-entry h3 a:hover {
  color: var(--orange);
}

.blog-entry p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body);
  margin-bottom: 14px;
  flex: 1;
}

.blog-entry .blog-read-link {
  color: var(--orange);
  font-size: 13px;
  align-self: flex-start;
}

/* ---------- Filter transitions ---------- */
.blog-entry[data-hidden="true"] {
  display: none;
}

/* ---------- Bottom CTA ---------- */
.blog-hub-cta {
  padding: 56px 0;
  text-align: center;
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.blog-hub-cta .section-kicker {
  margin-bottom: 12px;
}

.blog-hub-cta h2 {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.blog-hub-cta p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}

.blog-hub-cta .btn-primary {
  padding: 13px 24px;
  font-size: 13px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .blog-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-featured-card {
    padding: 32px 28px;
  }
}

@media (max-width: 600px) {
  .blog-hub-hero {
    padding: 48px 0 0;
  }

  .blog-hub-hero h1 {
    font-size: 28px;
  }

  .blog-hub-filters {
    gap: 6px;
    margin-bottom: 32px;
  }

  .blog-filter-btn {
    padding: 6px 12px;
    font-size: 11px;
  }

  .blog-featured-card {
    padding: 24px 20px;
  }

  .blog-featured-card h2 {
    font-size: 22px;
  }

  .blog-hub-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .blog-entry {
    padding: 20px 18px 16px;
  }

  .blog-hub-cta h2 {
    font-size: 24px;
  }
}
