@font-face {
	font-family: "JetBrains Mono";
	src: url("../fonts/JetBrainsMono-VariableFont_wght.ttf") format("truetype-variations");
	font-style: normal;
}

@font-face {
	font-family: "JetBrains Mono Italic";
	src: url("../fonts/JetBrainsMono-Italic-VariableFont_wght.ttf") format("truetype-variations");
	font-style: italic;
}

:root {
	/* That's right, shit for brains, they're **all the same**. */
	--font-sans:  "JetBrains Mono", monospace;
	--font-serif: "JetBrains Mono", monospace;
	--font-mono:  "JetBrains Mono", monospace;

	--color-background:   #0a0a0a;
	--color-foreground:   #c2c2c2;
	--color-shadow:       #232323;
	--color-shadow-focus: #3f3f3f;
	--color-text:         #eee;

	--theme-green:  #98971a;
	--theme-yellow: #d79921;
	--theme-blue:   #458588;
	--theme-red:    #cc241d;
	--theme-orange: #d65d0e;
	--theme-aqua:   #689d6a;
	--theme-pink:   #d3869b;

	--layout-max: 1080px;
	--layout-gap: 30px 20px;

	--window-border-width: 2px;
	--window-border-color: var(--color-shadow);
	--window-shadow-size: 0;
	--window-shadow-offset-x: 5px;
	--window-shadow-offset-y: 5px;
}

html, body {
	font-family: var(--font-mono);
	margin: 0;
	padding: 0;
	font-size: 14px;
}

body {
	background: var(--color-background);
	color: var(--color-foreground);
}

pre, code {
	margin: 0;
}

.layout {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: var(--layout-gap);
	width: 100%;
	max-width: var(--layout-max);
	margin: 0 auto;
	padding: var(--layout-gap);
}

.layout.stretch {
	grid-template-columns: repeat(6, 1fr);
	min-height: calc(100dvh - 60px);
	align-content: center;
}

.layout.stretch .window { grid-column: 2 / 6; }

.window.full      { grid-column: span 6; }
.window.two-third { grid-column: span 4; }
.window.half      { grid-column: span 3; }
.window.third     { grid-column: span 2; }

.window {
	grid-column: span 6;
	background-color: var(--color-background);
	border: var(--window-border-width) solid var(--color-foreground);
	box-shadow:
		var(--window-shadow-offset-x)
		var(--window-shadow-offset-y)
		var(--window-shadow-size)
		var(--color-shadow);

	position: relative;
	padding: 18px 15px;
}

.window:hover {
	box-shadow:
		var(--window-shadow-offset-x)
		var(--window-shadow-offset-y)
		var(--window-shadow-size)
		var(--color-shadow-focus);
}

.window::before {
	content: attr(data-title);
	background: var(--color-highlight);
	padding: 1px 8px;
	position: absolute;
	top: -10px;
	left: 8px;
	color: rgba(0, 0, 0, 0.65);
	font-size: 14px;
	font-weight: 900;
	line-height: 18px;
}

.window.dark::before {
	background-color: var(--color-background);
	color: var(--color-foreground);
}

.window.dark::before::empty {
	background-color: red !important;
}

.window.green::before  { background-color: var(--theme-green); }
.window.yellow::before { background-color: var(--theme-yellow); }
.window.blue::before   { background-color: var(--theme-blue); }
.window.red::before    { background-color: var(--theme-red); }
.window.orange::before { background-color: var(--theme-orange); }
.window.aqua::before   { background-color: var(--theme-aqua); }
.window.pink::before   { background-color: var(--theme-pink); }

.window.centralise {
	display: flex;
	justify-content: center;
	align-items: center;
}

.window .ascii {
	margin: 0 auto;
	padding: 10px 0;
	font-size: 10px;
}

.window.photo {
	padding: 0;
}

.window.photo > img {
	display: block;
	width: 100%;
}

.error { text-align: center; }

.error p {
	font-size: 18px;
	line-height: 26px;
}

.error a       { color: var(--theme-foreground); }
.error a:hover { text-decoration: underline; }

article {
	margin: 0;
	font-size: 13px;
	color: var(--color-text);
	
	p {
		margin: 0;
		font-weight: 300;
	}

	strong {
		font-weight: 800;
	}

	p:not(:last-child) { margin-bottom: 10px; }

	a {
		color: var(--theme-aqua);
		font-weight: bold;
		text-decoration: underline;
	}

	a:hover {
		text-decoration: none;
	}
}

.terminal .line {
	font-size: 14px;
	line-height: 22px;
}

.terminal .historic {
	opacity: 0.35;
}

.terminal .prompt {
	color: var(--theme-green);
}

.terminal .prompt .host  { color: var(--theme-blue); }
.terminal .prompt .path  { color: var(--theme-yellow); }
.terminal .error         { color: var(--theme-red); }
.terminal .output        { font-weight: 300; }
.terminal .output strong { font-weight: 700; }

.terminal .blink {
	animation: blink 1.5s step-start infinite;
	font-size: 18px;
}

.terminal.fastfetch .separator,
.terminal.fastfetch .stat .desc { color: var(--theme-yellow); }

@keyframes blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0; }
}

.terminal small {
	color: rgba(255, 255, 255, 0.5);
}

.links {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.links li {
	position: relative;
	padding-left: 28px;
	line-height: 18px;
}

.links li:not(:last-child) {
	margin-bottom: 12px;
}

.links .icon {
	display: block;
	width: 18px;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0.75;
}

.links li:hover .icon { opacity: 1; }

.links a {
	display: inline-block;
	color: var(--theme-blue);
	font-weight: bold;
	text-decoration: underline;
}

.links a:hover {
	text-decoration: none;
}

.links .note {
	display: block;
	color: rgba(255, 255, 255, 0.5);
	font-size: 13px;
}

.links .new a,
.links .old a {
	position: relative;
}

.links .new a::after,
.links .old a::after {
	display: block;
	height: 13px;
	margin-left: 3px;
	padding: 0 3px;
	position: absolute;
	top: 0;
	left: 100%;
	line-height: 13px;
	color: white;
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	text-decoration: none;
}

.links .new a::after {
	content: "new";
	background-color: var(--theme-red);
}

.links .old a::after {
	content: "old";
	background-color: #666;
}
