/* The purchase and streaming buttons share one translucent face. */
.edition-actions .edition-action,
.streaming-links a.stream-link {
  background: rgb(184 199 216 / 5%);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}
/* Decorative labels and artwork share the parent link's native hand cursor. */
.edition-actions .edition-action > *,
.streaming-links .stream-label {
  pointer-events: none;
}

.edition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  width: 100%;
  max-width: 21.5rem;
}
.edition-actions .edition-action {
  position: relative;
  --edition-border: #9d8962;
  --edition-border-active: #c7af7e;
  --edition-metal-stops:
    #927c54 0deg, #af9667 22deg, #e1c992 36deg, #f9edc9 43deg,
    #c7ae7a 54deg, #907953 74deg, #796646 150deg,
    #aa9163 204deg, #d3ba86 225deg, #9a8259 247deg, #927c54 360deg;
  flex: 1 1 7.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  width: auto;
  max-width: 10.5rem;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px clamp(8px, 2vw, 16px);
  border: 1px solid var(--edition-border);
  border-radius: 10px;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: inherit;
  letter-spacing: .045em;
  text-align: center;
}
.edition-actions .edition-action--bandcamp {
  --edition-border: #838e99;
  --edition-border-active: #b3bdc7;
  --edition-metal-stops:
    #78818a 0deg, #919da9 22deg, #cbd4dd 36deg, #f3f7fa 43deg,
    #afb9c3 54deg, #79838c 74deg, #606972 150deg,
    #89949f 204deg, #b9c4ce 225deg, #818b95 247deg, #78818a 360deg;
}
.edition-actions a.edition-action:any-link {
  color: #c7d0d8;
  text-decoration: none;
}
.edition-actions a.edition-action:focus-visible {
  color: white;
  border-color: var(--edition-border-active);
  border-radius: 10px;
  outline: 2px solid white;
  outline-offset: 4px;
}
@media (hover: hover) {
  .edition-actions a.edition-action:hover {
    color: white;
    border-color: var(--edition-border-active);
  }
}
/* The wordmark sits inside the Studio Edition link, as on the original button. */
.edition-actions .edition-action--studio {
  display: inline-grid;
  grid-template-columns: minmax(0, max-content);
  align-content: center;
  justify-items: start;
  padding-block: 8px 12px;
  gap: 5px;
}
.edition-caption { color: #fff; }
.edition-action img.edition-atmos,
.edition-action img.edition-bandcamp {
  width: 84px;
  height: auto;
  display: block;
  margin: 0;
  opacity: .72;
}

.edition-action img.edition-bandcamp { width: 104px; max-width: 100%; opacity: .88; }

/* Mask out the face so only the one-pixel metal rim can catch the light. */
@supports (mask-composite: exclude) or (-webkit-mask-composite: xor) {
  .edition-action::before {
    content: "";
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: conic-gradient(from var(--edition-light, -78deg), var(--edition-metal-stops));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }
}
.sleep-collection .edition-actions { margin: 1.5rem 0 .8rem; }
@media (forced-colors: active) {
  .edition-actions .edition-action { border-color: LinkText; }
  .edition-action::before { display: none; }
}
