/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	/*margin: 0;*/
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ------------------------------------------------------------------------ */

 @font-face {
  font-family: 'JetBrainsMonoLite';
  src: url('mono.woff2') format('woff2');
  font-display: swap;
}

:root {
  --font-family: 'JetBrainsMonoLite', monospace;
  --border-thickness: 2px;
  --text-color: #000000ff;
  --text-color-alt: #666;
  --background-color: #fff0;
  --background-color-alt: #eee;

  --font-weight-normal: 500;
  --font-weight-medium: 600;
  --font-weight-bold: 800;

  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  font-style: normal;
  line-height: 2ch;
  font-variant-ligatures: none;
}


@media screen and (max-width: 767px) {
  :root {
    font-size: 4vmin;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --text-color: #ffffffff;
    --text-color-alt: #aaa;
    --background-color: #000;
    --background-color-alt: #111;
  }
}

* {
  box-sizing: border-box;
}

html {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--background-color);
  color: var(--text-color);
}

body {
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: 120ch;
  line-height: 2ch;
}

input, button, textarea {
  border: var(--border-thickness) solid var(--text-color);
  margin: 0;
  font: inherit;
  font-weight: inherit;
  height: 3ch;
  width: auto;
  overflow: visible;
  background: var(--background-color);
  color: var(--text-color);
  line-height: normal;
}

input[type=checkbox],
input[type=radio] {
  display: inline-grid;
  place-content: center;
  vertical-align: bottom;
  width: 3ch;
  height: 2ch;
  cursor: pointer;
}
input[type=checkbox]:checked:before,
input[type=radio]:checked:before {
  content: "";
  width: 1ch;
  height: 2ch;
  background: var(--text-color);
}

button:focus, input:focus, textarea:focus {
  outline: 1px solid var(--text-color);
}

button {
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

button:hover {
  background: var(--background-color-alt);
}
button:active {
  transform: translate(2px, 2px);
}

hr {
  border: none;
  height: 2ch;
  width: 100%;
  margin: 0;
}