* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  color: #333;
  margin: 0;
  padding: 0;
  font-size: 95%;
  font-family: raleway, helvetica, sans-serif;
}

a:link, a:visited {
  color: #2574C4;
  text-decoration: underline;
}

/*a + a::before {
  content: "| ";
}*/

a:hover {
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: raleway, palatino, 'palatino linotype', serif;
  font-weight: normal;
}

h1 {
  font-size: 180%;
  padding: 35px 10px;
  margin: 0;
  text-align: center;
  width: 670px;
}

h2 {
  font-size: 160%;
  border-bottom: 1px dotted #9f9f9f;
}

h3 {
  font-size: 130%;
  border-bottom: 1px dotted #9f9f9f;
}

hr {
  height: 0;
  border: 0;
  border-bottom: 1px dotted #9f9f9f;
}

h2 code {
  font-family: 'droid sans mono', menlo, monaco, consolas, 'lucida console', 'courier new', monospace;
}

main {
  width: 670px;
  margin: 0 auto;
}

main p {
  line-height: 140%;
  text-align: justify;
}

li {
  line-height: 140%;
}

ul {
  margin: 15px 0 15px 25px;
  padding: 0;
  list-style: circle outside;
}

ol {
  margin: 15px 0 15px 20px;
  padding: 0;
  list-style-position: outside;
}

ul ul {
  margin: 0 0 0 15px;
}

p code, li code {
  font-family: 'droid sans mono', menlo, monaco, consolas, 'lucida console', 'courier new', monospace;
  font-size: 90%;
  background: #F5F5F5;
}

.highlight pre, .terminal {
  margin: 0;
  padding: 0;
  font-size: 90%;
}

.highlight pre code, .terminal {
  font-family: 'droid sans mono', menlo, monaco, consolas, 'lucida console', 'courier new', monospace;
  display: block;
  margin: 20px 0;
  padding: 3px 7px;
  border-left: solid #d0d0d0 1px;
  background: #F5F5F5;
}

.terminal {
  font-size: 80%;
}

.highlight pre code {
  counter-reset: linenumbers;
  position: relative;
}

