body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #fafafa;
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
}

* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

.page {
  width: 210mm;
  min-height: 297mm;
  margin: 10mm auto;
  border: 1px #d3d3d3 solid;
  border-radius: 5px;
  background: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: stretch;
}

@page {
  size: A4;
  margin: 0;
}

@media print {
  html,
  body {
    width: 210mm;
    height: 297mm;
  }

  .page {
    margin: 0;
    border: initial;
    border-radius: initial;
    width: initial;
    min-height: initial;
    box-shadow: initial;
    background: initial;
    page-break-after: always;
  }

  header {
    height: 297mm;
  }
}

header {
  background: black;
  color: white;
  flex: 2;
  text-align: center;
  font-size: 1.1em;
}

header a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

header section {
  margin-bottom: 80px;
}

.section-items {
  margin: 30px 0;
}

.section-items div {
  line-height: 1.6em;
}

main {
  padding: 40px 20px 40px 30px;
  flex: 3;
}

main p {
  font-family: "Merriweather", Times, serif;
  line-height: 1.4em;
}

h1,
h2,
h3 {
  font-weight: 600;
  text-transform: uppercase;
}

h4,
h5 {
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: 3.6em;
  font-weight: 400;
  margin-top: 0;
}

h2 {
  font-size: 1.2em;
}

h4 {
  font-size: 1em;
}

h5 {
  margin-bottom: 10px;
}

.portrait {
  margin: 0 !important;
  padding: 40px;
}

.portrait img {
  border-radius: 50%;
  width: 100%;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

.social img {
  height: 30px;
  margin: 0 10px;
}

#skills {
  display: flex;
}

#skills div {
  flex: 1;
}

#skills ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

#skills li {
  margin-bottom: 4px;
}
