body {
  color: #333;
  font: 12pt Arial, sans-serif;
  margin: 15px;
}

@media screen {
  body {
    max-width: 860px;
    min-width: 320px;
  }
}

a {
  color: #a71930;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 {
  margin: 0;
}

header {
  min-height: 65px;
  position: relative;
}

header > address, header .public-contact {
  position: absolute;
  right: 0;
  top: 0;
}

address {
  font-style: normal;
  white-space: nowrap;
}

.social-networks {
  margin-right: -5px;
  text-align: right;
}

@media (max-width: 475px) {
  header > address, header .public-contact {
    position: static;
  }
}

section h2 {
  border-bottom: 2px solid #333;
  color: #333;
  font-size: 1.05em;
  letter-spacing: 1px;
  text-transform: uppercase;
}

section ul {
  margin: 5px 0 7px;
  padding: 0 0 0 2em;
}

section li {
  text-align: justify;
}

.dates {
  float: right;
  margin-left: 0.5em;
}

.title, .degree {
  float: left;
  font-weight: bold;
}

.irrelevant {
  display: none;
}

header .u-email {
  float: right;
}

.h-event .h-card {
  white-space: nowrap; /* prevents the location from being split in half on small screens */
}

.project-name {
  font-weight: bold;
}

@page {
  margin: 0.5in 0.75in;
  padding: 0;
  size: portrait;
}

@media print {
  h1 {
    margin: 0;
    padding: 0;
  }

  body, a, section h2 {
    color: #000;
  }
  
  .h-event {
    /* avoids breaking the page in the middle of a description */
    page-break-inside: avoid;
  }
  
  .social-networks {
    /* hide social network icon links when printing */
    display: none;
  }
}
