/*
 * SPDX-FileCopyrightText: Amolith <amolith@secluded.site>
 *
 * SPDX-License-Identifier: CC0-1.0
 */

@font-face {
	font-family: 'Atkinson Hyperlegible';
	font-weight: normal;
	font-style: normal;
	font-display: swap;
	src: url("/static/fonts/regular-102a.woff2") format("woff2");
}

@font-face {
	font-family: 'Atkinson Hyperlegible';
	font-weight: normal;
	font-style: italic;
	font-display: swap;
	src: url("/static/fonts/regular-102a.woff2") format("woff2");
}

@font-face {
	font-family: 'Atkinson Hyperlegible';
	font-weight: bold;
	font-style: normal;
	font-display: swap;
	src: url("/static/fonts/bold-102a.woff2") format("woff2");
}

@font-face {
	font-family: 'Atkinson Hyperlegible';
	font-weight: bold;
	font-style: italic;
	font-display: swap;
	src: url("/static/fonts/bolditalic-102a.woff2") format("woff2");
}

html {
    max-width: 500px;
    margin: auto auto;
    color: #2f2f2f;
    background: white;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    padding-bottom: 20px;
}

a {
    color: #0640e0;
}

a:visited {
    color: #0640e0;
}

.project {
    max-width: 500px;
    border: 2px solid #2f2f2f;
    background: #f8f8f8;
    border-radius: 5px;
    margin-top: 20px;
    padding: 20px 20px 0 20px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
}

.project > h2 {
    margin-top: 0;
}

.project > p:first-of-type {
    margin-bottom: 16px;
}

.project > h2 > span {
    font-size: 12px;
    float: right;
}

body > h1 > span {
    font-size: 12px;
    float: right;
}

.project > details > pre {
    overflow: scroll;
}

summary {
    cursor: pointer;
}

details summary > * {
    display: inline;
}

@media (prefers-color-scheme: dark) {
    html {
        background: #171717;
        color: #ccc;
    }

    a {
        color: #5582ff;
    }

    a:visited {
        color: #5582ff;
    }

    .project {
        border: 2px solid #ccc;
        background: #1c1c1c;
    }
}
