/* Site styles for index, cv, words and contact.
   Loaded after Bootstrap 3, which still provides the grid and resets. */

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 21px;
  line-height: 1.43;
  color: #333;
  background: #fff;
}

h1, h2, h3 {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a,
a:link,
a:visited {
  color: #333;
  text-decoration: underline;
}

a:hover,
a:focus {
  color: #333;
  text-decoration: none;
}

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

p {
  margin: 0 0 15px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.meta,
.dates {
  font-family: 'Space Mono', ui-monospace, Menlo, monospace;
  font-size: 15px;
}

.meta .year,
.meta .length,
.dates {
  color: #767676;
}

.meta .employer {
  font-weight: 700;
}

/* Header and footer */

.site-header {
  border-bottom: 2px solid #333;
}

.site-footer {
  border-top: 2px solid #333;
}

.site-name,
.site-footer .email {
  float: left;
  margin: 20px 0 10px;
  padding-top: 3px;
  font-size: 26px;
  font-weight: 600;
  line-height: 33px;
  letter-spacing: -0.01em;
}

.site-name a,
.site-footer .email a {
  text-decoration: none;
}

.site-name a:hover {
  text-decoration: underline;
}

.site-footer .email {
  padding-top: 8px;
  font-size: 21px;
  line-height: 1.1;
}

.site-nav ul {
  padding-bottom: 15px;
}

.site-nav {
  margin-bottom: 15px;
}

.social-links {
  margin-bottom: 30px;
}

.site-nav li,
.social-links li {
  display: inline-block;
  margin-right: 10px;
}

.site-nav [aria-current] {
  font-weight: 700;
  text-decoration: none;
}

@media (min-width: 600px) {
  .site-nav,
  .social-links {
    float: right;
    margin-top: 24px;
  }
  .site-nav li:last-child,
  .social-links li:last-child {
    margin-right: 0;
  }
}

@media (max-width: 599px) {
  .site-nav,
  .social-links {
    clear: both;
  }
  .site-footer .email {
    font-size: 18px;
  }
}

/* Homepage */

.intro {
  padding-top: 36px;
}

.intro p {
  font-size: 21px;
}

@media (min-width: 768px) {
  .intro p {
    font-size: 26px;
  }
}

.work {
  padding: 48px 0;
}

.project {
  margin-bottom: 55px;
}

.project h2 {
  margin: 20px 0 10px;
  font-size: 24px;
}

.project h2 a {
  text-decoration: underline;
}

.project p {
  margin-top: 20px;
  margin-bottom: 14px;
}

.project .meta {
  margin: 0;
  line-height: 30px;
}

.project img,
.project .embed-responsive {
  border-radius: 5px;
}

/* CV, writing and contact */

.listing {
  padding: 48px 0;
}

.page-title {
  margin: 0 0 61px;
  font-size: 21px;
  font-weight: 400;
  color: #333;
}

.listing h2 {
  margin: 60px 0 29px;
  font-size: 21px;
}

.listing h2:first-of-type {
  margin-top: 0;
}

.list > li {
  margin-bottom: 20px;
}

.list .meta {
  margin: 0;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.6;
}

.list .meta .length {
  margin-left: 8px;
  font-family: 'Space Mono', ui-monospace, Menlo, monospace;
}

.cv .list > li {
  margin-bottom: 40px;
}

.org {
  margin-bottom: 17px;
}

.role {
  font-size: 18px;
}

.dates {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

/* Layout: one centred column instead of the Bootstrap grid */

.wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap::after {
  content: "";
  display: table;
  clear: both;
}

.project-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 5px;
}
