/* from assets/style.css */

:root {
	--bg: #2f2f2f;
	--fg: #f8fafb;
	--orange: #f8894b;
	--pink: #ff71ad;
	--purple: #d88bff;
	--blue: #57a1ff;
	--green: #6cf849;
	--yellow: #f8d249;
	--cyan: #49f8f5;
	--gray: #919191;
	--boxshadow: 0 0.4rem 1rem -0.1rem rgba(0,0,0,0.15);
	--boxshadow_border: 0.08rem solid #414248;
}
/* normalize */
/*! modern-normalize v1.1.0 | MIT License | https://github.com/sindresorhus/modern-normalize */
/*
Document
========
*/
/**
Use a better box model (opinionated).
*/
*,
::before,
::after {
	box-sizing: border-box;
}
/**
Use a more readable tab size (opinionated).
*/
html {
	-moz-tab-size: 4;
	-o-tab-size: 4;
	   tab-size: 4;
}
/**
1. Correct the line height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
	line-height: 1.15; /* 1 */
	-webkit-text-size-adjust: 100%; /* 2 */
}
/*
Sections
========
*/
/**
Remove the margin in all browsers.
*/
body {
	margin: 0;
}
/**
Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
*/
body {
	font-family:
		system-ui,
		-apple-system, /* Firefox supports this but not yet `system-ui` */
		'Segoe UI',
		Roboto,
		Helvetica,
		Arial,
		sans-serif,
		'Apple Color Emoji',
		'Segoe UI Emoji';
}
/*
Grouping content
================
*/
/**
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
*/
hr {
	height: 0; /* 1 */
	color: inherit; /* 2 */
}
/*
Text-level semantics
====================
*/
/**
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr[title] {
	-webkit-text-decoration: underline dotted;
	        text-decoration: underline dotted;
}
/**
Add the correct font weight in Edge and Safari.
*/
b,
strong {
	font-weight: bolder;
}
/**
1. Improve consistency of default fonts in all browsers. (https://github.com/sindresorhus/modern-normalize/issues/3)
2. Correct the odd 'em' font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
	font-family:
		ui-monospace,
		SFMono-Regular,
		Consolas,
		'Liberation Mono',
		Menlo,
		monospace; /* 1 */
	font-size: 1em; /* 2 */
}
/**
Add the correct font size in all browsers.
*/
small {
	font-size: 80%;
}
/**
Prevent 'sub' and 'sup' elements from affecting the line height in all browsers.
*/
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}
sub {
	bottom: -0.25em;
}
sup {
	top: -0.5em;
}
/*
Tabular data
============
*/
/**
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
*/
table {
	text-indent: 0; /* 1 */
	border-color: inherit; /* 2 */
}
/*
Forms
=====
*/
/**
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
	font-family: inherit; /* 1 */
	font-size: 100%; /* 1 */
	line-height: 1.15; /* 1 */
	margin: 0; /* 2 */
}
/**
Remove the inheritance of text transform in Edge and Firefox.
1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
	text-transform: none;
}
/**
Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type='button'],
[type='reset'],
[type='submit'] {
	-webkit-appearance: button;
}
/**
Remove the inner border and padding in Firefox.
*/
::-moz-focus-inner {
	border-style: none;
	padding: 0;
}
/**
Restore the focus styles unset by the previous rule.
*/
:-moz-focusring {
	outline: 1px dotted ButtonText;
}
/**
Remove the additional ':invalid' styles in Firefox.
See: https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737
*/
:-moz-ui-invalid {
	box-shadow: none;
}
/**
Remove the padding so developers are not caught out when they zero out 'fieldset' elements in all browsers.
*/
legend {
	padding: 0;
}
/**
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
	vertical-align: baseline;
}
/**
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
	height: auto;
}
/**
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type='search'] {
	-webkit-appearance: textfield; /* 1 */
	outline-offset: -2px; /* 2 */
}
/**
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
	-webkit-appearance: none;
}
/**
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to 'inherit' in Safari.
*/
::-webkit-file-upload-button {
	-webkit-appearance: button; /* 1 */
	font: inherit; /* 2 */
}
/*
Interactive
===========
*/
/*
Add the correct display in Chrome and Safari.
*/
summary {
	display: list-item;
}
/* highlight.js theme */
.hljs {
	display: block;
	overflow-x: auto;
	padding: .5em;
}
.prismjs {
	color: var(--pink);
}
.react-syntax-highlighter-line-number,
.token.punctuation,
.token.operator {
	color: var(--fg);
}
.token.maybe-class-name,
.token.class-name {
	color: var(--yellow);
}
.hljs-comment,
.hljs-quote,
.token.comment {
	color: var(--gray);
	font-style: italic
}
.hljs-doctag,
.hljs-formula,
.hljs-keyword,
.token.keyword,
.token.string {
	color: var(--purple)
}
.hljs-deletion,
.hljs-name,
.hljs-section,
.hljs-selector-tag,
.hljs-subst {
	color: var(--pink)
}
.hljs-literal {
	color: var(--cyan);
}
.hljs-addition,
.hljs-attribute,
.hljs-meta-string,
.hljs-regexp,
.hljs-string {
	color: var(--green);
}
.hljs-built_in,
.hljs-class .hljs-title {
	color: var(--yellow);
}
.hljs-attr,
.hljs-number,
.hljs-selector-attr,
.hljs-selector-class,
.hljs-selector-pseudo,
.hljs-template-variable,
.hljs-type,
.hljs-variable,
.token.property-access {
	color: var(--orange)
}
.hljs-bullet,
.hljs-link,
.hljs-meta,
.hljs-selector-id,
.hljs-symbol,
.hljs-title,
.token.function {
	color: var(--blue)
}
.hljs-params {
	color: var(--pink);
}
.hljs-emphasis {
	font-style: italic
}
.hljs-strong {
	font-weight: 700
}
.hljs-link {
	text-decoration: underline
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	src: url("./Atkinson-Hyperlegible-Regular.woff2") format("woff2");
	font-weight: 400;
  font-style: normal;
}
@font-face {
	font-family: "Fantasque Sans Mono";
	src: url(./FantasqueSansMono-Regular.woff2) format("woff2");
	font-weight: 400;
  font-style: normal;
}
html, body {
	margin: 0;
	padding: 0;
}
html {
	background: repeating-linear-gradient(180deg, var(--orange), var(--pink), var(--purple), var(--blue));
	/* background: #333; */
	background-size: 100vw 100%;
	min-height: 100vh;
}
body {
	/* background: hsla(0, 0%, 0%, 0.3); */
	background: url("./bg.webp") repeat;
	background-size: 2048px;
	image-rendering: -moz-crisp-edges;
	image-rendering: pixelated;
	font-family: "Atkinson Hyperlegible", sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100vw;
}
canvas {
	position: absolute;
	top: 0;
	z-index: -1;
}
header {
	display: flex;
	justify-content: space-between;
	width: 100%;
}
header a {
		color: var(--bg);
		border-bottom: 0.3rem solid var(--blue);
		justify-self: center;
		align-self: end;
		align-self: center;
		font-size: 2.5rem;
		line-height: 3rem;
		font-weight: bold;
		text-decoration: none;
	}
