/* aimux dark theme (Starlight default is dark) */
:root {
  --sl-color-accent-low: #3b1010;
  --sl-color-accent: #FF3131;
  --sl-color-accent-high: #FF6B6B;
  --sl-color-white: #e6e6e6;
  --sl-color-gray-1: #d4d4d4;
  --sl-color-gray-2: #a6a6a6;
  --sl-color-gray-3: #666666;
  --sl-color-gray-4: #404040;
  --sl-color-gray-5: #1a1a1a;
  --sl-color-gray-6: #0d0d0d;
  --sl-color-black: #000000;
  --sl-color-bg-nav: #0d0d0d;
  --sl-color-bg-sidebar: #0d0d0d;
  --sl-color-hairline-light: #1a1a1a;
  --sl-color-hairline-shade: #0d0d0d;
  --sl-font: 'Inter', system-ui, -apple-system, sans-serif;
  --sl-font-mono: 'SF Mono', 'Fira Code', monospace;
}

/* aimux light theme */
:root[data-theme='light'] {
  --sl-color-accent-low: #FCE3E3;
  --sl-color-accent: #EE0000;
  --sl-color-accent-high: #A60000;
  --sl-color-white: #151515;
  --sl-color-gray-1: #4D4D4D;
  --sl-color-gray-2: #6B6B6B;
  --sl-color-gray-3: #8A8A8A;
  --sl-color-gray-4: #D4D4D4;
  --sl-color-gray-5: #F5F5F5;
  --sl-color-gray-6: #FFFFFF;
  --sl-color-black: #FFFFFF;
  --sl-color-bg-nav: #FFFFFF;
  --sl-color-bg-sidebar: #FFFFFF;
  --sl-color-hairline-light: #D4D4D4;
  --sl-color-hairline-shade: #E0E0E0;
}

/* Code blocks: accent top border, better spacing, let syntax highlighter control colors */
pre {
  border: 1px solid var(--sl-color-hairline-light) !important;
  border-top: 3px solid var(--sl-color-accent) !important;
  border-radius: 6px !important;
  padding: 1.25rem 1.5rem !important;
  line-height: 1.65 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Inline code: accent-tinted, distinct from surrounding text */
:not(pre) > code {
  background: var(--sl-color-gray-5);
  color: var(--sl-color-accent-high);
  padding: 0.2em 0.45em;
  border-radius: 4px;
  border: 1px solid var(--sl-color-hairline-light);
  font-weight: 500;
  font-size: 0.875em;
}

/* Shiki dual-theme: dark mode uses CSS variables for proper syntax colors */
:root[data-theme='dark'] .astro-code,
:root[data-theme='dark'] .astro-code span {
  color: var(--shiki-dark) !important;
  background-color: var(--shiki-dark-bg) !important;
}
