/*@import url(http://fonts.googleapis.com/css?family=Poly:400,400italic|Alegreya+Sans+SC|Alegreya+Sans:500); */
/* @import url(http://fonts.googleapis.com/css?family=Poly:400,400italic|Alegreya+Sans+SC|Alegreya+Sans:500,500italic); */
@import url(http://fonts.googleapis.com/css?family=Alegreya+Sans+SC|Alegreya+Sans:500,500italic);

/*****************************************************************************/
/*
/* Common
/*
/*****************************************************************************/

/* Global Reset */
* {
  margin: 0;
  padding: 0;
}

body {
  font-family: "fbbregular", times, serif;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
  font-size: 18px;
  line-height: 145%;
  padding: 0 6mm;
}

em > em {
    font-style: normal;
}

p > small {
    line-height: 1.4em;
    display: inline-block;
}

/* for smaller windows */
@media (max-width: 600px) {
    body {
        font-size: 16px;
    }
}

h1, h2, h3, h4, h5, h6 {
  font-size: 100%; }

h1 { margin-bottom: 1em; }
p { margin: 1em 0; }

a {
    color: #a00;
    text-decoration: underline;
    /* border-bottom: 1px solid #a00; */
}
a:hover, a:visited:hover  { color: #000;
    /* border-bottom: 1px solid #000; */
}
a:visited { color: #a55;
    /* border-bottom: 1px solid #a55; */
}

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

.posts li {
  line-height: 1.75em;
}

.posts li span {
  color: #aaa;
  font-family: "monaco", mono-spaced;
  font-size: 70%;
}

/*****************************************************************************/
/*
/* Site
/*
/*****************************************************************************/

.site {
  text-align: left;
  max-width: 94ex;
  margin: 3em auto;
  /* line-height: 150%; */
  overflow: break;
}

.header {
    margin-bottom: 1em;
    text-align: center;
}

.header a {
  /* font-weight: normal; */
  text-decoration: none;
  border: none;
}

.title {
  display: inline-block;
  font-weight: normal;
}

.title a {
  color: #a00;
}

.title a:hover {
  color: #000;
}

.header a.extra {
  color: #aaa;
  margin: 0px 0.5em;
  font-size: 80%;
  font-weight: normal;
  text-transform: lowercase;
  letter-spacing: 2px;
  font-family: "Alegreya Sans SC", sans-serif;
}

.header-extras {
    margin-bottom: 10mm;
}

.header a.extra:hover {
  color: #000;
}

.post-title {
    text-align: center;
    font-weight: normal;
    font-size: 30px;
    line-height: 35px;
    font-style: italic;
    /* font-family: "Alegreya Sans"; */
}

.post-title a {
    color: #000;
    text-decoration: none;
    border: none;
}
.post-title a:hover {
    color: #a00;
}

.meta {
  text-align: center;
  font-family: "Alegreya Sans SC", sans-serif;
  color: #aaa;
  font-size: 70%;
  font-weight: normal;
  text-transform: lowercase;
  letter-spacing: 1.8px;
}

.footer {
  font-size: 80%;
  color: #666;
  /* border-top: 4px solid #eee; */
   border-top: 1px solid #bbb; 
  margin-top: 40px;
  padding-top: 20px;
  overflow: hidden;
}

.footer .contact {
  text-align: center;
  /*float: left;*/
  margin-right: 3em;
}

.footer .contact a {
  color: #666;
  border-color: #666;
}

.footer .rss {
  margin-top: 1.1em;
  margin-right: -.2em;
  float: right;
}

.footer .rss img {
  border: 0;
}

/*****************************************************************************/
/*
/* Posts
/*
/*****************************************************************************/

.post {
   /* padding-bottom: 32px; */
}

/* between posts */
.post-excerpt + .post-title {
   border-top: 1px solid #bbb; 
   margin-top: 80px;
   padding-top: 80px;
}

/* .post:before { */
/*     counter-reset: h1counter; */
/* } */

/* standard */
code {
    font-size: 0.9em;
    background-color: #f1f1f1;
    padding: 1px 3px;
}


.post pre {
    border: 1px solid #ddd;
    background-color: #f1f1f1;
    padding: 0 .4em;
    overflow: scroll;
}


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

.post-excerpt ul, .post-excerpt ol {
  margin-left: 2em;
  margin-right: 2em;
}

.post ul#markdown-toc {
    font-size: 0.8em;
    font-family: "Alegreya Sans", sans-serif;
    list-style-type: none;
    background-color: #f3f3f3;
    margin: 0px;
    line-height: 1.4;
    padding: 4px 8px;
}

