@-ms-viewport {
    width: device-width;
}

@font-face {
    font-family: 'MavenPro';
    src: url('/fonts/mavenpro/maven_pro_regular-webfont.woff2') format('woff2'),
    url('/fonts/mavenpro/maven_pro_regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MavenPro';
    src: url('/fonts/mavenpro/maven_pro_bold-webfont.woff2') format('woff2'),
    url('/fonts/mavenpro/maven_pro_bold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

html {
    box-sizing: border-box;
    font-display: optional;
    background: #f9f7f1;
    color: black;
    font-family: MavenPro, Trebuchet MS, Arial, Helvetica, sans-serif;
    padding: 0 36px;
}

body {
    position: relative;
    max-width: 1000px;
    background: white;
    min-height: 500px;
    margin: 25px auto;
    border: 1px solid #261C0C;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: rgba(0, 0, 0, 0.5) 4px 4px 10px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.5) 4px 4px 10px;
    box-shadow: rgba(0, 0, 0, 0.5) 4px 4px 10px;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

code, var, kbd, samp, tt, dir,
abbr, acronym, blockquote, q {
    -moz-hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
}

a {
    color: #5D2F00;
    text-decoration: none;
}

a:visited {
    color: #663300;
}

a:hover {
    text-decoration: underline;
}

a:active {
    color: orange;
}

a.faux {
    color: black;
}

a.faux:hover {
    text-decoration: none;
}

a.faux span {
    color: #A65300;
}

a.faux:hover span {
    text-decoration: underline;
}

a img {
    border: 0;
}

::selection {
    background-color: orange;
    color: black;
}

h1, h2, h3 {
    text-rendering: optimizeLegibility;
}

ol {
    margin-bottom: 1em;
}

ul li {
    list-style: square;
}

ul.reset, ol.reset, ul.reset > li, ol.reset > li {
    padding: 0;
    margin: 0;
    list-style: none;
}

pre, svg {
    display: block;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #fafafa;
    overflow: auto;
    margin: 1em 0;
    -ms-scrollbar-highlight-color: orange;
    -webkit-overflow-scrolling: touch;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

table {
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #ccc;
}

td {
    padding: 2px 6px;
    border: 1px solid #ccc;
    vertical-align: top;
}

footer {
    position: relative;
    top: 3px;
}

header {
    background: #261C0C url(header-bg.jpg) no-repeat right 0;
    height: 206px;
    position: relative;
    border-bottom: 5px solid #D09C2F;
}

header h1 {
    margin: 0;
    color: #C4A646;
    font-size: 4rem;
    position: absolute;
    top: 23px;
    left: 38px;
    text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 5px;
    letter-spacing: 2px;
}

header h1 a, header h1 a:visited {
    color: #C4A646;
    text-decoration: none;
}

header h2 {
    margin: 0;
    color: #D09C2F;
    font-size: larger;
    position: absolute;
    right: 18px;
    bottom: 9px;
    font-style: italic;
    text-shadow: rgba(0, 0, 0, 0.5) 1px 1px 2px;
    text-transform: lowercase;
    text-align: right;
}

div.head {
    padding-left: 50%;
    margin: 20px 0;
    overflow: hidden;
    border: 1px solid #ccc;
}

img.head {
    display: block;
    margin-left: -342px;
}

h2.year {
    font-size: 10rem;
    margin: 0 0 0 -26px;
    color: #554415;
}

article {
    margin: 32px 32px 0 32px;

}

article h1, article h2 {
    font-size: 1.5rem;
    color: #806520;
}

article h2 a {
    -moz-transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
    outline-offset: 2px;
    outline-color: orange;
    outline-width: 3px;
}
article h2 a:hover {
    color: orange;
    text-decoration: none;
    text-shadow: rgba(0, 0, 0, 0.5) 0 0 1px;
}

article footer:first-child + h1 {
    margin-top: 20px;
}

article h2 {
    font-size: larger;
    color: #806520;
    margin-bottom: 2px;
}

article p:first-child {
    margin-top: 0;
}

article time {
    float: right;
    color: #2a2a2a;
    font-size: 0.8em;;
}

#text {
    overflow: hidden;
    background-color: #F9F9F9;
    border-radius: 5px;
}

#content {
    width: 75%;
    float: right;
    border-left: 1px dashed #CCCCCC;
    padding-bottom: 1em;
    background-color: #FFFEFD;
}

aside {
    margin-top: 11px;
    width: 21%;
    padding: 0 0 30px 2%;
    font-size: small;
}

aside h2 {
    color: #504014;
    font-size: larger;
    margin: 23px 0 9px -1px;
    padding-left: 1px;
    clear: left;
}

aside p {
    margin: 4px 0;
}

aside section img.bigicon {
    float: left;
    width: 32px;
    height: 32px;
    margin: 0 10px 10px 0;
    opacity: 0.7;
    -moz-transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

aside section a:hover img.bigicon {
    opacity: 1;
    -moz-transform: scale(1.2) rotate(10deg) translate(-5px, -5px);
    -webkit-transform: scale(1.2) rotate(10deg) translate(-5px, -5px);
    -o-transform: scale(1.2) rotate(10deg) translate(-5px, -5px);
    -ms-transform: scale(1.2) rotate(10deg) translate(-5px, -5px);
    transform: scale(1.2) rotate(10deg) translate(-5px, -5px);
}

aside li.github {
    background: url(/weblog/webicons-master/webicons/webicon-github.svg) no-repeat;
    padding-left: 38px;
    line-height: 32px;
}

.social {
    margin-top: 20px;
}

.amazon {
    height: 153px;
}

ul.projects li {
    clear: left;
    margin-top: 8px !important;
}

ul.projects li a {
    display: block;
    width: 164px;
    height: 20px;
    padding: 2px 5px;
    -moz-transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

ul.projects li a:hover {
    color: black;
    background-color: orange;
    text-decoration: none;
}

i.icon {
    display: block;
    float: left;
    width: 16px;
    height: 16px;
    margin-right: 5px;
    background: url(/weblog/projecticons32.png) 0 0 no-repeat;
    -webkit-background-size: 16px 112px;
    -moz-background-size: 16px 112px;
    -o-background-size: 16px 112px;
    background-size: 16px 112px;
    -moz-transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

a:hover i.icon {
    border-color: orange;
}

i.javascript {
    background-position: 0 -97px;
}

i.gameoflife {
    background-position: 0 0;
}

i.viewcookies {
    background-position: 0 -16px;
}

i.tweaknetwork {
    background-position: 0 -32px;
}

i.fontlist {
    background-position: 0 -48px;
}

i.browserreport {
    background-position: 0 -64px;
}

i.jarx {
    background-position: 0 -80px;
}

ol.menu li a {
    display: block;
    padding: 0 2px 2px;
    -moz-transition: all 0.25s ease;
    -webkit-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

ol.menu li a:hover {
    color: black;
    background-color: orange;
    text-decoration: none;
}

@media (max-width: 780px) {
    #content {
        float: none;
        width: auto;
        border-left: none;
        padding-bottom: 10px;
        border-bottom: 1px dashed #ccc;
    }

    aside {
        width: auto;
        margin: 10px 0;
    }

    aside section {
        width: 30%;
        margin: 0 3% 30px 0;
        float: left;
    }

    aside section:nth-child(3n+1) {
        clear: both;
    }

    aside h2 {
        margin-top: 0;
    }

}

@media (max-width: 480px) {
    header h1 {
        font-size: 3rem;
    }

    article {
        margin: 0 8px;
    }

    aside section {
        width: 45%;
    }
}

p.comments {
    padding: 0 32px;
    font-size: smaller;
}

#twitter {
    font-style: italic;
    line-height: 22px;
    margin: 14px 0 26px;
    padding: 9px 0 22px;
    overflow: hidden;
}

#twitter:before {
    content: "“";
    font-size: 2rem;
    line-height: 2rem;
    font-family: georgia;
    color: #555;
}

#twitter:after {
    content: "”";
    font-size: 2rem;
    line-height: 2rem;
    font-family: georgia;
    color: #555;
}

/* Comments */
#comments {
    font-size: smaller;
    padding: 0 32px;
    border-top: 1px solid #A65300;
    margin-top: 46px;
}

#comments h2 {
    font-size: medium;
    color: #663300;
}

#comments ol li, #comments form {
    background-color: #F7F7DF;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
}

