:root {
  color-scheme: light;
  --muted: GrayText;
  --content-width: 350px;
}

html {
  overflow-y: scroll;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 1rem 1.5rem 2rem;
  background: white;
  color: black;
  font: 1rem/1.4 Arial, Helvetica, sans-serif;
}

a:visited {
  color: black;
}

header h1 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}

.brand,
.brand:visited {
  color: black;
  font-style: italic;
  text-decoration: none;
}

.brand:hover {
  text-decoration: underline;
}

header small {
  margin-left: 0.7rem;
  font-size: 1rem;
  font-weight: normal;
}

.about-link {
  color: var(--muted);
  text-decoration: none;
}

.about-link:hover {
  text-decoration: underline;
}

.content-width {
  max-width: var(--content-width);
}

h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  overflow-wrap: anywhere;
}

h3 {
  margin: 1rem 0 0.35rem;
}

p {
  margin: 0 0 0.5rem;
}

#artist-search {
  appearance: none;
  width: 100%;
  min-width: 0;
  border: 3px solid black;
  border-radius: 0;
  padding: 0.6rem;
  background: white;
  color: black;
  font: inherit;
  font-size: 1.2rem;
}

#artist-search::placeholder {
  color: var(--muted);
  opacity: 1;
}

:focus-visible {
  outline: 2px solid black;
  outline-offset: 3px;
}

.search-results {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.search-results li {
  overflow-wrap: anywhere;
}

.search-results li + li {
  margin-top: 0.75rem;
}

.result-summary {
  margin-top: 0.75rem;
  color: var(--muted);
}

.recommendations {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
}

.recommendations td {
  padding: 0.2rem 1rem 0.2rem 0;
  vertical-align: top;
}

.recommendations td:last-child {
  padding-right: 0;
  overflow-wrap: anywhere;
}

.top-purchases {
  display: grid;
  gap: 0 2rem;
  align-items: start;
}

.artist-page > .recommendations {
  max-width: var(--content-width);
}

@media (min-width: 50rem) {
  .artist-page {
    max-width: calc(var(--content-width) + var(--content-width) + 2rem);
  }

  .top-purchases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.score,
.purchase-count {
  width: 1%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.release-artist {
  display: block;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
