:root {
  --bg: #141414;
  --fg: #c5c8c6;
  --muted: #969896;
  --border: #333333;
  --accent-bg: #282a2e;
  --code-bg: #1d1f21;
  --link: #81a2be;
}

body {
    max-width: 800px;
    margin: auto;
    padding: 1em;
    line-height: 1.5;
    background: var(--bg);
    color: var(--fg);
}

a {
    color: var(--link);
}
a:hover {
    color: #1eaedb;
}

/* header and footer areas */
.menu {
    padding: 0;
}
.menu li {
    display: inline-block;
}
.article-meta,
.menu a {
    text-decoration: none;
    background: none;
    padding: 5px;
}
.menu,
.article-meta,
footer {
    text-align: center;
}
.title {
    font-size: 1.1em;
}
footer a {
    text-decoration: none;
}
hr {
    border-style: dashed;
    color: var(--border);
}

/* code */
pre {
    border: 1px solid var(--border);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.45);
    padding: 1em;
    overflow-x: auto;
}
code {
    background: var(--code-bg);
}
pre code {
    background: none;
}

/* misc elements */
img,
iframe,
video {
    max-width: 100%;
}
main {
    hyphens: auto;
}
blockquote {
    background: var(--accent-bg);
    border-left: 5px solid var(--border);
    padding: 3px 1em 3px;
}

table {
    margin: auto;
    border-top: 1px solid var(--muted);
    border-bottom: 1px solid var(--muted);
}
table thead th {
    border-bottom: 1px solid var(--border);
}
th,
td {
    padding: 5px;
}
thead,
tfoot,
tr:nth-child(even) {
    background: var(--accent-bg);
}

li .desc {
    color: var(--muted);
    font-size: 0.9em;
}

.langtag {
    padding: 0 0.5em;
    border-radius: 5px;
    vertical-align: text-bottom;
}

.langicon {
    font-family: "NF Icons";
}

.hljs {
    color: var(--fg);
    background: transparent;
}
.hljs-comment,
.hljs-quote {
    color: var(--muted);
    font-style: italic;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal {
    color: #b294bb;
}
.hljs-string,
.hljs-symbol,
.hljs-bullet,
.hljs-addition {
    color: #b5bd68;
}
.hljs-regexp,
.hljs-string.escape_,
.hljs-operator,
.hljs-selector-pseudo,
.hljs-selector-attr {
    color: #8abeb7;
}
.hljs-number,
.hljs-constant,
.hljs-attribute,
.hljs-params {
    color: #de935f;
}
.hljs-variable,
.hljs-template-variable,
.hljs-tag,
.hljs-name,
.hljs-selector-id,
.hljs-selector-class,
.hljs-attr,
.hljs-property,
.hljs-deletion,
.hljs-section {
    color: #cc6666;
}
.hljs-type,
.hljs-built_in,
.hljs-builtin-name,
.hljs-title.class_,
.hljs-title.class_.inherited__,
.hljs-namespace {
    color: #f0c674;
}
.hljs-title,
.hljs-title.function_,
.hljs-link {
    color: var(--link);
}
.hljs-meta {
    color: var(--muted);
}
.hljs-link {
    font-style: italic;
}
.hljs-emphasis {
    font-style: italic;
}
.hljs-strong {
    font-weight: bold;
}
