*,
::after,
::before {
  box-sizing: border-box;
}

:root {
  /*--blue: #6a95d8;*/
  --blue: #5984c7;
  --grey-bg: #f7f7f7;
  --grey-border: #dfdfdf;

  --text-main: #1d1d1d;
  --text-light: #5a5a5a;

  --weight-medium: 500;
  --weight-semi-bold: 600;
  --weight-bold: 700;

  --size-main: 1.2rem;
  --size-document: 1.4rem;

  --size-h2: 1.8rem;
  --size-h3: 1.8rem;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: auto;
}
html {
  font-size: 62.5%;
}
body {
  /* font-family: "proxima-nova", sans-serif; */
  font-family: "Montserrat", sans-serif;
  font-size: var(--size-main);
  font-weight: var(--weight-medium);
  color: var(--text-main);
  line-height: 1.55;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5rem;
  font-weight: var(--weight-semi-bold);
  line-height: 1.2;
  margin-top: 0;
}
p,
dl,
ol,
ul {
  margin-top: 0;
  margin-bottom: 1rem;
}
b,
strong {
  font-weight: var(--weight-semi-bold);
}

h1 {
  font-size: 2.5rem;
}
h2 {
  font-size: 2rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.4rem;
}
h5 {
  font-size: 1.25rem;
}
h6 {
  font-size: 1rem;
}

a,
a:visited {
  color: #007bff;
  text-decoration: none;
  background-color: transparent;
}
a:hover {
  color: #0056b3;
  text-decoration: underline;
}

code.block {
  display: block;
  padding: 10px 15px;
  background-color: var(--grey-bg);
  border: 2px solid var(--grey-border);
  border-radius: 10px;
  white-space: pre-wrap;
  margin-bottom: 15px;
}

.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

header {
  height: 160px;
  background-color: var(--grey-bg);
  border-bottom: 2px solid var(--grey-border);
  font-weight: var(--weight-semi-bold);
  margin-bottom: 30px;
}
header .container {
  position: relative;
  height: inherit;
  display: flex;
  align-items: flex-end;
  padding-bottom: 20px;
}
header .container > div {
  display: block;
  flex-grow: 1;
}
header .me {
  display: flex;
  margin-bottom: 25px;
  align-items: center;
}
header .me img:first-of-type {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 20px;
}
header .me img:first-of-type,
header .me .text {
  display: inline-table;
  vertical-align: middle;
}
header .me .text h2 {
  font-size: var(--size-h2);
  color: var(--blue);
  margin-bottom: 3px;
  /*margin-bottom: -1px;*/
}
header .me .text p {
  color: var(--text-light);
}

header .social {
  display: flex;
}
header .social,
header .social li {
  list-style: none;
  margin: 0;
  padding: 0;
}
header .social li {
  position: relative;
  display: inline-flex;
  margin-right: 25px;
  color: var(--text-light);
  font-weight: var(--weight-semi-bold);
  align-items: center;
}
header .social li:last-child {
  margin-right: 0;
}
header .social li svg {
  display: block;
  height: 16px;
  width: 16px;
  margin-right: 7px;
  fill: var(--blue);
}
header .social li a {
  color: var(--blue);
  filter: brightness(1);
  transition: filter 0.15s ease-in-out;
}
header .social li a:hover {
  filter: brightness(0.7);
}

main p,
main ul,
main ol {
  color: var(--text-main);
}
main h3 {
  font-size: var(--size-h3);
  font-weight: var(--weight-semi-bold);
  color: var(--blue);
  /*text-transform: uppercase;*/
  margin-bottom: 15px;
}

main.projects {
  display: grid;
  grid-template-columns: repeat(1, 1fr [col-start]);
  grid-column-gap: 15px;
  grid-row-gap: 15px;
}

.project {
  position: relative;
  display: block;
  width: 100%;
  height: 200px;
  background-color: #fff;
  border: 2px solid var(--grey-border);
  border-radius: 10px;
  padding-bottom: calc(40px + 15px);
  overflow: hidden;
}
.project__header {
  display: flex;
  width: 100%;
  height: 50px;
  padding: 0 15px;
  background-color: var(--grey-bg);
  border-bottom: 2px solid var(--grey-border);
  align-items: center;
}
.project__header svg {
  display: block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
}
.project__header h4 {
  flex-grow: 1;
  margin: 0;
}
.project__header small {
  font-size: var(--size-main);
}
.project__body {
  display: flex;
  flex-direction: column;
  padding: 15px;
}
.project__body p:last-child {
  margin: 0;
}
.project__footer {
  position: absolute;
  display: flex;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 15px;
}
.project__footer a,
.projectPage header a {
  position: relative;
  display: flex;
  font-weight: var(--weight-semi-bold);
  background-color: var(--grey-bg);
  border: 2px solid var(--grey-border);
  border-radius: 10px;
  width: 100%;
  height: 40px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none !important;
  filter: brightness(1);
  transition: filter 0.15s ease-in-out;
}
.projectPage header a:not(:last-child) {
  margin-right: 10px;
}
.project__footer a:hover,
.projectPage header a:hover {
  filter: brightness(0.9);
}
.project__footer a:active,
.projectPage header a:active {
  filter: brightness(0.8);
}
.project__footer a:not(:last-child) {
  margin-right: 10px;
}
.project__footer svg,
.projectPage header a svg {
  display: block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
}

footer {
  padding: 30px 0;
}
footer p {
  color: var(--text-main);
  text-align: center;
  margin-bottom: 0;
}
footer p:not(:last-child) {
  margin-bottom: 5px;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container {
    max-width: 940px;
  }
  main.projects {
    grid-template-columns: repeat(2, 1fr [col-start]);
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1170px;
  }
  main.projects {
    grid-template-columns: repeat(3, 1fr [col-start]);
  }
}

@media (max-width: 450px) {
  .project {
    height: auto;
    padding: 0;
  }
  .project__footer {
    position: relative;
    top: initial;
    left: initial;
    flex-direction: column;
  }
  .project__footer a {
    margin: 0;
  }
  .project__footer a:not(:last-child) {
    margin-bottom: 10px;
  }
}
@media (max-width: 767px) {
  header {
    height: auto !important;
  }
  header .container {
    padding-top: 20px;
  }
  header .social {
    flex-direction: column;
  }
  header .social li {
    display: flex;
  }
  header .social li:not(:last-child) {
    margin-bottom: 10px;
  }
}
