:root {
  --text: #222222;
  --muted: #4a4a4a;
  --link: #1772d0;
  --hover: #f09228;
  --date: #071a6f;
  --rule: #d9e2ef;
  --soft: #f7f9fc;
  --paper-a: #dbeafe;
  --paper-b: #fef3c7;
  --paper-c: #e0f2f1;
}

* {
  box-sizing: border-box;
}

html {
  background: #ffffff;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Google Sans", "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

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

a:focus,
a:hover {
  color: var(--hover);
}

strong {
  font-weight: 700;
}

.page {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0 30px;
}

.intro-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 32%);
  gap: 8px;
  align-items: center;
}

.intro-copy {
  padding: 20px;
}

h1 {
  margin: 0 0 14px;
  text-align: center;
  font-family: "Lato", Verdana, Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  margin: 20px 20px 8px;
  font-family: "Lato", Verdana, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  margin: 18px 20px 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--date);
}

.section-note {
  margin: 0 20px 8px;
  color: var(--muted);
}

.bio-table {
  width: 100%;
  border: 0;
  border-spacing: 0;
  border-collapse: separate;
}

.date {
  width: 0;
  padding: 0 3px 0 20px;
  color: var(--date);
  line-height: 1.5;
  vertical-align: top;
  white-space: nowrap;
}

.year {
  width: 0;
  padding: 0 10px 0 0;
  color: var(--date);
  line-height: 1.5;
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
}

.spacer {
  width: 0;
  padding: 0 10px 0 0;
}

.details {
  padding: 0 20px 0 10px;
  line-height: 1.5;
  vertical-align: top;
}

.bio-table a {
  color: var(--muted);
  border-bottom: 1px dotted #9a9a9a;
}

.bio-table a:focus,
.bio-table a:hover {
  color: var(--hover);
  border-bottom-color: var(--hover);
}

.bio-table strong a {
  color: var(--link);
  border-bottom: 0;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 9px;
  margin: 18px 0 0;
  text-align: center;
}

.wrap {
  display: inline-block;
}

.portrait {
  padding: 20px;
}

.portrait-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.intern-entry {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin: 0 20px 6px;
  padding: 14px 0 16px;
}

.intern-logo-link {
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: 8px 10px;
}

.intern-logo {
  display: block;
  width: 50px;
  height: auto;
}

.intern-details p {
  margin: 0;
  line-height: 1.6;
}

.paper-entry {
  display: grid;
  grid-template-columns: 35% minmax(0, 1fr);
  align-items: start;
}

.paper-media {
  padding: 15px 15px 15px 20px;
}

.paper-visual {
  display: grid;
  min-height: 145px;
  aspect-ratio: 16 / 10;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.22);
  color: #22384c;
  font-weight: 700;
}

.paper-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.22);
}

.paper-visual.alternate {
  border-radius: 10px;
  box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.22);
}

.paper-visual.muted {
  border-radius: 10px;
  box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.22);
}

.paper-details {
  padding: 15px 20px 15px 15px;
  line-height: 22px;
}

.paper-title {
  font-family: "Lato", Verdana, Helvetica, sans-serif;
  font-weight: 700;
}

.authors,
.venue,
.paper-links {
  margin: 0;
}

.authors a {
  color: var(--muted);
  border-bottom: 1px dotted #9a9a9a;
}

.venue {
  font-style: italic;
}

.muted-link {
  color: var(--muted);
}

footer {
  margin: 12px 20px 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  text-align: right;
}

footer p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 675px) {
  body {
    font-size: 14px;
  }

  .page {
    padding-bottom: 24px;
  }

  .intro-block {
    grid-template-columns: 1fr;
  }

  .intro-copy {
    padding: 20px 18px 8px;
  }

  .portrait {
    order: -1;
    max-width: 270px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 20px 4px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    margin: 22px 20px 8px;
  }

  .bio-table tr {
    display: grid;
    grid-template-columns: auto 1fr;
    row-gap: 1px;
    padding: 0 0 8px;
  }

  .date,
  .year {
    width: auto;
    padding: 0 4px 0 20px;
    text-align: left;
  }

  .spacer {
    display: none;
  }

  .details {
    grid-column: 1 / -1;
    padding: 0 20px;
  }

  .intern-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .intern-logo-link {
    width: 210px;
    justify-self: start;
  }

  .paper-entry {
    grid-template-columns: 1fr;
  }

  .paper-media {
    padding: 15px 20px 0;
  }

  .paper-details {
    padding: 14px 20px 16px;
  }

  .paper-visual {
    min-height: 155px;
  }

  .paper-img {
    max-width: 420px;
  }

  footer {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .date,
  .year,
  .details,
  h2,
  h3,
  .section-note,
  .intern-entry,
  footer {
    margin-left: 0;
    margin-right: 0;
  }

  .date,
  .year,
  .details {
    padding-left: 16px;
    padding-right: 16px;
  }

  h2,
  h3,
  .section-note,
  .intern-entry,
  footer {
    margin-left: 16px;
    margin-right: 16px;
  }
}
