/* Blog (blog.php / blog_post.php) - reuses the design tokens and the
   .landing-story-section / .story-card / .landing-richtext patterns
   already defined in home_public.css. */

body.public-home .blog-hero {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

body.public-home .blog-hero h1 {
  margin: 0 0 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--home-deep);
}

body.public-home .blog-hero p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(0, 54, 68, 0.72);
}

body.public-home .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

body.public-home .blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(0, 54, 68, 0.1);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 40px rgba(0, 54, 68, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

body.public-home .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 54, 68, 0.14);
}

body.public-home .blog-card-image {
  aspect-ratio: 16 / 9;
  background: rgba(0, 54, 68, 0.06);
  overflow: hidden;
}

body.public-home .blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.public-home .blog-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1 1 auto;
}

body.public-home .blog-card-date {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 54, 68, 0.5);
}

body.public-home .blog-card-body h2 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--home-deep);
}

body.public-home .blog-card-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(0, 54, 68, 0.72);
}

body.public-home .blog-empty {
  text-align: center;
  color: rgba(0, 54, 68, 0.6);
  padding: 2rem 0;
}

/* Single article */

body.public-home .blog-article {
  max-width: 760px;
  margin: 0 auto;
}

body.public-home .blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  color: var(--home-deep);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
}

body.public-home .blog-back-link:hover {
  text-decoration: underline;
}

body.public-home .blog-back-link-bottom {
  margin-top: 2.5rem;
  margin-bottom: 0;
}

body.public-home .blog-article h1 {
  margin: 0.4rem 0 1.2rem;
  font-family: "Inter", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--home-deep);
}

body.public-home .blog-article-image {
  margin-bottom: 1.6rem;
  border-radius: 20px;
  overflow: hidden;
}

body.public-home .blog-article-image img {
  width: 100%;
  height: auto;
  display: block;
}

body.public-home .blog-article-content {
  min-height: 0;
  font-size: 1.02rem;
}

body.public-home .blog-article-content h2 {
  margin: 2rem 0 0.75rem;
  font-family: "Inter", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--home-deep);
}

body.public-home .blog-article-content h3 {
  margin: 1.5rem 0 0.6rem;
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--home-deep);
}

@media (max-width: 920px) {
  body.public-home .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body.public-home .blog-grid {
    grid-template-columns: 1fr;
  }
}
