/* Fonts. */

@font-face
{
	src: url("/assets/fonts/Typ.ttf");
	font-family: "Typ";

	font-style: normal;
	font-weight: 400;
}

/* Base. */

html
{
	font-size: 18px;
}

body
{
	background-color: #000000;
	color: #ffffff;
	font-family: "typ", monospace;
	line-height: 1.2ch;
	margin: 0 auto;
	max-width: calc(100% - 2ch); /* Considering double padding. */
	width: 32ch;
	overflow-wrap: break-word;
	padding: 0 1ch;
}

*
{
	border-color: #808080;
	border-width: 0.2ch;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: normal;
	padding: 0;
	margin: 0;
}

*::before
{
	color: #808080;
}

/* General. */

h1,
h2
{
	color: #808080;
	margin: 2ch 0;
	text-transform: uppercase;
}

h1
{
	text-align: right;
}

blockquote,
ol,
p,
pre,
ul
{
	margin: 1ch 0;
}

blockquote,
pre
{
	border-left-style: solid;
	padding-left: calc(1ch - 0.2ch); /* Considering border width. */
	overflow-x: scroll;
}

pre::before
{
	content: "CODE";
	display: block;
	margin-bottom: 1ch;
}

ol,
ul
{
	padding: 0;
}

li
{
	list-style-type: none;
	padding-left: 2ch;
	position: relative;
}

li::before
{
	content: "-";
	left: 0;
	position: absolute;
	top: 0;
}

hr
{
	border-style: none;
	border-bottom-style: solid;
	margin: 2ch 0;
	width: 100%;
}

a
{
	color: #4fd970;
	text-decoration: none;
}

img
{
	border-style: solid;
	max-width: calc(100% - (2 * 1ch)); /* Considering double padding. */
	padding: 1ch;
	width: 24ch;
}

/* Specific. */

footer
{
	align-items: flex-end;
	display: flex;
	flex-direction: column;
	margin: 2ch 0;
}
