/*
 * 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: var(--text);
    background: var(--page-background);
    font-family: 'Atkinson Hyperlegible', sans-serif;
    scroll-behavior: smooth;
}

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

a:visited {
    color: var(--link);
}

.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 var(--card-border);
    background: var(--card-background);
    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: var(--card-border);
}
@media (prefers-color-scheme: dark) {
    .close > a {
        color: var(--text);
    }
}

.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: underline;
    color: var(--text);
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    border-radius: 0.5rem;
    padding: 0.6rem 0.5rem 0.4rem;
}

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

header nav a[href="/new"],
header nav a[href="/new"]:visited {
    text-decoration: none;
    color: var(--action);
    border-color: var(--action);
    background-color: transparent;
    border: 1px solid var(--action);
}

@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;
    }
}

