/**
 * "Variables"
 */
h1,
h2,
.date {
  font: small-caps normal 100% Constantia, "Palatino Linotype", Palatino,
    Georgia, serif;
}

h1,
header > h1 > span,
header > ul > li:before,
em.people {
  color: #3b5998;
}

/**
 * Style
 */

* {
  margin: 0;
  text-rendering: optimizeLegibility;
}

html {
  background: #9ba2b0;
  font-size: 18px;
}

body {
  width: 65em;
  padding: 3em 8%;
  box-sizing: border-box;
  margin: 1em auto;
  background: white;
  box-shadow: 1px 1px 5px 2px rgba(0, 0, 0, 0.3);
  font: 100%/1.6 "Segoe UI", Optima, "Hiragino Kaku Gothic Pro", "Apple Gothic",
    Tahoma, "Helvetica Neue", sans-serif;

  -moz-hyphens: auto;
  -ms-hyphens: auto;
  -o-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;

  -moz-transition: 0.5s font-size;
  -ms-transition: 0.5s font-size;
  -o-transition: 0.5s font-size;
  -webkit-transition: 0.5s font-size;
  transition: 0.5s font-size;
}

h1,
h2 {
  page-break-after: avoid;
}

h1 {
  margin-top: 1.2em;
  font-size: 180%;
}

h2 {
  margin-top: 1em;
  font-size: 150%;
}

a {
  color: #4f6128;
}

abbr[title] {
  border-bottom: 1px dotted #4f6128;
  cursor: help;
}

p {
  margin: 0.6em 0;
}

h1 + p,
h2 + p {
  margin-top: 0;
}

ol {
  margin-top: 10px;
}

ul {
  margin-top: 10px;
  padding: 0;
  list-style: square;
}

header {
  text-align: center;
}

header > h1 {
  color: #7f7f7f;
  border-bottom: 1px solid #9bbb59;
  margin: 0 0 0.15em;
  text-indent: 1.2em;
  font-size: 450%;
  line-height: 1.05;
  font-variant: normal;
}

header > h1 > span {
  display: inline-block;
  margin-left: -2.7em;
  vertical-align: super;
  font-size: 50%;
}

header > ul {
  display: block;
  margin-bottom: 0.5em;
}

header > ul > li {
  display: inline;
  list-style: none;
}

header > ul > li:before {
  content: "● ";
}

header > ul > li:first-child:before {
  content: none;
}

address {
  font-style: normal;
}

ol.timeline {
  padding: 0;
  border-top: 0 solid #ddd;
  border-width: 4px 0;
}

ol.timeline > li {
  list-style: none;
  padding: 0.4em 0;
  border: 1px solid white; /* Chrome printing bug */
  border-top-color: #ccc;
}

ol.timeline > li:first-child {
  border-top: 0;
}

ol.timeline > li > p {
  margin: 0;
}

ol.timeline > li > .date {
  float: left;
  margin-left: 0.1em;
  max-width: 8rem;
  color: gray;
  font-size: 110%;
}

ol.timeline > li > .date ~ p {
  margin-left: 9rem;
}

.note {
  margin-top: 0.4em;
  font-size: 75%;
}

.note a:not(:hover):not(:active) {
  color: inherit;
}

footer {
  margin-top: 3em;
  font-style: italic;
}

.amp {
  font-style: italic;
}

#papers li > span.title,
li > a > span.title,
li > span.journal {
  font-style: italic;
}
#papers li > span.vol {
  font-weight: bold;
}
#papers li > span.isbn {
  font-variant: small-caps;
}
#papers li > a.paper {
  display: inline-block;
  vertical-align: 0.1em;
  padding: 0.4em 0.4em 0.25em;
  margin-left: 0.5em;
  color: white;
  text-shadow: 0;
  font-size: 75%;
  line-height: 1;
  text-transform: uppercase;
  border-radius: 0.3em;
  background: #9bbb59;
}
#papers li > a.paper:hover {
  text-decoration: none;
  background: black;
}

.skills {
  display: flex;
  justify-content: space-between;
}

@media screen {
  a {
    text-decoration: none;
  }
  a:hover {
    text-decoration: underline;
    color: #092735;
  }
}
@media (max-width: 950px) {
  html {
    font-size: 13px;
  }
}

@media (max-width: 700px) {
  html {
    font-size: 12px;
  }
}

@media (max-width: 600px) {
  body {
    width: auto;
    margin: 1em;
  }
}

@media print {
  html {
    background: none;
    font-size: 16pt;
  }
  body {
    box-shadow: none;
  }

  header > h1 {
    color: black;
  }

  footer {
    display: none;
  }
}
