pre[class*="language-"],
code[class*="language-"] {
  color: var(--text);
  background: none;
  font-family: var(--mono);
  font-size: 1em;
  text-align: left;
  white-space: pre;
  word-spacing: normal;
  word-break: normal;
  word-wrap: normal;
  line-height: 1.7;
  -moz-tab-size: 2;
  tab-size: 2;
  hyphens: none;
}

pre[class*="language-"] {
  margin: 0;
}

pre[class*="language-"]::-moz-selection { background: var(--accent-soft); }
pre[class*="language-"] ::-moz-selection { background: var(--accent-soft); }
pre[class*="language-"]::selection { background: var(--accent-soft); }
pre[class*="language-"] ::selection { background: var(--accent-soft); }

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: var(--tk-comment);
  font-style: italic;
}

.token.punctuation {
  color: var(--tk-punct);
}

.token.namespace {
  opacity: .7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
  color: var(--tk-tag);
}

.token.boolean,
.token.number {
  color: var(--tk-number);
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: var(--tk-string);
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
  color: var(--tk-operator);
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: var(--tk-keyword);
}

.token.function,
.token.class-name {
  color: var(--tk-function);
}

.token.variable {
  color: var(--tk-variable);
}

.token.parameter {
  color: var(--tk-variable);
}

.token.directive {
  color: var(--tk-keyword);
}

.token.section {
  color: var(--tk-tag);
  font-weight: 600;
}

.token.key {
  color: var(--tk-function);
}

.token.value {
  color: var(--tk-string);
}

.token.inserted-sign {
  color: var(--tk-string);
}

.token.deleted-sign {
  color: var(--tk-tag);
}

.token.coord {
  color: var(--tk-comment);
}

.token.regex,
.token.important {
  color: var(--tk-regex);
}

.token.important,
.token.bold {
  font-weight: 600;
}

.token.italic {
  font-style: italic;
}

.token.entity {
  cursor: help;
}

:root {
  --tk-comment:  #a1988a;
  --tk-punct:    #8d8578;
  --tk-tag:      #b62d11;
  --tk-number:   #a8571f;
  --tk-string:   #5f855f;
  --tk-operator: #7a7266;
  --tk-keyword:  #a4522b;
  --tk-function: #4f76a3;
  --tk-variable: #3a342c;
  --tk-regex:    #8b5a9c;
}

[data-theme="dark"] {
  --tk-comment:  #9a9286;
  --tk-punct:    #a59c8e;
  --tk-tag:      #ff8b70;
  --tk-number:   #f0c674;
  --tk-string:   #a9cd9f;
  --tk-operator: #b3a999;
  --tk-keyword:  #ea9463;
  --tk-function: #96b9e4;
  --tk-variable: #e6dccb;
  --tk-regex:    #d0a9df;
}
