/* zqpvr.net: one column of text on black. */

:root {
  --bg: #000;
  --text: #d6d6d6;
  --bright: #fff;
  --muted: #6e6e6e;
  --line: #222;
  --up: #3ddc84;
  --down: #ff5f56;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.7 ui-monospace, "JetBrains Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
}

main {
  max-width: 40rem;
  margin: 0 auto;
  padding: 4rem 1.25rem 3rem;
}

a {
  color: var(--bright);
  text-decoration: underline;
  text-decoration-color: #444;
  text-underline-offset: 3px;
}

a:hover, a:focus-visible {
  text-decoration-color: var(--bright);
  outline: none;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.name {
  font-weight: 700;
  color: var(--bright);
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1.3rem;
  margin-top: 0.6rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
}

nav a:hover, nav a:focus-visible, nav a[aria-current] {
  color: var(--bright);
}


section {
  margin-top: 2.6rem;
}

h2 {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0.08em;
}

p {
  margin: 0.3rem 0;
}

h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--bright);
}

.steps {
  margin: 0.8rem 0;
  padding-left: 1.4rem;
}

.steps li {
  margin: 0.3rem 0;
}

.table {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

th, td {
  padding: 0.45rem 0.8rem 0.45rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  white-space: nowrap;
}

td small {
  display: block;
  white-space: normal;
}

.specs {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.3rem 1rem;
  margin: 0;
}

.specs dt {
  color: var(--muted);
}

.specs dd {
  margin: 0;
}

.disks {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.disks li {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.25rem 0;
}

.bar {
  height: 0.45rem;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--text);
}

.muted, .quiet, small, .detail {
  color: var(--muted);
}

.row {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  gap: 0.5rem;
  align-items: baseline;
}

code {
  font: inherit;
  color: var(--bright);
}

.copy {
  font: inherit;
  font-size: 0.8rem;
  padding: 0 0.5rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.copy:hover, .copy:focus-visible {
  color: var(--bright);
  border-color: var(--muted);
  outline: none;
}

.up, .down {
  color: var(--bright);
}

.up::before, .down::before {
  content: "●";
  margin-right: 0.4em;
  font-size: 0.75em;
  vertical-align: 0.1em;
}

.up::before {
  color: var(--up);
}

.down::before {
  color: var(--down);
}







.hub {
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.hub li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.hub li:last-child {
  border-bottom: 0;
}

.hub a {
  font-size: 1.15rem;
  text-decoration: none;
}

.hub a::after {
  content: " →";
  color: var(--muted);
}

.hub a:hover, .hub a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.players {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.player {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.8rem 0.3rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--bright);
}

.face {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 3px;
  color: #fff;
  font-weight: 700;
}

.tag {
  padding: 0 0.35rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 0.7rem;
}

footer {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.8rem;
}

@media (max-width: 30rem) {
  thead {
    display: none;
  }
  tr {
    display: flex;
    flex-wrap: wrap;
    gap: 0 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
  }
  td {
    padding: 0;
    border: 0;
  }
  td:first-child {
    flex-basis: 100%;
    margin-bottom: 0.2rem;
  }
  td[data-label]:not(.up):not(.down)::before {
    content: attr(data-label) " ";
    color: var(--muted);
  }
  .specs, .disks li {
    grid-template-columns: 1fr;
    gap: 0 1rem;
  }
  .specs dd {
    margin-bottom: 0.4rem;
  }
  main {
    padding-top: 2.5rem;
  }
  .row {
    grid-template-columns: 1fr auto;
  }
  .row b {
    grid-column: 1 / -1;
  }
}

form {
  display: grid;
  gap: 1rem;
  margin: 0.8rem 0 0;
}

label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

input, textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #000;
  color: var(--bright);
  font: inherit;
  font-size: 16px;
}

input:focus-visible, textarea:focus-visible {
  border-color: var(--muted);
  outline: none;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

.send {
  justify-self: start;
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--muted);
  border-radius: 3px;
  background: none;
  color: var(--bright);
  font: inherit;
  cursor: pointer;
}

.send:hover, .send:focus-visible {
  border-color: var(--bright);
  outline: none;
}

.trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.handle {
  text-decoration: underline;
  text-decoration-color: #444;
  text-underline-offset: 6px;
}

/* The file host: its upload form and each file's page. */
select {
  display: block;
  margin-top: 0.3rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #000;
  color: var(--bright);
  font: inherit;
}

input[type=file] {
  border: 0;
  padding: 0.3rem 0;
}

.preview {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  margin: 0.8rem 0;
}

pre.preview {
  overflow: auto;
  padding: 0.8rem;
  border: 1px solid var(--line);
  white-space: pre-wrap;
  word-break: break-word;
}

.specs dd a {
  word-break: break-all;
}

.check {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.check input {
  display: inline;
  width: auto;
  margin: 0;
}

#text {
  max-height: none;
}
