/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* Global Configuration */
:root {
  --brand-purple: #8B5CF6;
  --brand-black: #000000;
}

/* Base Styles */
body {
  font-family: 'JetBrains Mono', monospace;
}

/* Font Utilities */
.font-inter {
  font-family: 'Inter', sans-serif !important;
}

.font-mono {
  font-family: 'JetBrains Mono', monospace !important;
}

/* Utility Classes */
.section-padding {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.image-container {
  width: 100%;
  max-width: 32rem;
  margin: 0 auto;
}

/* Article Prose Styles - Base */
.prose {
  max-width: none;
  line-height: 1.7;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h1 {
  font-size: 2.5rem;
  margin-top: 0;
}

.prose h2 {
  font-size: 2rem;
}

.prose h3 {
  font-size: 1.5rem;
}

.prose p {
  margin: 1rem 0;
}

.prose a {
  text-decoration: none;
}

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

/* Article Table Styles - Base */
.prose table {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose table th {
  padding: 0.75rem;
  text-align: left;
  font-weight: 600;
}

.prose table td {
  padding: 0.75rem;
}

/* Article Code Styles - Base */
.prose pre {
  background-color: #1f2937;
  color: #e5e7eb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.prose code:not(pre code) {
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-weight: 500;
}

.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

/* List and Text Styles */
.prose ul,
.prose ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.prose li {
  margin: 0.5rem 0;
}

.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  font-style: italic;
}

.prose strong {
  font-weight: 700;
}

.prose em {
  font-style: italic;
}

/* Brand Classes for Special Pages */
.brand-purple {
  color: var(--brand-purple) !important;
}

.brand-black {
  color: var(--brand-black) !important;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .section-padding {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .prose {
    font-size: 0.9rem;
  }

  .prose h1 {
    font-size: 2rem;
  }

  .prose h2 {
    font-size: 1.75rem;
  }

  .prose h3 {
    font-size: 1.25rem;
  }

  .prose table {
    font-size: 0.8rem;
  }

  .prose table th,
  .prose table td {
    padding: 0.5rem;
  }

  .prose pre {
    font-size: 0.8rem;
  }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Selection styles */
::selection {
  background-color: #3b82f6;
  color: #ffffff;
}