:root {
	--white: #fff;
	--light: #f4f4f4;
	--cyan: #509c93;
	--light-gray: #eee;
	--medium-gray: #ddd;
	--gray: #6a6a6a;
	--dark: #444;
	--darker: #222;

	--link-color: #0A70A0;
	--foreground-color: #333333;
	--background-color: #f3f3f3;
	--accent-yellowish: #fbe7c6;
	--accent-greenish: #b4f8c8;
	--accent-reddish: #ffaebc;

	/*--display-font: -apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Segoe UI", sans-serif;*/
	/*--mono-font: 'SF Mono', SFMono-Regular, ui-monospace, 'DejaVu Sans Mono', 'Roboto Mono', Menlo, Consolas, monospace;*/

	--sans-font: "Noto Sans", sans-serif;
	--mono-font: "IBM Plex Mono", monospace;
}

@media (prefers-color-scheme: dark) {
	:root {
		color-scheme: dark light;
		--light: #181818;
		--cyan: #76c7c0;
		--light-gray: #333;
		--medium-gray: #444;
		--gray: #aaa;
		--dark: #ddd;
		--darker: #f4f4f4;
		--white: #000;
	}
}

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

body {
	font-family: var(--sans-font);
}

h1 {
	font-family: var(--mono-font);
	white-space: pre-wrap;
}

ul, ol {
	list-style-position: inside;
	padding-left: 1em;
}

a:link,
a:visited {
	color: var(--link-color);
}

.background {
	background:
		linear-gradient(13deg, var(--accent-yellowish), rgba(0, 0, 0, 0)),
		linear-gradient(125deg, var(--accent-greenish), rgba(0, 0, 0, 0)),
		linear-gradient(242deg, var(--accent-reddish), rgba(0, 0, 0, 0));
	height: 100svh;
	width: 100svw;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
}

.scrollbox {
	overflow: auto;
	height: 100svh;
	width: 100svw;
	padding: 40px 20px;
	position: absolute;
	z-index: 0;
}

.container {
	position: relative;
	background-color: rgba(255, 255, 255, 0.7);
	border-radius: 15px;
	margin: 0 auto;
	padding: 30px;
	max-width: 800px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	z-index: -1;
	overflow: hidden;
}

.container-art {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 10rem;
	width: 10rem;
	z-index: -1;
	mask-image: url('art.svg');
	mask-size: contain;
	background-color: #0e0e0e10;
	pointer-events: none;
}

.nav ul,
.ref-nav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	list-style-type: none;
	padding: 15px 0;
}

.nav {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	white-space: nowrap;
	margin-bottom: 20px;
}

.nav-ref ul,
.nav-repo ul {
	display: contents;
}

.nav-repo,
.nav-ref {
	display: grid;
	gap: 20px;
	margin: 10px 30px;
}

.nav-repo {
	grid-template-columns: auto auto auto auto;
}

.nav-ref {
	grid-template-columns: auto auto auto;
	margin-left: auto;
}

.nav-repo ul li,
.nav-ref ul li {
	font-family: var(--mono-font);
	text-align: center;
}

.header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px 40px;
	flex-wrap: wrap;
	margin-bottom: 40px;
	container-name: header;
	container-type: inline-size;
}

.header img {
	width: 150px;
	height: 150px;
	border-radius: 50%;
}

.header-text {
	flex: 0 1 0%;
}

.header h1, .header p {
	font-family: var(--mono-font);
	white-space: pre-wrap;
}

.header h1 {
	font-size: 2.5em;
	margin-bottom: 10px;
	white-space: pre;
}

@keyframes blink-animation {
	0%, 49% {
		visibility: hidden;
	}
	50%, 100% {
		visibility: visible;
	}
}

.header p {
	font-size: 1.2em;
	color: #666;
}

.cursor-blinky::after {
	content: '_';
	animation: blink-animation 1s infinite;
}

.mode, .size {
	white-space: pre;
	font-family: var(--mono-font);
}

.tree-container {
	container-name: tree-container;
	container-type: inline-size;
}

.tree {
	display: grid;
	grid-template-columns: min-content min-content 1fr;
	background-color: transparent;
	gap: 5px 10px;
	border: none;
	overflow-x: scroll;
}

@container tree-container (width < 500px) {
	.tree {
		grid-template-columns: 1fr;
	}
	.mode, .size {
		display: none;
	}
}

.log-commit,
.file-wrapper,
.tree,
.index-entry,
.diff {
	padding: 15px;
	margin-bottom: 15px;
	background-color: rgba(200, 200, 200, 0.7);
	border-radius: 10px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.file-wrapper {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px;
	align-items: baseline;
}

.index-desc {
	grid-column-start: 1;
	grid-column-end: 2;
}

.index {
	display: grid;
	grid-template-rows: auto;
	grid-template-columns: 1fr auto;
}

.file-content {
	overflow-x: scroll;
}

.line-numbers {
	text-align: right;
}

.commit-message,
.index-desc,
.readme pre code,
.clone-url pre,
.diff pre {
	font-family: var(--mono-font);
	color: var(--foreground-color);
	white-space: pre-wrap;
	font-size: 14px;
	margin-bottom: 10px;
	background-color: var(--background-color);
	padding: 10px;
}

.ref,
.commit-hash {
	background-color: #b4f8c8;
	padding: 0.2em;
	border-radius: 0.5em;
	border: none;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.commit-hash {
	display: inline-block;
	float: right;
	margin: 0 0 10px 10px;
}

.commit-info {
	display: grid;
	clear: both;
	grid-template-columns: auto 1fr auto;
	gap: 20px;
	align-items: baseline;
	margin-top: 1em;
}

.commit-date {
	font-family: var(--mono-font);
	font-size: 14px;
}

.readme {
	line-height: 1.5;
}

.readme p,
.readme h1,
.readme h2,
.readme h3,
.readme h4,
.readme ul,
.readme ol,
.readme pre {
	margin-bottom: 0.5em;
}

.readme h1,
.readme h2 {
	margin-top: 1em;
}

.readme h3,
.readme h4 {
	margin-top: 0.5em;
}

.readme pre code,
.clone-url pre {
	display: block;
	margin: 15px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.commit {
	margin-bottom: 30px;
}

.commit .commit-hash {
	float: none;
}

.diff-add {
	background-color: var(--accent-greenish);
}

.diff-del {
	background-color: var(--accent-reddish);
}

.refs,
.chroma-file-wrapper,
.diff-type {
	border: 1px solid red;
	background-color: blue;
}

