/*
 *  __                  __
 * /\ \                /\ \
 * \ \ \___   __  __   \_\ \     __
 *  \ \  _ `\/\ \/\ \  /'_` \  /'__`\
 *   \ \ \ \ \ \ \_\ \/\ \_\ \/\  __/
 *    \ \_\ \_\/`____ \ \___,_\ \____\
 *     \/_/\/_/`/___/> \/__,_ /\/____/
 *                /\___/
 *                \/__/
 *
 * Designed, built, and released under MIT license by @mdo. Learn more at
 * https://github.com/poole/hyde.
 */


/*
 * Contents
 *
 * Global resets
 * Sidebar
 * Container
 * Reverse layout
 * Themes
 */


/*
 * Global resets
 *
 * Update the foundational and global aspects of the page.
 */

 @import url('https://fonts.googleapis.com/css?family=Lato:300,300i,400,400i,700,700i');
 @import url('https://fonts.googleapis.com/css?family=Inconsolata:400,700');
 @import url('https://fonts.googleapis.com/css?family=Crimson+Text');
 @import url('https://fonts.googleapis.com/css?family=Cabin');

html {
  font-family: Helvetica, Arial, sans-serif;
}
@media (min-width: 48em) {
  html {
    font-size: 18px;
  }
}
@media (min-width: 58em) {
  html {
    font-size: 18px;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Cabin", sans-serif;
}


/*
 * Sidebar
 *
 * Flexible banner for housing site name, intro, and "footer" content. Starts
 * out above content in mobile and later moves to the side with wider viewports.
 */

.sidebar {
  text-align: center;
  padding: 2rem 1rem;
  color: rgba(255,255,255,.5);
  background-color: #0789ce;
  font-family: "Cabin", sans-serif;
}
@media (min-width: 48em) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 16rem;
    text-align: left;
  }
}

/* Sidebar links */
.sidebar a {
  color: #fff;
}

.sidebar p {
  font-size: 20px;
}

/* About section */
.sidebar-about h1 {
  color: #fff;
  margin-top: 0;
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  font-size: 3.25rem;
}

/* Sidebar nav */
.sidebar-nav {
  margin-bottom: 1rem;
}
.sidebar-nav-item {
  display: block;
  line-height: 1.75;
}
a.sidebar-nav-item:hover,
a.sidebar-nav-item:focus {
  text-decoration: underline;
}
.sidebar-nav-item.active {
  font-weight: bold;
}

/* Sticky sidebar
 *
 * Add the `sidebar-sticky` class to the sidebar's container to affix it the
 * contents to the bottom of the sidebar in tablets and up.
 */

@media (min-width: 48em) {
  .sidebar-sticky {
    position: absolute;
    right:  1rem;
    bottom: 1rem;
    left:   1rem;
  }
}


/* Container
 *
 * Align the contents of the site above the proper threshold with some margin-fu
 * with a 25%-wide `.sidebar`.
 */

.content {
  padding-top:    4rem;
  padding-bottom: 4rem;
}

@media (min-width: 48em) {
  .content {
    max-width: 38rem;
    margin-left: 20rem;
    margin-right: 2rem;
  }
}

@media (min-width: 64em) {
  .content {
    margin-left: 22rem;
    margin-right: 4rem;
  }
}


/*
 * Reverse layout
 *
 * Flip the orientation of the page by placing the `.sidebar` on the right.
 */

@media (min-width: 48em) {
  .layout-reverse .sidebar {
    left: auto;
    right: 0;
  }
  .layout-reverse .content {
    margin-left: 2rem;
    margin-right: 20rem;
  }
}

@media (min-width: 64em) {
  .layout-reverse .content {
    margin-left: 4rem;
    margin-right: 22rem;
  }
}



/*
 * Themes
 *
 * As of v1.1, Hyde includes optional themes to color the sidebar and links
 * within blog posts. To use, add the class of your choosing to the `body`.
 */

/* Base16 (http://chriskempson.github.io/base16/#default) */

/* Red */
.theme-base-08 .sidebar {
  background-color: #ac4142;
}
.theme-base-08 .content a,
.theme-base-08 .related-posts li a:hover {
  color: #ac4142;
}

/* Orange */
.theme-base-09 .sidebar {
  background-color: #d28445;
}
.theme-base-09 .content a,
.theme-base-09 .related-posts li a:hover {
  color: #d28445;
}

/* Yellow */
.theme-base-0a .sidebar {
  background-color: #f4bf75;
}
.theme-base-0a .content a,
.theme-base-0a .related-posts li a:hover {
  color: #f4bf75;
}

/* Green */
.theme-base-0b .sidebar {
  background-color: #90a959;
}
.theme-base-0b .content a,
.theme-base-0b .related-posts li a:hover {
  color: #90a959;
}

