/* =========================================================
   EDITORIAL JOURNAL GRID
   File: /css/components/articles.css
   ========================================================= */

/* --------------------------------------------------
   GRID (Blueprint Architecture)
-------------------------------------------------- */

.article-grid,
[data-mount="articles-grid"] {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Balanced editorial split */
  gap: 1px; /* The "Hairline" divider */
  background: var(--os-ink); /* Line color */
  border: 1px solid var(--os-ink);
  max-width: var(--os-container-width, 1100px);
  margin-inline: auto;
}

/* --------------------------------------------------
   ARTICLE CARD
-------------------------------------------------- */

.article-card {
  background: var(--os-surface, #ffffff);
  padding: 60px 40px; /* Editorial breathing room */
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.3s ease;
}

.article-card:hover {
  background-color: #f9f9f9;
}

.article-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* --------------------------------------------------
   CONTENT
-------------------------------------------------- */

.article-meta-tag {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--os-accent);
  margin-bottom: 20px;
  display: block;
}

.article-card-title {
  font-family: var(--os-font-serif, serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--os-ink);
  margin-bottom: 16px;
}

.article-card-excerpt {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--os-ink-dim, #475569);
  margin-bottom: 40px;
  /* Truncate for grid alignment */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --------------------------------------------------
   FOOTER (Action Line)
-------------------------------------------------- */

.article-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--os-border);
}

.article-read-time {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--os-ink-light);
}

.article-cta {
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom: 2px solid var(--os-ink);
  padding-bottom: 2px;
}

/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */

@media (max-width: 900px) {
  .article-grid,
  [data-mount="articles-grid"] {
    grid-template-columns: 1fr;
  }
  
  .article-card {
    padding: 40px 24px;
  }
}
/* --- ARTICLE CARD THUMBNAIL --- */
.article-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 9; /* Wide editorial crop */
  overflow: hidden;
  border-bottom: 1px solid var(--os-ink);
  background: var(--os-border);
}

.article-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.article-card:hover .article-card-thumb img {
  transform: scale(1.05);
}
.article-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.article-footer .footer-divider {
  flex-basis: 100%;
  height: 1px;
  background: var(--os-border);
  margin-bottom: 1rem;
}