header a:hover {
			color: var(--blue);
			cursor: pointer;
		}
header .img {
		justify-self: center;
		align-self: center;
		width: 100%;
		height: 100%;
		margin: 0 1rem;
		border: none;
	}
header .img img {
			-o-object-fit: contain;
			   object-fit: contain;
			height: 100%;
			width: 100%;
			max-height: 16rem;
		}
body > #bar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: 0.3rem;
}
body > #bar #progress {
		height: 100%;
		background: var(--blue);
		width: 0;
		transition: 0.1s;
	}
main {
	display: flex;
	margin-top: 2rem;
	flex-direction: column;
	box-sizing: border-box;

	max-width: 70%;
	max-width: 80ch;
	width: 100%;
	margin: 1rem;
	min-height: 100vh;
	color: var(--fg);
	line-height: 1.6em;
	font-size: 1.2rem;
}
main header {
		background: transparent;
		margin-top: 0.5rem;
		padding-bottom: 0;
	}
main > * {
		background: var(--bg);
		padding: 1.8rem;
		padding-top: 0;
		margin: 0;
		margin-top: -1rem;
		--br: 0.5rem;
	}
main > *:first-child {
			border-top-left-radius: var(--br);
			border-top-right-radius: var(--br);
		}
main > *:last-child {
			border-bottom-left-radius: var(--br);
			border-bottom-right-radius: var(--br);
		}
