@font-face{
    font-family: "roboto-mono";
    src:
        local("Roboto Mono"),
        url("/Roboto_Mono/RobotoMono-VariableFont_wght.ttf") format("truetype")
}

@font-face{
    font-family: "roboto-mono-italic";
    src:
        local("Roboto Mono Italic"),
        url("/Roboto_Mono/RobotoMono-Italic-VariableFont_wght.ttf") format("truetype")
}

/* Crux theme */
.crux_window{
    display:grid;
    grid-template-columns:23px minmax(0, 1fr) 23px;
    width:fit-content;
    margin-bottom: 10px;
    margin-right: 10px;
}
.crux_cell{
    display:inline-block;
    min-width:23px;
    min-height:23px;
}
.crux_exp_part{
    height:23px;
    display:table-cell;
    width:auto;
}
.crux_tl{grid-column:1;min-width:23px;background-image:url('crux/crux_tl.svg');background-repeat:no-repeat;background-position-x:right;}
.crux_t{grid-column:2;background-image:url('crux/crux_top.svg');}
.crux_t_l{background-image:url('crux/crux_title_area.svg');}
.crux_t_tra{background-image:url('crux/crux_title_transition.svg');width:40px;}
.crux_tr{grid-column:3;width:23px;background-image:url('crux/crux_tr.svg');}
.crux_l{grid-column:1;min-width:23px;background-image:url('crux/darkcrux_left.svg');background-repeat:repeat-y;background-position-x:right;}
.crux_c{grid-column:2;background-image:url('crux/darkcrux_middle.svg');margin-bottom:-15px;}
.crux_r{grid-column:3;width:23px;background-image:url('crux/darkcrux_right.svg');}
.crux_bl{grid-column:1;min-width:23px;background-image:url('crux/darkcrux_bl.svg');background-repeat:no-repeat;background-position-x:right;}
.crux_b{grid-column:2;background-image:url('crux/darkcrux_bottom.svg');}
.crux_b_l{width:23px;background-image:url('crux/darkcrux_bottom_purple.svg');}
.crux_b_tra{background-image:url('crux/darkcrux_bottom_transition.svg');width:23px;}
.crux_br{grid-column:3;width:23px;background-image:url('crux/darkcrux_br.svg');}
.crux_button{
    display:inline-block;
    border: 3px solid;
    border-image: url("/crux/darkcrux_button.svg") 3 3 3 3 stretch;
    border-image-width: 3px 3px 3px 3px;
    background-image: url("/crux/darkcrux_button_centre.svg");
    background-origin: padding-box;
    background-clip: padding-box;
    padding-left:0.2em;
    padding-right:0.2em;
    color: white;
    text-wrap:nowrap;
}
.crux_button>a{
    color:white;
    text-decoration:none;
}
.crux_button>a:visited{
    color:white;
    text-decoration:none;
}
.crux_button.disabled{
    background-image: url("/crux/darkcrux_button_centre_disabled.svg");
    border-image-source: url("/crux/darkcrux_button_disabled.svg");
}
.crux_button.disabled>*{
    color:#909888;
}
@media (prefers-color-scheme: light) {
    .crux_l{background-image:url('crux/crux_left.svg');}
    .crux_c{background-image:url('crux/crux_middle.svg');}
    .crux_r{background-image:url('crux/crux_right.svg');}
    .crux_bl{background-image:url('crux/crux_bl.svg');}
    .crux_b{background-image:url('crux/crux_bottom.svg');}
    .crux_b_l{background-image:url('crux/crux_bottom_purple.svg');}
    .crux_b_tra{background-image:url('crux/crux_bottom_transition.svg');}
    .crux_br{background-image:url('crux/crux_br.svg');}
    .crux_button{
        border-image-source: url("/crux/crux_button.svg");
        background-image: url("/crux/crux_button_centre.svg");
        color: black;
    }
    .crux_button>a{
        color:black;
    }
    .crux_button>a:visited{
        color:black;
    }
    .crux_button.disabled{
        background-image: url("/crux/crux_button_centre_disabled.svg");
        border-image-source: url("/crux/crux_button_disabled.svg");
    }
}

body{
    background-color:black;
    color: white;
    font-family: "roboto-mono";
}

