@font-face {
  font-family: "Bembo";
  src: url("assets/fonts/BemboBookMTPro-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Bembo";
  src: url("assets/fonts/BemboBookMTPro-Italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  --page-bg: #ffffff;
  --ink: #252525;
  --charcoal: #3d3d3d;
  --soft: #8d8d8d;
  --footer: #a7a7a7;
  --line: #b8b8b8;
  --footer-block: clamp(220px, 23vw, 310px);
  --footer-height: 106px;
  --footer-bottom: clamp(20px, 3.2vw, 34px);
  --footer-side: clamp(18px, 3.8vw, 46px);
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Bembo", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    serif;
  --artist-square: clamp(210px, 18vw, 272px);
  --artist-gap: clamp(16px, 2vw, 24px);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

a,
button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible,
.artist-links a:hover,
.artist-links a:focus-visible,
.demo-submit:hover,
.demo-submit:focus-visible {
  text-decoration: underline;
}

button {
  color: inherit;
}

.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 64px);
}

.home-view {
  display: grid;
  place-items: center;
}

.home-visual {
  width: clamp(176px, 22vw, 318px);
  max-height: min(42vh, 360px);
  object-fit: contain;
  display: block;
}

.site-identity,
.site-menu {
  position: fixed;
  z-index: 20;
  bottom: var(--footer-bottom);
  width: var(--footer-block);
  min-height: var(--footer-height);
  color: var(--footer);
  font-family: var(--sans);
  font-size: 10px;
  line-height: 1.55;
}

.site-identity {
  left: var(--footer-side);
  text-align: left;
}

.site-menu {
  right: var(--footer-side);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 12px;
  text-align: right;
}

.site-logo {
  width: 112px;
  max-width: 54%;
  height: auto;
  display: block;
  margin-bottom: 8px;
}

.logo-link {
  display: block;
  width: fit-content;
}

.rights,
.general {
  margin: 0;
}

.menu-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0 5px;
}

.menu-links a[aria-current="page"] {
  color: #767676;
}

.artists-view {
  position: relative;
  width: calc((var(--artist-square) * 2) + var(--artist-gap));
  max-width: calc(100vw - 56px);
}

.roster {
  position: absolute;
  top: 0;
  right: calc(100% + clamp(20px, 3vw, 42px));
  width: clamp(112px, 12vw, 156px);
  height: var(--artist-square);
  overflow-y: auto;
  padding-right: 8px;
  color: var(--footer);
  scrollbar-width: thin;
}

.roster-list {
  display: grid;
  gap: 8px;
}

.roster button {
  width: 100%;
  min-height: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 11px;
  line-height: 1.25;
  text-align: left;
}

.roster button:hover,
.roster button:focus-visible,
.roster button[aria-current="true"] {
  color: var(--charcoal);
  text-decoration: underline;
  outline: 0;
}

.artist-panel {
  width: 100%;
}

.artist-feature {
  display: grid;
  grid-template-columns: var(--artist-square) var(--artist-square);
  gap: var(--artist-gap);
  align-items: stretch;
}

.artist-image-frame {
  width: var(--artist-square);
  height: var(--artist-square);
  margin: 0;
  overflow: hidden;
  background: #f2f2f2;
}

.artist-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.artist-copy {
  width: var(--artist-square);
  height: var(--artist-square);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(8px, 1.1vw, 16px) 0;
  overflow: hidden;
}

.artist-name {
  margin: 0 0 14px;
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 700;
  line-height: 1.25;
}

.artist-bio-wrap {
  position: relative;
  margin: 0 0 18px;
}

.artist-bio {
  margin: 0;
  color: var(--soft);
  font-family: var(--serif);
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.artist-bio-wrap.is-expanded .artist-bio {
  padding-right: 0;
  -webkit-line-clamp: 5;
  line-clamp: 5;
}

.bio-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1.8em;
  height: 1.35em;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  cursor: pointer;
  font-size: clamp(13px, 1.05vw, 16px);
}

.bio-toggle:focus-visible {
  outline: 1px solid var(--line);
  outline-offset: 2px;
}

