/*#region */ /* For code folding in VS Code */

/*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */

html {
  font-family: sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

audio,
canvas,
progress,
video {
  display: inline-block;
  vertical-align: baseline;
}

audio:not([controls]) {
  display: none;
  height: 0;
}

[hidden],
template {
  display: none;
}

a {
  background-color: transparent;
}

a:active,
a:hover {
  outline: 0;
}

abbr[title] {
  border-bottom: 1px dotted;
}

b,
strong {
  font-weight: bold;
}

dfn {
  font-style: italic;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

mark {
  background: #ff0;
  color: #000;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

img {
  border: 0;
}

svg:not(:root) {
  overflow: hidden;
}

figure {
  margin: 1em 40px;
}

hr {
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

pre {
  overflow: auto;
}

code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font: inherit;
  margin: 0;
}

button {
  overflow: visible;
}

button,
select {
  font-variant-caps: normal;
}

button,
html input[type='button'],
input[type='reset'],
input[type='submit'] {
  -webkit-appearance: button;
  appearance: button;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

input {
  line-height: normal;
}

input[type='checkbox'],
input[type='radio'] {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  height: auto;
}

input[type='search'] {
  -webkit-appearance: textfield;
  appearance: textfield;
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
}

input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

legend {
  border: 0;
  padding: 0;
}

textarea {
  overflow: auto;
}

optgroup {
  font-weight: bold;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

/*#endregion*/

body {
  max-width: 32em;
  background-color: white;
  margin: 1.75em auto 2em;
  padding: 0 1.125em;
  font-family: minion-pro, Georgia, serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
  color: #1a1a1a;
  font-variant-numeric: oldstyle-nums;
}

@media (min-width: 64em) {
  body {
    margin-top: 3em;
    margin-bottom: 5em;
    padding: 0 2em;
    font-size: 21px;
  }
}

section:before {
  content: '';
  display: block;
  border-top: 4px solid rgba(26, 26, 26, 0.1);
  margin-top: 2em;
  padding-top: 1.5em;
}

.skip-link {
  background: #000;
  color: #fff;
  font-weight: bold;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.15ch;
  padding: 0.125em 0.75em 0.25em;
  position: absolute;
  z-index: 9999;
  top: 0;
  left: 50%;
  transform: translate(-50%, -100%);
  transition: all 0.2s ease-out;
  opacity: 0;
}

.skip-link:focus {
  opacity: 1;
  transform: translate(-50%, 0%);
}

nav {
  --nav-border-width: 2px;
  margin-bottom: 0.5em;
  list-style-type: none;
  border-top: var(--nav-border-width) solid rgba(26, 26, 26, 0.1);
  font-weight: 600;
}

main + nav {
  margin-top: 4rem;
}

nav li {
  float: left;
  margin-top: calc(-1 * var(--nav-border-width));
  border-top: var(--nav-border-width) solid transparent;
  color: black;
}

nav li.active {
  border-top: var(--nav-border-width) solid #1a1a1a;
  cursor: default;
  padding: 1em 0.5em;
}

@media (min-width: 24em) {
  nav li.active {
    padding-left: 0.75em;
    padding-right: 0.75em;
  }
}

@media (min-width: 64em) {
  nav li.active {
    padding-left: 1em;
    padding-right: 1em;
  }
}

nav ul {
  margin: 0;
}

nav ul li {
  margin-bottom: 0;
}

nav li a {
  display: block;
  padding: 1em 0.5em;
  border-bottom: none;
  color: rgb(105 105 105);
  transition: color 0.25s;
}

@media (min-width: 24em) {
  nav li a {
    padding-left: 0.75em;
    padding-right: 0.75em;
  }
}

@media (min-width: 64em) {
  nav li a {
    padding-left: 1em;
    padding-right: 1em;
  }
}

nav li a:hover {
  color: black;
}

nav li:first-child,
nav li:first-child a {
  padding-left: 0 !important;
}

nav:after {
  content: '';
  display: block;
  clear: left;
}

nav.in-page {
  list-style-type: none;
  font-weight: 600;
}

nav.in-page li {
  margin: 0.5em 0;
}

nav.in-page li:after {
  content: ' \2304';
  padding: 0 0.75em 0 0;
}

@media (min-width: 64em) {
  nav.in-page li {
    display: inline;
  }
}

hr {
  border: 0;
  height: 0;
  margin: 0.5em 0;
}

img.portrait {
  width: 4.5em;
  height: auto;
  border-radius: 2.25em;
  float: right;
  margin-top: -5.5em;
}

.cv-page {
  width: 100%;
  border: 1px solid #e8e8e8;
  margin-bottom: 1em;
  padding-bottom: 129.4117647059%;
  height: 0;
  overflow: hidden;
}

.cv-page img {
  display: block;
  width: 100%;
}

ul {
  padding: 0;
}

ul li {
  list-style-type: none;
  margin-bottom: 2rem;
}

ul li strong:first-child {
  /* make course and publications titles blocks */
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgb(0 0 0 / 0.15);
  transition: 0.5s border-color;
}

a:hover {
  border-color: #1a1a1a;
}

strong {
  font-weight: 600;
}

.more-button,
.roman-numerals,
.smallcaps {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.025em;
}

.hangquote {
  text-indent: -0.275em;
}

h1,
h2,
h3 {
  color: black;
}

h1 {
  font-weight: 400;
  font-size: 1.35em;
  margin-bottom: 0;
}

h1 + p {
  /* email address in header */
  font-style: italic;
  margin-bottom: 1.5em;
}

h3,
h4 {
  font-weight: 600;
}

h2 {
  font-size: 1.35em;
  font-weight: normal;
  margin-top: 2rem;
}

h3 {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.05em;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.125;
  margin-top: 1rem;
  margin-bottom: 1em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid rgb(0 0 0 / 0.125);
}

h4 {
  color: dimgray;
  font-size: 0.875em;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

p {
  margin-top: 0;
}

p.copyright {
  margin-top: 4rem;
  font-size: 0.777777777em;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.1em;
}

.js-toggle {
  float: right;
  font-size: 0.875em;
  margin: 0 0 0.5em 0.5em;
  padding: 0.0625em 0.875em;
  border: none;
  border-radius: 1000px;
  background-color: rgba(26, 26, 26, 0.075);
  transition: background-color 0.2s;
}

.js-toggle:hover {
  background-color: rgba(26, 26, 26, 0.125);
}

.js-toggle.active {
  background-color: rgba(26, 26, 26, 0.25);
}

.js-toggle.active:hover {
  background-color: rgba(26, 26, 26, 0.35);
}

.js-toggle:after {
  content: '';
  display: inline-block;
  position: relative;
  margin-left: 0.5em;
  width: 1em;
  height: 0.5em;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.707 17.061"><path fill="transparent" stroke="currentColor" stroke-miterlimit="10" d="M.354.354l16 16 16-16"/></svg>')
    center center no-repeat;
  transition: transform 0.5s;
}

.js-toggle.active:after {
  transform: rotateX(-180deg);
}

.more-button {
  padding: 0 1em 0 0;
  border: none;
  background: transparent url(../img/chevron-down.svg) calc(100% - 0.3em)
    calc(50% + 0.1em) no-repeat;
  background-size: 0.5em;
  opacity: 0.7;
  transition: all 0.3s;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
}

.more-button:hover {
  opacity: 1;
}

/* Utilities */

.nowrap {
  white-space: nowrap;
}
