:root {
  --article-gold: #C9A84C;
  --article-border: rgba(180, 150, 60, 0.2);
}

.articles-page-hero {
  padding: 48px 0 36px;
  background: var(--bg3, #ececef);
}

.articles-page-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  margin: 12px 0 14px;
  line-height: 1.05;
}

.articles-page-hero .lead {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted, #666);
}

.articles-grid {
  display: grid;
  /* auto-fit collapses empty tracks so a single card can use full width;
     auto-fill left phantom columns and squashed the card to ~minmax width */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  padding: 24px 0 64px;
  width: 100%;
  box-sizing: border-box;
}

.article-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--bg2, #fff);
  border: 1px solid var(--article-border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--article-gold);
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
}

.article-card-media {
  aspect-ratio: 16 / 9;
  background: var(--bg3, #ececef);
  overflow: hidden;
}

.article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-card:hover .article-card-media img {
  transform: scale(1.04);
}

.article-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.5;
}

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

.article-card-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--article-gold);
  margin-bottom: 8px;
}

.article-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 10px;
}

.article-card-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted, #666);
  margin: 0 0 14px;
  flex: 1;
}

.article-card-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--article-gold);
}

.articles-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: var(--muted, #666);
}

/* ── Article detail ── */
.article-detail-head {
  padding: 32px 0 24px;
}

.article-detail-head .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--article-gold);
  margin-bottom: 10px;
}

.article-detail-head h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 12px;
}

.article-detail-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted, #666);
  max-width: 760px;
}

.article-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted, #666);
}

.article-detail-hero {
  margin-bottom: 32px;
}

.article-detail-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  object-position: center;
  background: #f3eee4;
  border-radius: 12px;
  display: block;
}

.article-detail-content {
  max-width: 760px;
  font-size: 16px;
  line-height: 1.75;
  padding-bottom: 48px;
}

.article-detail-content h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 32px 0 12px;
  color: var(--article-gold, #a8872e);
}

.article-detail-content p {
  margin: 0 0 16px;
}

.article-detail-content ul,
.article-detail-content ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.article-detail-content a {
  color: var(--article-gold);
}

.article-detail-cta {
  margin: 40px 0 56px;
  padding: 24px;
  background: var(--bg2, #fff);
  border: 1px solid var(--article-border);
  border-radius: 12px;
  text-align: center;
}

.article-detail-cta h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  margin: 0 0 8px;
}

.article-detail-cta p {
  color: var(--muted, #666);
  margin: 0 0 16px;
  font-size: 14px;
}

.article-detail-cta .btn-primary {
  display: inline-block;
  background: var(--article-gold);
  color: #111;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
}

.article-related {
  padding: 40px 0 64px;
  border-top: 1px solid var(--article-border);
}

.article-related h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}