.bio-toggle[hidden] {
  display: none;
}

.artist-copy.has-expanded-bio {
  justify-content: center;
}

.artist-copy.has-expanded-bio .artist-name {
  margin-bottom: 10px;
}

.artist-copy.has-expanded-bio .artist-bio-wrap {
  margin-bottom: 12px;
}

.artist-copy.has-expanded-bio .artist-genres {
  margin-bottom: 8px;
}

.podcast-copy.has-expanded-bio {
  justify-content: center;
}

.podcast-copy.has-expanded-bio .artist-name {
  margin-bottom: 10px;
}

.podcast-copy.has-expanded-bio .artist-bio-wrap {
  max-height: 96px;
  margin-bottom: 12px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.podcast-copy.has-expanded-bio .artist-bio {
  display: block;
  overflow: visible;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.25;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.podcast-copy.has-expanded-bio .artist-genres {
  margin-bottom: 8px;
}

.artist-genres,
.artist-links {
  color: var(--footer);
  font-size: clamp(10px, 0.85vw, 11px);
  line-height: 1.55;
}

.artist-genres {
  margin: 0 0 11px;
}

.artist-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 5px;
}

.player {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  width: 100%;
  margin-top: 22px;
  color: #000000;
}

.play-button {
  width: 16px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.play-button::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 2px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid #000000;
}

.play-button.is-playing::before {
  width: 11px;
  height: 12px;
  border: 0;
  background: linear-gradient(
    to right,
    #000 0 35%,
    transparent 35% 65%,
    #000 65% 100%
  );
}

.scrubber {
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.scrubber::before,
.scrubber-progress {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  height: 1px;
}

.scrubber::before {
  right: 0;
  background: #000000;
  opacity: 0.32;
}

.scrubber-progress {
  width: 0%;
  background: #000000;
}

.track-time {
  min-width: 28px;
  color: #000000;
  font-size: 10px;
  line-height: 1;
  text-align: right;
}

.catalogue {
  width: 100%;
  height: 92px;
  margin-top: 20px;
  border-top: 1px solid #e2e2e2;
  overflow-y: auto;
  scrollbar-width: thin;
}

.catalogue-row {
  display: grid;
  grid-template-columns: minmax(74px, 0.24fr) minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e8e8e8;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.25;
}

.catalogue-number {
  color: var(--footer);
}

.catalogue-title {
  min-width: 0;
  font-family: var(--serif);
  font-style: italic;
  color: var(--soft);
}

.about-view {
  width: clamp(280px, 44vw, 620px);
  max-width: calc(100vw - 56px);
  color: var(--soft);
  font-family: var(--serif);
  font-size: clamp(16px, 1.45vw, 22px);
  line-height: 1.52;
}

.about-view p {
  margin: 0;
}

.about-view p + p {
  margin-top: 1em;
}

.demo-view {
  width: clamp(280px, 34vw, 430px);
  max-width: calc(100vw - 56px);
}

.demo-form {
  display: grid;
  gap: 15px;
  color: var(--footer);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.35;
}

.demo-form label {
  display: grid;
  gap: 5px;
}

.demo-form input {
  width: 100%;
  min-width: 0;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--charcoal);
  outline: none;
}

.demo-form input:focus-visible {
  border-bottom-color: var(--charcoal);
}

.demo-note {
  width: fit-content;
  margin: 1px 0 0;
  padding: 1px 3px 2px;
  background: #fff4a8;
  color: #777777;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.35;
}

.demo-submit {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--footer);
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  :root {
    --artist-square: clamp(150px, 31vw, 218px);
  }

  .stage {
    align-items: start;
    padding-top: clamp(76px, 16vw, 128px);
    padding-bottom: 220px;
  }

  .artists-view {
    width: calc((var(--artist-square) * 2) + var(--artist-gap));
  }

  .roster {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    margin-bottom: 18px;
    padding: 0 0 7px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .roster-list {
    display: flex;
    gap: 14px;
    min-width: max-content;
  }

  .roster button {
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  :root {
    --footer-block: calc(100vw - 36px);
    --artist-square: calc((100vw - 52px) / 2);
    --artist-gap: 12px;
  }

  .stage {
    min-height: 100svh;
    padding: 58px 18px 250px;
  }

  .home-visual {
    width: min(64vw, 236px);
  }

  .site-identity,
  .site-menu {
    left: 18px;
    right: auto;
    width: var(--footer-block);
    min-height: auto;
  }

  .site-menu {
    align-items: stretch;
    bottom: 22px;
    text-align: left;
  }

  .menu-links {
    justify-content: flex-start;
  }

  .site-identity {
    bottom: 142px;
  }

  .site-logo {
    width: 96px;
  }

  .artist-copy {
    padding: 0;
  }

  .artist-name {
    margin-bottom: 9px;
  }

  .artist-bio-wrap {
    margin-bottom: 10px;
  }

  .artist-bio,
  .bio-toggle {
    font-size: clamp(12px, 3.6vw, 14px);
    line-height: 1.25;
  }

  .artist-copy.has-expanded-bio {
    justify-content: flex-start;
  }

  .artist-copy.has-expanded-bio .artist-name {
    margin-bottom: 6px;
  }

  .artist-copy.has-expanded-bio .artist-bio-wrap {
    margin-bottom: 7px;
  }

  .artist-copy.has-expanded-bio .artist-bio,
  .artist-copy.has-expanded-bio .bio-toggle {
    font-size: clamp(11px, 3.1vw, 13px);
    line-height: 1.18;
  }

  .artist-copy.has-expanded-bio .artist-genres {
    margin-bottom: 6px;
  }

  .artist-copy.has-expanded-bio .artist-genres,
  .artist-copy.has-expanded-bio .artist-links {
    font-size: 9px;
    line-height: 1.22;
  }

  .podcast-copy.has-expanded-bio {
    justify-content: center;
  }

  .podcast-copy.has-expanded-bio .artist-name {
    margin-bottom: 6px;
    font-size: clamp(12px, 3.3vw, 13px);
    line-height: 1.12;
  }

  .podcast-copy.has-expanded-bio .artist-bio-wrap {
    max-height: 66px;
    margin-bottom: 7px;
    overflow-y: auto;
    padding-right: 3px;
  }

  .podcast-copy.has-expanded-bio .artist-bio,
  .podcast-copy.has-expanded-bio .bio-toggle {
    font-size: clamp(10.5px, 3vw, 12px);
    line-height: 1.15;
  }

  .podcast-copy.has-expanded-bio .artist-bio {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
  }

  .podcast-copy.has-expanded-bio .artist-genres {
    margin-bottom: 5px;
  }

  .podcast-copy.has-expanded-bio .artist-genres,
  .podcast-copy.has-expanded-bio .artist-links {
    font-size: 9.5px;
    line-height: 1.22;
  }

  .artist-genres,
  .artist-links {
    font-size: 10px;
    line-height: 1.35;
  }

  .player {
    margin-top: 18px;
  }

  .catalogue {
    margin-top: 16px;
  }

  .catalogue-row {
    grid-template-columns: minmax(62px, 0.3fr) minmax(0, 1fr);
    gap: 10px;
  }

  .about-view {
    font-size: clamp(15px, 4.4vw, 18px);
    line-height: 1.48;
  }
}

@media (max-width: 620px) and (max-height: 700px) {
  .stage {
    padding-top: 42px;
    padding-bottom: 210px;
  }

  .site-identity,
  .site-menu {
    font-size: 9px;
  }

  .site-identity {
    bottom: 124px;
  }

  .site-menu {
    bottom: 18px;
    gap: 8px;
  }

  .site-logo {
    width: 72px;
    margin-bottom: 6px;
  }

  .demo-form {
    gap: 12px;
    font-size: 10px;
  }

  .demo-note {
    font-size: 12px;
  }
}

@media (max-height: 700px) and (min-width: 621px) {
  .stage {
    padding-bottom: 150px;
  }

  :root {
    --artist-square: clamp(178px, 28vh, 238px);
  }
}
