/* CSS Reset: http://meyerweb.com/eric/tools/css/reset */

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1;
}
ol, ul {
  list-style: none;
}
blockquote, q {
  quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/**************************************************/

#body{
  font-family: 'Asap', roboto, sans-serif;
  font-size: 1em;
  line-height: 1.5em;
  color: #111827;
  background-color: #ffffff;
}

#main {
  width: 54em;
  margin: 0px auto;
  position: relative;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: #2563eb;
}

a:hover {
  text-decoration: none;
  border-bottom: 1px solid #2563eb;
}

i {
  font-style: italic;
}

b {
  font-weight: 700;
}

h1 {
  font-size: 2.4em;
  line-height: 2.4em;
  font-weight: 500;
}

/**************************************************/
/* Profile image and description. */

#intro {
  padding-top: 6em;
  display: flex;
}

#intro-text {
  width: 40em;
  float: left;
}

#intro-image {
  margin: 3em 0 0 2em;
  width: 12em;
  height: 12em;
  float: left;
  overflow: hidden;
  border-radius: 1em;
}

#intro-image img {
  width: 12em;
}

/**************************************************/
/* Section buttons. */

#menu {
  display: flex;
}

.menu-item {
  float: left;
  margin-right: 2em;
}

h2 {
  font-size: 1.6em;
  line-height: 2.4em;
  margin-top: 0.5em;
  color: #4b5563;
}

.selected h2 {
  color: #111827;
}

.button {
  display: inline-block;
  cursor: pointer;
  border: none;
  background: none;
  color: #4b5563;
  font-size: 1.6em;
  line-height: 2.4em;
  margin-top: 0.5em;
  margin-right: 1em;
  float: left;
  padding: 0;
}

.button:hover {
  color: #111827;
}

.button:active,
.button.is-checked {
  color: #111827;
}

.button-group:after {
  content: '';
  display: block;
  clear: both;
}

/**************************************************/
/* Isotope grid list of items. */

.grid {
  padding-bottom: 6em;
}

/* clear fix */
.grid:after {
  content: '';
  display: block;
  clear: both;
}

.description {
  margin-bottom: 1em;
  padding-bottom: 0.5em;
}

.list-item.talk.description {
  font-weight: 700;
}

.list-item.talk.description + .list-item.talk.description {
  margin-top: 1.2em;
}

.list-item {
  width: 100%;
  line-height: 1em;
  margin-top: 1em;
}

.list-item p.date {
  display: inline-block;
  width: 5.5em;
  color: #4b5563;
  vertical-align: top;
}

.list-item.talk p.date {
  width: 8.8em;
}

.list-item.talk:not(.description) {
  position: relative;
  padding-left: 8.8em;
  line-height: 1.3em;
}

.list-item.talk:not(.description) p.date {
  position: absolute;
  left: 0;
  top: 0;
  width: 8.8em;
  margin: 0;
  display: block;
}

/* In News entries, keep date + text on one row with hanging indent. */
.list-item.highlight:not(.previews) {
  position: relative;
  padding-left: 5.5em;
  line-height: 1.3em;
}

.list-item.highlight.news-heading {
  padding-left: 0;
}

.list-item.highlight.year-separator {
  padding-left: 0;
  margin-top: 1.2em;
  font-weight: 700;
  color: #374151;
}

.list-item.highlight.dash-divider {
  padding-left: 0;
  margin-top: 0.0 em;
  margin-bottom: 0.0 em;
  width: calc(100% + 4em);
  margin-right: -4em;
  border-bottom: 1px dashed rgba(75, 85, 99, 0.35);
}

.list-item.highlight:not(.previews) p.date {
  position: absolute;
  left: 0;
  top: 0;
  width: 5.5em;
  margin: 0;
  display: block;
}

/* Tighten spacing between items in the main News block. */
#main-highlights .list-item.highlight:not(.dash-divider) {
  margin-top: 0.77em;
}

/**************************************************/
/* Gallery of preview videos. */

.previews {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  height: auto;
}

.previews a {
  display: block;
}

.previews video {
  border-radius: 5px;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.previews a:hover {
  border: none;
}

/**************************************************/
/* Buttons for showing more or less highlights. */

.toggle-button {
  margin-top: 1em;
}

.toggle-button a {
  color: #4b5563;
}

.toggle-button a:hover {
  color: #2563eb;
}

/**************************************************/
/* Publication details (thumbnail media, title, and description). */

.thumbnail {
/*  width: 21%;*/
  width: 18%;
  float: left;
  margin-right: 2%;
}

.thumbnail:hover {
  border-bottom: none;
}

.thumbnail img {
  margin-top: 0.4em;
  border-radius: 5px;
  width: 100%;
  height: 100%;
}

.thumbnail video {
  margin-top: 0.4em;
  border-radius: 5px;
  width: 100%;
  height: 100%;
}

h3 {
  font-size: 1em;
  line-height: 1.5em;
}

h3 a {
  color: #111827;
}

h3 a:hover {
  color: #2563eb;
}

.publication {
  margin-bottom: 0.5em;
}

.publication p {
  font-size: 1em;
  line-height: 1.5em;
  color: #374151;
}

.project-description {
  width: 80%;
  float: left;
}

/**************************************************/
/* Blog cards. */

.blog-post {
  line-height: 1.45em;
}

.blog-title {
  margin-bottom: 0.1em;
}

.blog-meta {
  color: #6b7280;
  font-size: 0.92em;
  margin-bottom: 0.35em;
}

.blog-content {
  color: #374151;
}

.blog-toggle {
  margin-top: 0.3em;
  border: none;
  background: none;
  color: #2563eb;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.blog-toggle:hover {
  text-decoration: underline;
}

/**************************************************/
/* Subtle footer at the bottom of the page. */

#footer {
  display: none !important;
}

.footer-inline {
  color: rgba(75, 85, 99, 0.68);
  margin-top: 0.2em;
}

.section-divider {
  border-bottom: 1px solid rgba(75, 85, 99, 0.35);
  margin-top: 0.4em;
  padding-bottom: 0.4em;
}