#comments ol li p.name {
    float: left;
    font-weight: bold;
    margin-top: 0;
}

#comments ol li a.date {
    float: right;
    color: #aaa;
}

#comments ol li p.comment {
    clear: both;
    white-space: pre-wrap;
    margin: 0;
}

#comments form p.formhead {
    font-weight: bold;
    margin-top: 0;
}

#comments form label {
    display: block;
    float: left;
    clear: both;
    width: 117px;
    margin-top: 5px;
}

#comments form input {
    display: block;
    width: 60%;
    max-width: 300px;
    margin-top: 5px;
}

#comments form textarea {
    width: calc(100% - 8px);
    max-width: 417px;
    height: 100px;
}

#comments form input[type=submit] {
    margin-left: 117px;
}

.template {
    display: none;
}

#comments form {
    display: none;
}

#comments.ajax form {
    display: block;
}

#comments input[type=text], #comments input[type=url], #comments input[type=number], #comments textarea {
    border: 1px solid #aaa;
    padding: 2px;
    border-radius: 3px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    box-shadow: inset 2px 2px 2px #e8e8e8;
    -moz-box-shadow: inset 2px 2px 2px #e8e8e8;
    -webkit-box-shadow: inset 2px 2px 2px #e8e8e8;

}

@media (max-width: 650px) {
    body {
        margin: 0;
    }

    html {
        padding: 0;
    }

    header h1 {
        left: 14px;
    }
}

article footer:first-child + h1 {
    margin-top: 30px;

}

.g-recaptcha {
    margin-left: 117px;
}
