/* Articles list page — Industrial Blueprint */
.articles-page {
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 8vw, 5rem);
}

.articles-page__inner {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
}

.articles-page__head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0 0 clamp(2rem, 5vw, 3rem);
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  position: relative;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.articles-page__head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 64px;
  height: 2px;
  background: #fad000;
}

.articles-page__title {
  margin: 0;
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f5f1e8;
  width: 100%;
  min-width: 0;
}

.articles-page__subtitle {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1.0625rem;
  color: #c4ccd6;
  line-height: 1.55;
}

/* Articles list container */
.articles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
  width: 100%;
}

/* Individual article card — spec sheet rectangle with bracket corner */
.article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem 1.4rem;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.22);
  position: relative;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.article-card::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 12px; height: 12px;
  border-top: 2px solid #fad000;
  border-left: 2px solid #fad000;
  pointer-events: none;
}

.article-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #fad000;
  transform: none;
  box-shadow: none;
}

.article-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.article-card__title {
  margin: 0;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #f5f1e8;
}

.article-card__link {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease;
}

.article-card__link:hover { color: #fad000; }

.article-card__date {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.74rem;
  color: #8190a5;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.article-card__description {
  margin: 0;
  flex-grow: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #c4ccd6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fad000;
  text-decoration: none;
  transition: color 0.22s ease;
  align-self: flex-start;
  border-bottom: 1px solid #fad000;
  padding-bottom: 2px;
}

.article-card__read-more:hover { color: #7dd3fc; border-bottom-color: #7dd3fc; }
.article-card__read-more::after { content: "→"; transition: transform 0.22s ease; }
.article-card__read-more:hover::after { transform: translateX(4px); }

/* Empty state */
.articles-empty {
  grid-column: 1 / -1;
  padding: 3rem;
  text-align: center;
  color: #c4ccd6;
  font-size: 1.0625rem;
  font-family: 'Inter', sans-serif;
}

/* Mobile / narrow viewports */
@media (max-width: 639px) {
  .articles-page {
    padding: 1rem 0 2.25rem;
  }

  .articles-page__inner {
    padding: 0 1rem;
    min-width: 0;
  }

  .articles-page__head {
    padding: 0 0 1.5rem;
    margin-bottom: 1.5rem;
  }

  .articles-page__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.25;
  }

  .articles-page__subtitle {
    font-size: 0.95rem;
  }

  .articles-list {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .article-card {
    padding: 1.25rem;
    border-radius: 10px;
  }

  .article-card:hover {
    transform: translateY(-2px);
  }

  .article-card__title {
    font-size: 1.125rem;
  }

  .article-card__description {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .article-card__read-more {
    font-size: 0.875rem;
  }

  .articles-empty {
    padding: 2rem;
    font-size: 1rem;
  }
}

/* Tablet viewport */
@media (min-width: 640px) and (max-width: 1023px) {
  .articles-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
