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;
}

body.rownav nav {
    position: absolute;
    background: rgba(238, 238, 238, .6);
    border-radius: 5px;
    top: 8px;
    left: 8px;
    padding: .5em;
}

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

body.rownav nav h1 {
    margin-left: .3em;
}

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 > a,
body.rownav nav img {
    height: 2em;
    width: 2em;
}

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

body.rownav #content li p,
body.rownav #content li ul,
body.rownav #content li ol,
body.rownav #content li dl,
body.rownav #content li blockquote {
    width: auto;
    padding: 0;
}

body.rownav #content table {
  padding: 0;
}

.centered {
    text-align: center;
}

#content ul#posts, #content ul#talks {
    margin-top: 4em;
    list-style-type: none;
}

@media all and (min-width: 47.826em) {
    body.rownav #content .youtube-container {
        position: relative;
        overflow: hidden;
        padding-top: 50vh;
        max-width: 41em;
        margin: 1em auto;
    }
    
    body.rownav #content .youtube-content {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }
}

@media all and (max-width: 47.826em) {
    #content ul#posts, #content ul#talks {
        margin-top: 2em;
    }

    body.rownav #date {
        display: none;
    }

    body.rownav #post h1,
    body.rownav #talk h1,
    body.rownav #post header h2,
    body.rownav #talk header h2 {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    body.rownav #content header,
    body.rownav #content p,
    body.rownav #content ul:not(.huds),
    body.rownav #content ol,
    body.rownav #content dl,
    body.rownav #content blockquote {
        width: auto;
    }

    body.rownav #content table {
        width: 100%;
        padding: 0 1em;
    }

    body.rownav #content header {
        margin-left: auto;
        margin-right: auto;
    }

    body.rownav nav {
        position: static;
        margin-top: 8px;
        margin-left: 8px;
    }

    body.rownav .code_snippet {
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        overflow-x: auto;
    }
    body.rownav li .code_snippet {
        border-radius: 10px;
    }

    body.rownav #content ul:not(.huds),
    body.rownav #content ol {
        padding-left: 2em;
        margin-left: 0;
    }

    body.rownav #content .youtube-content {
        width: 100%;
        height: 100%;
        min-height: 50vh;
        border: 0;
    }
}

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

@media all and (hover: none) {
    .laptop-only {
        display: none;
    }
}

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;
}

#posts .title a, #talks .title a {
    font-size: 1.1em;
    line-height: 1.2em;
}

#posts .subtitle, #talks .subtitle {
  font-size: 0.9em;
  font-style: italic;
}

#posts .date,
#talks .date,
#posts .year,
#talks .year {
    display: none;
}

#posts .new-year .year,
#talks .new-year .year {
    display: block;
    margin-left: -1.5em;
    margin-top: 2.4em;
    margin-bottom: .8em;
}

#posts li:first-child .year {
    margin-top: 0;
}

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

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

#posts li, #talks li {
    padding-bottom: 0.8em;
}

#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;
    margin-top: 100px;
}

#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 #talk h1,
body.rownav #post h1,
body.rownav #post h2,
body.rownav #post h3,
body.rownav #post h4,
body.rownav #post h5 {
    text-align: center;
}

#post h1, #talk h1, #post header h2, #talk header h2 {
    margin: 0 150px;
}

#post header h2, #talk header h2 {
    font-style: italic;
}

#post header h2::first-letter, #talk header h2::first-letter {
    text-transform: uppercase;
}

#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: #EEE;
    background: #111;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    padding: 1em 1em 1em 1em;
    overflow: hidden;
    box-sizing: border-box;
}

.code_container {
    text-align: center;
}

.code_container .code_snippet {
    display: inline-block;
    width: 40em;
    text-align: left;
}

.code_snippet:hover {
    overflow: auto;
}

.synComment       { color: rgb(249, 217, 73) /* yellow */ }
.synConstant      { color: rgb(243, 178, 108) /* gold */ }
.synIdentifier    { color: rgb(79, 173, 249) /* blue */ }
.synStatement     { color: rgb(237, 106, 101) /* red */ }
.synPreProc       { color: rgb(78, 173, 103) /* green */ }
.synTodo          {  } /* # XXX: */
.synSpecial       { color: rgb(163, 32, 245) /* purple */ }
.synType          { color: rgb(236, 106, 248) /* pink */ }
/*
.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;
}

#content blockquote {
    font-style: italic;
}

body.rownav #content blockquote {
    text-align: right;
    margin: 3em auto;
}

body.rownav #content blockquote p {
    text-align: left;
    margin-bottom: 0;
}

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

.image-grid img + img {
  margin-left: 0;
}

.image-grid {
  text-align: center;
  line-height: 1em;
  max-width: 42em;
  margin-left: auto;
  margin-right: auto;
}

ol, ul, dl {
    padding-left: 0;
}

.external {
    color: #999;
}

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

.content h2 {
    margin-top: 2em;
}

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

.content h2.context + h2.context {
    margin-top: 0;
}

body.rownav #content p.context,
.content p.context {
  text-align: center;
  font-style: italic;
  margin-bottom: 3em;
}

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

body.rownav header {
    margin-top: 8px;
}

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

.box.center {
    text-align: center;
}

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

    .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% }
    .w-1139 { width: 113.9% }
}

.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;
}

a.right, img.right {
    float: right;
    margin-left: 1em;
}

iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.glift {
    min-height: 500px;
    min-width: 400px;
    position: relative;
}
#content .glift .glift-comment-box p {
    width: auto;
}

