html {
  background: #fff;
}

body,
td,
th,
p,
a {
  font-family: "Titillium Web", Verdana, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 400;
}

body {
  margin: 8px;
  color: #000;
  background: #fff;
}

a {
  color: #1772d0;
  text-decoration: none;
}

a:visited {
  color: #1772d0;
}

a:hover,
a:focus {
  color: #f09228;
  text-decoration: none;
}

strong {
  font-weight: 600;
}

.page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

h1 {
  margin: 20px 0 8px;
  font-size: 38px;
  font-weight: 400;
  line-height: normal;
  text-align: center;
}

.profile {
  display: grid;
  grid-template-columns: 32% 68%;
  align-items: start;
}

.profile-media,
.profile-copy {
  padding: 20px;
  box-sizing: border-box;
}

.profile-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 15px;
  object-fit: cover;
}

.profile-links {
  margin: 14px -10px 0;
  line-height: 1.45;
  text-align: center;
}

.profile-copy {
  text-align: justify;
}

.profile-copy p:first-child {
  margin-top: 0;
}

hr {
  height: 1px;
  margin: 4px 0;
  border: 0;
  background-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0)
  );
}

section {
  padding: 16px 20px 20px;
}

h2 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  line-height: normal;
}

.entry,
.publication {
  padding: 4px 15px 8px;
}

h3,
.paper-title {
  font-size: 17px;
  font-weight: 600;
  line-height: normal;
}

h3 {
  margin: 0 0 8px;
}

.entry p,
.publication p {
  margin: 10px 0;
}

footer {
  padding: 22px 20px 8px;
  color: #777;
  text-align: right;
}

footer p,
footer a {
  font-size: 12px;
}

/* Compact styling for the separate printable CV route. */
.cv-page {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  box-sizing: border-box;
}

.cv-page header {
  margin-bottom: 24px;
}

.cv-page h2 {
  margin: 24px 0 10px;
}

.cv-page h3 {
  margin: 0;
  font-size: 16px;
}

.cv-page .entry {
  margin-bottom: 18px;
  padding: 0;
}

.cv-page .entry-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cv-page .date,
.cv-page .meta {
  color: #555;
}

.cv-page ul {
  margin: 8px 0;
  padding-left: 20px;
}

.cv-page li {
  margin: 4px 0;
}

@media (max-width: 680px) {
  body {
    margin: 0;
  }

  h1 {
    margin-top: 14px;
    font-size: 34px;
  }

  .profile {
    display: block;
  }

  .profile-media {
    max-width: 260px;
    margin: 0 auto;
    padding-bottom: 8px;
  }

  .profile-copy {
    padding-top: 8px;
    text-align: left;
  }

  section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .entry,
  .publication {
    padding-right: 0;
    padding-left: 0;
  }

  .cv-page .entry-heading {
    display: block;
  }
}

@media print {
  .cv-page {
    max-width: none;
    padding: 0;
  }

  .cv-page .entry {
    break-inside: avoid;
  }

  footer {
    display: none;
  }
}
