@layer base {
  /* Code block improvements */
  pre, code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 1rem;
    line-height: 1.6;
  }
  pre {
    background: #181c24;
    color: #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.08);
    max-width: 100%;
    width: 100%;
  }
  code {
    background: #23272e;
    color: #facc15;
    border-radius: 0.375rem;
    padding: 0.15em 0.4em;
    font-size: 0.97em;
  }
  pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: 1em;
  }
  /* Responsive code blocks */
  .prose pre {
    max-width: 100vw;
    overflow-x: auto;
  }
  /* Markdown headings */
  .prose h1, .prose h2, .prose h3, .prose h4 {
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
  }
  .prose h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
  }
  .prose h2 {
    font-size: 2rem;
    border-left: 4px solid #0ea5e9;
    padding-left: 0.75rem;
    background: linear-gradient(90deg,rgba(14,165,233,0.07) 0%,rgba(14,165,233,0.01) 100%);
  }
  .prose h3 {
    font-size: 1.4rem;
    color: #0ea5e9;
  }
  .prose h4 {
    font-size: 1.1rem;
    color: #0284c7;
  }
  /* Section spacing */
  .prose > * + * {
    margin-top: 1.5em;
  }
  /* Table improvements */
  .prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
  }
  .prose th, .prose td {
    border: 1px solid #334155;
    padding: 0.5em 1em;
    text-align: left;
  }
  .prose th {
    background: #0ea5e9;
    color: #fff;
    font-weight: 600;
  }
  .prose tr:nth-child(even) td {
    background: #1e293b;
  }
  /* Dark mode overrides */
  html.dark pre {
    background: #23272e;
    color: #e0e7ef;
  }
  html.dark code {
    background: #181c24;
    color: #facc15;
  }
  html.dark .prose th {
    background: #0369a1;
    color: #fff;
  }
  html.dark .prose tr:nth-child(even) td {
    background: #181c24;
  }
} 