@font-face {
  font-family: 'Triptych';
  font-style: normal;
  font-weight: 400;
  src: url('/assets/fonts/Triptych-Roman.woff') format('woff');
}

@font-face {
  font-family: 'Triptych';
  font-style: normal;
  font-weight: bold;
  src: url('/assets/fonts/Triptych-Grotesque.woff') format('woff');
}

@font-face {
  font-family: 'Triptych';
  font-style: italic;
  font-weight: 400;
  src: url('/assets/fonts/Triptych-Italick.woff') format('woff');
}

* {
  box-sizing: border-box;
}

html,
body {
  background: white;
}

body {
  position: relative;
  font-family: 'Triptych';
  line-height: 1.65;
  margin: 0;
  padding: 0;
  font-variant-ligatures: common-ligatures;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 600px) {
  body {
    font-size: 16px;
  }
}

h2, p {
  margin: 0.75em 0;
}

h2 {
  font-size: 1em;
  margin-top: 1.5em;
}

a {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #aaa;
}

a:hover {
  border-color: inherit;
}

a:active {
  color: #aaa;
}

button,
.button,
input[type=submit] {
  -webkit-appearance: none;
  display: inline-block;
  background: none;
  color: white;
  background: black;
  border: 2px solid transparent;
  border-radius: 0.25em;
  margin: 1em 0;
  box-sizing: border-box;
  font-size: 1em;
  font-family: inherit;
  font-weight: bold;
  line-height: inherit;
  text-align: center;
  padding: 0.35em 0.85em;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  vertical-align: center;
  transform: translateY(-3px);
  box-shadow: 0 2px white, 0 3px #aaa;
}

button:hover,
.button:hover,
input[type=submit]:hover {
  box-shadow: 0 2px white, 0 3px black;
  color: white;
  border: 2px solid transparent;
}

button:hover:active,
.button:hover:active,
input[type=submit]:hover:active {
  background: #aaa;
  transform: translateY(0);
  box-shadow: none;
  color: white;
  border: 2px solid transparent;
}

button:disabled,
.button:disabled,
input[type=submit]:disabled {
  cursor: auto;
  background: #aaa;
  transform: translateY(0);
  box-shadow: none;
  color: white;
  border: 2px solid transparent;
}

.spacer {
  height: 4em;
}

.audio-preview,
.audio-preview:hover,
.audio-preview:active,
.audio-preview:hover:active {
  all: unset;
  cursor: pointer;
  width: 2.5em;
  height: 2.5em;
  background: url(play-2.svg);
  background-size: 100%;
  color: transparent;
  text-indent:;
  overflow: hidden;
  vertical-align: middle;
  user-select: none;
  margin-right: 0.3em;
  text-indent: 5em;
}

.audio-preview:hover {
  background-image: url(play-1.svg);
}

.audio-preview[data-playing],
.audio-preview[data-playing]:hover:active {
  background-image: url(pause-1.svg);
}

.audio-preview[data-playing]:hover {
  background-image: url(pause-2.svg);
}

.workbench__overlay {
  --grid-count: 14;
  --column-width: calc(100vw / var(--grid-count));

  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  display: none;
  margin: calc(var(--column-width) / 2);
  margin-bottom: 0;
}

.workbench__overlay[data-active] {
  display: flex;
}

.workbench__column {
  display: flex;
  flex-direction: column;
  margin: 0 calc(var(--column-width) / 2);
}

.workbench__column:first-child {
  width: calc(var(--column-width) * 5);
  align-items: flex-end;
}

.workbench__column:last-child {
  width: calc(var(--column-width) * 6);
  padding-top: calc(var(--column-width) * 2);
}

.workbench__item {
  margin: calc(var(--column-width) * 1.5) 0;
  pointer-events: auto;
  mix-blend-mode: multiply;
}

@media (max-width: 600px) {
  .workbench__item {
    margin: calc(var(--column-width) * 3) 0;
  }
}

.workbench__column:first-child .workbench__item {
  width: calc(var(--column-width) * 4);
}

.workbench__column:first-child .workbench__item--tall {
  width: calc(var(--column-width) * 3);
}

.workbench__column:first-child .workbench__item--wide {
  width: calc(var(--column-width) * 5);
}

.workbench__column:last-child .workbench__item {
  width: calc(var(--column-width) * 5);
}

.workbench__column:last-child .workbench__item--tall {
  width: calc(var(--column-width) * 4);
}

.workbench__column:last-child .workbench__item--wide {
  width: calc(var(--column-width) * 6);
}

@media (hover: hover) and (pointer: fine) {
  .workbench__item:hover {
    mix-blend-mode: normal;
  }

  .workbench__item:hover::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 30;
    pointer-events: none;
  }
}

.workbench__artefact {
  position: relative;
  display: block;
  border: none;
}

.workbench__artefact--audio {
  padding: 8rem 1rem;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workbench__artefact--audio .audio-preview {
  flex-shrink: 0;
  flex-grow: 0;
  margin-right: 0.75em;
}

.workbench__artefact--audio a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workbench__item:hover .workbench__artefact {
  z-index: 31;
}

.workbench__artefact img,
.workbench__artefact video {
  display: block;
  max-width: 100%;
}

th[role=columnheader]:not(.no-sort) {
  cursor: pointer;
}

th[role=columnheader]:not(.no-sort):after {
  display: inline-block;
  content: '↑';
  margin-left: 0.25em;
  visibility: hidden;
  opacity: 0;
  -ms-user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

th[aria-sort=ascending]:not(.no-sort):after {
  content: '↓';
  border-bottom: none;
  border-width: 4px 4px 0;
}

th[aria-sort]:not(.no-sort):after {
  visibility: visible;
  opacity: 1;
}