body {
    font-family: "Avenir Next", "Avenir", "Helvetica Neue", "Helvetica", sans-serif;
    background: #EEE;
    color: #333;
}

a {
    color: blue;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

body.colnav nav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 10px;
    width: 140px;
}

body.rownav {
    margin: 0;
    margin-bottom: 8px;
}

body.rownav nav {
    margin: .75em;
}

body.rownav nav a,
body.rownav nav h1,
body.rownav nav ul,
body.rownav nav li {
    display: inline-block;
}

body.rownav nav h1 {
    position: relative;
    top: -.25em;
    margin-left: .5em;
}

body.rownav nav li {
    position: relative;
    top: -.5em;
    margin-left: 1em;
}

body.rownav nav .colnav {
    display: none;
}

body.colnav nav .rownav {
    display: none;
}

body.rownav nav img {
    height: 2em;
    width: 2em;
}

body.rownav #content p,
body.rownav #content ul:not(.huds),
body.rownav #content ol {
    width: 42em;
    margin: 1em auto;
    padding: 0 1em;
}

.centered {
    text-align: center;
}

@media all and (max-width: 47.826em) {
    body.rownav #date {
        display: none;
    }

    body.rownav #content p,
    body.rownav #content ul:not(.huds),
    body.rownav #content ol {
        width: 92%;
    }
}

@media all and (max-width: 1000px) {
    body.colnav nav {
        position: absolute;
    }
}

nav .sartak a {
    color: black;
}
nav h1, nav img, nav ul, nav li {
    margin: 0;
    padding: 0;
}
nav li {
    padding-bottom: 0.3em;
}

nav ul {
    list-style-type: none;
}
nav img {
    border: 0;
}
body.colnav nav img {
    border-radius: 17px;
}
body.rownav nav img {
    border-radius: 7px;
}

body.colnav #content {
    margin-left: 180px;
    width: 700px;
}

ul#posts, ul#talks {
    margin-top: 0;
    list-style-type: none;
}
#posts .title a, #talks .title a {
    font-size: 1.1em;
    line-height: 1.2em;
}

#posts .date,
#talks .date,
body.colnav #date {
    float: right;
}
#posts .date,
#talks .date,
#date {
    color: #AAAAAA;
}

body.rownav #date {
     position: absolute;
     right: 2em;
}

#posts .date {
    color: #AAAAAA;
    -webkit-transition: color 1s ease-out;
    -moz-transition: color 1s ease-out;
    -o-transition: color 1s ease-out;
    -ms-transition: color 1s ease-out;
    transition: color 1s ease-out;
}
#posts li:hover .date {
    color: #000000;
    -webkit-transition: color .25s;
    -moz-transition: color .25s;
    -o-transition: color .25s;
    -ms-transition: color .25s;
    transition: color .25s;
}
#posts li, #talks li {
    padding-bottom: 0.8em;
}
#posts li.new-year, #talks li.new-year {
    padding-top: 0.6em;
}

#talks .conference {
    font-size: 0.7em;
}

#about ul {
    list-style-type: none;
}
#about a {
    font-weight: bold;
    font-size: 1.3em;
}
#about li {
    margin-bottom: 1em;
}

#projects {
    width: 800px;
}

#projects ul {
    list-style-type: none;
}
#projects li {
    display: inline-block;
    vertical-align: top;
    text-align: center;
    width: 228px;
    height: 228px;
}
#projects li a {
    text-decoration: none;
    color: black;
}
#projects li .name {
    font-weight: bold;
    display: block;
}

#projects li img.icon {
    height: 114px;
    width: 114px;
    border-radius: 20px;
}

#projects li img.icon {
    -webkit-filter: grayscale(80%) blur(1px);
    filter: grayscale(80%) blur(1px);
    border: 2px solid #333;

    -webkit-transition: all .25s ease-out;
    -moz-transition: all .25s ease-out;
    -o-transition: all .25s ease-out;
    -ms-transition: all .25s ease-out;
    transition: all .25s ease-out;
}
#projects li:hover img.icon {
    -webkit-filter: grayscale(0%) blur(0);
    filter: grayscale(0%) blur(0);
    border: 2px solid #000;
}
#projects li .details {
    opacity: 0.2;
    -webkit-transition: all .5s ease-out;
    -moz-transition: all .5s ease-out;
    -o-transition: all .5s ease-out;
    -ms-transition: all .5s ease-out;
    transition: all .5s ease-out;
}
#projects li:hover .details {
    opacity: 1;
}

body.rownav #post h1,
body.rownav #post h2 {
    text-align: center;
}

#post h1, #talk h1 {
    margin: 0;
}

