/* Header */
.header {
    border: 1px solid var(--brand);
    padding: 20px;
    display: flex; 
    align-items: center; 
    gap: 24px;
}

.header > img:first-of-type { 
	align-self: flex-start; 
	margin-top: 20px;
}

.header > span {
  margin-left: -20px;
  align-self: flex-end;
}

.scramble .glyph {
  display: inline-block;
  width: 1.2ch;
  text-align: center;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.scramble .glyph:nth-child(3) {
  position: relative;
  left: 2px;
}

/* Contact */
.links {
	display: flex;
	gap: 20px;
	align-items: center;
}

.links img {
	width: 25px;
}

/* Accordion */
.accordion-trigger {
  padding: 8px 12px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-size: 12px;
}

.accordion-panel {
  overflow: hidden;
  height: 0;
  transition: height 200ms ease;
  margin: 8px 0 0 0;
  text-align: left;
  display: grid;
}

.accordion-panel > li {
  margin: 10px 0;
}

.accordion-panel img {
  width: 15px;
  margin-right: 10px
}

/* Affiliates */
.affiliate-title {
  text-decoration: underline;
  padding-top: 20px;
  text-align: center;
  font-size: 12px
}

.affiliate-buttons img {
  width: 88px;
  height: 31px;
  border: solid 1px var(--brand)
}

/* Listen */
.listen {
    border: 1px solid var(--brand);
    padding: 20px;
    display: flex; 
    align-items: center; 
    gap: 24px;
    flex-direction: column;
    background-color: black;
}

.listen h1 {
  font-size: 24px;
}

.listen img {
  width: 200px;
}

.listen ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.listen li a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.listen ul img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.listen ul li {
  display: block;
  transform: translateX(0);
  animation: waveCycle 6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.15s);
  will-change: transform;
}

.listen ul li:nth-child(1) { --i: 0; }
.listen ul li:nth-child(2) { --i: 1; }
.listen ul li:nth-child(3) { --i: 2; }
.listen ul li:nth-child(4) { --i: 3; }

@keyframes waveCycle {
  0%   { transform: translateX(0); }
  5%   { transform: translateX(6px); }
  10%  { transform: translateX(0); }
  100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .listen ul li { animation: none; }
}


/* Stars */
#stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  display: block;
  background: #000;
}

@media (max-width: 640px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 2nd image centered */
  .header > img:nth-of-type(1) {
    padding-right: 40px;
	margin-top: 0;
	margin-bottom: -10px;
  }

  .header > img:nth-of-type(2) {
    align-self: center;
  }

  /* last text stays right edge */
  .header > span {
    align-self: flex-end;
	margin-top: -20px
  }
}
