﻿:root {
    --bg: #1d2021;
    --fg: #ccc;
    --bgalt: #282828;
    --fgalt: #fff;
    --accent: #d5c4a1;
    --gap: 25px;
    --fontsize: 16px;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: Lucida Sans Unicode, Lucida Grande, san-serif;
    font-size: var(--fontsize);
    line-height: 1.5;
    margin: 0 10px 10px 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    grid-gap: var(--gap);
}

#footer {
    grid-column: 1 / span 2;
    text-align: center;
}

#sidebar {
    padding: 10px;
    border-right: 2px solid var(--accent);
}

#content {
    padding: 10px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--fgalt);
    margin: 0;
}

li {
    margin-bottom: var(--fontsize);
    margin-top: var(--fontsize);
}

a {
    color: var(--fgalt);
    text-decoration: none;
    border-bottom: 2px dotted var(--accent);
}

blockquote {
    margin: 0;
    font-style: italic;
    padding-left: 10px;
    border-left: 2px solid var(--fg);
}

.notice {
    background-color: var(--bgalt);
    text-align: center;
}

/** Blog **/
article {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    grid-gap: var(--gap);
}
.entry-content {
    max-width: 800px;
    padding-bottom: calc(var(--gap) / 2);
    margin-bottom: var(--gap);
    border-bottom: 2px solid var(--bgalt);
}
.entry-title a {
    border-bottom: none;
}
.entry .thumbs {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(auto, max-content));
    justify-content: center;
    grid-gap: var(--gap);
}
.entry .thumbs a {
    border: unset;
}
.entry img,
.entry object,
.entry video {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: var(--fontsize);
}
.entry img,
.entry video {
    height: auto;
    max-width: 100%;
}
.entry .modified {
    font-style: italic;
}
.tag-micro header,
.tag-micro .entry-title,
.tag-micro .entry-body,
.tag-micro .entry-body > p:first-child {
    display: inline;
}
.tag-micro .entry-title {
    font-size: var(--fontsize);
}
.pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: var(--gap);
    font-size: 48px;
}
.pagination .newer {
    text-align: right;
}
#footnotes h2 {
    display: none;
}
#footnotes:before {
    content: '\2735';
    text-align: center;
    font-size: 4em;
    display: block;
    opacity: .2;
}
#footnotes ol {
    font-size: 85%;
    list-style-position: inside;
    padding-left: 0;
}

/** Nav **/
nav ul {
    padding-left: 0;
    list-style: none;
}

/** Search **/
.query {
    font-weight: bold;
}
.tipue_search_result {
    margin-top: var(--gap);
}
#tipue_search_foot_boxes li {
    display: inline;
    margin-right: var(--gap);
}

/** Tag Cloud **/
.tagcloud {
    list-style: none;
}
.tagcloud li {
    display: inline-block;
    margin: 10px;
}
.tagcloud li.tag-1 {
    font-size: 250%;
}
.tagcloud li.tag-2 {
    font-size: 200%;
}
.tagcloud li.tag-3 {
    font-size: 150%;
}
.tagcloud li.tag-4 {
    font-size: 100%;
}

/** Forms **/
input,
button,
textarea,
select {
    font: inherit;
}
input {
    background-color: var(--bgalt);
    border: 1px solid var(--bgalt);
    color: var(--fgalt);
}
input:focus {
    border-color: var(--accent);
}

/** Menu Toggle **/
#hamburger svg {
    width: 20px;
    cursor: pointer;
    fill: var(--accent);
}
#toggler {
    display: none;
}
#toggler:not(:checked) ~ aside {
    width: var(--gap);
}
#toggler:not(:checked) ~ aside nav,
#toggler:not(:checked) ~ aside form {
    display: none;
}


/** Tables **/
table {
    border-collapse: collapse;
}
table th,
table td {
    padding: 5px 10px;
    border: 1px solid var(--bgalt);
}
table th {
    text-align: center;
    color: var(--fgalt);
}
table thead {
    background-color: var(--bgalt);
}
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center right;
}
table.dataTable thead .sorting {
    background-image: url('/theme/images/sort_both.png');
}
table.dataTable thead .sorting_asc {
    background-image: url('/theme/images/sort_asc.png');
}
table.dataTable thead .sorting_desc {
    background-image: url('/theme/images/sort_desc.png');
}
.dataTables_filter, .dataTables_info {
    margin: var(--fontsize) 0;
}

/** Code **/
code {
    background-color: var(--bgalt);
    padding: 0px 4px;
    border: 1px solid var(--accent);
    color: var(--fgalt);
}
pre {
    padding: 10px;
    overflow: auto;
    margin: 0;
}
pre code {
    background-color: unset;
    padding: unset;
    border: unset;
    color: unset;
}
.highlight {
    overflow: auto;
}
.highlighttable .linenodiv {
    background-color: var(--bgalt);
}
.highlighttable td,
.highlighttable th {
    padding: 0;
    border: none;
}

