/*
 * 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 {
    margin: auto auto;
    color: #2f2f2f;
    background: white;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    scroll-behavior: smooth;
}

a {
    color: #0640e0;
}

a:visited {
    color: #0640e0;
}

.two_column {
    display: flex;
/*    gap: 30px;*/
    flex-direction: row;
    margin: auto auto;
    max-width: 1040px;
    height: 92vh;
}

.two_column > * > * {
    margin: 20px;
}

.projects, .release_notes {
    overflow: scroll;
    flex: 0 0 540px;
}

.release_note.card:not(:target) { display: none;  }
.release_note.card:target       { display: block; }

.return_to_project {
    display: none;
}

.card {
    border: 2px solid #2f2f2f;
    background: #f8f8f8;
    border-radius: 5px;
    margin: 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);
}

.card > h3 {
    margin-top: 0;
}

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

.card > p:last-of-type {
    margin-bottom: 16px;
}

.close, .delete { float: right; }
.delete { font-size: 12px; }
.close > a {
    text-decoration: none;
    color: #2f2f2f;
}

.card > pre, .card > div > pre { overflow: scroll; }

.wrapper {
    max-width: 500px;
    margin: auto auto;
}

header {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
}

header h1 {
    margin-block: 1.2rem;
}

header nav {
    display: flex;
    justify-content: flex-end;
    align-content: baseline;
    flex: 1 1 auto;
    margin-block: 1.2rem;
}

header nav a,
header nav a:visited {
    display: block;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    color: hsl(100, 95%, 30%);
    border: 1px solid hsl(100, 95%, 30%);
    background-color: transparent;
    border-radius: 0.5rem;
    padding: 0.6rem 0.5rem 0.4rem;
}

header nav a + a {
    margin-inline-start: 0.5rem;
}

header nav a:last-of-type,
header nav a:last-of-type:visited {
    color: hsl(350, 100%, 65%);
    border-color: hsl(350, 100%, 65%);
    background-color: transparent;
}

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

    a {
        color: #5582ff;
    }

    a:visited {
        color: #5582ff;
    }

    .card {
        border: 2px solid #424242;
        background: #1c1c1c;
    }

    .close > a {
        color: #ccc;
    }
}

@media only screen and (max-width: 1000px) {
    div[id] {
        display: block;
    }

    .two_column {
        flex-direction: column;
    }

    .projects, .release_notes {
        overflow: visible;
        flex: 0 0 100%;
    }

    .return_to_project {
        display: block;
    }

    .close {
        display: none;
    }
}

