/**
 * articles.css — Articles listing page styles (extracted from inline <style>).
 * Mobile-first with min-width breakpoints.
 */

/* ========== Container ========== */

.articles-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 1rem 4rem;
  min-height: 100vh; /* fallback */
  min-height: 100dvh;
}

.articles-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.articles-header .headline {
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: clamp(1.2rem, 4vw, 2.5rem);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--text);
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.5),
    0 0 20px rgba(255, 255, 255, 0.3),
    0 0 40px rgba(168, 85, 247, 0.2);
  margin-bottom: 1rem;
}

.articles-header p {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* ========== Article cards ========== */

.article-card {
  display: block;
  padding: 1.5rem 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  position: relative;
}

.article-card::before {
  content: '>';
  position: absolute;
  left: 0.5rem;
  top: 1.5rem;
  color: var(--accent);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.article-card:hover::before {
  opacity: 1;
}

.article-card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.1);
}

.article-card h2 {
  font-family: 'Press Start 2P', 'VT323', monospace;
  font-size: clamp(0.6rem, 2vw, 0.9rem);
  color: var(--text);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.6;
}

.article-card .meta {
  font-family: 'Space Mono', 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.article-card p {
  font-family: 'Space Mono', 'Courier New', monospace;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ========== Per-article accent colors on hover ========== */

.article-card[data-scheme="article-discovery"]:hover {
  border-color: #f97316;
  box-shadow: 0 0 30px rgba(249, 115, 22, 0.15);
}
.article-card[data-scheme="article-discovery"]:hover h2 {
  color: #f97316;
}
.article-card[data-scheme="article-discovery"]:hover .meta {
  color: #f97316;
}

.article-card[data-scheme="article-mvp"]:hover {
  border-color: #06b6d4;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.15);
}
.article-card[data-scheme="article-mvp"]:hover h2 {
  color: #06b6d4;
}
.article-card[data-scheme="article-mvp"]:hover .meta {
  color: #06b6d4;
}

.article-card[data-scheme="article-maintenance"]:hover {
  border-color: #22c55e;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.15);
}
.article-card[data-scheme="article-maintenance"]:hover h2 {
  color: #22c55e;
}
.article-card[data-scheme="article-maintenance"]:hover .meta {
  color: #22c55e;
}

.article-card[data-scheme="article-tokens"]:hover {
  border-color: #a855f7;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.15);
}
.article-card[data-scheme="article-tokens"]:hover h2 {
  color: #a855f7;
}
.article-card[data-scheme="article-tokens"]:hover .meta {
  color: #a855f7;
}

.article-card[data-scheme="article-taste"]:hover {
  border-color: #ec4899;
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.15);
}
.article-card[data-scheme="article-taste"]:hover h2 {
  color: #ec4899;
}
.article-card[data-scheme="article-taste"]:hover .meta {
  color: #ec4899;
}

/* ========== Back link ========== */

.back-link {
  display: inline-block;
  margin-top: 2rem;
  color: var(--accent);
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.back-link .back-arrow {
  font-size: 1.2em;
  vertical-align: middle;
  margin-right: 0.3em;
}

.back-link:hover {
  text-decoration: underline;
}

/* ========== Responsive: sm (640px+) ========== */

@media (min-width: 640px) {
  .articles-container {
    padding: 6rem 1.5rem 5rem;
  }

  .articles-header {
    margin-bottom: 3rem;
  }

  .articles-header p {
    font-size: 1.1rem;
  }

  .article-card {
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.75rem;
  }

  .article-card::before {
    left: 0.75rem;
    top: 1.75rem;
    font-size: 0.8rem;
  }

  .article-card .meta {
    font-size: 1rem;
  }

  .article-card p {
    font-size: 1rem;
  }

  .back-link {
    font-size: 0.7rem;
  }
}

/* ========== Responsive: md (768px+) ========== */

@media (min-width: 768px) {
  .articles-container {
    padding: 8rem 2rem 6rem;
  }

  .articles-header {
    margin-bottom: 4rem;
  }

  .articles-header p {
    font-size: 1.2rem;
  }

  .article-card {
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .article-card::before {
    top: 2rem;
  }

  .article-card .meta {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .article-card p {
    font-size: 1.1rem;
  }
}