main header + h1 {
		padding-top: 1.6rem;
		color: var(--pink);
	}
main ul {
		padding-left: 3rem;
	}
main .blockquote {
		padding: 0;
		margin-bottom: 0.5rem;
	}
main blockquote {
		margin: 0 2rem;
		border-left: 0.2rem solid var(--purple);
		padding-left: 0.8rem;
		font-style: italic;
	}
main h1, main footer {
		margin-bottom: 1rem;
		padding-top: 2.5rem;
		padding-bottom: 1rem;
		margin-top: 1rem;
	}
main h2,main h3,main h4 {
		padding-top: 1.5rem;
		margin-top: -1.5rem;
	}
main img {
		width: 100%;
		height: 100%;
	}
main img.contained {
		max-height: 16rem;
		-o-object-fit: contain;
		   object-fit: contain;
	}
* ~ .blockquote {
	margin-top: -2rem;
}
.codeblock {
	/* padding: 0.2rem; */
	display: flex;
	flex-direction: column;
	/* width: calc(100% + 2rem); */
	margin-left: -1.5rem;
	margin-right: -1.5rem;
}
.codeblock > span {
		color: var(--color6);
	}
/* Code Block Styling */
pre.hljs, pre.prismjs {
	background: hsla(0, 0%, 0%, 0.1);
	box-sizing: border-box;
	text-transform: initial;
	overflow-x: auto;
	display: inline-flex;
	margin: 0;
	padding: 0;
}
pre.hljs .codeblock-content > code, pre.prismjs .codeblock-content > code { /* line numbers */
		border-right: 0.2rem solid var(--pink);
		padding-right: 0.45rem !important;
		margin-right: 0.6rem;
		float: none;
	}
code, pre {
	/* color: $pink; */
	font-size: 1rem;
	font-family: "Fantasque Sans Mono", "DejaVu Sans Mono", monospace;
}
.projects > a {
		display: block;
		color: var(--fg);
		background: hsla(0, 0%, 0%, 0.3);
		padding: 1rem;
		margin-bottom: 0.4rem;
		text-decoration: none;
	}
.projects > a:hover {
			background: hsla(0, 0%, 0%, 0.12);
		}
.projects h2 {
		margin: 0;
		padding-top: 0;
	}
.projects .tags {
		color: var(--pink);
		display: flex;
		gap: 0.5rem;
	}
h1 {
	color: var(--orange);
	font-size: 2.5rem;
	line-height: 2.8rem;
}
h2 {
	color: var(--purple);
}
h3 {
	color: var(--pink);
}
a {
	color: var(--blue);
}
#color1 {
	color: var(--purple);
}
#color2 {
	color: var(--pink);
}
#color3 {
	color: var(--orange);
}
#color4 {
	color: var(--green);
}
#color5 {
	color: var(--yellow);
}
#color6 {
	color: var(--cyan);
}
#color7 {
	color: var(--gray);
}
@media screen and (max-width: calc(80ch + 15rem)) {
	main {
		width: 100%;
		padding: 1rem;
		margin-top: -1rem;
	}
}