.section{
    display:grid;
    grid-template-columns:3fr 1fr;
    grid-column-gap:10px;
}

.datelabel {
  font-weight: bold;
}

.date {
  color: orange;
  font-style: italic;
}

a{
    text-decoration:none;
    color:#7f81ff;
}

a:hover{
    text-decoration:underline;
}

a:visited{
    color:#c57fff;
}

h1{
    font-size:1.5em;
}

.archive-years{
    list-style-type:none;
    padding-left:0;
}

.archive-year{
    font-weight:bold;
}

.archive-year>*{
    font-weight:initial;
}

.archive-entries{
    list-style-type:disc;
}

.archive-entry{
    display:grid;
    grid-template-columns: min-content 1fr;
    grid-column-gap:1em;
    position:relative;
    left:-58px;
    padding-left:58px;
    width:calc( 100% + 17px);
    &:hover{
        background-color:#535353;
    }
}

.search-result-para{
    &:hover{
        background-color:#535353;
    }
}

.archive-entry > div{
    display:inline-block;
    margin:0;
    min-width:48px; /*load bearing in blink, gecko works fine without*/
}

.pronouns{
    text-wrap:nowrap;
    color:grey;
    font-size:0.7em;
}

.subtitle{
    color:grey;
    font-size:0.5em;
}

.window-button{
}

.content{
    float:left;
    grid-column: 1;
}

.title{
    float:left;
}

.sidebar{
    float:right;
    grid-column: 2;
}

.sidebar>.crux_window, .searchbox{
    margin-right: 0;
}

.window-title{
    color:white;
}
.navbar{
    padding:0;
}

.main-nav{
    float:right;
}
.searchbox{
    float:right;
}

.search-form{
    margin-top: 1em;
    margin-bottom: 1em;
}

.highlight{
    background-color: #955007;
}

.pagination{
    width:fit-content;
}

.blogpost{ width:100%; }
.bio{ width:100%; }
.linkbox{ width:100%; }

ul.iconlinks{
    padding:0
}
ul.iconlinks>li{
    list-style:none;
    background-repeat: no-repeat;
    background-size:1em;
    background-position:left center;
    padding-left:1.2em;
}

li.mastodon{ background-image: url("/icons/mastodon.svg"); }
li.youtube{ background-image: url("/icons/youtube_social_icon_red.png"); }
li.patreon{ background-image: url("/icons/patreon.png"); }
li.rssfeed{ background-image: url("/icons/rss.svg"); }
li.atomfeed{ background-image: url("/icons/atom.svg"); }

pre{
    border: 1px solid orange;
    background-color:#1a1a1a!important;
    color:#fff;
    overflow: scroll;
    width: fit-content;
    max-width: 100%;
    padding: 5px;
}

pre>span{
    color:#fff;
}

mark{
    background-color:#592a009c !important;
    color:#fff;
}

video{
    max-width:100%;
}

img{
    max-height:95vh;
}

img.inlineicon{
    height:1em;
    vertical-align:middle;
}

@media (prefers-color-scheme: light) {
    body{
        background-color:white;
        color: black;
    }

    .highlight{
        background-color:yellow;
    }

    .archive-entry, .search-result>p{
        &:hover{
            background-color:#b4b7ad;
        }
    }

    /* kinda funny that I'm adding these defaults back in, and that's actually what I want */
    a{
        color:rgb(0, 0, 238);
    }
    
    a:visited{
        color:#551b8e;
    }

    pre{
        border: 1px solid #346214;
        background-color:#eee!important;
        color:black!important;
    }
    
    pre>span{
        color:#000;
    }
    
    mark{
        background-color:#ffe13d9c !important;
        color:#000;
    }

    .date{
        color:#346214;
    }

}

@media (max-width: 750px) {
    .section{
        display:block;
    }
    /*.sidebar, .content, .main-nav, .searchbox, .title, .pagination, .blogpost .linkbox{*/
    .crux_window, .sidebar, .content{
        float:left;
        width:100%;
        max-width:unset;
    }
}

img{
    max-width:100%;
}

/*.secret{ color:black; }
@media (prefers-color-scheme: light) { .secret{ color:white; } }
*/
