/*
Jekyll theme by Axel Valdez
for https://axelvaldez.mx/

Full code at http://github.com/axelvaldez/axelvaldez.github.io

Version: 4.0, Mono
*/

* {
  box-sizing: border-box;
}

:root {
  --accent: #ffd900;
}

html {
  font-size: 18px;
  height: 100vh;
  position: relative;
}

body {
  font-family: "Proxima Nova", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* TYPE */

h1 {
  font-size: 3em;
  line-height: 1;
}

h2 {
  font-size: 1.25em;
  line-height: 1;
}

h3 {
  font-size: 1.5em;
  font-weight: normal;
  text-transform: uppercase;
}

p, h1, h2, h3 {
  margin: 1.5rem 0;
}

p:first-child, h1:first-child, h2:first-child {
  margin-top: 0;
}

/* LINKS */

a {
  text-decoration: none;
  text-decoration-color: #ddd;
  color: #000;
  background: transparent linear-gradient( 180deg, transparent 0%, transparent 90%, var(--accent) 90%, var(--accent) 100%);
  transition: .1s ease-in background-color;
}

a:hover {
  text-decoration: none;
  background-color: var(--accent);
}

hr {
  border: none;
  padding-top: 50px;
  padding-bottom: 50px;
}

hr:after {
  content: "· · ·";
  text-align: center;
  display: block;
  font-weight: bold;
}

/* IMAGES */

img {
  max-width: 100%;
  height: auto;
}

.date {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 2;
}

/* MAIN LAYOUT */

.header {
  /* position: sticky;
  top: 0; */
  z-index: 5;
  overflow: hidden;
  display: flex;
  padding: 20px calc(50vw - 500px);
  align-items: center;
  background: var(--accent);
}

.header-title {
  margin: 0;
  font-size: 1rem;
}

.header-icon {
  width: auto;
  height: 45px;
  margin-right: 1rem;
  vertical-align: middle;
}

.menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
}

.menu li:not(:first-child) {
  margin-left: 0.25rem;
}

.menu a {
  background: var(--accent);
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  transition: all 0.2s ease-in;
}

.menu a:hover {
  background: #fff;
  box-shadow: 0 0 0 2px var(--accent);
}

.active {
  font-weight: bold;
}

.main {
  padding: 100px calc(50vw - 500px);
}

.main>* {}

footer {
  padding: 100px calc(50vw - 500px);
  background: #000;
  color: #fff;
}

footer div {
  padding-left: 200px;
  padding-right: 200px;
}

/* SOCIAL LINKS */

.social+.social {
  margin-left: 0.5rem;
}

li:not(.social)+.social {
  margin-left: 2rem;
}

.social a {
  display: flex;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  padding: 0;
}

.social svg {
  height: 0.75rem;
  width: auto;
  display: block;
  margin: auto;
  transition: all 0.2s ease-in;
}

.social span {
  display: none;
}

/* GRID */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 25px;
}

.grid>* {
  margin: 0;
}

/* POST SINGLE && PAGE */

.post>*, .page>* {
  padding-left: 200px;
  padding-right: 200px;
}

.post>.fullwidth, .page>.fullwidth {
  padding-left: 0;
  padding-right: 0;
}

.home>* {
  padding-left: 400px;
  padding-right: 0;
}

.home header {
  position: relative;
}

.home-image {
  width: 360px;
  height: 360px;
  position: absolute;
  top: 0;
  left: 0;
  padding: 0;
  background: var(--accent);
}

/* BLOG POST LIST */

.blog-posts {
  list-style: none;
}

.blog-posts li {
  display: grid;
  grid-template-columns: 1fr 2fr;
  border-top: 2px solid #ddd;
  padding: 1.5rem 0;
}

.blog-posts li:last-child {
  border-bottom: 2px solid #ddd;
}

.blog-posts li>* {
  margin: 0;
}

.blog-posts li h2 {
  font-size: 1rem;
  line-height: 1.5;
}

.blog-posts .excerpt {
  margin-top: 1rem;
  grid-column-start: 2;
}

/* NAVIGATION */

.post-navigation {
  margin-top: 100px;
  border-top: 3px solid #000;
  padding: 50px 0;
  margin-bottom: -100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 50px;
}

.post-navigation p {
  margin: 0;
}

.post-navigation .next {
  text-align: right;
}

.label {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: bold;
  line-height: 2;
  display: block;
}

/* HIGHLIGHTER */

.highlighter-rouge>.highlight {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  overflow-x: auto;
}

@media all and (max-width: 1100px) {
  .header {
    padding: 20px 50px;
  }
  .post-navigation {
    margin-left: 50px;
    margin-right: 50px;
  }
}

@media all and (max-width: 950px) {
  .post>*, .page>*, .home>*, footer div {
    padding-left: 50px;
    padding-right: 50px;
  }
  .home-image {
    position: static;
    display: block;
    width: 200px;
    height: 200px;
    margin: 50px auto;
  }
}

@media all and (max-width: 700px) {
  .header {
    padding: 0;
    background: transparent;
    display: block;
  }
  .header-title {
    background: var(--accent);
    padding: 20px 50px;
  }
  .menu {
    justify-content: flex-start;
    padding: 20px 50px;
  }
  li:not(.social)+.social {
    margin-left: auto;
  }
  .blog-posts li {
    display: block;
  }
}

@media all and (max-width: 400px) {
  .header .social {
    display: none;
  }
}

/* ANIMATION */

.animated {
  animation-duration: 0.3s;
  animation-fill-mode: both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.fadeIn {
  -webkit-animation-name: fadeIn;
  animation-name: fadeIn;
}