:root {
  color-scheme: dark;
  --ink: #f2f2f2;
  --dim: #8a8a8a;
  --paper: #000;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  gap: 16px;
}

/* 96 columns by 48 rows: sized so the whole grid fits the viewport. */
.screen {
  margin: 0;
  font-size: min(1.6vw, 1.45vh);
  line-height: 1.2;
  letter-spacing: 0;
  user-select: none;
  overflow: hidden;
}

.status {
  margin: 0;
  color: var(--dim);
}

.bait {
  width: min(100%, 36ch);
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--dim);
  font: inherit;
  text-align: center;
}

.bait:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

section {
  width: min(100%, 80ch);
}

section h2 {
  margin: 0 0 6px;
  font-size: inherit;
  font-weight: normal;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

section pre {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

footer {
  width: min(100%, 80ch);
  color: var(--dim);
  padding-bottom: 24px;
}

a {
  color: var(--ink);
}

.twin {
  max-width: 80ch;
  text-align: center;
}

.twin h1 {
  font-size: inherit;
  font-weight: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.twin section {
  text-align: left;
  margin: 0 auto;
}

.muted {
  color: var(--dim);
}

.small {
  font-size: 0.85em;
}

.upload,
.signin input[type="submit"],
.link button {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--dim);
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.upload input[type="file"] {
  display: none;
}

.signin {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.signin input[type="text"] {
  padding: 8px 10px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--dim);
  font: inherit;
}
