.browse {
  position: relative;
  z-index: 1000;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background: #efece4;
  color: #121212;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-top: 2px solid #121212;
}

.browse a {
  color: inherit;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  white-space: nowrap;
}

.browse a:hover,
.browse a:focus-visible {
  background: #121212;
  color: #efece4;
  outline: none;
}

.browse .mark {
  letter-spacing: 0.2em;
}

body.shelf {
  margin: 0;
  min-height: 100vh;
  background: #efece4;
  color: #121212;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.shelf a {
  color: inherit;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 2px solid #121212;
}

.brand {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-decoration: none;
}

.count,
.hint {
  margin: 0;
  color: #6e6a62;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.works {
  list-style: none;
  margin: 0;
  padding: 0;
}

.works a {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 8px 20px;
  align-items: end;
  padding: 32px 24px;
  border-bottom: 1px solid #121212;
  text-decoration: none;
}

.works a:hover,
.works a:focus-visible {
  background: #121212;
  color: #efece4;
  outline: none;
}

.works .code {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: #6e6a62;
}

.works a:hover .code,
.works a:focus-visible .code {
  color: #efece4;
}

.works .title {
  font-size: clamp(32px, 7vw, 84px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.works .arrow {
  font-size: 22px;
  line-height: 1;
}

.hint {
  padding: 22px 24px 40px;
}

.missing {
  padding: 18vh 24px 40px;
}

.missing h1 {
  margin: 0;
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.missing p {
  margin: 20px 0 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.missing a {
  text-decoration: none;
  border-bottom: 2px solid #121212;
}

@media (max-width: 640px) {
  .works a {
    grid-template-columns: 1fr auto;
    padding: 24px 16px;
  }

  .works .title {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .works .code {
    grid-row: 2;
  }

  .top,
  .hint {
    padding-left: 16px;
    padding-right: 16px;
  }
}
