:root {
    --accent: #8b2b1c;
    --highlight: #f8df51;
    --background: #fff;
    --soft-background: #f7f7f7;
    --subtle: #333;
    --foreground: #222;
    --strong: #111
}

#parent {
    position: relative;
    left: -2.5em;
}
#accent {
    width: 20px;
    height: 20px;
    background-color: var(--accent);
    position: absolute;
    transform: rotate(45deg);
    border-radius: 2px;
    top: 1em;
}

canvas {
    width: 100%;
    height: 500px;
    border: 1px solid var(--accent);
    margin-bottom: 1em;
    background-color: var(--soft-background);
}

img {
    border: 1px solid var(--accent);
    border-image-outset: 20px;
    max-width: 100%;
}

.label {
    color: var(--subtle);
    font-style: italic;
    text-align: center;
}

body {
    margin: auto;
    color: var(--foreground);

    font-size: 1.3rem;
    line-height: 1.5em;
    font-family: sans-serif;

    padding: 5em;
    width: 50rem;
    max-width: 100%;
    background-color: var(--background);
}


.projects {
    display: grid;
    grid-template-columns: 11ch auto min-content;
    font-family: monospace;
    gap: .5em;
}

@media only screen and (max-width: 700px) {
	.projects {
		grid-template-columns: 100%;
	}

	.time {
		margin-bottom: 1em;
	}
}

::selection {
    background-color: var(--highlight);
}

h1, h4 {
    color: var(--foreground);
}

h1, .links {
    font-family: monospace;
    line-height: 1.5em;
    margin-top: 0;
}

h2 {
    margin-top: 2em;
}

h4 {
    font-size: 1.05em;
    margin-top: 2em;
    margin-bottom: 1em;
}

a {
    color: var(--accent);
}

.links > a {
    text-decoration: none;
    user-select: none;
    margin-right: .6em;
}
.links > a:hover {
    text-decoration: none;
    user-select: none;
    margin-right: .6em;
}

pre {
    white-space: pre-wrap;
    background-color: var(--soft-background);
    padding: .5em .5em;
    border: 1px solid var(--accent);
    font-size: .8em;
    line-height: normal;
}

code {
    background-color: var(--soft-background);
    color: var(--soft-foreground);
}

p code {
    border-radius: 2px;
    padding: 0 10px;
}

summary {
    cursor: pointer;
    color: var(--foreground);
    margin: .5em 0;
    padding-left: .5em;
}

details[open] > summary {
    background-color: var(--accent);
    color: var(--background);
}
details[open] > summary::selection {
    background-color: var(--selection);
}

details {
    color: var(--subtle);
}

@media only screen and (max-width: 1000px) {
    body {
        width: 100%;
        height: 100%;
        margin: 0 0em;
        border-radius: 0;
        padding: 2em;
        box-shadow: none;
        display: block;
        box-sizing: border-box;
    }

    #parent {
        display: none;
    }

    html {
        display: block;
        margin: 0;
    }

    h1 {
        margin: 1em 0;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --accent: #94d19b;
        --highlight: #40573d;
        --background: #060606;
        --soft-background: #111;
        --subtle: #ccc;
        --foreground: #ddd;
        --strong: #eee;
    }


    svg {
        filter: invert();
    }
}
