body {
  margin: 0;
  color: #222;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 24px 56px;
}

a {
  color: #0645ad;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #0645ad;
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  margin-bottom: 36px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 15px;
}

.site-header a {
  margin-right: 18px;
}

.profile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 30px;
}

.profile-text {
  flex: 1;
  min-width: 0;
}

h1 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.portrait {
  width: 180px;
  height: 240px;
  object-fit: cover;
  object-position: center top;
  border: 1px solid #ccc;
}

section {
  margin-top: 28px;
}

h2 {
  margin: 0 0 10px;
  padding-bottom: 3px;
  border-bottom: 1px solid #ddd;
  font-size: 21px;
  font-weight: 600;
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 0 0 12px 22px;
  padding: 0;
}

li {
  margin: 6px 0;
}

.post-list {
  margin-left: 0;
  list-style: none;
}

.post-list li {
  margin: 0 0 14px;
}

.post-list a {
  font-weight: 600;
}

.post-list span {
  display: block;
  margin-top: 2px;
  color: #555;
}

.work-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.work-thumb {
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #f7f7f7;
}

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

.work-copy {
  flex: 1;
  min-width: 0;
}

.work-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
}

.work-title {
  font-weight: 600;
}

.post-list .work-links {
  display: inline-flex;
  gap: 8px;
  margin-top: 0;
}

.post-list .work-links a {
  font-weight: 400;
}

.post {
  max-width: 800px;
}

.post h1 {
  margin-top: 22px;
}

.post-meta {
  margin-bottom: 18px;
  color: #555;
}

.article-post {
  max-width: 820px;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -8px 0 22px;
}

.post-actions a {
  font-weight: 600;
}

h3 {
  margin: 22px 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.table-wrap {
  margin: 16px 0 24px;
  overflow-x: auto;
}

.results-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 15px;
}

.results-table caption {
  margin-bottom: 8px;
  color: #555;
  font-size: 14px;
  text-align: left;
}

.results-table th,
.results-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #ddd;
  text-align: left;
}

.results-table th {
  border-top: 1px solid #ddd;
  background: #f7f7f7;
  font-weight: 600;
}

.results-table td:last-child,
.results-table th:last-child {
  text-align: right;
}

.post-figure {
  width: 88%;
  max-width: 720px;
  margin: 22px auto 28px;
}

.post-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  background: #fff;
}

.post-figure figcaption {
  margin-top: 8px;
  color: #555;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .page {
    padding: 20px 18px 44px;
  }

  .site-header {
    margin-bottom: 24px;
  }

  .profile {
    display: block;
  }

  .portrait {
    width: 150px;
    height: 200px;
    margin-top: 10px;
  }

  h1 {
    font-size: 28px;
  }

  .results-table {
    font-size: 14px;
  }

  .post-figure {
    width: 100%;
  }

  .work-item {
    gap: 12px;
  }

  .work-thumb {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
  }
}