.post ul#markdown-toc ul, .post ul#markdown-toc ul ul {
    list-style-type: none;
}

.post ul#markdown-toc ul li a, .post ul#markdown-toc li a {
    text-decoration: none;
    color: #333;
    border: none;
}

.post ul#markdown-toc ul li a:before, .post ul#markdown-toc li a:before {
    content: "§";
    margin-right: 0.7em;
    color: #aaa;
}

.post code {
    line-height: 1;
}

.post-excerpt code {
    line-height: 1;
}

.post pre code {
  /* border: none; */
}

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

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

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

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

.post h1, .post-excerpt h1 {
    font-size: 1.25em;
    margin-bottom: 6mm;
    margin-top: 6mm;
    font-family: "Alegreya Sans";
    font-weight: normal;
}

/* .post-excerpt h1 { */
/*     font-size: 1.25em; */
/*     margin-bottom: 6mm; */
/*     margin-top: 6mm; */
/*     font-family: "Alegreya Sans"; */
/*     /1* counter-increment: h1counter; *1/ */
/* } */

/* .post h1:before{ */
/*     content: counter(h1counter) "\0000a0\0000a0"; */
/* } */

.post h2 {
    font-weight: bold;
    font-style: normal;
    font-size: 1.0em;
    font-family: "Alegreya Sans";
    margin: 6mm 0px;
}

.post-excerpt h2 {
    font-weight: bold;
    font-style: normal;
    font-size: 1.0em;
    margin: 6mm 0px;
}

.post h3 {
    font-size: 0.9em;
    font-weight: bold;
}

.post-excerpt h3 {
    font-size: 0.9em;
    font-weight: bold;
}

.post div.important {
    padding: 4mm;
    background-color: #BAB7E0;
}



/*************
 * Stuff added by me
 *************/

blockquote {
    font-style: normal;
    /* margin: 0px 1cm; */
    margin-left: 1cm;
    margin-right: 1cm;
    padding-left: 4mm;
    padding-right: 4mm;
    /* padding: 4mm; */
    /* background-color: #F9F9F9; */
    /* border-left: 4px solid #f0f0f0; */
}


blockquote > p {
    color: #444;
    /* margin: 0px; */
}

/* blockquote > p+p { */
/*     margin-top: 1em; */
/* } */

.box {
    background-color: #F9F9F9;
    padding: 16px;
    display: block;
    margin: 0;
    width: 100%;
}

figure {
    text-align: center;
    background-color: #F9F9F9;
    padding: 16px;
    margin: 0px auto;
    display: block;
}

figure.left { float: left; margin-right: 10px; }
figure.right { float: right; margin-left: 10px; }
figure.quarter { width: 25%; }
figure.third { width: 33%; }
figure.half { width: 50%; }
figure.threequarters { width: 75%; }
figure.full {width: 100%; }

figcaption {
    font-size: 80%;
    line-height: 20px;
    font-family: "Alegreya Sans", sans-serif;
    margin: 0px auto;
    max-width: 100%;
    text-align: left;
    display: inline-block;
    margin-top: 16px;
}

img {
    max-width: 100%;
    display: block;
    margin: 0px auto;
}

hr {
    border: none;
    text-align: center;
    color: #aaa;
}

hr:before {
    content: "· · ·";
}

ol#footnotes, div.footnotes ol {
    font-size: 0.8em;
    line-height: 1.4em;
    margin: 1em 2em;
}

.post-excerpt div.footnotes {
    display: none;
}

div.footnotes {
   /* border-top: 4px solid #eee; */ 
   border-top: 1px solid #bbb; 
   margin-top: 16px;
}

/***************************
 * Pagination
 **************************/

.pagination {
   /* border-top: 4px solid #eee; */ 
   border-top: 1px solid #bbb; 
   margin-bottom: 32px;
   padding-top: 32px;
   margin-top: 80px;
}

.next {
}

.previous {
    float: right;
}

abbr {
    /* background-color: #eee; */
    border-bottom: 1px dashed #ccc;
}

.sc {
    font-variant: small-caps;
    /* font-weight: bold; */
    text-transform: lowercase;
    letter-spacing: 1.6px;
}

.para {
    font-style: italic;
    margin-right: 0.8em;
}


/* Footnote-superscript-fix */
sup {
    vertical-align: super;
    height: 0;
    line-height: 1;
}

/* For consequtive footnotes */
sup + sup {
    margin-left: 2px;
}

#footnotediv {
    font-size: 14px;
    line-height: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 0px 14px;
}

div#disqus_thread {
    margin-top: 1.5cm;
    /* border-top: 4px solid #eee; */
   border-top: 1px solid #bbb; 
}
