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

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


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

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

/* About section */

.sidebar-about h1 {
  color: #fff;
  margin-top: 0;
  font-family: "Abril Fatface", serif;
  font-size: 3rem;
}

.sidebar-about .lead {
  font-size: .8rem;
}

.sidebar-about .profile-picture {
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid #0001;
  max-width: 5rem;
}

/* Sidebar nav */
.sidebar-nav {
  margin-bottom: 1rem;
  list-style: none;
  padding-left: 0;
}
.sidebar-social {
  display: flex;
  justify-content: center;
  align-items: center;
}
.sidebar-social-item {
  display: block;
  padding: .25rem 0.8rem;
  background: #fff2;
  margin: 0 .2rem;
  border-radius: .25rem;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: bold;
}
a.sidebar-social-item:hover,
a.sidebar-social-item:focus {
  background: #0001;
  text-decoration: none;
}
.sidebar-social-item.active {
  color: #0001;
  background: #fff;
}
a.sidebar-social-item.active:hover,
a.sidebar-social-item.active:focus {
  color: #fff;
}
.sidebar-footer {
  font-size: .7rem;
  margin-bottom: 0;
  margin-top: .5rem;
}

/* 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;
}

/*
 * Language switcher
 */
.language-switcher {
  margin: 1rem 0;
}
.language-switcher a {
  display: inline-block;
  padding: .4rem .8rem;
  background: #fff2;
  border-radius: .25rem;
  font-size: .8rem;
  font-weight: bold;
  text-transform: uppercase;
  transition: background .2s;
}
.language-switcher a:hover {
  background: #fff4;
  text-decoration: none;
}
.language-switcher i {
  margin-right: .3rem;
}

/*
 * Post/Page language switcher (inline)
 */
.post-header,
.page-header {
  margin-bottom: 1.5rem;
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.post-lang,
.page-lang {
  display: inline-block;
  font-size: .8rem;
  background: #f4f4f4;
  padding: .2rem .6rem;
  border-radius: .25rem;
}
.post-lang a,
.page-lang a {
  text-decoration: none;
  margin-right: .2rem;
}
.post-lang a:hover,
.page-lang a:hover {
  text-decoration: underline;
}
.lang-switch {
  font-size: .85rem;
  margin-left: auto;
}
.lang-switch a {
  color: #268bd2;
  text-decoration: none;
}
.lang-switch a:hover {
  text-decoration: underline;
}
.lang-current {
  font-weight: bold;
  color: #515151;
}

/*
 * Categories
 */
.post-categories {
  margin-top: .5rem;
}
.category-tag {
  display: inline-block;
  font-size: .75rem;
  background: #6a9fb5;
  color: #fff;
  padding: .2rem .6rem;
  border-radius: .25rem;
  text-decoration: none;
  margin-right: .3rem;
}
.category-tag:hover {
  background: #5a8fa5;
  text-decoration: none;
}
.taxonomy-list ul {
  list-style: none;
  padding-left: 0;
}
.taxonomy-list li {
  margin-bottom: .5rem;
}
.taxonomy-count {
  color: #666;
  margin-bottom: 2rem;
}

/*
 * Sidebar categories
 */
.sidebar-categories {
  margin-top: .8rem;
  text-align: center;
}
.sidebar-category-item {
  display: inline-block;
  font-size: .7rem;
  padding: .3rem .6rem;
  background: #fff1;
  border-radius: .25rem;
  color: rgba(255,255,255,.8);
}
.sidebar-category-item:hover {
  background: #fff2;
  text-decoration: none;
}

/*
 * Post thumbnails
 */
.post-thumbnail {
  max-width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: .25rem;
  margin: .5rem 0 1rem 0;
}

/*
 * Post excerpt
 */
.post-excerpt {
  color: #555;
  line-height: 1.6;
  margin: .5rem 0;
}
.read-more {
  font-weight: bold;
}

/*
 * Home page
 */
.home-intro {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
}
.home-intro h1 {
  margin-top: 0;
}
.home-sections {
  margin-bottom: 2rem;
}
.home-sections h2 {
  margin-bottom: 1rem;
  color: #333;
}
.section-card {
  background: #f9f9f9;
  border: 1px solid #e5e5e5;
  border-radius: .5rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  transition: box-shadow .2s;
}
.section-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.section-card h3 {
  margin: 0 0 .5rem 0;
  font-size: 1.1rem;
  color: #333;
}
.section-card p {
  margin: 0 0 .75rem 0;
  color: #666;
  font-size: .9rem;
}
.section-card .section-link {
  font-weight: bold;
  font-size: .85rem;
}
.section-card .coming-soon {
  display: inline-block;
  font-size: .75rem;
  background: #e0e0e0;
  color: #666;
  padding: .2rem .6rem;
  border-radius: .25rem;
  font-style: italic;
}
.section-card-archive {
  background: #f4f4f4;
  border-style: dashed;
}
.section-card-featured {
  background: #e8f4f8;
  border-color: #6a9fb5;
  border-width: 2px;
}
.home-recent {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
.home-recent h2 {
  margin-bottom: 1rem;
}
.post-compact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .5rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.post-compact .post-title {
  margin: 0;
  font-size: 1rem;
}
.post-compact .post-date {
  color: #999;
  font-size: .8rem;
  white-space: nowrap;
  margin-left: 1rem;
}
.view-all {
  display: inline-block;
  margin-top: 1rem;
  font-weight: bold;
}

/*
 * Section pages
 */
.section-title {
  margin-top: 0;
  margin-bottom: 1rem;
}
.section-description {
  color: #555;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #eee;
  font-size: 1.1rem;
  line-height: 1.6;
}

/*
 * Principe navigation
 */
.principe-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  gap: 1rem;
}
.principe-nav-prev,
.principe-nav-next {
  flex: 1;
  padding: .75rem 1rem;
  background: #f4f4f4;
  border-radius: .25rem;
  text-decoration: none;
  font-size: .9rem;
}
.principe-nav-prev:hover,
.principe-nav-next:hover {
  background: #e8e8e8;
  text-decoration: none;
}
.principe-nav-next {
  text-align: right;
}
.post-reading-time {
  color: #999;
  font-size: .9rem;
}
