/* ===== Articles listing page ===== */
/* Reuses home.css for the shared header / footer / mobile-nav styles; this
   file only adds the listing-specific layout. */

html {
  background-image: none;
}

.articles-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Intro hero */
.articles-hero {
  padding: 120px 0 36px;
  text-align: center;
}

.articles-hero__eyebrow {
  display: inline-block;
  font-family: Inter, "Inter Fallback", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #3b82f6, #7c3aed, #d946ef);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 16px;
}

.articles-hero__title {
  margin: 0 auto 16px;
  max-width: 760px;
  font-family: Inter, "Inter Fallback", sans-serif;
  font-size: 46px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -1.2px;
  color: #0a0a0a;
}

.articles-hero__sub {
  margin: 0 auto;
  max-width: 600px;
  font-family: Inter, "Inter Fallback", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #585869;
}

.articles-hero__sub a {
  color: #533afd;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(83, 58, 253, 0.3);
}

.articles-hero__sub a:hover {
  border-bottom-color: #533afd;
}

/* Card grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 28px 0 88px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ecebf3;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(20, 16, 50, 0.10);
  border-color: #e2def0;
}

.article-card:focus-visible {
  outline: 3px solid rgba(83, 58, 253, 0.4);
  outline-offset: 2px;
}

.article-card__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #3b82f6, #7c3aed, #d946ef);
}

.article-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card:nth-child(3n + 2) .article-card__cover {
  background: linear-gradient(135deg, #7c3aed, #d946ef, #f15ba3);
}

.article-card:nth-child(3n) .article-card__cover {
  background: linear-gradient(135deg, #2563eb, #533afd, #7c3aed);
}

.article-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 11px;
  font-family: Inter, "Inter Fallback", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(10, 8, 25, 0.32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border-radius: 999px;
}

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 22px;
}

.article-card__title {
  margin: 0 0 10px;
  font-family: Inter, "Inter Fallback", sans-serif;
  font-size: 19px;
  line-height: 1.32;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #0a0a0a;
}

.article-card__excerpt {
  margin: 0 0 18px;
  font-family: Inter, "Inter Fallback", sans-serif;
  font-size: 14.5px;
  line-height: 1.55;
  color: #585869;
  flex: 1;
}

.article-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Inter, "Inter Fallback", sans-serif;
  font-size: 12.5px;
  color: #8a8a9c;
}

.article-card__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c9c9d6;
}

/* Tablet */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }
  .articles-hero {
    padding: 104px 0 28px;
  }
  .articles-hero__title {
    font-size: 38px;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 64px;
  }
  .articles-hero {
    padding: 92px 0 20px;
  }
  .articles-hero__title {
    font-size: 30px;
    letter-spacing: -0.8px;
  }
  .articles-hero__sub {
    font-size: 15.5px;
  }
}
