@import url("https://fontsapi.zeoseven.com/572/main/result.css");
@import url("https://fontsapi.zeoseven.com/442/main/result.css");

* {
    margin: 0;
    padding: 0;
}

body {
    background: #000;
    font-size: 18px;
    color: #fff;
}

.term-frame {
    padding: 0 0.5em;
    background: #000;
    color: #fff;
    position: relative;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    line-height: 1.6em;
    font-family: "Unifont", monospace;
}

.term-frame hr.splitter {
     border: none;
     border-top: 4px double #444;
}

.term-frame:focus {
    outline: none;
}

.term-frame span.blog-title {
    font-size: 3.2em;
    line-height: 1.2em;
}

.term-frame a {
    color: #fff;
    background: #222;
    text-decoration: none;
    margin: 0 0.2em;
    padding: 0.2em 0;
}

.term-frame a:hover {
    background-color: #444;
}

.term-frame a::before {
    content: "[:link:]";
    display: inline-block;
    font-size: 0.6em;
    padding: 0 0.2em;
}

/* external links get a distinct prefix */
.term-frame a[href^="http://"]::before,
.term-frame a[href^="https://"]::before,
.term-frame a[href^="//"]::before {
    content: "[*link*]";
}

.term-frame a::after {
    content: "";
    display: inline-block;
    padding: 0 0.2em;
}

.dim {
    color: #888;
}

/* post content injected by js */
.content h2 { font-size: 1.6em; margin: 0.8em 0 0.3em; }
.content h3 { font-size: 1.3em; margin: 0.7em 0 0.2em; }
.content h4 { font-size: 1.1em; margin: 0.6em 0 0.2em; }
.content h5, .content h6 { font-size: 1em; margin: 0.5em 0 0.2em; }
.content p { margin: 0.5em 0; }
.content code,
.content pre.src,
.content pre.src code {
    font-size: 0.9em;
    font-family: "Maple Mono NF CN", monospace;
    font-weight: normal;
}
.content pre.src {
    white-space: pre;
    overflow-wrap: normal;
    overflow-x: auto;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 0.5em 0;
}
.content code { background: #222; }
.content pre.src code { background: none; }
.content blockquote {
    margin: 0.5em 0;
    padding-left: 1em;
    border-left: 2px solid #555;
    color: #aaa;
}
.content details {
    background: #222;
}
.content details summary {
    display: grid;
    grid-template-columns: min-content min-content auto;
    list-style: none;
    align-items: center;
    border: 0;
    cursor: pointer;
}
.content details summary * {
    cursor: pointer;
}
.content details[open] summary::before {
    content: "-";
    padding: 0 0.2em;
}
.content details summary::before {
    content: "+";
    padding: 0 0.2em;
}
.content details button.copy-code {
    border: 2px #000 solid;
    background: #444;
    padding: 0.2em;
    margin: 0 0.5em;
    color: #fff;
    justify-self: right;
}
.content table { border-collapse: collapse; margin: 0.5em 0; }
.content th, .content td {
    border: 1px solid #555;
    padding: 0.1em 0.5em;
    text-align: left;
}
.content th { background: #222; }
.content ul, .content ol { margin: 0.5em 0; padding-left: 1.6em; }
.content li { display: list-item; }
.content img { max-width: 100%; height: auto; }
.content hr { border: none; border-top: 1px dashed #555; margin: 0.8em 0; }

.content .status_todo { background: #400; padding: 0 0.5em; }
.content .status_done { background: #040; padding: 0 0.5em; }

#post-nav { margin-top: 1em; }

@media (max-width: 700px) {
    body { font-size: 14px; }
    .term-frame span.blog-title { font-size: 2.2em; }
}
