:root {
  --bg: #0b0d12;
  --surface: #151820;
  --surface-hover: #1c202c;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #ffd700;
  --accent-dark: #e6c200;
  --danger: #ef4444;
  --success: #10b981;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --font-main: "Inter", system-ui, sans-serif;
  --font-title: "Racing Sans One", cursive;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.2s;
}
a:hover {
  color: var(--accent-dark);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: rgba(11, 13, 18, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #2a2d3a;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo-text {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: #fff;
}
.logo-text span {
  color: var(--accent);
}
.nav-list {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-list a {
  color: #cbd5e1;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-list a:hover {
  color: var(--accent);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* Progress Bar */
.speed-progress {
  position: fixed;
  top: 64px;
  left: 0;
  height: 3px;
  background: var(--accent);
  width: 0%;
  z-index: 99;
  transition: width 0.1s;
}

/* Grid & Cards */
.archive-hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding: 60px 0 40px;
  text-align: center;
}
.archive-hero h1 {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 10px;
}
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.news-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  border: 1px solid #2a2d3a;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent-dark);
}
.card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}
.news-card:hover .card-img img {
  transform: scale(1.05);
}
.card-content {
  padding: 20px;
}
.card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.card-cat {
  background: #2a2d3a;
  padding: 2px 8px;
  border-radius: 4px;
  color: #fff;
}
.card-content h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.3;
  color: #fff;
}
.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
  line-height: 1.5;
}
.card-cta {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Single Post */
.single-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.post-hero {
  margin-bottom: 30px;
  border-radius: var(--radius);
  overflow: hidden;
}
.post-header {
  margin-bottom: 30px;
  border-bottom: 1px solid #2a2d3a;
  padding-bottom: 20px;
}
.post-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.post-header h1 {
  font-size: 2rem;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 10px;
}
.post-excerpt {
  font-size: 1.1rem;
  color: #cbd5e1;
}
.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
}
.post-content p {
  margin-bottom: 1.2rem;
}
.post-content h2 {
  font-size: 1.6rem;
  margin: 2rem 0 1rem;
  color: #fff;
}
.post-content ul,
.post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
}

/* Spec Box */
.spec-box {
  background: #1a1d26;
  border-left: 4px solid var(--accent);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.spec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.spec-header h3 {
  margin: 0;
  color: var(--accent);
  font-family: var(--font-title);
}
.spec-lock {
  background: #2a2d3a;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}
.spec-desc {
  margin: 10px 0 15px;
  color: #cbd5e1;
}
.spec-source {
  display: inline-block;
  background: #2a2d3a;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid #2a2d3a;
  padding: 60px 0 20px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  font-family: var(--font-title);
  color: var(--accent);
  margin-bottom: 10px;
}
.footer-links ul,
.footer-legal ul {
  list-style: none;
}
.footer-links li,
.footer-legal li {
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid #2a2d3a;
  padding-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-list {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid #2a2d3a;
  }
  .nav-list.active {
    display: flex;
  }
  .nav-toggle {
    display: flex;
  }
  .grid-layout {
    grid-template-columns: 1fr;
  }
  .post-header h1 {
    font-size: 1.6rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Utility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: #000;
  padding: 8px;
  z-index: 1000;
}
.skip-link:focus {
  top: 0;
}
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
