:root {
    --fg: #212121;
    --bg: #efefef;
    --muted: rgba(0, 0, 0, 0.25);
    --accent: #54913c;
}

@media (prefers-color-scheme: dark) {
    :root {
        --fg: #efefef;
        --bg: #212121;
        --muted: rgba(255, 255, 255, 0.25);
        --accent: #a7d397;
    }
}

::selection {
    color: var(--bg);
    background: var(--fg);
}

body,
html {
    margin: 0;
    padding: 0;

    color: var(--fg);
    background: var(--bg);

    font-family: monospace;
    font-size: 1rem;
}

main,
body {
    width: calc(100% - 2rem);
    max-width: 800px;

    margin: 0 auto;
    padding: 0 1rem;
}

a {
    color: inherit;
    text-decoration-style: dotted;
    padding: 0.25rem 0.5rem;
}

a:hover {
    color: var(--bg);
    background: var(--fg);
}

em {
    opacity: 0.8;
}

header {
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px dotted var(--fg);

    /* backdrop-filter: blur(0.5rem); */
    background: var(--bg);

    position: sticky;
    top: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

header > a {
    font-size: 1.5rem;
}

footer {
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px dotted var(--fg);
    opacity: 0.5;
    text-align: center;
}

form {
    margin: 1rem 0;
}

textarea,
input,
select,
button,
.button {
    font-size: inherit;
    font-family: inherit;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    box-shadow: none;
    display: inline-block;

    color: var(--fg);
    background-color: var(--bg);
    border: 1px solid var(--fg);
}

textarea,
input {
    width: calc(100% - 16px);
}

article {
    border: 2px dashed var(--muted);
    padding: 1rem;
    border-radius: 0.25rem;
    margin: 1rem 0;
}

article > p {
    margin: 1rem 0.5rem;
}

article > *:last-child {
    margin-bottom: 0;
}

details {
    margin: 1rem 0.5rem;
}
