@viewport {
  width: device-width;
}

/* Base */
* { margin:0; font-family:inherit; }
body {
  background:#fff;
  color:#000;
  font:15px 'Crimson Text', georgia, serif;
  font-weight: 400;
  margin: 0 auto;
  width: 100%;
  /*zoom:0.8;*/
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: subpixel-antialiased;
}

div.breaker { clear:both; }
.template { display:none; }

p, ul, ol, pre, blockquote, hr, object {
  margin: 1.5em 0;
  line-height: 1.6;
}
sup {
  font-size: x-small;
}
.small {
  font-size: smaller;
}
pre, code, tt {
  /*-webkit-font-smoothing: subpixel-antialiased;*/
  /*font-family: 'M+ 1mn', 'Consolas', monospace;*/
  font-family: 'Ubuntu Mono', 'Consolas', monospace;
  font-weight:400;
  font-size: 15px;
}
img { border:none; vertical-align:bottom; }
strong { font-weight: 600; }
hr { height:1px; border:none; background-color:#ddd; }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Oswald', helvetica, sans-serif;
  font-weight:normal;
  line-height: normal;
  color:#040404;
  margin: 1em 0 1em 0;
  /*-webkit-font-smoothing: antialiased;*/
  text-rendering: optimizeLegibility;
  text-rendering: geometricPrecision;
}
h1 { font-size: 250%; }
h2 { font-size: 200%; }
h3 { font-size: 130%; }
h4, h5, h6 {
  font-size: 115%;
  margin:1em 0 -0.2em 0;
}
.small-margins {
  margin: 0.5em 0;
}

