*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0d0d0f;
  --bg-alt: #141418;
  --bg-card: #1a1a1f;
  --ink: #e8e8ec;
  --ink-mid: #a8a8b0;
  --ink-light: #6b6b75;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --accent-secondary: #22c55e;
  --rule: #2a2a32;
  --rule-light: #1f1f28;
  --max-width: 800px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Header - bold gaming style */
header {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 2px solid var(--accent);
  padding: 1.5rem;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-sans);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-name:hover {
  filter: brightness(1.2);
}

.site-tagline {
  font-size: 0.875rem;
  color: var(--ink-light);
  font-weight: 400;
}

/* Nav - pill style */
nav {
  background-color: var(--bg);
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 0.75rem;
}

nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-mid);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  transition: all 0.2s ease;
}

nav a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(139, 92, 246, 0.1);
}

/* Breadcrumb */
.breadcrumb {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-light);
}

.breadcrumb a {
  color: var(--ink-light);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Main */
main {
  max-width: var(--max-width);
  margin: 2.5rem auto;
  padding: 0 1.5rem;
}

main.article {
  margin-top: 2rem;
}

/* Section heading - gamer style */
.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

/* Article list - card style */
.article-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-list li {
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.article-list li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.article-list a {
  display: block;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.15s ease;
}

.article-list a:hover {
  color: var(--accent);
}

/* Category label - gaming badge */
.category-label {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  background: rgba(34, 197, 94, 0.15);
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
  margin-bottom: 0.625rem;
}

/* Date */
.date {
  font-size: 0.8125rem;
  color: var(--ink-light);
}

/* Article page */
.article-header {
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.article-header .category-label {
  margin-bottom: 0.75rem;
}

.article-header h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.article-header .article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.article-hero {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 2rem;
  border-radius: 8px;
  border: 1px solid var(--rule);
}

/* Article body */
.article-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.article-content p {
  margin-bottom: 1.25rem;
  color: var(--ink-mid);
}

.article-content p:last-child {
  margin-bottom: 0;
}

.article-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(139, 92, 246, 0.4);
  transition: border-color 0.15s ease;
}

.article-content a:hover {
  border-bottom-color: var(--accent);
}

.article-content em {
  font-style: italic;
}

.article-content strong {
  font-weight: 600;
  color: var(--ink);
}

.article-content code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: var(--bg-alt);
  padding: 0.2em 0.5em;
  border-radius: 4px;
  border: 1px solid var(--rule);
}

/* Source link */
.article-content p:last-of-type em {
  display: block;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--ink-light);
}

/* Related */
.related {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.related h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.related ul {
  list-style: none;
}

.related ul li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule-light);
}

.related ul li:first-child {
  padding-top: 0;
}

.related ul li:last-child {
  border-bottom: none;
}

.related ul li a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.related ul li a:hover {
  color: var(--accent);
}

/* Footer */
footer {
  border-top: 1px solid var(--rule);
  padding: 1.5rem;
  margin-top: 4rem;
  background: var(--bg-alt);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--ink-light);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  font-size: 0.8125rem;
  color: var(--ink-light);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Pagination */
.pagination {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  display: flex;
  gap: 1rem;
}

.pagination a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.pagination a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  body { font-size: 15px; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-name { font-size: 1.75rem; }

  .article-header h1 { font-size: 1.75rem; }
  .article-list a { font-size: 1rem; }

  .nav-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  nav a { font-size: 0.75rem; padding: 0.375rem 0.75rem; }
}
