:root {
    --bg: #ebdbb2;
    --fg: #282828;
    --red: var(--bright-red);
    --green: var(--bright-green);
    --yellow: var(--bright-yellow);
    --blue: var(--bright-blue);
    --purple: var(--bright-purple);
    --aqua: var(--bright-aqua);
    --orange: var(--bright-orange);
    --gray: var(--bright-gray);
    --bright-red: #fb4934;
    --bright-green: #b8bb26;
    --bright-yellow: #fabd2f;
    --bright-blue: #83a598;
    --bright-purple: #d3869b;
    --bright-aqua: #8ec07c;
    --bright-orange: #fe8019;
    --bright-gray: #a89984;
    --bright-bg: #fbf1c7;
    --link-shadow: 235, 219, 178;
    --body-shadow: 168, 153, 132;
    --text: #3c3836;
    --link-text: #7c6f64;
}

@media (prefers-color-scheme: dark) {
    :root {
        --fg: #ebdbb2;
        --bg: #282828;
        --red: #cc241d;
        --green: #98971a;
        --yellow: #d79921;
        --blue: #458588;
        --purple: #b16286;
        --aqua: #689d6a;
        --orange: #d65d0e;
        --gray: #928374;
        --bright-red: #fb4934;
        --bright-green: #b8bb26;
        --bright-yellow: #fabd2f;
        --bright-blue: #83a598;
        --bright-purple: #d3869b;
        --bright-aqua: #8ec07c;
        --bright-orange: #fe8019;
        --bright-gray: #a89984;
        --bright-bg: #32302f;
        --body-shadow: 22, 24, 32;
        --link-shadow: 29, 32, 33;
        --text: var(--bg);
        --link-text: var(--gray);
    }
}

html {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--bg);
	font: 20px scientifica;
	height: 100%;
}

*, *:before, *:after {
	box-sizing: border-box;
}

body {
	background-color: var(--bright-bg);
	border-radius: 14px;
    box-shadow: 0px 0px 5px 3px rgba(var(--body-shadow), 0.4);
	flex-direction: column;
	min-height: 30ch;
	min-width: 20ww;
	padding: 2em;
}
p {
	margin: 0;
}
p span {
	color: var(--green);
	font-weight: bold;
}

p #logo {
	color: #60c0d0;
	vertical-align:-3px;
	font-size: 28px;
}

p #cursor {
	background-color: #add8e6;
	animation: blink 2s infinite;
}
@keyframes blink {
	0% { opacity: 0; }
	49% { opacity: 0; }
	50% { opacity: 1; }
}

a {
	color: inherit;
	text-decoration: none;
}

a:focus,
a:hover {
	font-weight: bold;
}

ul {
	list-style: none;
	margin: 1em 0;
	padding: 0;
}

.tree > .all {
	margin: 0;
	padding-left: 1rem;
}

.all {
	display: inline-block;
	vertical-align: top;
	margin-left: 1em;
	padding-left: 0.5em;
}

.all:nth-child(1) {
	margin-left: 0;
}

li {
	position: relative;
}
li::before, li::after {
	content: "";
	position: absolute;
	left: -0.75rem;
}
li::before {
	border-top: 2px solid var(--bright-blue);
	top: 0.45em;
	width: 0.8rem;
}
li::after {
	border-left: 2px solid var(--bright-blue);
	height: 100%;
	top: 0.2rem;
}
li:last-child::after {
	height: 0.3rem;
}

h3 {
	position: relative;
	color: var(--text);
}
h3::before, h3::after {
position: absolute;
	left: -0.75rem;
	content: "";
}
h3::before {
	border-top: 2px solid var(--bright-blue);
	top: 0.5rem;
	width: 0.6em;
}
h3::after {
	border-left: 2px solid var(--bright-blue);
	height: 200%;
	top: 0.5rem;
}

.linksbox {
	text-align: center;
	color: var(--link-text);
	text-decoration: none;
	width: 8em;
    box-shadow: 5px 5px 3px rgba(var(--link-shadow), 0.7);
	padding: 0.2em;
}

.title {
	text-align: center;
	width: 8em;
	margin-left: 0.2em;
}

.math {
	background-color: var(--aqua);
}

.\.\. {
	background-color: var(--gray);
}

.linux {
	background-color: var(--blue);
}

.self {
	background-color: #d4be98;
}

.social {
	background-color: var(--purple);
}

.feed {
	background-color: var(--red);
}

.reddit {
	background-color: var(--orange);
}

input {
	background: none;
	color: var(--bright-bg);
	width: 17px;
	font: inherit;
	text-align: center;
	outline: none;
	border: none;
	border-radius: 0;
	transition: .1s; /* uwu */
}
textarea:focus,
input:focus {
	color: #d4be98;
	outline: none;
	width: 30%;
}
