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

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

html, body { height: 100%; }

body {
  background-color: #FFF;
  font: 13.34px Helvetica, Arial, sans-serif;
  font-size: small;
  text-align: center;
}

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

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

.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  display: inline-block;
  height: 38px;
  padding: 0 30px;
  color: #555;
  text-align: center;
  font-size: 11px;
  line-height: 38px;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border-radius: 4px;
  border: 1px solid #bbb;
  cursor: pointer;
  box-sizing: border-box; }
.button:hover,
button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
.button:focus,
button:focus,
input[type="submit"]:focus,
input[type="reset"]:focus,
input[type="button"]:focus {
  color: #333;
  border-color: #888;
  outline: 0; }

/* Forms
–––––––––––––––––––––––––––––––––––––––––––––––––– */
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea,
select {
  height: 38px;
  padding: 6px 10px; /* The 6px vertically centers text on FF, ignored by Webkit */
  background-color: #fff;
  border: 1px solid #D1D1D1;
  border-radius: 4px;
  box-shadow: none;
  box-sizing: border-box; }
/* Removes awkward default styles on some inputs for iOS */
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
input[type="tel"],
input[type="url"],
input[type="password"],
textarea {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none; }
textarea {
  min-height: 65px;
  padding-top: 6px;
  padding-bottom: 6px; }
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
  border: 1px solid black;
  outline: 0; }
label,
legend {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600; }
fieldset {
  padding: 0;
  border-width: 0; }
input[type="checkbox"],
input[type="radio"] {
  display: inline; }
label > .label-body {
  display: inline-block;
  margin-left: .5rem;
  font-weight: normal; }

.clearfix {
  clear: both;
}

/*****************************************************************************/
/*
/* Home
/*
/*****************************************************************************/
.about {
  margin-bottom: 2em;
}
.about:before,
.about:after {
  content: " ";
  display: table;
}
.about:after {
  clear: both;
}

.avatar {
  float: left;
  border-radius: 6px;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-right: 2em;
}

.book-detail {
  margin-bottom: 2em;
}

#posts {
  margin-top: 2em;
}

.posts, .talks, .projects, .recreational, .podcasts {
  list-style-type: none;
  margin-bottom: 2em;
}

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

.posts span, .talks span, .podcasts span {
  color: #aaa;
  display: inline-block;
  width: 80px;
  font-size: 80%;
}
/*****************************************************************************/
/*
/* Site
/*
/*****************************************************************************/

.site {
  font-size: 115%;
  text-align: justify;
  width: 42em;
  margin: 3em auto 2em;
  padding: 0.5em;
  line-height: 1.5em;
}

.header a {
  font-weight: bold;
  text-decoration: none;
}

.title {
  display: inline-block;
  margin-bottom: 2em;
}

.title a {
  color: #000;
}

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

.header a.extra {
  color: #aaa;
  margin-left: 1em;
}

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

.header #menu-book-link {
  background-color: yellow;
  color: black;
  padding-left: 2px;
  padding-right: 2px;
}

.meta {
  color: #aaa;
}

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

.post h1 {
  font-size: 1.5em;
  line-height: 1.5em;
}
.post pre {
  border: 1px solid #ddd;
  background-color: #faffff;
  padding: 0.8em;
  overflow: scroll;
  border-radius: 6px;
  line-height: 1.5em;
}

.post pre::-webkit-scrollbar { 
  display: none; 
}

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

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

.post pre code {
  border: none;
}

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

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

.post blockquote {
  font-style: italic;
  padding-left: 10px;
}

.postfooter {
  color: #aaa;
  padding-top: 1em;
  border-top: 4px solid #eee;
  border-bottom: 4px solid #eee;
  padding-bottom: 1em;
  margin-bottom: 3em;
}


/*****************************************************************************/
/*
/* Book Announcement
/*
/*****************************************************************************/

.book {
  background-color: whitesmoke;
  border: 1px solid #777;
  border-radius: 3px;
  padding: 20px;
  min-height: 200px;
  margin-bottom: 20px;
}

.book h1 {
  font-size: 1.5em;
  line-height: 1.5em;
}

#cover-img {
  float: right;
  margin-left: 20px;
  border: 1px solid lightgrey;
}

.cover-float-right {
  float: right;
  margin-left: 10px;
  border: 1px solid lightgrey;
}

.paperback-image {
  max-width: 100%;
  height: auto;
  display:block;
  margin-top: 15px;
  margin-bottom: 15px;
}

#lost-chapter-post-cta {
  text-align: center;
}
