/* Site theme modeled on the al-folio Jekyll theme */

:root {
  --bg-color: #ffffff;
  --text-color: #000000;
  --text-color-light: #828282;
  --theme-color: #1f4e99;
  --link-color: #4682b4;
  --divider-color: rgba(0, 0, 0, 0.1);
  --footer-bg-color: #1c1c1d;
  --footer-text-color: #e8e8e8;
}


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

body {
  margin: 0;
  padding: 56px 0 70px;
  font-family: "Roboto", -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--bg-color);
}

a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--divider-color); margin: 0 0 1rem; }
.font-weight-bold { font-weight: 700; }
.clearfix::after { content: ""; display: table; clear: both; }

.container {
  width: 100%;
  max-width: 930px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Navbar */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--divider-color);
  opacity: 0.95;
}

.navbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 56px;
}

.navbar-brand {
  color: var(--text-color);
  font-size: 1.25rem;
  font-weight: 300;
  white-space: nowrap;
}
.navbar-brand:hover { color: var(--text-color); text-decoration: none; }

.navbar-nav {
  display: flex;
  align-items: center;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 0.6rem;
  color: var(--text-color);
}
.nav-link:hover { color: var(--theme-color); text-decoration: none; }
.nav-item.active > .nav-link { color: var(--theme-color); font-weight: bolder; }

.navbar-toggler {
  display: none;
  margin-left: auto;
  padding: 0.6rem 0.25rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.navbar-toggler .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  border-radius: 1px;
  background-color: var(--text-color);
}

@media (max-width: 575px) {
  .navbar-toggler { display: block; }
  .navbar-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: flex-end;
    padding-bottom: 0.5rem;
  }
  .navbar.open .navbar-nav { display: flex; }
}

/* Page */

main.container { margin-top: 3rem; }

.post-header { margin-bottom: 2rem; }

.post-title {
  margin: 0 0 0.5rem;
  font-size: 2.625rem;
  font-weight: 300;
  line-height: 1.2;
}

.post-header .desc {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
}

article h2 {
  margin: 2rem 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 400;
}
article h2:first-child { margin-top: 0; }

article.home .clearfix p { text-align: justify; }

article ul { padding-left: 1.5rem; }
article li { margin-bottom: 0.5rem; }

.profile {
  float: right;
  width: 30%;
  margin: 0 0 1rem 1rem;
}
.profile img {
  display: block;
  width: 100%;
  border-radius: 0.25rem;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

@media (max-width: 575px) {
  .post-title { font-size: 2rem; }
  .profile { float: none; width: 100%; margin: 0 0 1.5rem; }
}

.social {
  margin-top: 2rem;
  text-align: center;
  font-size: 3rem;
}
.social a { color: var(--text-color); margin: 0 0.6rem; }
.social a:hover { color: var(--theme-color); text-decoration: none; }
.social .icon { width: 3rem; height: 3rem; vertical-align: middle; }

/* Research */

.paper {
  margin: 0.75rem 0 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--divider-color);
}
.paper-title { font-weight: 500; }
.paper-meta { margin: 0.25rem 0 0; }
.paper-links { margin: 0.4rem 0 0; font-size: 0.85rem; font-style: italic; }
.paper-status { color: var(--text-color-light); font-style: italic; }

.paper-details summary {
  cursor: pointer;
  font-weight: 500;
  line-height: 1.4;
  padding: 0.25rem 0;
  list-style: none;
}
.paper-details summary::-webkit-details-marker { display: none; }
.paper-details summary::before { content: "\25B8\00a0"; color: var(--link-color); }
.paper-details[open] summary::before { content: "\25BE\00a0"; }
.paper-details .abstract-text { margin: 0.5rem 0; text-align: justify; }

/* Footer */

.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 0.4rem 0;
  font-size: 0.75rem;
  color: var(--footer-text-color);
  background-color: var(--footer-bg-color);
}
.site-footer a { color: var(--footer-text-color); text-decoration: underline; }
