/* Blog listing pages — The Store Lab */

.blog-page {
  background: #ffffff;
  color: #000;
}

.blog-page .nav-links a[aria-current="page"],
.blog-page .mobile-link[aria-current="page"],
.blog-page .footer-bottom-links a[aria-current="page"] {
  color: var(--ref-accent);
}

/* Hero */
.blog-hero {
  background: #fff;
  padding: 120px 0 64px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.blog-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: #888;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-breadcrumbs a { color: #888; }

.blog-breadcrumbs a:hover {
  color: #000;
  text-decoration: underline;
  text-decoration-color: var(--ref-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.blog-breadcrumbs span[aria-hidden] { opacity: 0.4; }

.blog-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--ref-accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.blog-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.06;
  color: #000;
  margin: 0;
}

.blog-lead {
  max-width: 660px;
  margin-top: 18px;
  color: #4a4a4a;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.72;
}

.blog-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.blog-topics a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  color: #333;
  font-size: 0.82rem;
  font-weight: 700;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.blog-topics a:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Sections */
.blog-section {
  padding: 56px 0;
}

.blog-section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.blog-section__title {
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.blog-section__pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.blog-section__pill:hover {
  background: var(--ref-accent);
  color: #000;
  border-color: var(--ref-accent);
}

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Post cards */
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 28px 64px rgba(0, 0, 0, 0.1);
}

.post-card--hero {
  border-radius: 20px;
}

.post-card__tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #efefef;
  color: #444;
  font-size: 0.76rem;
  font-weight: 700;
  width: fit-content;
}

.post-card__title {
  margin: 16px 0 10px;
  font-size: 1.3rem;
  line-height: 1.25;
  font-weight: 700;
  color: #000;
}

.post-card--hero .post-card__title {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.post-card__title a,
.post-title-link {
  color: inherit;
  transition: color 0.15s;
}

.post-card__title a:hover,
.post-title-link:hover { color: #1a7d12; }

.post-card__excerpt {
  color: #4a4a4a;
  font-size: 0.97rem;
  line-height: 1.72;
  flex: 1;
}

.post-card__meta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  color: #888;
  font-size: 0.86rem;
}

/* Category cards */
.category-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 28px 64px rgba(0, 0, 0, 0.1);
}

.category-card h3 {
  margin: 14px 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.2;
}

.category-card h3 a { color: #000; }
.category-card h3 a:hover { color: #1a7d12; }

.category-card p {
  margin-top: 12px;
  color: #4a4a4a;
  line-height: 1.72;
  flex: 1;
}

.category-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.category-card__meta span {
  color: #888;
  font-size: 0.86rem;
  font-weight: 600;
}

.category-card__meta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #000;
  font-size: 0.84rem;
  font-weight: 700;
  transition: color 0.15s;
}

.category-card__meta a::after {
  content: '→';
  display: inline-block;
  transition: transform 0.18s;
}

.category-card__meta a:hover { color: #1a7d12; }
.category-card__meta a:hover::after { transform: translateX(3px); }

/* Empty state */
.empty-blog-state {
  background: #fff;
  border-radius: 20px;
  padding: clamp(32px, 5vw, 48px);
}

.empty-blog-state h2 {
  margin-top: 14px;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.empty-blog-state p {
  margin-top: 12px;
  max-width: 56ch;
  color: #4a4a4a;
  line-height: 1.72;
}

/* Section kicker */
.section-kicker {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ref-accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Breadcrumbs (legacy) */
.breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #888;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.breadcrumbs a { color: #888; }

.breadcrumbs a:hover {
  color: #000;
  text-decoration: underline;
  text-decoration-color: var(--ref-accent);
}

/* CTA section */
.blog-cta { padding: 64px 0; }

.cta-shell {
  border-radius: 20px;
  background: #000;
  padding: clamp(32px, 5vw, 54px);
}

.cta-eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--ref-accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.cta-shell h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.08;
  font-weight: 800;
  margin: 0;
}

.cta-shell p {
  margin-top: 16px;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.72;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.cta-links a:hover {
  background: var(--ref-accent);
  border-color: var(--ref-accent);
  color: #000;
}

/* Responsive */
@media (max-width: 900px) {
  .blog-hero { padding: 100px 0 52px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .blog-hero { padding: 88px 0 44px; }
  .blog-hero h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .post-grid { grid-template-columns: 1fr; }
  .blog-section { padding: 44px 0; }
  .cta-links { flex-direction: column; }
  .cta-links a { width: 100%; }
}
