/* 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: #150c21;
}

#main {
  width: min(92vw, 54em);
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 2em;
}

a {
  text-decoration: none;
  color: rgb(20, 110, 190);
}

a:hover {
  text-decoration: none;
  border-bottom: 1px solid rgb(20, 110, 190);
}

i {
  font-style: italic;
}

b {
  font-weight: 700;
}

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

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

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

#intro-text {
  flex: 1;
  min-width: 0;
}

#intro-image {
  margin-top: 2em;
  width: 15em;
  height: 15em;
  overflow: hidden;
  border-radius: 1em;
  flex-shrink: 0;
}

#intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/**************************************************/
/* 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: #a0a8b0;
}

.selected h2 {
  color: #150c21;
}

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

.button:hover {
  color: #150c21;
}

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

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

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

.grid {
  padding-bottom: 3em;
}

.description {
  margin-bottom: 1em;
}

.list-item {
  display: grid;
  grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
  gap: 1.1rem 1.4rem;
  align-items: start;
  width: 100%;
  line-height: 1.2em;
  margin-top: 1.3em;
  padding-bottom: 1.2em;
  border-bottom: 1px solid #eee;
}

.list-item p.date {
  display: inline-block;
  width: 3em;
  color: #a0a8b0;
}

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

.previews {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  grid-auto-rows: minmax(100px, auto);
  height: 12.5em;
}

.previews video {
  border-radius: 5px;
}

.previews a:hover {
  border: none;
}

.preview1 {
  grid-column: 1;
  width: 100%;
}

.preview2 {
  grid-column: 2;
  width: 100%;
}

.preview3 {
  grid-column: 3;
  width: 100%;
}

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

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

.toggle-button a {
  color: #a0a8b0;
}

.toggle-button a:hover {
  color: rgb(20, 110, 190);
}

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

.thumbnail-container {
  width: 100%;
}

.thumbnail-stage {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.6em;
  overflow: hidden;
  background: #eef1f5;
}

.primary-media {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #67707c;
  font-size: 0.9em;
  text-align: center;
  padding: 0.7em;
  box-sizing: border-box;
}

.media-strip {
  margin-top: 0.6em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
}

.media-thumb {
  width: 3.1rem;
  height: 3.1rem;
  border: 1px solid #d2d8df;
  border-radius: 0.45em;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
}

.media-thumb.is-active {
  border-color: rgb(20, 110, 190);
  box-shadow: 0 0 0 2px rgba(20, 110, 190, 0.15);
}

.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-thumb-video-label {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.73rem;
  color: #33414f;
  background: #f4f7fa;
}

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

h3 a {
  color: #150c21;
}

h3 a:hover {
  color: rgb(20, 110, 190);
}

.publication {
  margin-bottom: 1.2em;
}

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

.project-description {
  width: 100%;
  min-width: 0;
}

.project-links {
  margin-top: 0.8em;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
}

.project-link {
  display: inline-flex;
  align-items: center;
  padding: 0.2em 0.6em;
  border: 1px solid rgba(20, 110, 190, 0.35);
  border-radius: 999px;
  font-size: 0.86em;
  line-height: 1.5em;
}

.project-link:hover {
  border-color: rgb(20, 110, 190);
}

.projects-loading,
.projects-load-error {
  color: #67707c;
  font-size: 0.98em;
  padding: 0.6em 0;
}

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

#footer {
  color: #a0a8b0;
  line-height: 1.8em;
  margin-top: 0.2em;
}

.excerpt-container {
  position: relative;
  display: inline-block;
}

.excerpt-content {
  display: none;
  position: absolute;
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 4px;
  width: 300px;
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  margin-top: 5px;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: 'Courier New', Courier, monospace;
  color: #150c21;
}

.excerpt-container:hover .excerpt-content {
  display: block;
}

@media (max-width: 900px) {
  #intro {
    flex-direction: column-reverse;
    gap: 1.2em;
    padding-top: 3.2em;
  }

  #intro-image {
    margin-top: 0;
    width: min(13.5em, 55vw);
    height: min(13.5em, 55vw);
  }
}

@media (max-width: 740px) {
  .list-item {
    grid-template-columns: 1fr;
  }

  .thumbnail-container {
    max-width: 28rem;
  }
}