:root {
  color-scheme: light;
  --text: #111;
  --muted: #555;
  --line: #ddd;
  --paper: #fffdf8;
  --link: #0645ad;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.5;
}

main {
  width: min(100% - 36px, 680px);
  margin: 0 auto;
  padding: 64px 0 80px;
}

a {
  color: var(--link);
  text-underline-offset: 0.15em;
}

a:hover {
  color: #000;
}

.intro {
  margin-bottom: 26px;
}

.avatar {
  display: block;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  border-radius: 50%;
  object-fit: cover;
}

h1,
h2,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: 2.15rem;
  line-height: 1.1;
  font-weight: 700;
}

h2 {
  margin: 34px 0 10px;
  font-size: 1.1rem;
  line-height: 1.25;
}

p {
  max-width: 610px;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

ul {
  padding-left: 24px;
}

li + li {
  margin-top: 7px;
}

.project-list li {
  margin-bottom: 14px;
}

.project-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

@media (max-width: 520px) {
  body {
    font-size: 17px;
  }

  main {
    width: min(100% - 28px, 680px);
    padding-top: 38px;
  }
}
