/* Capprs articles — headless WordPress frontend */

.articles-shell,
.article-shell {
  width: min(var(--page-max), calc(100% - (2 * var(--page-pad))));
  margin: 20px auto 40px;
  box-sizing: border-box;
}

.article-shell {
  width: min(760px, calc(100% - (2 * var(--page-pad))));
}

.articles-status {
  padding: 18px 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 14px;
  line-height: 1.5;
  color: #2a2c31;
}
.articles-status strong {
  display: block;
  font-family: var(--brand);
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.articles-status.muted { color: var(--muted); }
.articles-status.error { border-left: 3px solid var(--black); }

.articles-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.article-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.2s ease;
}
.article-card:hover,
.article-card:focus-visible {
  padding-left: 8px;
}
.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-card-title {
  margin: 0;
  font-family: var(--brand);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}
.article-card-excerpt {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: #2a2c31;
  max-width: 40rem;
}
.article-card-thumb {
  width: 120px;
  height: 80px;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.article-card-cats {
  color: var(--accent-text);
}

.article-back {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.article-back a {
  color: var(--accent-text);
  text-decoration: none;
}
.article-back a:hover { text-decoration: underline; }

.article-body .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-body h1 {
  margin: 0 0 18px;
  font-family: var(--brand);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: var(--ink);
}
.article-featured {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin: 0 0 24px;
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.article-content {
  font-size: 17px;
  line-height: 1.65;
  color: #2a2c31;
}
.article-content > *:first-child { margin-top: 0; }
.article-content p { margin: 0 0 1.1em; }
.article-content h2,
.article-content h3 {
  font-family: var(--brand);
  letter-spacing: -0.03em;
  margin: 1.6em 0 0.55em;
  color: var(--ink);
}
.article-content a { color: var(--accent-text); }
.article-content img {
  max-width: 100%;
  height: auto;
}
.article-content ul,
.article-content ol {
  padding-left: 1.25rem;
  margin: 0 0 1.1em;
}
.article-content blockquote {
  margin: 0 0 1.1em;
  padding: 8px 0 8px 14px;
  border-left: 3px solid var(--light-blue);
  color: var(--muted);
}

@media (max-width: 720px) {
  .article-card {
    grid-template-columns: 1fr;
  }
  .article-card-thumb {
    width: 100%;
    height: 160px;
    order: -1;
  }
}
