:root {
  --desktop: #008080;
  --silver: #c0c0c0;
  --light: #ffffff;
  --mid: #808080;
  --dark: #000000;
  --blue: #000080;
}

* {
  box-sizing: border-box;
}

button,
input,
textarea,
select {
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--desktop);
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  margin: 0;
}

a {
  color: inherit;
}

main {
  margin: 0 auto;
  max-width: 1120px;
  min-height: 100svh;
  padding: clamp(20px, 5vw, 70px);
}

.window {
  background: var(--silver);
  border-bottom: 3px solid var(--dark);
  border-left: 3px solid var(--light);
  border-right: 3px solid var(--dark);
  border-top: 3px solid var(--light);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.3);
  padding: 3px;
}

.title-bar {
  align-items: center;
  background: var(--blue);
  color: #fff;
  display: flex;
  min-height: 29px;
  padding: 3px 4px;
}

.app-icon {
  align-items: center;
  background: #fff;
  color: var(--blue);
  display: flex;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  margin-right: 7px;
  width: 20px;
}

.title-bar strong {
  font-size: 14px;
}

.window-controls {
  display: flex;
  gap: 3px;
  margin-left: auto;
}

.window-controls span {
  align-items: center;
  background: var(--silver);
  border-bottom: 2px solid var(--dark);
  border-left: 2px solid var(--light);
  border-right: 2px solid var(--dark);
  border-top: 2px solid var(--light);
  color: #000;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}

nav {
  display: flex;
  gap: 24px;
  padding: 9px 11px;
}

nav a {
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  background: var(--blue);
  color: #fff;
  outline: none;
}

.intro {
  align-items: center;
  background: #fff;
  border-bottom: 3px solid var(--light);
  border-left: 3px solid var(--mid);
  border-right: 3px solid var(--light);
  border-top: 3px solid var(--mid);
  display: flex;
  gap: clamp(30px, 8vw, 90px);
  margin: 0 9px 28px;
  min-height: 350px;
  padding: clamp(35px, 8vw, 90px);
}

.speaker {
  align-items: center;
  background: var(--silver);
  border-bottom: 3px solid var(--dark);
  border-left: 3px solid var(--light);
  border-radius: 50%;
  border-right: 3px solid var(--dark);
  border-top: 3px solid var(--light);
  display: flex;
  gap: 7px;
  height: clamp(95px, 14vw, 140px);
  justify-content: center;
  width: clamp(95px, 14vw, 140px);
}

.speaker span {
  background: var(--blue);
  display: block;
  height: 32%;
  width: 7px;
}

.speaker span:nth-child(2) {
  height: 58%;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0 0 16px;
}

.intro p {
  margin: 5px 0;
}

.intro .title {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
}

section:not(.intro) {
  margin: 0 9px 30px;
}

fieldset {
  min-inline-size: 0;
  border-bottom: 2px solid var(--light);
  border-left: 2px solid var(--mid);
  border-right: 2px solid var(--light);
  border-top: 2px solid var(--mid);
  margin: 0;
  padding: 25px 24px 28px;
}

legend {
  font-weight: 700;
  padding: 0 7px;
}

.text-block {
  max-width: 760px;
}

.text-block p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.services {
  display: grid;
  gap: 0 30px;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

.services li {
  border-bottom: 1px dotted var(--mid);
  padding: 12px 5px;
}

.services li::before {
  content: "■";
  color: var(--blue);
  font-size: 10px;
  margin-right: 10px;
}

.work-list {
  background: #fff;
  border-bottom: 3px solid var(--light);
  border-left: 3px solid var(--mid);
  border-right: 3px solid var(--light);
  border-top: 3px solid var(--mid);
}

.work-list article {
  align-items: baseline;
  border-bottom: 1px dotted var(--mid);
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1.4fr auto;
  padding: 13px 15px;
}

.work-list article:last-child {
  border-bottom: 0;
}

h2,
.work-list p,
.work-list time {
  font-size: 14px;
  margin: 0;
}

h2 {
  font-weight: 700;
}

.additional {
  font-size: 13px;
  line-height: 1.5;
  margin: 22px 3px 0;
  max-width: 790px;
}

footer {
  border-top: 2px solid var(--mid);
  margin: 40px 9px 10px;
  padding: 32px 0 10px;
}

footer fieldset {
  max-width: 760px;
}

.contact-intro {
  margin: 0 0 24px;
}

form {
  display: grid;
  gap: 18px 24px;
  grid-template-columns: 1fr 1fr;
}

label {
  display: grid;
  font-size: 13px;
  gap: 7px;
}

.message-field {
  grid-column: 1 / -1;
}

input,
textarea {
  -webkit-appearance: none;
  appearance: none;
  background: #fff;
  border-bottom: 2px solid var(--light);
  border-left: 2px solid var(--mid);
  border-radius: 0;
  border-right: 2px solid var(--light);
  border-top: 2px solid var(--mid);
  color: #000;
  font: inherit;
  padding: 8px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 1px dotted #000;
  outline-offset: -5px;
}

button {
  -webkit-appearance: none;
  appearance: none;
  background: var(--silver);
  border-bottom: 3px solid var(--dark);
  border-left: 3px solid var(--light);
  border-right: 3px solid var(--dark);
  border-top: 3px solid var(--light);
  color: #000;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  justify-self: start;
  padding: 9px 18px;
}

button:active {
  border-bottom-color: var(--light);
  border-left-color: var(--dark);
  border-right-color: var(--light);
  border-top-color: var(--dark);
}

button:disabled {
  color: #686868;
  cursor: default;
}

.listen-section {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.combined-player {
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  padding: 0;
  width: min(100%, 470px);
}

.combined-player > .mini-title {
  display: none;
}

.ipod-shell {
  background: linear-gradient(145deg, #f7f7f7 0%, #c8c8c8 52%, #eeeeee 100%);
  border: 1px solid #8b8b8b;
  border-radius: 25px;
  box-shadow: inset 2px 2px 3px #fff, inset -2px -2px 4px #888, 0 3px 7px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
  padding: 20px 20px 18px;
  width: min(100%, 390px);
}

.ipod-screen {
  background: #f8faf5;
  border: 3px solid #333;
  border-radius: 4px;
  box-shadow: inset 0 0 7px rgba(0, 0, 0, 0.2);
  min-height: 244px;
  overflow: hidden;
}

.screen-bar {
  align-items: center;
  background: linear-gradient(#fefefe, #d9ddd5);
  border-bottom: 1px solid #777;
  display: flex;
  font-size: 11px;
  justify-content: space-between;
  padding: 4px 6px;
  text-transform: uppercase;
}

.media-panel[hidden] {
  display: none;
}

.media-panel > iframe {
  background: #fff;
  border: 0;
  display: block;
  height: 120px;
  width: 100%;
}

.audio-release {
  background: #f8faf5;
  height: 184px;
  overflow: hidden;
  position: relative;
}

.release-art {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.click-wheel > #bandcamp-player {
  background: transparent;
  border: 0;
  bottom: 5px;
  display: block;
  clip-path: inset(0 258px 0 42px);
  height: 42px;
  left: 55px;
  opacity: 1;
  position: absolute;
  transform: scale(0.55);
  transform-origin: bottom left;
  width: 342px;
  z-index: 3;
}

.video-panel {
  display: block;
}

.click-wheel {
  background: #f5f5f5;
  border: 1px solid #aaa;
  border-radius: 50%;
  height: 180px;
  margin: 18px auto 0;
  position: relative;
  width: 180px;
}

.click-wheel button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #777;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 5px;
  position: absolute;
  text-transform: uppercase;
}

.click-wheel button:active {
  color: var(--blue);
}

.wheel-audio {
  left: 50%;
  transform: translateX(-50%);
}

.wheel-audio { top: 8px; }
.wheel-prev { left: 7px; top: 74px; }
.wheel-next { right: 7px; top: 74px; }

.wheel-center {
  background: linear-gradient(145deg, #d3d3d3, #f7f7f7);
  border: 1px solid #aaa;
  border-radius: 50%;
  height: 70px;
  left: 54px;
  color: #666;
  font-size: 10px;
  font-weight: 700;
  padding: 0;
  position: absolute;
  top: 54px;
  width: 70px;
}

.wheel-center[aria-pressed="true"] {
  color: #000080;
}

.wheel-center:disabled {
  color: #aaa;
  cursor: default;
}

.album-player {
  background: var(--silver);
  border-bottom: 3px solid var(--dark);
  border-left: 3px solid var(--light);
  border-right: 3px solid var(--dark);
  border-top: 3px solid var(--light);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.22);
  overflow: hidden;
  padding: 3px;
  width: min(100%, 560px);
}

.album-player iframe {
  background: #fff;
  border: 0;
  display: block;
  height: 42px;
  margin-top: 3px;
  width: 100%;
}

.credit-heading {
  align-items: center;
  background: #fff;
  border-bottom: 2px solid var(--light);
  border-left: 2px solid var(--mid);
  border-right: 2px solid var(--light);
  border-top: 2px solid var(--mid);
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr);
  padding: 6px;
}

.credit-heading button {
  min-width: 32px;
  padding: 5px 7px;
}

.credit-heading div {
  display: grid;
  min-width: 0;
}

.credit-heading strong,
.credit-heading small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-heading strong {
  font-size: 12px;
}

.credit-heading small {
  color: #444;
  font-size: 10px;
}

.media-player {
  background: var(--silver);
  border-bottom: 3px solid var(--dark);
  border-left: 3px solid var(--light);
  border-right: 3px solid var(--dark);
  border-top: 3px solid var(--light);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.22);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  padding: 3px;
  width: min(100%, 560px);
}

.mini-title {
  align-items: center;
  background: var(--blue);
  color: #fff;
  display: flex;
  font-size: 13px;
  gap: 6px;
  grid-column: 1 / -1;
  min-height: 23px;
  padding: 3px 5px;
}

.mini-title span {
  align-items: center;
  background: #fff;
  color: var(--blue);
  display: inline-flex;
  font-family: serif;
  font-weight: 700;
  height: 16px;
  justify-content: center;
  width: 16px;
}

.player-body {
  align-items: center;
  display: grid;
  gap: 10px 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.now-playing {
  background: #fff;
  border-bottom: 2px solid var(--light);
  border-left: 2px solid var(--mid);
  border-right: 2px solid var(--light);
  border-top: 2px solid var(--mid);
  display: grid;
  font-family: Arial, Helvetica, sans-serif;
  gap: 2px;
  min-width: 0;
  padding: 7px 9px;
}

.now-playing span {
  color: var(--blue);
  font-family: "Courier New", monospace;
  font-size: 10px;
}

.now-playing strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.now-playing small {
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meters {
  align-items: end;
  display: flex;
  gap: 2px;
  height: 34px;
}

.meters i {
  background: #8d8d8d;
  display: block;
  height: 12%;
  width: 4px;
}

.meters.is-playing i {
  animation: meter 900ms steps(4, end) infinite alternate;
  background: var(--blue);
}

.meters.is-playing i:nth-child(3n) { animation-delay: -300ms; }
.meters.is-playing i:nth-child(4n) { animation-delay: -600ms; }
.meters.is-playing i:nth-child(5n) { animation-delay: -150ms; }

@keyframes meter {
  0% { height: 10%; }
  45% { height: 82%; }
  70% { height: 38%; }
  100% { height: 100%; }
}

.player-controls {
  align-items: center;
  display: flex;
  gap: 8px;
  grid-column: 1 / -1;
  justify-content: center;
}

.player-controls button {
  min-width: 46px;
  padding: 5px 11px;
}

.player-controls .play-button {
  min-width: 78px;
}

.audio-source {
  align-self: center;
  background: #000;
  border-bottom: 2px solid var(--light);
  border-left: 2px solid var(--mid);
  border-right: 2px solid var(--light);
  border-top: 2px solid var(--mid);
  height: 184px;
  overflow: hidden;
  width: 100%;
}

.audio-source iframe {
  border: 0;
  display: block;
  height: 180px;
  width: 100%;
}

.honeypot {
  left: -9999px;
  position: absolute;
}

@media (max-width: 700px) {
  main {
    padding: 10px;
  }

  .window-controls span:nth-child(-n + 2) {
    display: none;
  }

  nav {
    gap: 16px;
    overflow-x: auto;
  }

  .intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
    padding: 35px 25px;
  }

  .speaker {
    height: 85px;
    width: 85px;
  }

  .services {
    display: block;
  }

  .player-body {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .media-player {
    display: block;
  }

  .video-panel {
    display: block;
  }

  .audio-source {
    margin: 0 auto;
  }

  .ipod-shell {
    padding: 14px;
  }

  .control-label {
    display: none;
  }

  .player-controls .play-button {
    min-width: 46px;
  }

  .work-list article {
    gap: 5px;
    grid-template-columns: 1fr auto;
  }

  .work-list p {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  form {
    grid-template-columns: 1fr;
  }

  .message-field {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