/* Cyan */
.theme-base-0c .sidebar {
  background-color: #75b5aa;
}
.theme-base-0c .content a,
.theme-base-0c .related-posts li a:hover {
  color: #75b5aa;
}

/* Blue */
.theme-base-0d .sidebar {
  background-color: #6a9fb5;
}
.theme-base-0d .content a,
.theme-base-0d .related-posts li a:hover {
  color: #6a9fb5;
}

/* Magenta */
.theme-base-0e .sidebar {
  background-color: #aa759f;
}
.theme-base-0e .content a,
.theme-base-0e .related-posts li a:hover {
  color: #aa759f;
}

/* Brown */
.theme-base-0f .sidebar {
  background-color: #8f5536;
}
.theme-base-0f .content a,
.theme-base-0f .related-posts li a:hover {
  color: #8f5536;
}

/* Mosaic gallery */
#photos {
  /* Prevent vertical gaps */
  line-height: 0;

  -webkit-column-count: 3;
  -webkit-column-gap:   0px;
  -moz-column-count:    3;
  -moz-column-gap:      0px;
  column-count:         3;
  column-gap:           0px;
  padding-bottom: 1rem;
  column-fill: balance;
  -moz-column-fill: balance;
  -webkit-column-fill: balance;
  overflow: hidden;

}

#photos img {
  /* Just in case there are inline attributes */
  width: 100% !important;
  height: auto !important;
  padding: 2px;
}

@media (max-width: 1000px) {
  #photos {
  -moz-column-count:    2;
  -webkit-column-count: 2;
  column-count:         2;
  column-fill: balance;
  -moz-column-fill: balance;
  -webkit-column-fill: balance;
  overflow: hidden;
  }
}
@media (max-width: 600px) {
  #photos {
  -moz-column-count:    1;
  -webkit-column-count: 1;
  column-count:         1;
  }
}

/* Show external link icon */
a[href^="http"]:not([href*="lacey.se"]):after {
	content: " " url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAVklEQVR4Xn3PgQkAMQhDUXfqTu7kTtkpd5RA8AInfArtQ2iRXFWT2QedAfttj2FsPIOE1eCOlEuoWWjgzYaB/IkeGOrxXhqB+uA9Bfcm0lAZuh+YIeAD+cAqSz4kCMUAAAAASUVORK5CYII=);
}

a[href$=".pdf"]:after {
  content: " " url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAm1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cRC1x4Jz6EbnGbWE+opaQ+0oo6qq1u00k8nUSZLJ5Dqy9KFaGwKHhb5HURSwU56bSqX2wuHwDMa0IxOplRAcDoetVqtV5oRisXgSjUYnEeg2QHTaCO26I9zrpYZaUigU0hgNtBAAlxyQTx3aSTAYhGw2C5VKBdxuOh8hgzjeN/12QurETqjDSCRiTddloK3DToRyoZ1vtLMyAXXTUnYVv+BEcnjVOG1Th4m5hJg+u3ZqlJ3vzwPFbDlBMUs6fcau+RtqeO9Lt9dwsNwvJqymVHi4uRY+WzlH/uDwmEFGjqlDDa/Z53cjv3Gkwu5Sg5gQxmkREs5RjSy/Em4eq7C92CKjAia04p0JdQX8w+NiQSIlOdxaEJZxtgLEQdPZa1jTKZtTf4v4lA3CZvkUvteLv1C5XK5pnH/JNeIbxuPxIV3X/eVyeaTT0+Mi2QYCgVGfz6dg3WMul7sThLVa7Y1eiMfjeQ+FQjuappn+IDKB7ON7/qAawoiDrHXLhEEsFhN/EJzUhSv3CrA54E5enE7nF4X5fP5JzpH/AzsAr5zVM3eNAAAAAElFTkSuQmCC);
}

.sidebar a[href^="http"]:after {
  content: "";
}

.message a[href^="http"]:after {
  content: "";
}

.post-tags {
  display: block;
  font-size: 0.75rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.tag-item {
  color: #fdfdfd;
  background-color: #0789ce;
  padding: 2px 4px 2px 4px;
  margin-left: 2px;
  margin-right: 2px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -o-border-radius: 3px;
  border-radius: 3px;
  font-family: "Cabin", sans-serif;
}

.breadcrumb {
  font-size: 0.75rem;
  padding-bottom: 0.5rem;
  font-family: "Cabin", sans-serif;
}

.tag-list {
  -moz-column-count:    2;
  -webkit-column-count: 2;
  column-count:         2;
  font-family: "Cabin", sans-serif;
}

.sidebar hr {
  position: relative;
  margin: 1.5rem 0;
  border: 0;
  border-bottom: 1px solid #fff;
}