/** Tomorrow Night Eighties https://github.com/jamiebuilds/tomorrow-pygments-sass **/
.highlight .hll { background-color: #515151 }
.highlight  { background: #2d2d2d; color: #cccccc }
.highlight .c { color: #999999 } /* Comment */
.highlight .err { color: #f2777a } /* Error */
.highlight .k { color: #cc99cc } /* Keyword */
.highlight .l { color: #f99157 } /* Literal */
.highlight .n { color: #cccccc } /* Name */
.highlight .o { color: #66cccc } /* Operator */
.highlight .p { color: #cccccc } /* Punctuation */
.highlight .cm { color: #999999 } /* Comment.Multiline */
.highlight .cp { color: #999999 } /* Comment.Preproc */
.highlight .c1 { color: #999999 } /* Comment.Single */
.highlight .cs { color: #999999 } /* Comment.Special */
.highlight .gd { color: #f2777a } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gh { color: #cccccc; font-weight: bold } /* Generic.Heading */
.highlight .gi { color: #99cc99 } /* Generic.Inserted */
.highlight .gp { color: #999999; font-weight: bold } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #66cccc; font-weight: bold } /* Generic.Subheading */
.highlight .kc { color: #cc99cc } /* Keyword.Constant */
.highlight .kd { color: #cc99cc } /* Keyword.Declaration */
.highlight .kn { color: #66cccc } /* Keyword.Namespace */
.highlight .kp { color: #cc99cc } /* Keyword.Pseudo */
.highlight .kr { color: #cc99cc } /* Keyword.Reserved */
.highlight .kt { color: #ffcc66 } /* Keyword.Type */
.highlight .ld { color: #99cc99 } /* Literal.Date */
.highlight .m { color: #f99157 } /* Literal.Number */
.highlight .s { color: #99cc99 } /* Literal.String */
.highlight .na { color: #6699cc } /* Name.Attribute */
.highlight .nb { color: #cccccc } /* Name.Builtin */
.highlight .nc { color: #ffcc66 } /* Name.Class */
.highlight .no { color: #f2777a } /* Name.Constant */
.highlight .nd { color: #66cccc } /* Name.Decorator */
.highlight .ni { color: #cccccc } /* Name.Entity */
.highlight .ne { color: #f2777a } /* Name.Exception */
.highlight .nf { color: #6699cc } /* Name.Function */
.highlight .nl { color: #cccccc } /* Name.Label */
.highlight .nn { color: #ffcc66 } /* Name.Namespace */
.highlight .nx { color: #6699cc } /* Name.Other */
.highlight .py { color: #cccccc } /* Name.Property */
.highlight .nt { color: #66cccc } /* Name.Tag */
.highlight .nv { color: #f2777a } /* Name.Variable */
.highlight .ow { color: #66cccc } /* Operator.Word */
.highlight .w { color: #cccccc } /* Text.Whitespace */
.highlight .mf { color: #f99157 } /* Literal.Number.Float */
.highlight .mh { color: #f99157 } /* Literal.Number.Hex */
.highlight .mi { color: #f99157 } /* Literal.Number.Integer */
.highlight .mo { color: #f99157 } /* Literal.Number.Oct */
.highlight .sb { color: #99cc99 } /* Literal.String.Backtick */
.highlight .sc { color: #cccccc } /* Literal.String.Char */
.highlight .sd { color: #999999 } /* Literal.String.Doc */
.highlight .s2 { color: #99cc99 } /* Literal.String.Double */
.highlight .se { color: #f99157 } /* Literal.String.Escape */
.highlight .sh { color: #99cc99 } /* Literal.String.Heredoc */
.highlight .si { color: #f99157 } /* Literal.String.Interpol */
.highlight .sx { color: #99cc99 } /* Literal.String.Other */
.highlight .sr { color: #99cc99 } /* Literal.String.Regex */
.highlight .s1 { color: #99cc99 } /* Literal.String.Single */
.highlight .ss { color: #99cc99 } /* Literal.String.Symbol */
.highlight .bp { color: #cccccc } /* Name.Builtin.Pseudo */
.highlight .vc { color: #f2777a } /* Name.Variable.Class */
.highlight .vg { color: #f2777a } /* Name.Variable.Global */
.highlight .vi { color: #f2777a } /* Name.Variable.Instance */
.highlight .il { color: #f99157 } /* Literal.Number.Integer.Long */

@media screen and (max-width: 960px) {
    article {
        display: block;
    }
    article .meta {
        margin-bottom: var(--gap);
    }
}
