/* Thom Stark's stylesheet, man */

:root {
  --bg: #030303;
  --text: #f4f4f4;
  --muted: #999;
  --gold: #d69a27;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(255,255,255,.025), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

main {
  width: 100%;
  overflow: hidden;
}

/* HERO */

.artist {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.artist-image-wrap {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
}

.artist-image-wrap::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.artist-image {
  display: block;
  width: 40%;
  height: auto;
  margin: 0 30%;
  padding:0;
  border-radius:100%;
}


.artist-copy {
  position: relative;
  z-index: 1;
  margin-top: -54px;
}


h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 7vw, 5.2rem);
  font-weight: 300;
  letter-spacing: .24em;
  line-height: 1;
  transform: translateX(.12em);
}

.artist-copy p {
  margin: 24px 0 0;
  color: var(--gold);
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  font-weight: 300;
  letter-spacing: .04em;
}

/* ALBUMS */

.releases {
  width: min(calc(100% - 48px), 980px);
  margin: clamp(64px, 8vw, 96px) auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.album {
  display: block;
  aspect-ratio: 1 / 1;
  background: #080808;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 180ms ease, filter 180ms ease;
}

.album img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* source artwork stays square and is never cropped */
}

.album:hover,
.album:focus-visible {
  transform: translateY(-4px);
  filter: brightness(1.06);
}

/* STREAMING */

.listen {
  width: min(calc(100% - 32px), var(--max));
  margin: clamp(78px, 9vw, 112px) auto 0;
  text-align: center;
}

.listen h2 {
  margin: 0 0 42px;
  color: var(--gold);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: .36em;
  transform: translateX(.18em);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px;
  align-items: center;
}

.service {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: #e9e9e9;
  font-size: .76rem;
  text-transform: lowercase;
  white-space: nowrap;
  transition: opacity 160ms ease, transform 160ms ease;
}

.service img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.service span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
}

.service:hover,
.service:focus-visible {
  opacity: .8;
  transform: translateY(-2px);
}

/* FOOTER */

footer {
  padding: 74px 24px 34px;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 46px;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--gold);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

footer p {
  margin: 52px 0 0;
  color: #777;
  font-size: .68rem;
  letter-spacing: .16em;
}

/* RESPONSIVE */

@media (max-width: 880px) {
  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 34px;
  }
}

@media (max-width: 640px) {
  .artist {
    padding-inline: 16px;
  }

  .artist-copy {
    margin-top: -24px;
  }

  h1 {
    font-size: clamp(2rem, 11vw, 3.8rem);
    letter-spacing: .14em;
    transform: translateX(.07em);
  }

  .artist-copy p {
    margin-top: 18px;
    line-height: 1.45;
  }

  .releases {
    width: min(calc(100% - 32px), 480px);
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 54px;
  }

  .listen {
    margin-top: 72px;
  }

  .listen h2 {
    margin-bottom: 34px;
    letter-spacing: .24em;
    transform: translateX(.12em);
  }

  .service-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 8px;
  }

  .service img {
    width: 44px;
    height: 44px;
  }

  .service {
    font-size: .67rem;
  }

  footer {
    padding-top: 64px;
  }
}

@media (max-width: 420px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
