/*
 * Earthsong highlight.js theme
 * Based on the earthsong terminal palette
 */

/* Light mode — warm neutral */
pre code.hljs { display: block; overflow-x: auto; padding: 1em; }
code.hljs { padding: 3px 5px; }

.hljs {
  background: #1e1b17;
  color: #d4c4b0;
}

.hljs-comment,
.hljs-quote        { color: #7a7267; font-style: italic; }

.hljs-keyword,
.hljs-selector-tag,
.hljs-built_in,
.hljs-name,
.hljs-tag          { color: #cc4455; }

.hljs-string,
.hljs-title,
.hljs-section,
.hljs-attribute,
.hljs-literal,
.hljs-template-tag,
.hljs-template-variable,
.hljs-type,
.hljs-addition     { color: #95CC5E; }

.hljs-deletion,
.hljs-selector-attr,
.hljs-selector-pseudo,
.hljs-meta         { color: #DB784D; }

.hljs-doctag       { color: #F8BB39; }

.hljs-attr,
.hljs-variable,
.hljs-params       { color: #c4b19e; }

.hljs-function,
.hljs-selector-class,
.hljs-number       { color: #F8BB39; }

.hljs-regexp,
.hljs-link         { color: #95CC5E; }

.hljs-symbol,
.hljs-bullet       { color: #557799; }

.hljs-title.class_,
.hljs-class .hljs-title { color: #6688aa; }

.hljs-emphasis   { font-style: italic; }
.hljs-strong     { font-weight: bold; }

/* Light mode overrides — keep code blocks readable on white */
:root:not([data-theme="dark"]) .hljs {
  background: #2a2520;
  color: #d4c4b0;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .hljs {
    background: #2a2520;
    color: #d4c4b0;
  }
}
