*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --font-family: monospace;
  --line-height: 1.20rem;
  --border-thickness: 2px;
  --text-color: #f2f2f2;
  --text-color-alt: #bbb;
  --background-color: #010101;
  --background-color-alt: #111;

  --font-weight-normal: 500;
  --font-weight-medium: 600;
  --font-weight-bold: 800;

  font-family: var(--font-family);
  font-optical-sizing: auto;
  font-weight: var(--font-weight-normal);
  font-style: normal;
  font-variant-numeric: tabular-nums lining-nums;
  font-size: 1rem;
}

html {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  flex-direction: column;
  align-items: center;
  background: var(--background-color);
  color: var(--text-color);
}

body {
  position: relative;
  width: 100%;
  margin: 0;
  padding: var(--line-height) 2ch;
  max-width: calc(min(105ch, round(down, 100%, 1ch)));
  line-height: var(--line-height);
  overflow-x: hidden;
}

.container {
  overflow: hidden;
}

@media screen and (max-width: 480px) {
  body {
    padding: 1ch;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-bold);
  margin: calc(var(--line-height)) 0 calc(0.5 * var(--line-height));
  line-height: var(--line-height);
  font-size: 1rem;
  text-transform: uppercase;
}

h1 {
  font-size: 2rem;
  line-height: calc(2 * var(--line-height));
}

a:link,
a:visited {
  color: var(--text-color);
}

a:hover {
  color: var(--text-color-alt);
}

p {
  margin-top: calc(0.5 * var(--line-height));
  margin-bottom: var(--line-height);
}

strong {
  font-weight: var(--font-weight-bold);
}

table {
  position: relative;
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: var(--border-thickness) solid var(--text-color);
  padding:
    calc((var(--line-height) / 2)) calc(1ch - var(--border-thickness) / 2) calc((var(--line-height) / 2) - (var(--border-thickness)));
  line-height: var(--line-height);
  vertical-align: top;
  text-align: left;
}

th {
  font-weight: 700;
}

.width-min {
  width: 0%;
}

.width-auto {
  width: 100%;
}

.header {
  margin-top: var(--line-height);
}

.header h1 {
  margin: 0;
}

.header tr td:last-child {
  text-align: right;
}

img,
video {
  display: block;
  width: 100%;
  object-fit: contain;
  overflow: hidden;
}

figure pre {
  margin: 0;
}

pre {
  font-family: var(--font-family);
}

time {
  font-weight: normal;
}

figure {
  margin: calc(var(--line-height)) 0;
  overflow-x: auto;
  overflow-y: hidden;
}

figcaption {
  display: block;
  font-style: italic;
  margin-top: calc(var(--line-height) / 2);
  margin-bottom: calc(var(--line-height) / 2);
}

button {
  border: var(--border-thickness) solid var(--text-color);
  padding:
    calc(var(--line-height) / 2 - var(--border-thickness)) calc(1ch - var(--border-thickness));
  margin: 0;
  font: inherit;
  font-weight: inherit;
  background: var(--background-color);
  color: var(--text-color);
}

button:focus {
  --border-thickness: 3px;
  outline: none;
}

button {
  text-transform: uppercase;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

button:hover {
  background: var(--background-color-alt);
}

button:active {
  transform: translate(2px, 2px);
}

.header-grid {
  background: repeating-linear-gradient(to right,
      var(--background-color),
      var(--background-color) calc(1.003ch - var(--border-thickness) / 2),
      var(--text-color) calc(1.003ch - var(--border-thickness) / 2),
      var(--text-color) calc(1.003ch + var(--border-thickness) / 2));
  height: var(--line-height);
}

.footer-grid {
  height: var(--line-height);
}

.header-gradient {
  background: repeating-linear-gradient(to right,
      var(--background-color),
      var(--text-color));
  height: var(--line-height);
}

.footer-gradient {
  background: repeating-linear-gradient(to right,
      var(--text-color),
      var(--background-color));
  height: var(--line-height);
}

.separation td {
  border: 0px solid var(--background-color);
}

.separation {
  width: 100%;
  margin-bottom: calc(2 * var(--line-height));
  margin-top: calc(2 * var(--line-height));
}

ul {
  padding: 0 0 0 2ch;
  list-style-type: square;
}

ul li {
  margin: calc(0.25 * var(--line-height));
}

::-webkit-scrollbar {
  width: 1ch;
  height: 1ch;
}

::-webkit-scrollbar-track {
  background: var(--background-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--text-color);
  border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-alt);
}

code {
  border-left: 2px solid var(--text-color);
  padding: 0 0 1ch 1ch !important;
}

.code-tornado {
  font-size: 0.75rem;
  line-height: 1rem;
}