:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas,
    'Courier New', monospace;
  
  /* Light mode colors */
  /* Use "R G B" format so Tailwind's rgb(var(--x) / <alpha>) works */
  --background: 255 255 255;
  --background-secondary: 249 250 251;
  --background-tertiary: 243 244 246;
  --background-hover: 229 231 235;
  --foreground: 17 24 39;
  --foreground-muted: 107 114 128;
  --foreground-subtle: 156 163 175;
  --border: 229 231 235;
  --border-hover: 209 213 219;
  --border-light: 243 244 246;
  --card: 255 255 255;
  --card-hover: 249 250 251;
  --accent: #7F52FF;
  --accent-hover: #9B6EFF;
  --primary: #3B82F6;
  --primary-hover: #60A5FA;
}

.dark {
  --background: 30 30 30;
  --background-secondary: 37 37 38;
  --background-tertiary: 45 45 48;
  --background-hover: 62 62 66;
  --foreground: 212 212 212;
  --foreground-muted: 133 133 133;
  --foreground-subtle: 106 106 106;
  --border: 62 62 66;
  --border-hover: 80 80 80;
  --border-light: 70 70 71;
  --card: 37 37 38;
  --card-hover: 45 45 48;
}

* {
  border-color: rgb(var(--border));
}

body {
  background-color: rgb(var(--background));
  color: rgb(var(--foreground));
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-background { background-color: rgb(var(--background)); }
.bg-background-secondary { background-color: rgb(var(--background-secondary)); }
.bg-background-tertiary { background-color: rgb(var(--background-tertiary)); }
.bg-background-hover { background-color: rgb(var(--background-hover)); }
.text-foreground { color: rgb(var(--foreground)); }
.text-foreground-muted { color: rgb(var(--foreground-muted)); }
.text-foreground-subtle { color: rgb(var(--foreground-subtle)); }
.border-border { border-color: rgb(var(--border)); }
.border-border-hover { border-color: rgb(var(--border-hover)); }
.text-accent { color: var(--accent); }
.text-accent-hover:hover { color: var(--accent-hover); }
.text-primary { color: var(--primary); }

.container {
  max-width: 1280px;
  margin: 0 auto;
}

.prose {
  color: rgb(var(--foreground));
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: rgb(var(--foreground));
  font-weight: 600;
}

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

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

.prose code {
  background-color: rgb(var(--background-secondary));
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.prose pre {
  background-color: rgb(var(--background-secondary));
  border: 1px solid rgb(var(--border));
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
}

