@font-face {
  font-family: 'blockzone';
  src: url('/fonts/BlockZone.ttf') format('truetype');
  font-display: block;
}

:root {
  --color-electric-green: #d0fe4b;
  --color-trunk: #655c49;
  --color-hell-red: #fb5266;
  --color-stone: #b3a399;
  --color-black: #000;
  --color-white: #fff;
  --color-console-text: #ddd;
  --color-console-bg: #000;
}

:where(*) {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: blockzone, monospace;
  text-rendering: geometricPrecision;
  font-kerning: none;

  line-height: 1em;
}

body {
  display: flex;
  margin: 0;
  padding: 0;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;

  background: #0f7a78;
}

:where(h1, h2, h3, h4, h5, h6, p, ul, ol, a, button, input) {
  color: inherit;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  text-rendering: geometricPrecision;
  font-kerning: none;
}

:where(h1, h2, h3, h4, h5, h6) {
  margin-bottom: 1lh;
}

:where(ul li) {
  list-style-type: '- ';
}

:where(li) {
  list-style-position: inside;
}

:where(button, input) {
  border: 0;
  padding: 0;

  background: inherit;

  color: inherit;
  font-family: inherit;
  text-align: left;
  text-rendering: geometricPrecision;
  font-kerning: none;
}

a:focus,
button:focus {
  outline: none;

  background: var(--color-hell-red) !important;
  color: black !important;
}

:where(img) {
  image-rendering: pixelated;
}

:where(.box) {
  position: relative;

  display: flex;
  padding: 1lh 1ch;
  min-width: 2ch;
  min-height: 2lh;
}

:where(.box)::before {
  position: absolute;
  inset: calc(0.5lh - (var(--border-width, 0.3lh) / 2)) calc(0.5ch - (var(--border-width, 0.3lh) / 2));

  display: block;
  border: var(--border-width, 0.3ch) solid var(--border-color, currentColor);

  content: '';
  pointer-events: none;
}

.box-1 {
  --border-width: 0.2ch;
}

.box-2 {
  --border-width: 0.3ch;
}

.box-3 {
  --border-width: 0.5ch;
}

:where(.bg-inner) {
  background-clip: content-box;
}

.content-wrapper {
  display: contents;
}

.side-navigation {
  display: flex;
  padding: 3lh 1ch 3lh 3ch;
  width: 25ch;
  height: 100%;
  flex: 0 0 25ch;

  gap: 3lh;
  flex-flow: column nowrap;
  justify-content: flex-start;
  align-items: flex-start;
}

.side-navigation::before {
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
}

.side-navigation button.active {
  color: var(--color-electric-green);
}

.side-navigation button.active::before {
  content: '>\00a0';
}

section {
  position: relative;

  display: none;
  padding: 1lh 3ch;
  width: 55ch;
  height: 100%;
  flex: 0 0 55ch;
}

section.visible {
  display: block;
}

section > p + p {
  margin-top: 1lh;
}

.console-frame {
  overflow: hidden;
  flex: 1 1 auto;
  aspect-ratio: 1.32;
  width: 100vw;
  max-width: 132vh;
  max-height: 100vh;

  background: var(--color-console-bg);
  border: 5px ridge #888;

  color: var(--color-console-text);

  container-type: size;
}

.console-inner {
  position: relative;

  display: grid;
  overflow: hidden;
  width: 80ch;
  height: 34lh;
  grid-template: auto 1fr 2lh / 80ch;

  color: var(--color-console-text);
  font-size: 2.94cqh;
  line-height: 1em;
}

.app {
  display: flex;
  overflow: hidden;

  flex-flow: row wrap;
  justify-content: flex-start;
  align-items: flex-start;
  align-content: flex-start;
}