.highlight pre code > span[id]:before {
  position: absolute;
  color: #b0b0b0;
  content: counter(linenumbers);
  counter-increment: linenumbers;
  left: -58px;
  width: 50px;
  text-align: right;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.highlight pre code .lineno {
  display: inline-block;
  text-align: right;
  font-size: 90%;
  line-height: 90%;
  color: #666;
}

.hll {
  display: block;
  background: #fff5ed;
  background: #ffc0c6;
}

.highlight pre code.language-console {
  background: black;
  border-radius: 2px;
  border-color: black;
}

.highlight code.language-console span {
  color: #fdfdfd;
}

/* http://css-tricks.com/snippets/css/simple-and-nice-blockquote-styling/ */
blockquote {
  font-size: 110%;
  color: #666;
  position: relative;
  background: #F5F5F5;
  border-left: 1px solid #ccc;
  margin: 0;
  padding: 5px 20px;
  /*quotes: "\201C" "\201D" "\2018" "\2019";*/
  quotes: "\201C" "\201D";
}

blockquote:before {
  color: #ccc;
  content: open-quote;
  font-size: 250%;
  position: absolute;
  top: -13px;
  left: 3px;
}

blockquote p {
  display: inline;
}

cite {
  font-style: normal;
  color: #666;
  position: relative;
  background: #F5F5F5;
  /*border-left: 1px solid #ccc;*/
  margin: 0;
  padding: 0 3px 0 5px;
  /*quotes: "\201C" "\201D" "\2018" "\2019";*/
  quotes: "\201C" "\201D";
}

cite:before {
  color: #ccc;
  content: open-quote;
  font-size: 200%;
  position: absolute;
  top: -2px;
  left: -3px;
}

/*cite:after {
  color: #ccc;
  content: close-quote;
  font-size: 200%;
  position: absolute;
  top: -2px;
  right: -5px;
}*/

.publish-date {
  font-size: 70%;
  text-align: right;
  margin: 0;
  padding: 0;
  color: #9f9f9f;
  border-top: 1px dotted #9f9f9f;
}

.warning {
  color: #B05800;
  margin: 10px 0;
  padding: 3px 20px 0 15px;
  border-top: solid #FFD47D 1px;
  border-bottom: solid #FFD47D 1px;
  background-color: #FFF8B1;
}

.warning h2 {
  font-size: 130%;
  margin: 10px 0;
  border: none;
}

.warning h2:before {
  content: '⚠️ ';
}

.warning p {
  margin: 15px 0 15px 25px;
}

.warning a:link, .warning a:visited {
  color: #9E4F00;
  font-weight: bold;
}

footer {
  height: 50px;
}

.related {
  text-align: right;
  background: #F5F5F5;
  margin: 20px 0;
  padding: 5px 5px 5px 5px;
  border: dotted #d0d0d0 1px;
  border-left: none;
  border-right: none;
  font-size: 90%;
  position: relative;
}

.twitter-button {
  position: absolute;
  left: 4px;
  bottom: 0;
  top: auto;
}

.twitter-button iframe {
  display: inline-block;
}

.feed, .posts a.feed:link {
  padding-right: 20px;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAJFSURBVBgZBcHda5V1AADg5/d733Oc7tjOaNs5GC6KdrEwmpPRxG7spoKghOim7oK8y0MIEQRL+geGEIQ3UXQvSJ8IafZxUbjQhRDZoU60iYsSc9t5v87b84TsVe3mrBWpHoCICIAIACixYTUfOJM2Z62YO97TOULSIKaEQAyESAzEgISAgLpi48de87MLUqmezhGyhO4SCW7f4O81YiSJiCQIkbqmNcXMIjMXeilIGsQxDp8AnKDY5teL3PyU6h4CdY3Av7cYu58R0QghZWeT9fP0v2V7i8Y4j77As2c5sAwIFAXDgjInJxURAzub/PwxMZBGphZYeIWJWZ44xdo5bl4kK8kzioohUUREd4kXP+Kpd3nkee72+epNBleAxdfoLJBlDEuKkpxoBAkBjXGm53n8ZZ45S/shrr7P75eBo6eo9zAsKCqGRBEB/1zj89e5eo7tLRr7ePJtWg9wZZV7t2i2OPQcw5JiRE4UESN1ZPc2g0tceos/LtPYx9HTaPDNe8Dhl9gtyStyUiMIJDXLp2m0GHzN2gdMzdPq0F3k+pcc/4+x/UwepKzIiSDWTB/iwBLT8xw8xt07rJ8HHj7GbkX/B+DBxyhrciIQ2N2i2AG2fiPL+OsXoNVlWPDnDaC5l6qiJJWjLlHxxRs0JhhcIyvp/8SHJylKdiu++4Tr31NW7B8nkrwzp627d9nkHM0Wsea+GSY6tDvESEyY6TIxyZ4GSUp/nTubqyF7WrvZtaKrZ4QSQ+TIMUSJHCVypGhaHW448z+h1tLAgvKk7gAAAABJRU5ErkJggg==);
  background-repeat: no-repeat;
  background-position: 98% 50%;
}

.posts h2, .online h2, .talks h2 {
  margin: 0;
  padding: 10px 0 5px 5px;
}

.posts ol {
  margin: 10px 0;
  padding: 0;
  list-style: none outside;
}

.posts .related {
  margin: 10px 0;
}

.posts li, .online li, .talks li {
  padding: 5px 0;
}

.post li p {
  display: inline;
}

.post li {
  padding-top: 1px;
  padding-bottom: 1px;
}

.posts time {
  color: #a0a0a0;
  display: inline-block;
  width: 110px;
  padding: 0 4px 0 0;
  text-align: right;
}

.posts time:after {
  content: '·';
  margin-left: 7px;
}

.posts a, .online a, .talks a {
  text-decoration: none;
}

.posts a:hover, .online a:hover, .talks a:hover {
  text-decoration: underline;
}

.talks {
  margin-bottom: 50px;
}

.talks .related {
  margin-top: 5px;
}

.talks ol {
  margin: 0 5px;
  padding: 0;
  list-style: none;
}


/*.posts a:link, .posts a:visited {
  color: #2060a0;
  padding: 0 2px;
  text-decoration: none;
  border-radius: 2px;
}

.posts a:hover {
  color: white;
  background-color: #2060a0;
}
*/

/* —————————————————————————————————————————————————————————————————————————— */
/* NAV                                                                        */
/* —————————————————————————————————————————————————————————————————————————— */
header {
  position: relative;
  width: 670px;
  margin: 0 auto;
  border-bottom: 1px dotted #9f9f9f;
}

.logo {
  position: absolute;
  bottom: -48px;
  left: -110px;
  padding: 50px 20px 20px 20px;
}

nav {
  text-align: right;
  padding: 50px 0 10px 0;
}

nav ul {
  margin: 0;
  padding: 0;
}

nav li {
  display: inline;
  margin-left: 10px;
}

