@import url('https://fonts.googleapis.com/css?family=Open+Sans|Work+Sans:800');

*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
     -moz-box-sizing: border-box;
          box-sizing: border-box;
}

html {
  font-family: 'Open Sans', helvetica;
  font-size: 16px;
  line-height: 1.5;
  font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
}

p {
   line-height: 1.5;
 }

h1, h2, h3, h4, h5, h6, div {
  line-height: 1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Work Sans';
}

h1 { font-size: 200%; }
h2 { font-size: 180%; }
h3 { font-size: 150%; }
h4 { font-size: 120%; }

.ib {
  display: inline-block;
  vertical-align: top;
}

.tag {
  font-size: .5em;
  line-height: 1;
  color: rgba(0,0,0,.5);
}

#header {
  margin: .5em 1em;
}

#header > div {
  font-size: 18px;
  line-height: 32px !important;
}

#header h1 {
  display: inline-block;
  float: left;
  margin: 0;
  line-height: 1;
  font-size: 24px;
}

h1.post-title {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 0;
}

a{
  color: #000;
  text-decoration: none;
}

a:hover {
  color: #0af;
}

.btn {
  display: inline-block;
  background: #0af;
  padding: .25em .5em;
  border-radius: .25em;
  margin-bottom: .25em;
  color: #fff;
  font-weight: bold;
}

.btn:hover {
  background: #000;
  color: #fff;
}

#header a, a.post-link {
}

#header a:hover, a.post-link:hover {
  color: #0af;
}

#main-nav a {
  margin-right: 1em;
}

.social-links a, .social-links {
  margin-right: .5em;
}

.button {
  padding: .3em .5em .2em;
  line-height: 1em;
  border-radius: .25em;
  background: #0af;
  color: #fff;
  font-weight: bold;
}

.button:hover {
  background: #000;
  color: #fff;
}

#header .social-links, #main-nav {
  float: right;
}

#header .social-links {
  display: block;
}

#footer .social-links {
  display: none;
  margin-bottom: 1.5em;
}

@media (max-width:767px) {

  #header .social-links {
    display: none;
  }

  #footer .social-links {
    display: block;
  }
}

#main-nav {
  line-height: 36px;
}

.section.page-title, .latest-posts {
  display: none;
}

.section img, .post img {
  max-width: 100%;
  height: auto;
}

.field { margin-bottom: 1em; }

.post, .posts, .section, .post-wide {
  clear: both;
  max-width: 540px;
  padding: 2em 1em;
  margin: 0 auto;
}

.post-wide {
  max-width: 1080px;
  text-align: center;
}

.post-wide .post {
  padding: 0;
}

.post {
  text-align: left;
}

.post-header {
  clear: both;
  padding: 1em;
}

.post .post-header {
  padding: 1em 0;
}

.post-link h3 {
  font-size: 200%;
  margin-top: 2em;
  margin-bottom: 0;
  text-transform: capitalize;
}

.post-link p {
  margin-top: 0;
  margin-bottom: 4em;
}

.post-date {
  font-size: 90%;
}

/* HOME */

#home-post.post {
  max-width: 900px;
}

#home-post .ib {
  vertical-align: top;
}

#home-post .post-image {
  padding: 2em;
  max-width: 360px;
  text-align: right;
}

#home-post .post-image img {
  max-width: 100%;
  box-shadow: .2em .25em .5em rgba(0,0,0,.5);
}

#home-post .post-image img.home-img-secondary {
  max-width: 120px;
}

/* ABOUT */

#about-post.post {
  max-width: 900px;
}

#about-post .ib {
  vertical-align: middle;
}

#about-post .post-image {
  padding: 2em;
  max-width: 280px;
}

#about-post .post-image img {
  max-width: 100%;
  transform: rotate(4deg);
  box-shadow: .2em .25em .5em rgba(0,0,0,.5);
}

/* SINGLE BOOK */

#book-post.post {
  max-width: 900px;
}

#book-post .ib {
  vertical-align: top;
}

#book-post .post-image {
  padding: 2em;
  max-width: 280px;
}

#book-post .post-image img {
  max-width: 100%;
  box-shadow: .2em .25em .5em rgba(0,0,0,.5);
}

.order-book {
  line-height:2.5em;
}

/* BOOKS */

.section.books {
  max-width: 990px;
  margin: 0 auto;
  padding: 2em 1em;
}
@media (max-width:767px) {
  .section.books {
    padding: 2em 0;
  }
}

.book-item {
  width: 33.33333%;
  float: left;
  vertical-align: top;
  padding: 1em;
}

.book-item h4 {
  min-height: 4em;
  margin-top: .5em;
  margin-bottom: 0;
}

.book-item img, .book-cover img {
  max-width: 100%;
}

.book-reviews {
  background: #ddd;
  padding: 1em 2em;
  font-size: .85em;
  margin-top: 3em;
}

@media (max-width:599px) {

  .book-item {
    width: 50%;
  }
}

/* FOOTER */

#footer {
  background: #0af;
  padding: .5em 1em;
  color: #fff;
  clear: both;
}

#footer a {
  color: #fff;
}

#social-footer {
  font-size: .8em;
  margin: 0 auto;
  text-align:center;
  margin-top: 2em;
}

#copyright {
  font-size: .8em;
  margin: 0 auto;
  text-align:center;
      margin-top: 2.5em;
}

/* BLOG PAGINATION */

.nav-links > .content {
  text-align: center;
  height: 4em;
  width: 100%;
  position: relative;
  max-width: 540px;
  margin: 0 auto;
}

.nav-links > .content > div {
  position: absolute;
  top: 25%;
  transform: translateY(-50%);
  padding: .5em .75em;
  border-radius: .25em;
  background: #0af;
  color: #fff;
  font-size: .75em;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: .1em;
}

.nav-links > .content > div:hover {
  background: #000;
  color: #fff;
}

.nav-links > .content > div > a,
.nav-links > .content > div > a:hover {
  color: #fff;
}

.nav-prev {
  left: 0;
}

.nav-next {
  right: 0;
}