:root {
    color-scheme: light dark;
    supported-color-schemes: light dark;
}

article, aside, details, figcaption, figure, footer, header, hgroup,
nav, section, summary {
    display: block
}

audio, canvas, video {
    display: inline-block;
    * display: inline;
    * zoom: 1
}

audio:not([controls]) {
    display: none;
    height: 0
}

[hidden] {
    display: none
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%
}

html, button, input, select, textarea {
    font-family: sans-serif
}

hr {
	border: none; 
	border-bottom: 3px solid #aaa; 
	width: 70%;
}

body {
    margin: 0
}

a:focus {
    outline: thin dotted
}

a:hover, a:active {
    outline: 0
}

h1 {
    font-size: 2em;
    margin: 0.67em 0
}

h2 {
    font-size: 1.5em;
    margin: 0.83em 0
}

h3 {
    font-size: 1.4em;
    margin: 1em 0
}

h4 {
    font-size: 1em;
    margin: 1.33em 0
}

h5 {
    font-size: 0.83em;
    margin: 1.67em 0
}

h6 {
    font-size: 0.75em;
    margin: 2.33em 0
}

abbr[title] {
    border-bottom: 1px dotted
}

b, strong {
    font-weight: bold
}

blockquote {
    margin: 1em;
    padding: 0 30px;
    border-left: 8px solid lightblue
}

dfn {
    font-style: italic
}

mark {
    background: #ff0;
    color: #000
}

p, pre {
    margin: 1em 0
}

pre, code, kbd, samp {
    font-family: monospace, serif;
    _font-family: 'courier new', monospace;
    font-size: 1em
}

pre {
    white-space: pre;
    white-space: pre-wrap;
    word-wrap: break-word
}

q {
    quotes: none
}

q:before, q:after {
    content: '';
    content: none
}

small {
    font-size: 75%
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline
}

sup {
    top: -0.5em
}

sub {
    bottom: -0.25em
}

dl, menu, ol, ul {
    margin: 1em 0
}

dd {
    margin: 0 0 0 40px
}

menu, ol, ul {
    padding: 0 0 0 40px
}

nav ul, nav ol {
    list-style: none;
    list-style-image: none
}

img {
    border: 0;
    -ms-interpolation-mode: bicubic
}

svg:not(:root) {
    overflow: hidden
}

figure {
    margin: 0
}

form {
    margin: 0
}

fieldset {
    border: 1px solid #c0c0c0;
    margin: 0 2px;
    padding: 0.35em 0.625em 0.75em
}

table {
    border-collapse: collapse;
    border-spacing: 0
}

div:before, div:after {
    content: '';
    display: table
}

aside {
    position: relative;
    display: block
}

ul {
    list-style-type: none
}

.hide {
    visibility: hidden;
    height: 1px;
    clip: rect(0 0 0 0);
    position: absolute
}

input, textarea {
    outline: none;
    background: none
}

body {
    background: #fff;
    color: #222
}

body, textarea, pre, input {
    font-family: Helvetica Neue, Helvetica, sans-serif;
    line-height: 1.8em;
    font-size: 16px;
    font-weight: 400
}

@media only screen and (max-device-width: 568px) {
    body, textarea, pre, input {
        font-size: 20px
    }
}

h1, h2, h3, h4, h5, #text-title pre {
    font-weight: 900;
    word-wrap: break-word;
    line-height: 1.3em
}

h1, #text-title pre, #text-title textarea {
    font-weight: 900;
    font-size: 35px
}

p {
    color: #555
}

a, a:visited a:active {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #ddd
}

a:hover {
    color: red
}

header {
    width: 162px;
    border-right: 1px solid #DDD;
    position: absolute;
    top: 0;
    bottom: 0;
    padding: 20px 40px
}

header span {
    color: #888;
    font-weight: 500
}

header span.powered-by {
    position: absolute;
    bottom: 30px;
    font-size: 11px
}

header ul {
    padding: 0;
    margin: 50px 0
}

header li {
    margin: 0 0 3px 0
}

header li a {
    padding: 2px 0;
    color: #888;
    border-bottom: 2px solid #eee
}

header li a:hover {
    border-color: #777;
    color: #444
}

#container {
    margin-left: 243px;
    position: relative
}

#container time {
    display: block;
    padding: 20px 0 20px 50px;
    text-transform: uppercase;
    font-weight: 900;
    font-size: 12px;
    border-bottom: 1px solid #ddd
}

#archive time {
	display: inline;
	padding: 0px 0px 0px 10px;
	border: none;	
}

#archive p {
	padding: 0px 0px 0px 10px;
}

#archive h3 {
	color: #BBB;
	margin: 0;
	margin-top: 5px;
	padding: 0;
	font-size: 80%;
}

.archive-year {
	border-top: 1px solid #ddd;
}

#content section {
    padding: 26px 0 40px 50px;
    border-bottom: 1px solid #ddd;
    position: relative
}

