/* ==========================================================================
   Blog intro
   ========================================================================== */
.blog-intro {
  font-size: 14px;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 36px;
}

/* ==========================================================================
   Category filter
   ========================================================================== */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

/* The static reference used <button> here; blog/index.blade.php renders
   real <a href="?tag=..."> links instead (so the filter is a genuine GET
   request, not JS-simulated) — both are styled identically. */
.blog-filters button,
.blog-filters a {
  padding: 10px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.blog-filters button.is-active,
.blog-filters a.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-text-white);
}

/* ==========================================================================
   Post grid / cards
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 60px;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

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

.post-card__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.post-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.post-card__title {
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.25;
  margin-bottom: 10px;
}

/* The title link is stretched over the whole card (.post-card is the
   positioning context), so the photo and the text are clickable too. */
.post-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.post-card__excerpt {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-card__meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--color-text-muted-2);
}

.post-card {
  position: relative;
}

/* ==========================================================================
   Article page
   ========================================================================== */
.article-head {
  padding-block: 24px 24px;
}

.article-head__tag {
  display: inline-block;
  font-size: 13px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.article-head__title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin-bottom: 20px;
}

.article-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

.article-hero {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
}

.article-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  max-width: 760px;
  margin-bottom: 48px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.article-body p {
  margin-bottom: 20px;
}

.article-body h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: -0.01em;
  margin: 40px 0 16px;
}

.article-body ul {
  margin-bottom: 20px;
  padding-left: 20px;
  list-style: disc;
  color: var(--color-text-light);
}

.article-body li {
  margin-bottom: 10px;
}

.article-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  margin: 32px 0;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-text-light);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 60px;
}

.article-tags a {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--color-text-muted);
}

.article-tags a:hover {
  color: var(--color-text-light);
  border-color: var(--color-text-light);
}

.article-related {
  padding-bottom: 60px;
}

.article-related__title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: clamp(22px, 4vw, 30px);
  margin-bottom: 28px;
}
