/*
 *  __                  __
 * /\ \                /\ \
 * \ \ \___   __  __   \_\ \     __
 *  \ \  _ `\/\ \/\ \  /'_` \  /'__`\
 *   \ \ \ \ \ \ \_\ \/\ \_\ \/\  __/
 *    \ \_\ \_\/`____ \ \___,_\ \____\
 *     \/_/\/_/`/___/> \/__,_ /\/____/
 *                /\___/
 *                \/__/
 *
 * 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: "Fredoka", sans-serif;
  scroll-behavior: smooth;
}
@media (min-width: 48em) {
  html {
    font-size: 16px;
  }
}
@media (min-width: 58em) {
  html {
    font-size: 20px;
  }
}

/* Custom palette */
body {
  background-color: #0F172A;
  color: #94A3B8;
}

.content,
.content.container {
  background-color: #0F172A;
}

.content.container {
  max-width: 64rem;
  width: calc(100% - 2rem);
}

@media (min-width: 64em) {
  .content.container {
    width: calc(100% - 4rem);
  }
}

.content,
.content p,
.content li,
.content span,
.content a {
  color: #94A3B8;
}

.content h1,
.content h2,
.content h3,
.content h4,
.content h5,
.content h6 {
  color: #F1F5F9;
}

/* Portfolio-specific styles have been moved to `portfolio.css` */


/*
 * 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: 22rem;
    text-align: left;
  }
}

.sidebar .container {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100vh;
}
@media (min-width: 48em) {
  .sidebar .container {
    min-height: 100%;
  }
}

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

/* About section */
.sidebar-about h1 {
  color: #fff;
  margin-top: 0;
  font-family: "Fredoka", sans-serif;
  font-size: 1.335rem;
  text-align: center;
}

.sidebar-highlight {
  color: #fff;
  font-weight: bold;
}

/* Sidebar buttons */
.sidebar-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  list-style: none;
  padding: 0;
  width: 100%;
}

.sidebar-buttons-professional {
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-footer {
  margin-top: auto;
  width: 100%;
}

.sidebar-buttons-technical,
.sidebar-buttons-social {
  flex-direction: row;
  width: 100%;
}

.sidebar-buttons-technical .sidebar-button,
.sidebar-buttons-social .sidebar-button {
  flex: 1;
}

.sidebar-button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s;
}

.sidebar-button-with-text {
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Fredoka", sans-serif;
  font-size: 0.9rem;
  padding: 0.25rem 1rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  opacity: 0.85;
  transition: all 0.25s;
  text-decoration: none;
  width: 100%;
}

.sidebar-button-with-text:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.2);
  opacity: 1;
  transform: scale(1.05);
  text-decoration: none;
}

.sidebar-button-text {
  white-space: nowrap;
}

.sidebar-button .icon-image {
  width: 2em;
  max-width: 2em;
  height: 2em;
  object-fit: contain;
  vertical-align: middle;
  transition: all 0.25s;
}

.sidebar-button-with-text .icon-image {
  filter: invert(1);
}

.sidebar-button:not(.sidebar-button-with-text) .icon-image {
  filter: invert(80%) sepia(5%) saturate(1332%) hue-rotate(191deg) brightness(105%) contrast(108%);
}

.sidebar-button:not(.sidebar-button-with-text):hover .icon-image {
  filter: invert(100%);
  transform: scale(1.1);
}

/* Sidebar nav */
.sidebar-nav {
  margin-top: 1rem;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Fredoka", sans-serif;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: all 0.25s;
  text-decoration: none;
  text-align: center;
}

.sidebar-nav-link:hover,
.sidebar-nav-link:focus {
  color: #fff;
  opacity: 1;
  transform: scale(1.05);
  text-decoration: none;
}

.sidebar-footer > p:last-child {
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}
.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: 24rem;
    margin-right: 2rem;
  }
}

@media (min-width: 64em) {
  .content {
    margin-left: 26rem;
    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;
}

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