/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #fff;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }
}

body {
  margin: 0;
  padding: 70px 0 9em;
  color: #494e52;
  font-family: -apple-system, "San Francisco", "Roboto", "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

::selection {
  color: #fff;
  background: #000;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 2em 0 0.5em;
  line-height: 1.2;
  font-weight: bold;
}

h1 {
  margin-top: 0;
  font-size: 1.563em;
}

h2 {
  font-size: 1.25em;
}

h3 {
  font-size: 1em;
}

h4,
h5,
h6 {
  font-size: 0.75em;
}

small,
.small {
  font-size: 0.75em;
}

p {
  margin-bottom: 1.3em;
}

a {
  color: #52adc8;
  text-decoration: none;
}

a:focus {
  outline: 5px auto #f89406;
  outline-offset: -2px;
}

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

ul li,
ol li {
  margin-bottom: 0.5em;
}

li ul,
li ol {
  margin-top: 0.5em;
}

nav ul {
  margin: 0;
  padding: 0;
}

nav li {
  list-style: none;
  margin-bottom: 0;
}

nav a {
  text-decoration: none;
}

/* ---- Animation ---- */
@keyframes intro {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

/* ---- Layout ---- */
#main {
  max-width: 1280px;
  margin: 2em auto 0;
  padding: 0 2em;
  animation: intro 0.3s both 0.35s;
}

@media (min-width: 925px) {
  #main {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 0 1.5em;
  }

  .page {
    padding-left: 1em;
  }
}

.page {
  min-width: 0;
}

.page__title {
  margin-top: 0;
  line-height: 1;
}

/* ---- Masthead ---- */
.masthead {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  background: #fff;
  border-bottom: 1px solid #f2f3f3;
  z-index: 20;
  animation: intro 0.3s both 0.15s;
}

.masthead__inner-wrap {
  max-width: 925px;
  margin: 0 auto;
  padding: 1em 2em;
}

.masthead__inner-wrap a {
  text-decoration: none;
}

@media (min-width: 1280px) {
  .masthead__inner-wrap {
    max-width: 1280px;
  }
}

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

.masthead__menu-item {
  display: block;
  list-style: none;
  white-space: nowrap;
}

.masthead__menu-item--lg {
  padding-right: 2em;
  font-weight: 700;
}

/* ---- Greedy Nav ---- */
.greedy-nav {
  position: relative;
  min-width: 250px;
  background: #fff;
}

.greedy-nav a {
  display: block;
  margin: 0 1rem;
  padding: 0.5rem 0;
  color: #7a8288;
  text-decoration: none;
}

.greedy-nav a:hover {
  color: #5c6266;
}

.greedy-nav button {
  position: absolute;
  height: 2.5rem;
  right: 0;
  padding: 0 0.5rem;
  border: 0;
  outline: none;
  background: #7a8288;
  color: #fff;
  cursor: pointer;
  z-index: 100;
}

.greedy-nav .visible-links {
  display: table;
}

.greedy-nav .visible-links li {
  display: table-cell;
  vertical-align: middle;
}

.greedy-nav .visible-links li:first-child {
  font-weight: bold;
  text-wrap: wrap;
}

.greedy-nav .visible-links li:first-child a {
  margin-left: 0;
}

.greedy-nav .visible-links li:last-child a {
  margin-right: 0;
}

.greedy-nav .visible-links a {
  position: relative;
}

.greedy-nav .visible-links a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 100%;
  background: #bdc1c4;
  transition: transform 0.2s;
  transform: scaleX(0);
}

.greedy-nav .visible-links a:hover::before {
  transform: scaleX(1);
}

.greedy-nav .hidden-links {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 15px;
  padding: 5px;
  border: 1px solid #f2f3f3;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .25);
}

.greedy-nav .hidden-links a {
  margin: 0;
  padding: 10px 20px;
  font-size: 1em;
}

.greedy-nav .hidden-links a:hover {
  color: #5c6266;
  background: #dee0e1;
}

.greedy-nav .hidden-links li {
  display: block;
  border-bottom: 1px solid #f2f3f3;
}

.greedy-nav .hidden-links li:last-child {
  border-bottom: none;
}

/* ---- Sidebar ---- */
.sidebar {
  margin-bottom: 1em;
}

.sidebar h2,
.sidebar h3,
.sidebar h4 {
  margin-bottom: 0;
}

.sidebar p,
.sidebar li {
  font-size: 0.75em;
  line-height: 1.5;
}

.sidebar img {
  width: 100%;
}

@media (min-width: 925px) {
  .sidebar.sticky {
    position: sticky;
    top: 82px;
    align-self: start;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
  }
}

@media (min-width: 1280px) {
  .sidebar {
    max-width: 250px;
  }
}

/* ---- Author ---- */
.author__avatar {
  display: table-cell;
  vertical-align: top;
  width: 36px;
}

.author__avatar img {
  max-width: 175px;
  border-radius: 50%;
}

.author__content {
  display: table-cell;
  vertical-align: top;
  padding-left: 15px;
  padding-right: 25px;
  line-height: 1;
}

.author__name {
  margin: 0;
}

.sidebar .author__name {
  font-size: 1em;
}

.sidebar .author__desktop {
  display: none;
}

