:root {
    --bg: #0d1117;
    --bg-alt: #161b22;
    --card-bg: rgba(22, 27, 34, 0.65);
    --card-bg-hover: rgba(32, 39, 49, 0.85);
    --accent: #4ade80;
    --accent-soft: rgba(74, 222, 128, 0.15);
    --text: #f8fafc;
    --muted: #9ba3b4;
    --border: #2c323c;
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  
    --radius: 14px;
    --transition: 180ms cubi bezier(0.22, 1, 0.36, 1);
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: var(--font);
    background: linear-gradient(180deg, #0d1117 0%, #0b0f14 60%);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }
  
  .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.75rem;
  }
  
  /* HEADER */
  .site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(13, 17, 23, 0.75);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1.4rem 0;
  }
  
  .site-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
  }
  
  .site-subtitle {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.95rem;
  }
  
  /* ARTICLES GRID */
  .articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.4rem;
    padding-top: 1.2rem;
  }
  
  .article-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: transform 0.2s ease, border-color 0.2s ease,
      box-shadow 0.2s ease, background 0.2s ease;
  }
  
  .article-card:hover {
    transform: translateY(-5px);
    background: var(--card-bg-hover);
    border-color: var(--accent);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
  
  .demo-card {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft), 0 12px 30px rgba(0, 0, 0, 0.48);
  }
  
  .article-link {
    color: var(--text);
    text-decoration: none;
  }
  
  .article-card h3 {
    margin-bottom: 0.55rem;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.2px;
  }
  
  .meta {
    margin: 0.22rem 0;
    font-size: 0.82rem;
    color: var(--muted);
  }
  
  .excerpt {
    margin-top: 0.75rem;
    font-size: 0.94rem;
    color: #e5e7eb;
    opacity: 0.92;
  }
  
  /* ARTICLE PAGE */
  .article-page {
    background: rgba(16, 22, 33, 0.75);
    border: 1px solid var(--border);
    padding: 2rem 2.2rem;
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    margin-top: 1.6rem;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
  }
  
  .article-page h2 {
    margin-bottom: 0.7rem;
    font-size: 1.65rem;
    letter-spacing: -0.4px;
    font-weight: 700;
  }
  
  .article-content {
    margin-top: 1.3rem;
    font-size: 1rem;
  }
  
  .article-content p {
    margin-bottom: 1rem;
  }
  
  /* BACK LINK */
  .back-link {
    display: inline-block;
    margin-top: 1.2rem;
    font-size: 0.95rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
  }
  
  .back-link:hover {
    text-decoration: underline;
  }
  
  /* RAW JSON BLOCK */
  .code-block {
    background: rgba(10, 14, 20, 0.85);
    border: 1px solid var(--border);
    font-size: 0.9rem;
    padding: 1.1rem 1.2rem;
    border-radius: 10px;
    margin-top: 1.8rem;
    overflow-x: auto;
    white-space: pre;
    font-family: "JetBrains Mono", monospace;
  }
  
  /* FOOTER */
  .site-footer {
    margin-top: 3rem;
    padding: 1.4rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
  }
  
  /* RESPONSIVE */
  @media (max-width: 600px) {
    .site-title {
      font-size: 1.75rem;
    }
  
    .article-page {
      padding: 1.4rem;
    }
  }
  