@charset "utf-8";

@import url(https://fonts.googleapis.com/css?family=Roboto:400,400italic,700,700italic|Droid+Serif:400,700,400italic,700italic|Inconsolata:400,700|Oswald);

/* Global Reset */
* {
  margin: 0;
  padding: 0;
}
img, a img {
  border: 0;
}

/* Common */

html, body {
  background-color: #FFF;
  color: black;
  font: 14px "Roboto", "Helvetica", "Arial", sans-serif;
}

h1 { font-size: 2.0em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.25em; }
h4 { font-size: 1.0em; }
h5 { font-size: 1.0em; }
h6 { font-size: 1.0em; }

h1, h2, h3, h4, h5, h6, p, hr, blockquote { margin: 1em 0; }
h1, h2, h3, h4, h5, h6 { line-height: normal; text-align: left; }
h1 { margin-top: 0; margin-bottom: 0; }
li > p { margin-top: 0; margin-bottom: 0; }

a               { color: #00a; }
a:visited       { color: #a0a; }
a:hover         { color: #11f; }
a:visited:hover { color: #f1f; }

/* Site */
.site {
  text-align: justify;
  max-width: 45em;
  margin: 0 auto 1em;
  padding: 0 1em;
  line-height: 1.5;
}

/* Header */
header {
}
header a:link,
header a:visited,
header a:link:hover,
header a:visited:hover {
  text-decoration: none;
}
header a:link,
header a:visited {
  color: #666;
}
header a:link:hover,
header a:visited:hover {
  color: #000;
}
header nav {
  display: block;
  padding-left: 32px;
  position: relative;
  border-radius: 16px 0 0 16px;
  font-size: 16px;
  font-family: "Oswald", sans-serif;
  background: #EDEEEB;
  background: linear-gradient(to right, rgba(237,238,235,1.0) 0%, rgba(1,1,1,0.0) 100%);
  color: black;
  text-shadow: white 1px 1px;
  margin-bottom: 1.25em;
  text-align: left;
}
header nav:after {
  display: block;
  clear: both;
  content: " ";
  height: 0;
}
header nav .favicon {
}
header nav .favicon img {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  vertical-align: middle;
}
header nav a {
  display: block;
  float: left;
  line-height: 32px;
  vertical-align: middle;
  padding-left: 0.5em;
  padding-right: 0.5em;
}
header nav a:after {
  content: "⟩";
  padding-left: 1em;
  color: #aaa;
}
header nav a:hover:after {
  color: #000;
}

/* Footer */
.site > footer {
  font-size: 0.8em;
  color: #666;
  border-top: 4px solid #eee;
  margin-top: 1em;
}

/* Home*/
.posts {
  list-style-type: none;
  margin-bottom: 2em;
}

.posts li {
  line-height: 1.75;
  text-indent: -5em;
  margin: 0.5em 0 0.5em 5em;
}
.posts li time {
  color: #222;
  font-size: 0.8em;
}
.posts li .excerpt {
  font-size: 0.9em;
}

/* Posts */

nav.postnextprev {
  display: block;
  text-decoration: none;
  margin: 1.5em 0;
}
nav.postnextprev:after {
  display: block;
  clear: both;
  content: " ";
  height: 0;
}
nav.postnextprev .prev {
  float: left;
  margin-right: 0.5ex;
}
nav.postnextprev .next {
  float: right;
  margin-left: 0.5ex;
}

.tags {
  margin: 1em 0;
  font-size: 0.8em;
}

/* Post styling */
.post pre {
  border: 1px solid #ddd;
  background-color: #eef;
  padding: 0 .4em;
  line-height: normal;
}

.post ul, .post ol {
  margin-left: 1.35em;
}

.post code {
  border: 1px solid #ddd;
  background-color: #eef;
  padding: 0 .2em;
}

.post pre code {
  border: none;
  padding: 0;
}

/* terminal */
.post pre.terminal {
  border: 1px solid #000;
  background-color: #333;
  color: #FFF;
}

.post pre.terminal code {
  background-color: #333;
}

figure {
  display: block;
  text-align: center;
  box-sizing: border-box;
}
.polaroid {
  /* Polaroid-like border: */
  background: white;
  color: black;
  padding: 1ex;
  box-shadow: 0px 2px 8px silver;
}
figure figcaption {
  text-align: center;
  font-style: italic;
  font-size: 0.9em;
}
figure > img,
figure > a > img,
figure > object,
figure > iframe {
  /* Leaving it as baseline (the default) causes a small "margin" below the image. */
  vertical-align: bottom;
}
figure.floatright > img,
figure.singleimage > img,
figure.floatright > a > img,
figure.singleimage > a > img,
figure.floatright > object,
figure.singleimage > object,
figure.floatright > iframe,
figure.singleimage > iframe {
  max-width: 100%;
}

figure.singleimage {
  display: table;  /* Trick to make the width fit the contents. */
  clear: both;
  margin: 1em auto;
  max-width: 100%;
}
figure.floatright {
  float: right;
  clear: right;
  margin: 0 0 1ex 1em;
  max-width: 50%;
}

/* 21em is half of 42em .site max-width */
/* Note, however, that em in media queries are based on the initial font-size, and never on declarations. https://www.w3.org/TR/css3-mediaqueries/#units */
@media (max-width: 21em) {
  figure.floatright {
    display: table;  /* Trick to make the width fit the contents. */
    float: none;
    clear: both;
    margin: 1em auto;
    max-width: 100%;
  }
}

pre {
  text-align: left;
}
code {
  font-size: 0.9em;
}
pre, code {
  font-family: "Inconsolata", monospace;
}

kbd {
  /* Inspired by https://meta.superuser.com/questions/4788/css-for-the-new-kbd-style */
  border: 1px outset #CCC;
  background: #EEE;
  color: #333;
  border-radius: 3px;
  box-shadow:0 1px 0 rgba(0,0,0,0.2);
  display: inline-block;
  font-family: "Arial", "Helvetica", sans-serif;
  font-size: 0.9em;
    margin: 0 .05em;
    padding: .05em .5em;
    text-shadow: 0 1px 0 #fff;
}

blockquote {
  padding: 1em 2em;
  background: #F7F7F7;
  border: 1px solid #ddd;  /* Same border as <pre> */
  position: relative;
  quotes: "“" "”" "‘" "’";
  border-radius: 1em 0;
}
blockquote > :first-child {
  margin-top: 0;
}
blockquote > :last-child {
  margin-bottom: 0;
}
blockquote:before,
blockquote:after {
  display: block;
  position: absolute;
  font-family: "Droid Serif", "Times New Roman", serif;
  font-size: 4em;
  color: #BBB;
  width: auto;
  margin: 0;
  padding: 0;
}
blockquote:before {
  content: "“";
  content: open-quote;
  top: 0;
  line-height: 1.0;
  right: 100%;
  /* 2em of blockquote padding, converted to 4em font-size, equals to 0.5em */
  margin-right: -0.5em;
  padding-right: 1px;
  text-align: right;
}
blockquote:after {
  content: "”";
  content: close-quote;
  bottom: 0;
  line-height: 0.25;
  left: 100%;
  /* 2em of blockquote padding, converted to 4em font-size, equals to 0.5em */
  margin-left: -0.5em;
  padding-left: 1px;
  text-align: left;
}

a[href^="http://web.archive.org/web/"],
a[href^="https://web.archive.org/web/"] {
  /* font-size: 0.75em; */
  text-decoration: none;
  width: 0;
  padding-left: 1em;
  height: 1em;
  overflow: hidden;
  display: inline-block;
  background: center center no-repeat url(/icons/InternetArchive.svg);
  background-size: contain;
}

/* Also try using display: inline-flex; or using percentages as height. */
/* Alternative implementations: http://codepen.io/denilsonsa/pen/Etrba?editors=110 */
.date-as-calendar {
  position: relative;
  font-variant: normal;
  font-style: normal;
  font-weight: normal;
  font-family: "Helvetica", "Arial", sans-serif;

  display: block;
  width: 64px;
  height: 64px;

  float: right;
  margin: 0 0 1ex 1ex;

  color: black;
  background: white;
  background : linear-gradient(to bottom right, #FFF 0%, #EEE 100%);

  border: 1px solid #888;
  border-radius: 3px;
  overflow: hidden;

  box-shadow: 2px 2px 2px -2px black;
}
.date-as-calendar .weekday,
.date-as-calendar .day,
.date-as-calendar .month,
.date-as-calendar .year {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 1em;
  text-align: center;
  line-height: 1.0;
}
.date-as-calendar .month {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  top: 0px;
  font-size: 12px;
  padding: 2px 0;
  background: #B11;
  background : linear-gradient(to bottom right, #D66 0%, #A00 100%);
  color: white;
}
.date-as-calendar .weekday {
  top: 16px;
  font-size: 10px;
}
.date-as-calendar .day {
  top: 26px;
  font-size: 24px;
}
.date-as-calendar .year {
  top: 50px;
  font-size: 14px;
}
@media (max-width: 192px) {
  .date-as-calendar {
    float: none;
    clear: none;
    margin: 1ex auto;
  }
}

/* vi:et:sw=2:ts=2 */
