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

html, body {
  background-color: #073642;
  color: #3a4145;
  font: 16px 'Roboto', sans-serif;
  font-weight: 300;
  line-height: 1.4;
  margin: 0;
  padding: 0;
  height: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-size: 1rem;
  font-weight: normal;
  margin: 0;
  text-rendering: optimizeLegibility;
}

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

a         { color: #4183C4; text-decoration: none; }
a:hover   { text-decoration: underline; }

code, pre {
  font-family: Inconsolata, monospace;
}

pre {
  background: #f7fafb;
  border: 1px solid #e3edf3;
  border-radius: 3px;
  font-size: 0.875em;
  padding: 10px;
}

code {
  background: #f7fafb;
  border: 1px solid #e3edf3;
  border-radius: 2px;
  padding: 1px 3px;
  font-size: 0.875em;
  white-space: nowrap;
}

pre code {
  background: transparent;
  border: none;
  color: #000;
  font-size: inherit;
  padding: 0;
  white-space: pre-wrap;
}

.inner {
  margin: 0 auto;
  max-width: 700px;
  text-align: justify;
  width: 90%;
}

.hidden {
  display: none;
}

main {
  background: #fff;
  padding: 3rem 0;
}

header, body > footer {
  background: #073642;
  box-shadow: 0 0 5px;
  padding: 1em 0;
  position: relative;
  z-index: 10;
}

header {
  color: #93a1a1;
}

header h1 {
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin: 0;
}

header h1 a {
  color: inherit;
}

body > footer {
  color: #839496;
  padding: 3em 0;
  text-align: center;
  font-size: .8125rem;
}

body > footer a, body > footer a:visited {
  color: #839496;
  text-decoration: none;
}

body > footer a:hover {
  text-decoration: underline;
}

main h2:first-child {
  font-size: 2rem;
  font-weight: normal;
  letter-spacing: -1px;
}

main h2 {
  font-size: 1.3rem;
}

/*****************************************************************************/
/*
/* Home
/*
/*****************************************************************************/

.big-subscribe {
  display: block;
  float: left;
  background: #dc322f;
  color: #eee8d5;
  border-radius: 50px;
  border: #eee8d5 solid 4px;
  padding: 10px;
  width: 2em;
  text-indent: -0.1em;
  margin: 1em 1em 1em 0;
}

.big-subscribe + * + h3 {
  clear: left;
}

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

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

.posts span {
  color: #aaa;
  font-family: Monaco, "Courier New", monospace;
  font-size: 80%;
}

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

main footer .inner {
  border-top: #eee 1px solid;
  margin: 2em auto 0;
  padding: 2em 0 0;
  overflow: auto;
}

main footer h4 {
  font-size: 112.5%;
  font-weight: normal;
}

main footer p {
  margin: .5rem 0;
  font-size: 87.5%;
}

main footer section.author {
  float: left;
  text-align: justify;
  max-width: 480px;
}

footer .author img {
  border-radius: 90px;
  border: #ddd solid 1px;
  float: left;
  height: 100px;
  margin: 5px 20px 0 0px;
  padding: 3px;
  width: 100px;
}

main footer section.share {
  float: left;
  padding: 0 0 0 22px;
  width: 198px;
}

main footer section.share a {
  display: inline-block;
  margin: 1em 1em 1em 0;
  color: #ddd;
}

main footer section.share a:hover {
  color: #50585d;
}

@media (max-width: 630px) {
  main footer section.share {
    clear: both;
    float: none;
    margin: 0 auto;
    padding: 1em 0 0;
  }
}

/*****************************************************************************/
/*
/* Figures
/*
/*****************************************************************************/

table {
  display: block;
  width: 100%;
  overflow: auto;
  border-collapse: collapse;
  margin: 1em 0;
}

table th {
  font-weight: bold;
}

table th, table td {
  border: 1px solid #ddd;
  padding: 6px 13px;
}

table tr {
  border-top: 1px solid #ccc;
  background-color: #fff;
}

table tr:nth-child(2n) {
  background-color: #f8f8f8;
}

.figure {
  overflow: auto;
  margin: 1em 0;
}

.figure table {
  margin: 0;
}

.figure > input {
  display: none;
}

.figure > .tabs {
  text-align: right;
  margin-bottom: 10px;
}

.tabs {
  border-bottom: solid 1px #aaa;
  font-size: 14px;
}

.tabs label {
  display: inline-block;
  background: #ddd;
  border: solid 1px #aaa;
  border-radius: 5px 5px 0 0;
  padding: 1px 4px 0;
  margin: 1px 3px -3px;
}

.view_table:checked ~ .tabs .view_table,
.view_chart:checked ~ .tabs .view_chart {
  background: #fff;
  border-bottom: none;
  padding-bottom: 1px;
}

.figure > table, .figure > canvas {
  clear: right;
  float: left;
  margin-right: -100%;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 500ms;
}

.figure .view_table:checked ~ table,
.figure .view_chart:checked ~ canvas {
  opacity: 1;
  pointer-events: auto;
}
