:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  color: #f1f3f5;
  background: #15181d;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

a {
  color: #b4d8fb;
}

:focus-visible {
  outline: 3px solid #f1c876;
  outline-offset: 4px;
}

.container {
  width: min(1060px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  background: #20242a;
  border-bottom: 1px solid #373c45;
  padding: 14px 0;
}

.brand {
  color: #f1c876;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

main {
  padding: 28px 0 56px;
}

h1, h2, p {
  margin: 0;
}

h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 18px;
}

h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.muted {
  color: #b6bdc9;
}

.notice {
  background: #2e271c;
  color: #f7deb0;
  border: 1px solid #615039;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 11px 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 24px;
}

.filters label {
  display: grid;
  gap: 5px;
  font-size: .9rem;
  width: min(100%, 230px);
}

input, select, button {
  font: inherit;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #575e6b;
  border-radius: 6px;
  background: #242930;
  color: inherit;
}

button {
  background: #f1c876;
  color: #221e17;
  border-color: #f1c876;
  font-weight: 650;
  cursor: pointer;
}

.filters a {
  align-self: center;
}

#search-status:not(:empty) {
  margin-bottom: 12px;
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 18px;
}

.card {
  border: 1px solid #373c45;
  border-radius: 8px;
  background: #20242a;
}

.card:hover, .card:focus-within {
  border-color: #f1c876;
}

.card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}

.portrait {
  aspect-ratio: 1;
  background: #303640;
  overflow: hidden;
}

.card .portrait {
  border-radius: 7px 7px 0 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 14px;
}

.card h2 {
  margin-bottom: 3px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.badge {
  background: #373c45;
  color: #edf1f8;
  border-radius: 5px;
  font-size: .8rem;
  font-weight: 650;
  padding: 3px 8px;
}

.badge[data-activity="Emerging"] { background: #294135; color: #bdebcf; }
.badge[data-activity="Active"] { background: #223b52; color: #b9dfff; }
.badge[data-activity="Established"] { background: #3c3156; color: #e2d1ff; }
.badge[data-activity="Legendary"] { background: #483a23; color: #ffe0a3; }
.badge[data-activity="Rising Star"] { background: #502c39; color: #ffccdd; }

.back {
  display: inline-block;
  margin-bottom: 18px;
}

.artist-header {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.artist-header .portrait {
  width: min(240px, 100%);
  border-radius: 8px;
}

.profile, .stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.stats div {
  min-width: 135px;
  border: 1px solid #373c45;
  border-radius: 6px;
  padding: 10px 14px;
  background: #20242a;
}

dt {
  color: #b6bdc9;
  font-size: .9rem;
}

dd {
  margin: 0;
  font-weight: 650;
}

.members {
  margin: 0;
  padding-left: 20px;
}

section {
  margin-top: 28px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #20242a;
}

th, td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #373c45;
  padding: 9px 12px;
}

thead {
  background: #2a3039;
}

.location {
  text-transform: capitalize;
}

.date {
  white-space: nowrap;
}

details {
  margin-top: 16px;
}

summary {
  cursor: pointer;
  color: #b4d8fb;
}

details p {
  margin-top: 8px;
}