/*nav li:after {
  color: #bfbfbf;
  content: '; ';
}

nav li:hover:after {
  color: #333;
}*/

/*nav li:last-child:after {
  content: '';
}*/

nav ul a:link, nav ul a:visited {
  font-family: 'droid sans mono', monospace;
  color: #9f9f9f;
  text-decoration: none;
  padding: 2px;
  border-radius: 2px;
  /*text-transform: uppercase;*/
}

nav ul a:hover {
  color: #cc0033;
  color: #1C83B3;
  color: #2060A0;
  color: #333;
  text-decoration: underline;
}

/* —————————————————————————————————————————————————————————————————————————— */
/* SYNTAX                                                                     */
/* —————————————————————————————————————————————————————————————————————————— */
/*.highlight        { background: #ffffff; }*/
.highlight .c     { color: #999988; } /* Comment */
/*.highlight .err { color: #a61717; background-color: #e3d2d2 }*/ /* Error */
.highlight .k     { font-weight: bold } /* Keyword */
.highlight .o     { } /* Operator */
.highlight .cm    { color: #999988; } /* Comment.Multiline */
.highlight .cp    { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1    { color: #999988; } /* Comment.Single */
.highlight .cs    { color: #999999; font-weight: bold; } /* Comment.Special */
.highlight .gd    { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge    { } /* Generic.Emph */
.highlight .gr    { color: #aa0000 } /* Generic.Error */
.highlight .gh    { color: #999999 } /* Generic.Heading */
.highlight .gi    { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go    { color: #888888 } /* Generic.Output */
.highlight .gp    { color: #555555 } /* Generic.Prompt */
.highlight .gs    { font-weight: bold } /* Generic.Strong */
.highlight .gu    { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt    { color: #aa0000 } /* Generic.Traceback */
.highlight .kc    { font-weight: bold } /* Keyword.Constant */
.highlight .kd    { font-weight: bold } /* Keyword.Declaration */
.highlight .kp    { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr    { font-weight: bold } /* Keyword.Reserved */
.highlight .kt    { color: #445588 } /* Keyword.Type */
.highlight .m     { color: #009999 } /* Literal.Number */
.highlight .s     { color: #d14 } /* Literal.String */
.highlight .na    { color: #008080 } /* Name.Attribute */
.highlight .nb    { color: #0086B3 } /* Name.Builtin */
.highlight .nc    { color: #445588 } /* Name.Class */
.highlight .no    { color: #008080 } /* Name.Constant */
.highlight .ni    { color: #800080 } /* Name.Entity */
.highlight .ne    { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf    { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn    { color: #555555 } /* Name.Namespace */
.highlight .nt    { color: #000080 } /* Name.Tag */
.highlight .nv    { color: #008080 } /* Name.Variable */
.highlight .ow    { font-weight: bold } /* Operator.Word */
.highlight .w     { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf    { color: #009999 } /* Literal.Number.Float */
.highlight .mh    { color: #009999 } /* Literal.Number.Hex */
.highlight .mi    { color: #009999 } /* Literal.Number.Integer */
.highlight .mo    { color: #009999 } /* Literal.Number.Oct */
.highlight .sb    { color: #d14 } /* Literal.String.Backtick */
.highlight .sc    { color: #d14 } /* Literal.String.Char */
.highlight .sd    { color: #d14 } /* Literal.String.Doc */
.highlight .s2    { color: #d14 } /* Literal.String.Double */
.highlight .se    { color: #d14 } /* Literal.String.Escape */
.highlight .sh    { color: #d14 } /* Literal.String.Heredoc */
.highlight .si    { color: #d14 } /* Literal.String.Interpol */
.highlight .sx    { color: #d14 } /* Literal.String.Other */
.highlight .sr    { color: #009926 } /* Literal.String.Regex */
.highlight .s1    { color: #d14 } /* Literal.String.Single */
.highlight .ss    { color: #990073 } /* Literal.String.Symbol */
.highlight .bp    { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc    { color: #008080 } /* Name.Variable.Class */
.highlight .vg    { color: #008080 } /* Name.Variable.Global */
.highlight .vi    { color: #008080 } /* Name.Variable.Instance */
.highlight .il    { color: #009999 } /* Literal.Number.Integer.Long */


/*
  A bug in the pygments parser causes the first `case` keyword to be recognized
  as a class name and gets different colouring. This rule works around this bug.

  sealed trait List[A]
  case class Nil[A]() extends List[A]
*/
.highlight .nc:first-child {
  color: #000;
  font-weight: bold;
}
