:root {
  color-scheme: dark;
  --paper: #050505;
  --ink: #f5f5f5;
  --muted: #a8a8a8;
  --line: #000000;
  --focus: #ffffff;
  --bg-text-size: 22px;
  --ocr-font: "OCR A Std", "OCR A Extended", "OCR A", "OCR-A", monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ocr-font);
  letter-spacing: 0;
}

a {
  color: inherit;
}

.stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 9vh clamp(18px, 4vw, 56px);
}

.kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.83rem;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.35rem, 3.3vw, 2.55rem);
  font-weight: 400;
  line-height: 1.05;
}

.ascii-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  color: #fff;
  font: var(--bg-text-size) / var(--bg-text-size) var(--ocr-font);
  white-space: pre;
  user-select: none;
  pointer-events: none;
}

.node-field {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  display: block;
  width: var(--node-border-width, auto);
  height: var(--node-border-height, auto);
  padding: 0;
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: translate(-50%, -50%);
  transition: transform 160ms ease;
  will-change: left, top;
}

.node:hover,
.node:focus-visible {
  outline: 0;
  transform: translate(-50%, -50%);
}

.node pre {
  display: none;
}

.node-label {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  color: var(--ink);
  font: var(--bg-text-size) / var(--bg-text-size) var(--ocr-font);
  letter-spacing: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  visibility: hidden;
  white-space: nowrap;
}

.stage[data-node-layout="grid"] .node-label {
  display: grid;
  place-items: center;
  width: 72%;
  min-width: 0;
  color: var(--ink);
  font: 16px / 1.05 var(--ocr-font);
  overflow-wrap: anywhere;
  text-align: center;
  visibility: visible;
  white-space: normal;
}

@media (max-width: 700px) {
  .stage[data-node-layout="grid"] .node-label {
    font-size: 12px;
  }
}

.stage[data-node-layout="spreadsheet"] {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  background: url(CoworkerMoreDurian.jpg);
  background-size: cover;
}

.stage[data-node-layout="spreadsheet"] .node-field {
  position: relative;
  inset: auto;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  max-width: calc(100vw - 48px);
  padding: 0;
  color: var(--line);
  font: 16px / 1.35 var(--ocr-font);
  background: transparent;
  text-shadow: none;
  white-space: normal;
}

.stage[data-node-layout="spreadsheet"] .node-field::before,
.stage[data-node-layout="spreadsheet"] .node-field::after {
  display: block;
  box-sizing: border-box;
  padding-inline: 1ch;
  background: white;
  color: black;
  white-space: pre;
}

.stage[data-node-layout="spreadsheet"] .node-field::before {
  content: "+----+----------------------+\A| ID | LINK                 |\A+----+----------------------+";
}

.stage[data-node-layout="spreadsheet"] .node-field::after {
  content: "+----+----------------------+";
}

.stage[data-node-layout="spreadsheet"] .node {
  position: relative;
  left: auto;
  top: auto;
  box-sizing: border-box;
  width: auto;
  height: auto;
  display: grid;
  grid-template-columns: 6ch minmax(0, 23ch);
  padding-inline: 1ch;
  color: black;
  background: white;
  text-align: left;
  transform: none;
  transition: none;
  will-change: auto;
}

.stage[data-node-layout="spreadsheet"] .node:hover,
.stage[data-node-layout="spreadsheet"] .node:focus-visible {
  color: #000;
  background: var(--ink);
  outline: 0;
  text-shadow: none;
  transform: none;
}

.stage[data-node-layout="spreadsheet"] .node::before {
  content: "| " attr(data-row) " |";
  color: inherit;
}

.stage[data-node-layout="spreadsheet"] .node-label {
  position: relative;
  box-sizing: border-box;
  left: auto;
  top: auto;
  display: block;
  width: 100%;
  min-width: 0;
  color: inherit;
  font: inherit;
  overflow: hidden;
  padding-right: 2ch;
  text-overflow: ellipsis;
  text-transform: uppercase;
  transform: none;
  visibility: visible;
  white-space: pre;
}

.stage[data-node-layout="spreadsheet"] .node-label::after {
  content: " |";
  position: absolute;
  right: 0;
  top: 0;
}

