body {
    margin: 60px auto;
    width: 70%;
}
nav ul, footer ul {
    font-family:'Helvetica', 'Arial', 'Sans-Serif';
    padding: 0px;
    list-style: none;
    font-weight: bold;
}
nav ul li, footer ul li {
    display: inline;
    margin-right: 20px;
}
a {
    text-decoration: none;
    color: #999;
}
a:hover {
    text-decoration: underline;
}
h1 {
    font-size: 3em;
    font-family:'Helvetica', 'Arial', 'Sans-Serif';
}
p {
    font-size: 1.5em;
    line-height: 1.4em;
    color: #333;
}
footer {
    border-top: 1px solid #d5d5d5;
    font-size: .8em;
}

ul.posts { 
    margin: 20px auto 40px; 
    font-size: 1.5em;
}

ul.posts li {
    list-style: none;
}


@viewport {
  width: device-width;
}

* { margin:0; padding:0; font-family:inherit; }
body {
  background:#ddd;
  color:#000;
  font:16px 'Roboto Slab', georgia, serif;
  line-height:1.625;
  font-weight: 300;
  margin: 0 auto;
  width: 100%;
  /*zoom:0.8;*/
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-font-smoothing: subpixel-antialiased;
  -webkit-overflow-scrolling: touch;
}

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

p, ul, ol, pre, blockquote, hr, object { margin: 1em 0; }
pre, code, tt {
  /*-webkit-font-smoothing: subpixel-antialiased;*/
  /*font-family: 'M+ 1mn', 'Consolas', monospace;*/
  font-family: 'Ubuntu Mono', 'Consolas', monospace;
  font-weight:300;
  font-size: 14px;
}
/*pre strong, code strong, tt strong,
pre b, code b, tt b {
  font-weight:400;
}*/
img { border:none; vertical-align:bottom; }
strong { font-weight:400; }
hr { height:1px; border:none; background-color:#ddd; }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Roboto Condensed', helvetica, sans-serif;
  font-weight:normal;
  color:#040404;
  margin: 1.618em 0 0.7em 0;
  /*-webkit-font-smoothing: antialiased;*/
  text-rendering: optimizeLegibility;
  text-rendering: geometricPrecision;
}
h1,h2 { font-size: 200%; }
h3 { font-size: 180%; }

h4, h5, h6 { margin:1em 0 -0.2em 0; }
h4 { font-size: 130%; }
h5, h6 { font-size: 150%; }

a { text-decoration:none; }
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:inherit !important;
  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;
    }
    header h1 a:hover {
      -webkit-transform: translate3d(0,2px,0);
  /*    -webkit-filter: blur(1px);
      -moz-filter: blur(1px);*/
      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: 'Roboto Condensed', 'Roboto';
    font-size: 14px;
    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 container */
div.container {
  background:white;
  padding:50px 50px;
  margin-bottom:60px;
}
div.container.full-bleed {
  padding:0;
}
div.container.photo {
  padding: 0;
  margin:0;
}
  div.content:not(.sub) h1:first-child {
    margin-top:0;
    font-size:300%;
    font-family: 'Roboto Condensed';
    /*font-size:14px;*/
    /*letter-spacing:0.01em;*/
    font-weight: 300;
    /*text-transform: uppercase;*/
  }
  
  div.content img, div.content iframe { display:block; max-width:100%; margin:1em 0; }
  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.post strong { font-weight:inherit; background:#FBF4B1; }*/
  div.content li { margin-left: 2em; margin-bottom:0.3em; }
  div.content ul > li { margin-left:1.4em; }
  
  div.content blockquote {
    /*font-family: 'Poly', georgia;*/
    font-style:italic;
    line-height:1.618;
    background:transparent url(quotation-mark.png) no-repeat scroll 25px 1.4em;
    padding:0.1em 1em 0.1em 60px;
    margin:1.618em 0 1.618em -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: #f6f9fa;
    /*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; }
  
  /* wide objects */
  /* this is b0rked */
  /*div.content *[alt~="fullbleed"] {
    position: relative;
    left:-11%; right:-20%;
  }
  div.content *[alt~="large"] {
    max-width:1024px;
    margin-left:-180px;
  }*/

/*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;
}
  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.padded-content {
      display: -webkit-box; display: -moz-box; display: box;
      -webkit-box-orient: vertical; -moz-box-orient: vertical; box-orient: vertical;
      -webkit-box-pack: end; -moz-box-pack: end; box-pack: end;
    }*/
    a.post-excerpt.photo div.title {
      padding:10px 40px;
      font-size: 300%;
      font-weight: 100;
      color: white;
      /*background:rgba(255,200,0,0.1);*/
      -webkit-text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
      -moz-text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
      text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
      position: absolute;
      left:0; right:0; bottom:0;
      z-index:2;
      font-family:inherit;
      text-transform: none;
      /*font-weight:400;*/
      line-height:1.1;
      padding-bottom:1em;
    }
    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:hover div.padded-content {
        opacity:0.9;
      }
  }

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

  a.post-excerpt div.title {
    font-family:'Roboto Condensed', sans-serif;
    font-size:18px;
    /*letter-spacing:0.02em;*/
    font-weight: normal;
    text-transform: uppercase;
  }

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



/* 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 pre { overflow:scroll; -webkit-overflow-scrolling: touch; }
  html pre, html code, html 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: 'Roboto Condensed', 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:not(.sub) h1:first-child { font-size:210%; }
    div.content pre {
      margin: 0 -0.4em;
      padding: 0.5em;
      border-radius:1px;
      /*border: none;
      background-color: #eee;*/
    }
    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 !important;
    }
    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;
    }
}

