/* RESET */

html {
  box-sizing: border-box;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
}

/* MAIN */

body {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  color: #444;
}

p {
  line-height: 1.9rem;
}

a {
  text-decoration: none;
}

@media screen and (min-width: 768px) {
  .container {
    display: grid;
    grid-template-columns: 4fr 6fr;
  }

  .sidebar {
    width: 40%;
    height: 100vh;
    position: fixed;
  }

  .blog {
    grid-column: 2 / 3;
  }
}

/* SIDEBAR */

.sidebar {
  background-color: #201c29;
  color: #ddd;
  padding: 2rem;
}
.sidebar p {
  padding: 1rem;
}

.sidebar a {
  color: #ddd;
}

.sidebar a:hover {
  color: #fff;
  text-decoration: underline;
}

@media screen and (min-width: 1200px) {
  .sidebar {
    font-size: 1.25rem;
    padding: 3em;
  }
}

.portrait {
  width: 127px;
  aspect-ratio: 1 / 1;
  background-image: url('/img/hanspixelportrait.gif');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  margin: auto;
}

@media screen and (min-width: 768px) {
  .portrait {
    width: 200px;
  }
}

.icon {
  height: 1.5em;
  position: relative;
  top: 0.4em;
  margin: 0;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  opacity: 0.5;
}

.skill-list li {
  display: inline;
  font-style: italic;
}

.skill-list li:not(:last-child):after {
  content: ' /';
  opacity: 0.4;
}

.skill-list-header {
  font-weight: bold;
  color: #13a5e3;
}

.skill-list-header:before {
  content: ' ';
  display: block;
}

@media screen and (min-width: 768px) {
  .skill-list {
    line-height: 1.5rem;
  }
}

@media screen and (min-width: 1200px) {
  .skill-list {
    line-height: 1.9rem;
    padding: 0 1rem;
  }
}

/* BLOG */

.post {
  margin: 2em;
}

.post-title {
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.3rem;
}

@media screen and (min-width: 768px) {
  .post {
    border-bottom: 1px solid #ddd;
  }

  .post-title {
    font-size: 1.8rem;
  }
}

.post-media {
  width: 100%;
  display: flex;
  justify-content: center;
}

.post-media iframe {
  width: 100%;
  aspect-ratio: 16/9;
}

.post-image {
  width: 100%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center center;
}

@media screen and (min-width: 1200px) {
  .post-media {
    width: calc(50% - 2rem);
    margin: 0 0 1rem 2rem;
    float: right;
  }

  .post:nth-child(even) .post-media {
    margin: 0 2rem 1rem 0;
    float: left;
  }

  .post-meta {
    display: inline-block;
    width: calc(50% - 2rem);
  }
}

.post-link {
  display: block;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 1rem 0;
  color: #13a5e3;
}

.slideshow {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.slideshow-bg {
  position: absolute;
  top: -16px;
  left: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  background-size: cover;
  background-position: center;
  filter: blur(16px);
  -webkit-filter: blur(16px);
}

.slideshow-slide {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: 0.25s ease;
}

.slideshow-slide-active {
  opacity: 1;
}

.slideshow-prev,
.slideshow-next {
  position: absolute;
  top: 50%;
  background-color: transparent;
  color: #fff;
  margin-top: -1.5rem;
  padding: 1rem;
  cursor: pointer;
  transition: 0.5s;
  user-select: none;
}

.slideshow-next {
  right: 0;
}

.slideshow-prev:hover,
.slideshow-next:hover {
  background-color: #777;
}

.clearfix {
  clear: both;
}

@media screen and (min-width: 768px) {
}
