* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: #222;
  background: #f4f5f7;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 28px;
  background: #fff;
  min-height: 100vh;
}

.hero {
  padding-bottom: 28px;
  margin-bottom: 34px;
  border-bottom: 3px solid #111;
}

h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.1;
}

.subtitle {
  margin: 10px 0 6px;
  font-size: 19px;
  color: #555;
}

.links {
  margin: 0;
}

.links a,
a {
  color: #0057b8;
  text-decoration: none;
}

.links a:hover,
a:hover {
  text-decoration: underline;
}

section {
  margin-bottom: 34px;
}

h2 {
  font-size: 23px;
  margin: 0 0 18px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
}

h3 {
  margin: 0;
  font-size: 18px;
}

p {
  margin: 4px 0;
}

.item {
  margin-bottom: 20px;
}

.item-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.item-header span {
  white-space: nowrap;
  color: #666;
  font-size: 14px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fafafa;
  font-size: 14px;
}

.note {
  color: #666;
  font-size: 14px;
}

.pub-list {
  padding-left: 22px;
}

.pub-list li,
.skill-list li,
ul li {
  margin-bottom: 9px;
}

footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid #ddd;
  color: #777;
  font-size: 14px;
}

@media (max-width: 640px) {
  .container {
    padding: 32px 20px;
  }

  h1 {
    font-size: 36px;
  }

  .item-header {
    display: block;
  }

  .item-header span {
    display: block;
    margin-top: 2px;
  }
}