a:link, a:active { color:#316d96; }
a:visited { color:#7e5494; }
a:link:hover, a:active:hover, a:visited:hover { text-decoration:underline; }
a:link:hover, a:active:hover { color:#006be4; }
a:visited:hover { color:#af00cf; }
/*a > img { margin-bottom:-1px; }*/
a.img { border:none; background:transparent !important; }

/* Headlines */
h1 > a, h2 > a, h3 > a, h4 > a, h5 > a, h6 > a, h1 > a:hover,
    h2 > a:hover, h3 > a:hover, h4 > a:hover, h5 > a:hover, h6 > a:hover {
  color: #316d96;
  text-decoration: underline;
  background-color:transparent !important;
}

/* header */
header {
  display: block;
  height: 100px;
  margin:0 60px 0 50px;
  color: #ccc;
}

  header h1 {
    display: block;
    height: 50px;
    margin:30px 0 0 0;
    float: left;
  }
    header h1 a {
      display:inline-block;
      -webkit-transform: translate3d(0,0,0);
      -webkit-transition: 160ms -webkit-transform ease-out;
	  text-decoration:none;
    }
    header h1 a:hover {
      cursor:pointer;
    }
    header h1 img { display:block; float:left; }

  header ul.navigation {
    display:block;
    text-align: left;
    float: right;
    line-height: 50px;
    margin-top: 35px;
    font-family: helvetica, sans-serif;
  }
  header ul.navigation li {
    display: inline-block;
    list-style: none;
    margin-left: 1em;
  }
  header ul.navigation li:first-child { margin-left: 0; }
  header ul.navigation li a {
    color: #888;
    text-decoration: none;
    font-family: 'Oswald';
    font-size: 15px;
    font-weight: 400;
    /*letter-spacing:0.01em;*/
    text-transform: uppercase;
    text-rendering: optimizeLegibility;
    text-rendering: geometricPrecision;
  }
  header ul.navigation li a:hover { color: black; text-decoration: none; }
  header ul.navigation li a.active {
    /*font-weight:bold;*/
    color:black;
  }

/* main */
#main { margin-bottom: 3em; }

/* ------------------------------------------------------------------------------------------- */
/* main content */
div.content {
  background:white;
  padding:40px 80px;
  /*margin-bottom:60px;*/
}
div.content.full-bleed {
  padding:0;
}
div.content.photo {
  padding: 0;
  margin:0;
}
  div.content:not(.sub) h1:first-child {
    margin-top:0;
    font-size:250%;
    font-family: 'Oswald';
    /*font-size:14px;*/
    /*letter-spacing:0.01em;*/
    font-weight: 400;
    /*text-transform: uppercase;*/
  }

  div.content img, div.content iframe { display:block; max-width:100%; }
  div.content iframe { border:none; }
  div.content *[align="right"] { margin:0 0 1em 1.5em; }
  div.content *[align="left"] { margin:0 1.5em 1em 0; }

  div.content img.bordered {
    border:1px solid #DDD;
  }
  div.content img.centered {
    display:block;
    margin-left:auto;
    margin-right:auto;
  }

  div.content p.caption {
    text-align: center;
    color: #666055;
    font-style: italic;
    font-family: Arial, Helvetica, sans-serif;
  }

  /* Table styling */
  div.content table {
    font-family: Arial, Helvetica, sans-serif;
    border-collapse: collapse;
    font-size: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  div.content th {
    border-bottom: 2px solid black;
  }
  div.content tr:nth-child(even) {
    background-color: #f2f2f2;
  }
  div.content th, td {
    border-left: 1px solid black;
    padding: 5px;
  }
  div.content td:first-child, div.content th:first-child {
    border-left: none;
  }
  div.content tr:hover {
    background-color: #ddd;
  }


  /*div.post strong { font-weight:inherit; background:#FBF4B1; }*/
  div.content li {
    margin-left: 2em;
    margin-bottom:0.5em;
  }
  /*div.content ul > li { margin-left:1.4em; }*/

  div.content blockquote {
    /*font-family: 'Poly', georgia;*/
    font-style:italic;
    line-height:1.618;
    padding: 0 0 0 60px;
    color: #666055;
    text-rendering: optimizelegibility;
  }
  div.content div.quotation blockquote { margin-left: 30px; }
  div.content pre {
    line-height:1.3;
    background-color:transparent;
    overflow-x: auto;

    background-color:#f2f2f2;
    border-radius: 5px;
    padding:0.6em 20px 0.6em 10px;

    /*display: -webkit-flex; display: flex;
    -webkit-flex-direction: row; flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;*/
  }
  div.content code {
    background-color: #e2e7e9;
    color:black;
    /*border: 1px solid #eaeaea;*/
    border-radius: 3px;
    padding:0 0.3em;
  }
  div.content pre > code {
    padding:0;
    background-color:transparent;
    border-radius: none;
    /*border:none;*/

    /*background-color:#f2f2f2;
    border-radius: 5px;
    padding:0.6em 20px 0.6em 10px;*/

    /*border-top: 1px solid #f0f2f4;
    border-bottom: 1px solid #f0f2f4;*/
    /*margin-left:-10px;*/
  }
  div.content *:target { background:#fe0; }
  div.content sup:target a { padding:2px 5px; }
  div.content div.footnotes li { color:#999; }
  div.content div.footnotes li:target { background:#ffc; color:inherit; }

/*div.content { border-bottom:2px solid #D1D1D1; }*/

div.content.sub {
  margin-top:-50px;
  padding-top:20px;
}

/* ------------------------------------------------------------------------------------------- */
/* intro on first page */

div.content.intro {
  padding: 40px;
}

/* ------------------------------------------------------------------------------------------- */
/* posts */

div.posts div.end {
  padding:40px;
  text-align:center;
}

/* ------------------------------------------------------------------------------------------- */
/* post excerpt */
/* Wrapped in a div.content.full-bleed */

a.post-excerpt {
  display: block;
  color: inherit;
  border-bottom: 8px solid #ddd;
  text-decoration: none;
}
a.post-excerpt div.padded-content {
  display: block;
  padding: 40px 60px;
}
a.post-excerpt:nth-child(1) div.padded-content,
a.post-excerpt:nth-child(2) div.padded-content {
  padding-top: 60px;
}
a.post-excerpt:nth-child(odd) div.padded-content {
  padding-right:40px;
}
a.post-excerpt:nth-child(even) div.padded-content {
  padding-left:40px;
}
a.post-excerpt.photo {
  height:400px;
  position:relative;
}

  a.post-excerpt.photo div.title {
    padding: 10px 20px 20px 20px;
    margin: 0px;
    font-size: 300%;
    font-weight: 100;
    color: #FFF;
    background:rgba(0, 0, 0, 0.5);
    position: absolute;
    left:0; right:0; bottom:0;
    z-index:2;
    font:'Crimson Text', georgia, serif;
    text-transform: none;
    line-height:1.1;
  }
  a.post-excerpt.photo div.padded-content {
    padding:0;
    background: transparent no-repeat center center scroll;
    position: absolute;
    left:0; top:0; right:0; bottom:0;
  }
  a.post-excerpt.photo div.padded-content div.image {
    position: absolute;
    left:0; top:0; right:0; bottom:0;
    z-index:1;
    background-position: center center;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
  }
  a.post-excerpt.photo:hover div.padded-content {
    opacity: 1;
  }
  a.post-excerpt.photo:hover div.padded-content div.image {
    opacity:0.5;
  }

@media screen and (min-width: 890px) {
  body { width: 900px; }
  header { margin:0; }
  footer { margin:5% 0; }
  a.post-excerpt {
    position:relative;
    display: block;
    width:50%; /* 680/2 */
    overflow-y: hidden;
    float:left;
    border:none;
    /*margin-bottom:10px;*/
  }
    /*a.post-excerpt.photo div.padded-content {
      padding:0;
      width:100%;
      height:100%;
      background: transparent no-repeat center center scroll;
      -webkit-background-size: cover;
      -moz-background-size: cover;
      -o-background-size: cover;
      background-size: cover;
    }*/
    a.post-excerpt.photo:hover div.padded-content {
      opacity:0.9;
    }
}

a.post-excerpt:hover {
  color:black;
  /*background-color:#444;*/
  /*background-color:#fff933;*/
  background-color:#ddd;
  text-decoration:none;
}

a.post-excerpt div.title {
  font-family:'Oswald', sans-serif;
  font-size:18px;
  letter-spacing:0.02em;
  font-weight: normal;
  text-transform: uppercase;
  padding: 0 0 10px 0;
}

a.post-excerpt info {
  display:inline-block;
  padding-right:8px;
  color:#999;
  font-style:italic;
  /*margin-bottom:3em;*/
}

/* ------------------------------------------------------------------------------------------- */
/* photo post */

div.content.photo-post {
  padding-top: 60px;
}
  div.content.photo-post p:first-child, div.content.photo-post img:first-child {
    padding-top:0;
    margin-top:0;
  }
  div.content.photo-post p, div.content.photo-post iframe {
    padding: 40px 0 0 0;
    margin:0;
  }
/*div.content.photo-post {
  padding: 0 0 30px 0;
  margin:0 0 70px 0;
}
  div.content.photo-post p, div.content.photo-post iframe {
    padding: 40px 40px 0 40px;
    margin:0;
  }
  div.content.photo-post img {
    display:block;
    padding:0 0 10px 0;
    margin:0;
  }
  div.content.photo-post p.datetime {
    color:#ccc;
  }*/

/* ------------------------------------------------------------------------------------------- */
/* posts */

div.post {
  padding-bottom: 0em;
  /*margin-bottom:-70px;*/
  page-break-before: always;
}
  div.post.single, div.post:last-child { border-bottom:none; }
  /*div.post h1:first-child, div.post h2:first-child { margin-top:0; }
  div.post h2.title, div.post h1:first-child { font-size:42px; }*/
  /*div.post h1 { margin-top: 1.618em; }*/

  div.post actions, div.post info {
    color: #ccc;
  }

  div.post actions {
    display:inline-block;
    float:right;
  }

  div.post info {
    display:inline-block;
    /*xbackground:#DDF5EB;
    xborder-left:2px solid rgba(0,0,0,0.2);*/
    border:1px solid rgba(0,0,0,0.05);
    border-left:none; border-right:none;
    padding:8px 0px 8px 60px;
    margin-left:-60px;
    margin-bottom:3em;
  }
  div.post.photo info {
    margin:0;
    padding:0;
    border:0;
    display:block;
  }

  div.post info.after {
    margin-top:30px;
    margin-right:-60px;
    margin-bottom:0;
    padding-top:25px;
    padding-right:60px;
    padding-bottom:25px;
    opacity:0.6;
    border-color:rgba(0,0,0,0.08);
    border-bottom:none;
  }
  div.post info.after:hover {
    opacity:1;
  }

  div.post iframe[width="640"] {
    /*zoom:0.87;*/
  }


/* prettyprint */
pre { color:black; }
pre .str { color: #080; }
pre .kwd { color: #000; font-weight: 500; }
pre .com { color: #999; font-style: italic; }
pre .typ { color: #349; }
pre .lit { color: #066; }
pre .pun, div.post pre .opn, div.post pre .clo { color: #660; }
pre .pln { color: #000; }
pre .tag { color: #008; }
pre .atn { color: #606; }
pre .atv { color: #080; }
pre .dec { color: #606; }
/* Use higher contrast and font-styling for printable form. */
@media print {
  pre .str { color: #060; }
  pre .kwd { color: #006; font-weight: bold; }
  pre .com { color: #999; font-style: italic; }
  pre .typ { color: #404; font-weight: bold; }
  pre .lit { color: #044; }
  pre .pun, div.post pre .opn, div.post pre .clo {
    color: #440;
  }
  pre .pln { color: #000; }
  pre .tag { color: #006; font-weight: bold; }
  pre .atn { color: #404; }
  pre .atv { color: #060; }
}

/* meta */
div.meta { margin:1em 0; }
  div.meta p, div.meta .item { margin:0; }
  div.meta .item, div.meta .tag {
    background-repeat:no-repeat;
    background-position:0 0.36em;
    padding-left:15px;
    color:black;
    opacity:0.4;
    display:block;
    float:left;
    margin-left:2em;
  }
  div.meta .item:hover { opacity:1.0; }
  div.meta .item:first-child { margin-left:0; }
  div.meta .item a, div.meta a.item, div.meta .item a:hover,
      div.meta a.item:hover {
    color:inherit;
  }
  div.meta .item.reblogged {
    background-image:
        url(http://static.tumblr.com/9njdies/592l8jd17/reblogged.png);
  }
  div.meta .item.tags { padding-left:0; }
    div.meta .tag {
      margin-left:1em;
      margin-right:0;
      opacity:1.0;
      background-image:
          url(http://static.tumblr.com/9njdies/YO7l8jd2b/tag.png);
    }
    div.meta .tag:first-child { margin-left:0; }
  div.meta .item.time {
    background-image:
        url(http://static.tumblr.com/9njdies/zkFl8jd2w/time.png);
    float:right;
  }
  div.meta .item.note-count {
    float:right;
    background-image:
        url(http://static.tumblr.com/9njdies/ykvl8nmzz/note-count.png);
  }
  div.meta .item.dsq-comment-count {
    float:right;
    background-image:
        url(http://static.tumblr.com/9njdies/dbPl8uqid/comment-count.png);
    display:none;
  }

footer {
  color:#999;
  display: block;
  margin:0;
  padding:0 0 1em 0;
  text-align: center;
}
  footer img.cc {
    display: inline-block;
    vertical-align: -0.2em;
    border: none;
    width:1em;
    height:1em;
    opacity:0.4;
  }
  footer a.cc:hover {
    text-decoration: none;
  }
  footer a.cc:hover img.cc {
    opacity:1;
  }
  footer a:link {
    color:#778;
  }

/* Viewport size */

/*@media screen and (min-width: 480px) {
  body { zoom: 0.8; }
}*/
/*@media screen and (min-width: 680px) {
  body { width: 900px; }
  header { margin:0; }
  footer { margin:5% 0; }
}*/
/*@media screen and (min-width: 780px) {
  body { zoom: 1.3; }
}*/
/* device specifics */

/* medium-res devices (e.g. ipad and iphone) */
@media only screen and (max-device-width: 1024px) {
  /* To constrain pre-formatted text to body width */
  body { color:black; }
  html.ios pre { overflow:scroll; }
  html.ios pre, html.ios code, html.ios tt { font-size:0.95em; }
  header { margin:0 60px 0 45px; }
  header ul.navigation li a { font-size:14px; }
  div.content { font-size:1.2em; }
}

/* iPhone et al */
@media only screen and (max-device-width: 480px) {
  header {
    height: 120px;
    margin:0 1em 0 0.8em;
  }
    header h1 { float:none; }
    header ul.navigation {
      float:none;
      padding-left:1em;
      margin-top: 5px;
    }
    header ul.navigation > li > a {
      font-size:13px;
      font-family: 'Oswald', sans-serif;
      font-weight:400;
    }

  h1,h2 { font-size: 160%; }
  h3 { font-size: 130%; }
  h4 { font-size: 115%; }
  h5, h6 { font-size: 110%; }

  pre, code, tt { font-size:11px; }

  div.content { padding:3em 1.4em; font-size:0.9em; }
    div.content blockquote { padding-left:2.5em; margin-left:-1em; }
    div.content div.quotation blockquote { margin-left:0px; }
    div.content pre {
      margin: 0 -1em;
      padding:1em;
      background-color: #eee;
      border-left: none;
      border-top: 1px solid #ddd;
      border-bottom: 1px solid #ddd;
    }
    div.content *[align="right"] {
      display:block;
      float:none;
      margin-left:0;
    }
    div.content *[align="right"][width$="%"] {
      display:inline-block;
      float:right;
      margin-left:1em;
    }
    div.content *[align="right"][width="50%"] {
      width:45%;
    }

  a.post-excerpt {
    font-size:80%;
  }
    a.post-excerpt div.padded-content {
      padding: 2em 2em;
    }
    a.post-excerpt:nth-child(1) div.padded-content,
    a.post-excerpt:nth-child(2) div.padded-content {
      padding-top: 2em;
    }
    a.post-excerpt.photo {
      height:auto;
      min-height:300px;
    }
}
