/* ── Articles page ───────────────────────────── */

.articles-main {
  max-width: 1600px;
  margin: 0 auto;
  padding: 158px 0px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.articles-label-row {
  padding: 0 20px;
}

.articles-label {
  font-family: var(--font-slab);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ── Grid ───────────────────────────────────── */

.articles-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 8px;
  row-gap: 40px;
  padding: 0 12px;
}

/* ── Card ───────────────────────────────────── */

.article-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  cursor: pointer;
}

.article-item:hover .article-cover img {
  transform: scale(1.03);
}

/* ── Cover image ────────────────────────────── */

.article-cover {
  width: 100%;
  height: 450px;
  overflow: hidden;
  background: rgba(245, 245, 245, 0.08);
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Text ───────────────────────────────────── */

.article-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-date {
  font-family: var(--font-slab);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
}

.article-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.article-desc {
  font-family: var(--font-slab);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 1024px) {
  .articles-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .articles-label-row {
    padding: 0px;
  }

  .articles-main {
    padding-top: 140px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .articles-list {
    grid-template-columns: 1fr;
    row-gap: 24px;
    padding: 0px;
  }

  .article-cover {
    height: 340px;
  }
}
/* ── Loading / empty states ─────────────────── */

.article-item.is-skeleton {
  cursor: default;
  pointer-events: none;
}

.sk-cover {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.article-item.is-skeleton .sk-title {
  height: 20px;
  width: 55%;
  border-radius: 4px;
}

.article-item.is-skeleton .sk-desc {
  height: 13px;
  width: 85%;
  border-radius: 4px;
  margin-top: 10px;
}

.articles-empty {
  grid-column: 1 / -1;
  padding: 0 20px;
  font-family: var(--font-slab);
  font-size: 0.95rem;
  color: var(--text-muted);
}

.articles-empty a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