@media (max-width: 700px) {
  .stage[data-node-layout="spreadsheet"] {
    padding: 16px;
  }

  .stage[data-node-layout="spreadsheet"] .node-field {
    font-size: 12px;
  }
}

.root {
  font-weight: 700;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 28px;
  padding: 32px;
}

.back-link {
  position: fixed;
  top: 22px;
  left: 22px;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
  outline: 0;
}

.page-art {
  width: min(100%, 560px);
  margin: 0;
  overflow: auto;
  font: 16px/16px var(--ocr-font);
}

.page-meta {
  margin: -14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.shows-page {
  align-content: start;
  padding-top: clamp(86px, 16vh, 140px);
}

.shows-list {
  width: min(100%, 780px);
  min-height: 360px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.venue-link {
  text-decoration: none;
}

.venue-link:hover,
.venue-link:focus-visible {
  text-decoration: underline;
  outline: 0;
}

.venue-link.is-linked {
  font-weight: bolder;
  text-decoration: underline;
  padding: 0 0.2em;
}

.contact-page {
  align-content: start;
  padding-top: clamp(86px, 16vh, 140px);
}

.contact-form {
  width: min(100%, 520px);
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea,
.contact-form button {
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.35 var(--ocr-font);
  letter-spacing: 0;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
}

.contact-form button {
  padding: 10px 12px;
  cursor: pointer;
}

.stage.gallery-stage {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 24px;
  background: #000;
}

.gallery-sheet {
  position: relative;
  z-index: 2;
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: max-content minmax(260px, 1fr);
  align-items: center;
  justify-content: center;
  gap: 1.35em 3ch;
  color: var(--line);
  font: 16px / 1.35 var(--ocr-font);
}

.gallery-table {
  width: max-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--line);
  transform-origin: top left;
  will-change: transform;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease;
}

.gallery-table::before,
.gallery-table::after {
  display: block;
  background: #000;
  color: white;
  white-space: pre;
}

.gallery-table::before {
  content: "+----+----------------------+----------+\A| ID | FILE                 | VIEW     |\A+----+----------------------+----------+";
}

.gallery-table::after {
  content: "+----+----------------------+----------+";
}

.gallery-row {
  width: auto;
  display: grid;
  grid-template-columns: 6ch 23ch 11ch;
  padding: 0;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  text-align: left;
  text-transform: uppercase;
  background: #000;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}

.gallery-row::before {
  content: "| " attr(data-row) " |";
}

.gallery-row:hover,
.gallery-row:focus-visible,
.gallery-row.is-active {
  color: #000;
  background: var(--ink);
  outline: 0;
}

.gallery-preview {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 0.7em;
  color: var(--ink);
  transform-origin: top left;
  will-change: transform;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease,
    filter 180ms ease;
}

.gallery-preview-title,
.gallery-preview-caption {
  width: max-content;
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  background: #000;
  color: var(--line);
  text-transform: uppercase;
}

.gallery-preview-title::before {
  content: "FILE ";
  color: var(--muted);
}

.gallery-preview-caption {
  line-height: 1.35;
}

.gallery-preview-frame {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1;
  padding: 14px;
  background: #000;
  overflow: hidden;
}

.gallery-preview-media {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.gallery-preview-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: grayscale(0.08) contrast(1.08);
  transform: scale(1.01);
  transition:
    opacity 180ms ease,
    filter 220ms ease,
    transform 260ms ease;
}

.gallery-preview.is-swapping .gallery-preview-media img {
  opacity: 0.42;
  filter: grayscale(1) contrast(0.96);
  transform: scale(0.985);
}

.gallery-card-border {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 0;
  overflow: hidden;
  color: var(--line);
  font: 14px/14px var(--ocr-font);
  white-space: pre;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 700px) {
  .stage {
    padding-top: 7vh;
  }

  .ascii-layer {
    --bg-text-size: 16px;
  }

  .node {
    padding: 0;
  }

  .stage.gallery-stage {
    padding: 16px;
  }

  .gallery-sheet {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
    font-size: 12px;
  }

  .gallery-preview-frame {
    width: min(100%, 360px);
    padding: 10px;
  }
}
