
/** common */

body {
    background: black;
    color: #eeeeee;
    font-family: 'Inconsolata', monospace;
    font-size: 20px;
}

pre {
    font-family: 'Inconsolata', monospace;
}

a, a:hover, a:visited, a:active {
    color: #55FFFF;
}

#page {
    width: 95%;
    max-width: 776px;
    margin: auto;
}

#site-title {
    width: 65.97938144329897%; /* 512 / 776 */
    margin: auto;
}
#site-title img {
    max-width: 100%;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/** front page */

.separator {
    width: 100%;
    height: 1em;
}

.summary-text {
    margin-top: 1em;
}

.leftcol {
    float: left;
    width: 48.96907216494845%; /* 380 / 776 */
    margin: 0;
}

.box3 {
    width: 100%;
}

.box3 .title h2 span {
    color: #aa55aa;
}

.box3 h2 {
    font-size: 1em;
    color: #ff55ff;
    margin: 0;
    padding: 0 0 2px 0;
    border-bottom: 4px double #aa55aa;
}

.box3 .content {
    width: 100%;
    margin-top: 1em;
    margin-bottom: 1em;
}

.box3 ul {
    margin: 1em 0 0 0;
    padding: 0;
    list-style-type: none;
}

.box3 ul li {
    margin: 0;
    padding: 0;
}
.box3 ul li:before {
    content: "▪ ";
}

.summary h3 a {
    text-decoration: none;
}

.rightcol {
    float: right;
    width: 48.96907216494845%; /* 380 / 776 */
    margin: 0;
}

.summary h3 {
    font-size: 1em;
    margin: 0;
    padding: 0;
    color: #55ffff;
}

.summary .more {
    margin-top: 1em;
}

/* switch to 1-col layout on mobile */
@media screen and (max-width: 600px) {
    body {
        font-size: 19px;
    }
}
@media screen and (max-width: 480px) {
    body {
        font-size: 16px;
    }
    .leftcol {
        width: 100%;
        float: none;
    }
    .rightcol {
        width: 100%;
        float: none;
    }
}

/** content page */

.content {
    width: 100%; /* 776px */
}

.content .post {
    width: 100%;
    margin: auto;
}

.inline-youtube {
    max-width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.inline-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.post-content ul {
    margin: 0;
    margin-left: 1em;
    padding: 0;
    list-style-type: "▪ ";
}

.post-content ul:last-child {
    margin-bottom: 1em;
}

.post-content ul li {
    margin: 0;
    padding: 0;
}

.post-header h1 {
    font-size: 1.25em;
    margin: 0 0 4px 0;
    color: #ff55ff;
    padding-bottom: 4px;
    border-bottom: 4px double #aa00aa;
}

.post-footer {
    border-top: 4px double #aa00aa;
    padding-top: 4px;
    color: #aaaaaa;
}

h2 {
    font-size: 1em;
    color: #aaffff;
}

code {
    font-family: 'Inconsolata', monospace;
    color: #bbbbbb;
}

.highlight pre {
    padding: 0.5em;
    border-radius: 4px;
}

.highlight pre code {
    border-radius: 4px;
    color: #555555;
}

@media screen and (max-width: 600px) {
    code {
        font-size: 0.8em;
    }
}

.tags ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.tags ul li {
    float: left;
    margin-right: 0.5em;
    text-transform: lowercase;
}

.tags ul li a {
    color: #aaaaaa;
    text-decoration: none;
}
.tags ul li a:hover {
    color: #aaffff;
    text-decoration: underline;
}

.clearleft {
    clear: left;
}

.posted-by {
    color: #aaaaaa;
}

.clearboth {
    clear: both;
}

/** resume */
.resume h1 {
    font-size: 2em;
    margin: 0 0 4px 0;
    color: #ff55ff;
    padding-bottom: 4px;
    border-bottom: 4px double #aa00aa;
}

.resume h2 {
    font-size: 1.25em;
    margin: 1em 0 4px 0;
    color: #ff55ff;
    padding-bottom: 4px;
    border-bottom: 4px double #aa00aa;
}

.resume h3 {
    font-size: 1em;
    margin: 1em 0 0 0;
    color: #55ffff;
}
.resume h4 {
    font-size: 1em;
    margin: 0;
    color: #ffffff;
}
.resume ul + h4 {
    margin-top: 1em;
}

.resume ul {
    margin: 0;
    margin-left: 1em;
    padding: 0;
    list-style-type: "▪ ";
}

.resume ul li {
    margin: 0;
    padding: 0;
}

/** blog page */
.tag-page-header h1 {
    font-size: 2.0em;
    margin: 0 0 1em 0;
    color: #ff55ff;
    text-transform: lowercase;
}
.summary-title h2 {
    font-size: 1.25em;
    margin: 0 0 4px 0;
    color: #ff55ff;
    padding-bottom: 4px;
    border-bottom: 4px double #aa00aa;
}

.summary-title h2 a {
    color: #ff55ff;
    text-decoration: none
}

.summary {
    margin-bottom: 1em;
}

.full-content-image {
    margin-top: 1em;
}

.full-content-image img {
    max-width: 100%;
    min-width: 100%;
}

.project-thumbnail {
    width: 48.96907216494845%; /* 380 / 776 */
    float: left;
    margin-top: 1em;
}

.not-last {
    margin-right: 2.0618556701030927% /* 16 / 776 */
}

/* switch to 1-col layout on mobile */
@media screen and (max-width: 600px) {
    .project-thumbnail {
        width: 100%;
    }
    .not-last {
        margin-right: 0;
    }
}


.project-thumbnail-title h2 {
    font-size: 1em;
    color: #ff55ff;
    margin: 0;
    padding: 0 0 2px 0;
    border-bottom: 4px double #aa55aa;
}

.project-thumbnail-title h2 a {
    text-decoration: none;
    color: #ff55ff;
}

.project-thumbnail-image {
    margin-top: 1em;
}

.project-thumbnail-image img {
    max-width: 100%;
    min-width: 100%;
}

.project-thumbnail-title .tags ul {
    max-height: 1.1em; /* slightly more than 1 to make room for descenders */
    overflow: hidden;
}
