html {
  background: #eeeeee;
}

body {
  margin: 30px auto;
  max-width: 1080px;
  color: #111111;
  background: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

a {
  color: #224b8d;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#layout-content {
  padding: 24px 32px 36px;
}

.profile {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.portrait {
  width: 150px;
  height: 210px;
  object-fit: cover;
  border: 1px solid #dddddd;
}

h1,
h2,
h3 {
  color: #527bbd;
  line-height: 1.1;
}

h1 {
  margin: 0 0 10px;
  padding: 0 0 8px;
  border-bottom: 1px solid #aaaaaa;
  font-size: 1.75rem;
}

h2 {
  margin: 26px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #aaaaaa;
  font-size: 1.32rem;
}

h3 {
  margin: 0 0 4px;
  font-size: 1.06rem;
}

p {
  margin: 0 0 12px;
  line-height: 1.45;
}

ul {
  margin: 0 0 12px 24px;
  padding: 0;
  list-style-type: square;
}

li {
  margin-bottom: 8px;
  line-height: 1.45;
}

.plain-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 4px;
}

.plain-table td {
  padding: 4px 14px 4px 0;
  border: none;
  line-height: 1.35;
  vertical-align: top;
}

.plain-table td:first-child {
  width: 42%;
}

.plain-table td:nth-child(2) {
  width: 40%;
}

.plain-table td:last-child {
  width: 18%;
  white-space: nowrap;
}

.project {
  margin-bottom: 18px;
}

.project .meta {
  margin-bottom: 6px;
  color: #555555;
  font-size: 0.95rem;
}

.image-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: start;
}

.image-project img {
  width: 230px;
  max-height: 170px;
  object-fit: cover;
  border: 1px solid #dddddd;
}

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

  #layout-content {
    padding: 18px;
  }

  .profile,
  .image-project {
    grid-template-columns: 1fr;
  }

  .portrait {
    width: 132px;
    height: 184px;
  }

  .image-project img {
    width: 100%;
    max-height: none;
  }

  .plain-table,
  .plain-table tbody,
  .plain-table tr,
  .plain-table td {
    display: block;
    width: 100%;
  }

  .plain-table tr {
    margin-bottom: 12px;
  }

  .plain-table td {
    padding: 0 0 2px;
  }

  .plain-table td:first-child,
  .plain-table td:nth-child(2),
  .plain-table td:last-child {
    width: 100%;
    white-space: normal;
  }
}