#post article, #talk article {
    font-size: 1.06em;
    line-height: 1.7;
}

.spoiler {
    color: black;
    background: black;
    padding: .1em;
}

.spoiler:hover {
    color: white;
}

sup, sub {
    height: 0;
    line-height: 1;
    vertical-align: baseline;
    position: relative;
}

sup {
    bottom: 1ex;
}

sub {
    top: .5ex;
}

.code_snippet, pre {
    font-family: "Menlo","Bitstream Vera Sans Mono","Courier New",Courier,monospace;
}

.code_snippet {
    width: 100%;
    color: #DDDDDD;
    background: #333333;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    padding: 1em 1em 1em 1em;
    overflow: hidden;
}
.code_snippet:hover {
    overflow: auto;
}

.synComment       { color: #DDDD00 }
.synConstant      { color: #DD0000 }
.synIdentifier    { color: #00DDDD }
.synStatement     { color: #B8860B }
.synPreProc       { color: #DD00DD } /* shebang */
.synTodo          {  } /* # XXX: */
.synSpecial       { color: #DD00DD } /* \n etc */
.synType          { color: #00DD00 } /* ctermbg in vimrc */
/*
.synUnderlined    { color: #FFFFFF ; text-decoration: underline }
.synError         { color: #FFFFFF }
*/

dt {
    font-size: 1.2em;
}
#talks .metadata, #talk .metadata {
    font-size: .8em;
}
dd {
    margin-bottom: 1em;
}

#slides {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.xyzzy {
    color: #EEE;
}
.xyzzy:hover {
    color: blue;
}

blockquote {
    font-style: italic;
}

img + img {
    margin-left: 0.5em;
}

ol, ul {
    padding-left: 0;
}

.external {
    color: #999;
}

figure {
    text-align: center;
    margin: 0;
    margin-top: .5em;
}
figure img {
    width: 100%;
    max-width: 52em;
    vertical-align: middle;
}

h2.context {
    margin-top: 0;
    margin-bottom: 0;
}

figure.bust img,
img#cover {
    max-width: 2000px;
    width: 100%;
}

figure.screenshot img {
    max-width: 320px;
}

@media all and (min-width: 58em) {
    .box {
        display: flex;
        width: 52em;
        margin: 0 auto;
        justify-content: space-between;
    }
    .box.center {
        justify-content: center;
    }

    .bust.box {
        max-width: 2000px;
        width: 100%;
    }

    .box.v1-1 {
        flex-direction: column;
        margin-left: .5em;
    }

    .box.h1-1 > figure:last-child {
        margin-left: .5em;
    }

    .tokyo-20150821-19 { width: 84% }
    .tokyo-20150821-101631 { width: 133.4% }
    .tokyo-20150821-132607 { width: 151.4% }
    .tokyo-20150823-145933 { width: 158.0% }
    .tokyo-20150823-161736 { width: 150.0% }
    .tokyo-20150826-113950 { width: 170.0% }
    .tokyo-20150826-113950 { width: 170.0% }
    .tokyo-20150828-183521 { width: 53.7% }
    .tokyo-20150830-103320 { width: 56.3% }
    .tokyo-20150902-123413 { width: 75.6% }
    .tokyo-20150902-124110 { width: 170.0% }
    .tokyo-20150902-150654 { width: 170.0% }
}

.huds-container {
    width: 100%;
    max-width: 1295px;
    margin-left: auto;
    margin-right: auto;
}

.huds {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
}

.huds > .hud {
    flex-basis: 324px;
    flex-grow: 1;
}

/* don't display day 15 as over double size in two column flex */
.hud.dummy { display: none }
@media all and (min-width: 682px) and (max-width: 1005px) {
    .huds .hud.dummy { display: block }
}

.huds {
    margin-left: 1em;
    margin-right: 1em;
}

.huds > .hud figure {
    margin-left: 1em;
    margin-right: 1em;
    margin-top: 1em;
    margin-bottom: 1em;
}

.hud {
    display: block;
    position: relative;

    max-width: 52em;
    margin-left: auto;
    margin-right: auto;
}

.hud > a > div {
    position: absolute;
    left: 0;
    right: 0;
    top: 2em;
    text-align: center;
}

.hud > a:hover {
    text-decoration: none;
}

.hud > a > div > span {
    display: inline-block;
    max-width: 50%;

    border-radius: 5px;
    padding: .25em 1em;

    color: white;
    opacity: .95;
    background-color: #27aae1;
    transition: background-color 200ms linear;
}

.hud > a:hover > div > span,
.hud > a:active > div > span {
    background-color: #00a14b;
    transition: background-color 200ms linear;
}