#content h1.external {
    margin-top: 25px;
    font-size: 18px
}

#content h1.external .permalink {
    margin-left: 8px;
    font-size: 19px;
    color: #999;
    border: none
}

#content ul {
    list-style-type: disc
}

#content a, #content a:visited a:active {
    color: #111;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #ddd
}

#content a:hover {
	border-bottom: 2px solid #000
}

.show #content section {
    border-bottom: none
}

code {
    font-size: 13px;
    background: #F2F2F2;
    padding: 20px;
    margin: 20px;
    display: block
}

.contain {
    width: 600px;
    position: relative
}

.contain img {
    max-width: 100%;
    height: auto
}

#publish-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    background: #222;
    color: #fff;
    width: 100%;
    text-align: center;
    padding: 15px 0 15px
}

#publish-bar .contain {
    margin: 0 auto;
    width: 600px
}

#publish-bar input[type=text] {
    border: none;
    border-bottom: 1px solid #333;
    padding: 2px;
    width: 220px;
    font-size: 12px;
    color: #999
}

#publish-bar .menu.active {
    background: #fff;
    color: #000
}

#publish-bar .sub-menu {
    margin: 0;
    background: #222;
    padding: 20px;
    position: absolute;
    bottom: 0;
    left: 60px;
    visibility: hidden;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px
}

#publish-bar .sub-menu.visible {
    visibility: visible
}

#publish-bar .sub-menu li {
    margin: 0 0 15px 0
}

#publish-bar input[type=submit], #publish-bar a, .button {
    display: inline-block;
    background: #000;
    padding: 8px 12px;
    font-weight: bold;
    border: none;
    color: #fff;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px
}

.button.secondary {
    padding: 0 5px;
    background: #aaa;
    font-size: 12px
}

.button.space-top {
    margin-top: 50px
}

.button.space-bottom {
    margin-bottom: 50px
}

.left {
    float: left
}

.right {
    float: right
}

.actions {
    position: absolute;
    top: 0;
    right: -60px;
    font-size: 12px;
    margin: 0;
    padding: 0
}

.actions li {
    display: inline-block;
    margin: 0 10px 0 0
}

label {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    margin: 0 8px 0 0
}

#post_draft {
    position: relative;
    margin: 0 20px 0 0
}

.admin-links {
    position: absolute;
    text-align: right;
    top: 18px;
    right: 20px;
    margin: 0
}

.admin-links li {
    float: left;
    margin-left: 6px
}

.admin-links a {
    float: left
}

.notice {
    position: absolute;
    top: 0;
    background: lightYellow;
    width: 100%;
    display: block;
    text-align: center;
    padding: 3px 0;
    font-size: 12px
}

fieldset.markdown {
    position: relative;
    border: none;
    margin: 0;
    padding: 0
}

.markdown:before {
    display: block;
    content: "";
    width: 39px;
    height: 24px;
    position: absolute;
    top: 4px;
    left: -60px;
    background: url(/assets/markdown.png) no-repeat top left
}

#text-title {
    margin: 23px 0
}

#post_title {
    width: 100%;
    border: none;
    background: none;
    line-height: 45px
}

#post_content {
    border: none;
    width: 100%;
    position: relative;
    margin: 0
}

form .permalink {
    position: absolute;
    left: -34px;
    top: 12px;
    border: none;
    color: #ddd
}

div.article-nav {
	padding: 28px;
	margin-bottom: 160px;
	width: 624px;
	vertical-align: top;
	font-size: 85%;
	font-weight: bold;
	color: #666;
}

div.article-nav:after {
	clear:both;
}

.admin-view {
    font-size: 11px;
    margin: 0 10px 2px 0;
    font-weight: 900;
    text-transform: uppercase
}

nav.pagination {
    text-align: right;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0;
    padding: 0
}

nav.pagination a {
    margin-left: 10px
}


@media (prefers-color-scheme: dark) {
    body {
        background: #111;
        color: #ddd;
    }

    p {
        color: #ccc;
    }
 
    a, a:visited a:active {
        color: #fff;
        text-decoration: none;
        border-bottom: 1px solid #555;
    }
    
    a:hover {
        color: #fab;
    }
    
    header {
        border-right: 1px solid #555;
    }
    
    header span {
        color: #aaa;
    }
    
    header li a {
        color: #aaa;
        border-bottom: 2px solid #999
    }
    
    header li a:hover {
        border-color: #eee;
        color: #ccc;
    }
    
    #container time {
        border-bottom: 1px solid #555;
    }    

    #archive time {
        border: none;
    }

    #content a, #content a:visited a:active {
        color: #eee;
        border-bottom: 2px solid #555
    }
    
    #content a:hover {
        border-bottom: 2px solid #fff
    }
    
    .show #content section {
        border-bottom: none
    }
    
    code {
        background: #222;
    }
    
}
