* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	font-family: 'Lato', Arial, sans-serif;
}

body {
  --grey: #bbb;
  --wht: #FFF;
  --primary: #1E88E5;
  --background: #2C4B65;
  --red: #E93E36;
  --box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
  margin: 0;
  padding: 0;
  background: var(--background);
}

a, a:visited, a:hover, button:hover {
  color: var(--primary);
  text-decoration: none;
  /* margin: 0 1rem 0 0; */
}

a:hover {
  text-decoration: underline;
}

.header {
  position: fixed;
  color: var(--primary) !important;
  background-color: var(--wht);
  display: flex;
  align-items: center;
  padding: 10px 20px;
  font-size: 18px;
  box-shadow: var(--box-shadow);
  z-index: 3;
}

.header__title {
  flex: 1 0 auto;
  margin: 0;
}

.header__links {
  display: flex;
  flex: 1 0 auto;
  justify-content: flex-end;
}

.header__link {
  margin: 0 1rem 0 0;
}

.header__link:last-child {
  margin: 0;
}

.header__link:hover {
  text-decoration: none;
}

.header__link:hover span {
  text-decoration: underline;
}

.header-portrait {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-size: 75px;
  background-image: url('/images/terit.jpg');
  margin: 0 2% 0 0;
}

.header-portrait__reveal {
  opacity: 0;
  position: absolute;
  width: 200px;
  padding: 5px;
  top: 95px;
  background: var(--wht);
  box-shadow: var(--box-shadow);
  transition: opacity;
}

.header-portrait__reveal.reveal {
  opacity: 1;
}

.hide {
	display: none;
}

.blog {
  padding-top: 140px;
  flex-direction: column;
  display: flex;
  align-items: flex-start;
}

@media screen and (min-width: 769px) {
  .blog {
    align-items: center;
  }
}

.blog-item {
  background: var(--wht);
  width: calc(98% - 60px);
  max-width: 800px;
  margin: 0 0 20px 60px;
  position: relative;
  padding: 20px;
  box-shadow: var(--box-shadow);
}

.blog-item::after {
  content: "";
  background: var(--wht);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  z-index: 1;
}

.blog-item::after,
.blog-item__title {
  position: absolute;
  top: 0;
  left: -59px;
  width: 60px;
  height: 120px;
  word-wrap: initial;
  color: var(--wht);
  text-align: right;
}

.blog-item__title {
  background: var(--red);
  padding: 5px;
  width: 59px;
  box-shadow: -4px 3px 6px rgba(0,0,0,0.23);
}

.blog-item__title::before {
  content: attr(data-heading);
  color: var(--background);
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 5px;
  clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
  z-index: 2;
}

.projects {
  padding-top: 140px;
}

.projects-item {
  background: var(--wht);
  width: 95%;
  max-width: 800px;
  margin: 0 auto 20px auto;
  padding: 20px;
  box-shadow: var(--box-shadow);
}

.projects-item__img {
  width: 100%;
}

.button.button-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}


/* SIDE NAV */
.header__menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 32px;
  color: var(--primary);
}

@media screen and (max-width: 768px) {
  .header-title {
    flex: 2;
  }
  .header__links {
    display: none;
  }
  .header__menu-toggle {
    display: block;
  }
}

.side-nav {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}

.side-nav--visible {
  pointer-events: auto;
}

.side-nav::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  will-change: opacity;
  transition: opacity 0.3s cubic-bezier(0,0,0.3,1);
}

.side-nav__container {
  position: relative;
  width: 90%;
  max-width: 400px;
  background: var(--wht);
  height: 100%;
  box-shadow: 2px 0 12px rgba(0,0,0,0.4);
  transform: translateX(-102%);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.side-nav--animatable .side-nav__container {
  transition: transform 0.13s cubic-bezier(0,0,0.3,1);
}

.side-nav--visible.side-nav--animatable .side-nav__container {
  transition: transform 0.33s cubic-bezier(0,0,0.3,1);
}

.side-nav--visible::before {
  opacity: 1;
}

.side-nav--visible .side-nav__container {
  transform: none;
}

.side-nav__hide {
  position: absolute;
  left: 16px;
  top: 16px;
  background: none;
  border: none;
  color: var(--red);
  font-size: 32px;
  padding: 0;
  margin: 0;
}

.side-nav__header {
  height: 200px;
  background: var(--background);
  color: var(--wht);
  display: flex;
  padding: 16px;
  align-items: flex-end;
  font-size: 24px;
}

.side-nav__content {
  padding-top: 32px;
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.side-nav__content a {
  height: 48px;
  line-height: 48px;
  padding: 0 16px;
}

.side-nav__content a:hover {
  background: var(--grey);
}
