/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Override Lexxy content to inherit site text color instead of using its own.
   Lexxy's .lexxy-content sets color: var(--lexxy-color-ink) which is hardcoded
   near-black. We want it to follow the site's color scheme in both modes. */
.lexxy-content {
  color: inherit;
}

/* Dark mode overrides for Lexxy's CSS variables (code blocks, blockquote
   borders, table headers, etc. still reference these variables directly) */
.dark .lexxy-content {
  --lexxy-color-ink: oklch(90% 0 0);
  --lexxy-color-ink-medium: oklch(70% 0 0);
  --lexxy-color-ink-light: oklch(50% 0 0);
  --lexxy-color-ink-lighter: oklch(30% 0 0);
  --lexxy-color-ink-lightest: oklch(15% 0 0);
  --lexxy-color-ink-inverted: oklch(10% 0 0);
  --lexxy-color-link: oklch(70% 0.15 250);
  --lexxy-color-code-bg: oklch(20% 0 0);
  --lexxy-color-code-token-att: #f97583;
  --lexxy-color-code-token-comment: #8b949e;
  --lexxy-color-code-token-function: #d2a8ff;
  --lexxy-color-code-token-operator: #f97583;
  --lexxy-color-code-token-property: #79c0ff;
  --lexxy-color-code-token-punctuation: #c9d1d9;
  --lexxy-color-code-token-selector: #7ee787;
  --lexxy-color-code-token-variable: #ffa657;
}
