:root {
  font-family: Arial, sans-serif;
  color: #111;
  background: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
}

.catalog {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 32px 0 56px;
}

header {
  margin-bottom: 24px;
}

.eyebrow,
.search span,
.sort span {
  color: #666;
  font-size: 12px;
}

.eyebrow {
  margin: 0 0 8px;
}

h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.intro {
  margin: 8px 0 0;
  color: #444;
}

.intro a {
  color: #111;
}

.controls {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}

.search,
.sort {
  display: block;
}

.search {
  flex: 1;
}

.search span,
.sort span {
  display: block;
  margin-bottom: 4px;
}

.search input,
.sort select {
  width: 100%;
  padding: 8px;
  border: 1px solid #aaa;
  border-radius: 0;
  outline: none;
  color: #111;
  background: #fff;
  font: inherit;
}

.sort {
  width: 170px;
}

.search input:focus,
.sort select:focus {
  border-color: #111;
}

section {
  margin: 24px 0;
}

h2 {
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
  color: #555;
  font-size: 13px;
  font-weight: 600;
}

.user-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.user {
  color: #111;
  font-size: 15px;
}

.user:hover {
  color: #555;
  text-decoration: underline;
}

.user[hidden],
section[hidden] {
  display: none;
}

.empty {
  color: #666;
}

@media (max-width: 600px) {
  .catalog {
    width: min(100% - 28px, 860px);
    padding-top: 32px;
  }

  .controls {
    flex-direction: column;
  }

  .sort {
    width: 100%;
  }
}