.author__pronouns,
.author__bio {
  margin: 0;
}

@media (min-width: 925px) {
  .author__avatar {
    display: block;
    width: auto;
  }

  .author__avatar img {
    padding: 5px;
    border: 1px solid #f2f3f3;
  }

  .author__content {
    display: block;
    width: 100%;
    padding: 0;
  }

  .author__name {
    margin: 10px 0;
  }

  .author__pronouns {
    margin: 10px 0;
  }

  .author__bio {
    margin: 10px 0 20px;
  }
}

@media (min-width: 1024px) {
  .sidebar .author__desktop {
    display: block;
  }
}

/* ---- Author URLs ---- */
.author__urls-wrapper {
  position: relative;
  display: table-cell;
  vertical-align: middle;
  z-index: 10;
  cursor: pointer;
}

.author__urls-wrapper button {
  margin-bottom: 0;
}

@media (min-width: 925px) {
  .author__urls-wrapper {
    display: block;
  }

  .author__urls-wrapper button {
    display: none;
  }
}

.author__urls {
  display: none;
  position: absolute;
  right: 0;
  margin-top: 15px;
  padding: 10px;
  list-style: none;
  border: 1px solid #f2f3f3;
  border-radius: 4px;
  background: #fff;
  z-index: -1;
  box-shadow: 0 0 10px rgba(0, 0, 0, .25);
  cursor: default;
}

@media (min-width: 925px) {
  .author__urls {
    display: block;
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

.author__urls li {
  white-space: nowrap;
}

.author__urls a {
  display: block;
  margin-bottom: 5px;
  padding: 2px 5px 2px 0;
  color: inherit;
  font-size: 1em;
  text-decoration: none;
}

.author__urls a:hover {
  text-decoration: underline;
}

/* ---- Page content ---- */
.page__content h2 {
  padding-bottom: 0.5em;
  border-bottom: 1px solid #f2f3f3;
}

.page__content p,
.page__content li,
.page__content dl {
  font-size: 1em;
}

.page__content p {
  margin: 0 0 1.3em;
}

.page__content a {
  text-decoration: underline;
}

.page__content dl dt {
  margin-top: 1em;
  font-weight: bold;
  font-size: 1em;
}

.page__content dl dd {
  margin-left: 0;
  font-size: 0.9em;
  color: #494e52;
}

/* ---- Footer ---- */
.page__footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  margin-top: 3em;
  color: #9ba1a6;
  background: #f2f3f3;
  border-top: 1px solid #bdc1c4;
  animation: intro 0.3s both 0.45s;
}

.page__footer footer {
  margin: 1em auto 0;
  max-width: 100%;
  padding: 0 2em 1em;
}

@media (min-width: 1280px) {
  .page__footer footer {
    max-width: 1280px;
  }
}

.page__footer a {
  color: inherit;
  text-decoration: none;
}

.page__footer a:hover {
  text-decoration: underline;
}

.page__footer .fas,
.page__footer .fab,
.page__footer .far,
.page__footer .fal {
  color: #9ba1a6;
}

.page__footer-copyright {
  font-size: 0.6875em;
}

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

.page__footer-follow li {
  display: inline-block;
  padding: 5px 0;
  font-size: 0.75em;
  text-transform: uppercase;
}

.page__footer-follow li+li::before {
  content: "";
  padding-right: 5px;
}

.page__footer-follow a {
  padding-right: 10px;
  font-weight: bold;
}

.page__footer-follow .social-icons a {
  white-space: nowrap;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  margin-bottom: 0.25em;
  padding: 0.5em 1em;
  color: #fff !important;
  font-size: 0.75em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background: #7a8288;
  border: 0 !important;
  border-radius: 4px;
  cursor: pointer;
}

.btn:hover {
  background: #333;
}

.btn .icon {
  margin-right: 0.5em;
}

.btn--inverse {
  color: #7a8288 !important;
  border: 1px solid #bdc1c4 !important;
  background: #fff;
}

.btn--inverse:hover {
  color: #fff !important;
  border-color: #7a8288 !important;
}

/* ---- Utilities ---- */
.hidden {
  display: none;
}

.icon-pad-right {
  padding-right: 0.5em;
  margin-right: 0.5em;
}

/* Social icon colors */
.social-icons .fa-github,
.social-icons .fa-github-alt,
.social-icons .fa-github-square {
  color: #171516;
}

.social-icons .ai-orcid,
.social-icons .ai-orcid-square {
  color: #a6ce39;
}

.social-icons .fa-rss,
.social-icons .fa-rss-square {
  color: #fa9b39;
}

/* Navicon (hamburger) */
.navicon {
  position: relative;
  width: 28px;
  height: 4px;
  background: #fff;
  margin: auto;
  transition: 0.3s;
}

.navicon::before,
.navicon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 28px;
  height: 4px;
  background: #fff;
  transition: 0.3s;
}

.navicon::before {
  top: -8px;
}

.navicon::after {
  bottom: -8px;
}

.close .navicon {
  background: transparent;
}

.close .navicon::before,
.close .navicon::after {
  transform-origin: 50% 50%;
  top: 0;
}

.close .navicon::before {
  transform: rotate(45deg);
}

.close .navicon::after {
  transform: rotate(-45deg);
}