/*
 *  __                  __
 * /\ \                /\ \
 * \ \ \___   __  __   \_\ \     __
 *  \ \  _ `\/\ \/\ \  /'_` \  /'__`\
 *   \ \ \ \ \ \ \_\ \/\ \_\ \/\  __/
 *    \ \_\ \_\/`____ \ \___,_\ \____\
 *     \/_/\/_/`/___/> \/__,_ /\/____/
 *                /\___/
 *                \/__/
 *
 * 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
 */

@import url('https://fonts.cdnfonts.com/css/soria');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;700&display=swap');

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

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


/*
 * 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: #202020;
}
@media (min-width: 48em) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    text-align: left;
  }
}

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

/* About section */
.sidebar-about h1 {
  color: #fff;
  margin-top: 0;
  font-family: "Abril Fatface", serif;
  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: 60rem; /* content width */
    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 (https://chriskempson.github.io/base16/#default) */

/* Elegant Grey */
.theme-base-grey .sidebar {
  background-color: #2F4F4F; /* Elegant Grey */
}
.theme-base-grey .content a,
.theme-base-grey .related-posts li a:hover {
  color: #7D7AA5;
}

/* Elegant Blue */
.theme-base-blue .sidebar {
  background-color: #36384C; /* Elegant Blue */
}
.theme-base-blue .content a,
.theme-base-blue .related-posts li a:hover {
  color: #7D7AA5;
}

/* Dark Blue */
.theme-base-dblue .sidebar {
  background-color: #2F4F6F; /* Dark Blue */
}
.theme-base-dblue .content a,
.theme-base-dblue .related-posts li a:hover {
  color: #4675A5;
}
/* Color content */
body.theme-base-dblue .content,
body.theme-base-dblue .content * {
  color: #2F4F6F !important;
}
body.theme-base-dblue .content a {
  color: #4675A5 !important;
}

body.theme-base-dblue .content h1,
body.theme-base-dblue .content h2,
body.theme-base-dblue .content h3,
body.theme-base-dblue .content h4,
body.theme-base-dblue .content h5,
body.theme-base-dblue .content h6,
body.theme-base-dblue .content strong,
body.theme-base-dblue .content b {
  color: #2F4F6F !important;
}

img.centered {
  display: block;
  margin-left: auto;
  margin-right: auto;
}


