/* SPDX-FileCopyrightText: © Initra Doasu <me at doasu dot eu>
 * SPDX-License-Identifier: CC-BY-NC-SA-4.0
 */

@media (prefers-color-scheme: dark) {
    :root {
        --fg: #fafafa;
        --bg: #000;
    }
}
@media (prefers-color-scheme: light) {
    :root {
        --fg: #101010;
        --bg: #fafafa;
    }
}

@media screen and (orientation: landscape) {
    body {
        width: clamp(400px, 50%, 100vw);
    }
}

:root {
    color-scheme: light dark;
    --monospace-font: monospace;
    font-family: var(--monospace-font);
    font-size: large;

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

    width: 100%;
    height: 100%;
}

header {
    display: flex;
}

header a {
    text-decoration-line: none;
}

header h1 {
    display: flex;
    gap: 1ch;
    align-items: center;
    font-family: "DT Octopia Neue";
}

span.home {
    font-family: var(--monospace-font);
    font-weight: 900;
    color: var(--bg);
    background-color: var(--fg);
    padding: 0.2ch;
}

article h1::before,
article h2::before,
article h3::before {
    content: "($) ";
}

body {
    display: flex;
    flex-direction: column;
    padding: 0 5vw;
    margin: 0 auto;
    min-height: 100%;
}

section#buttons a::after {
    content: none;
}
section#buttons div {
    display: flex;
    flex-direction: row;
    align-content: flex-start;
    justify-content: flex-start;
    align-items: flex-start;
}

footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding: 5vw 0;
    font-size: smaller;
}

footer div {
    display: flex;
    justify-content: center;
    gap: 1ch;
    flex-wrap: wrap;
}

/* Unordered lists */
ul {
    list-style-type: none;
    list-style-position: inside;
    padding: 0;
}

/* Link styling */
article a::after,
a.link::after {
    content: "@";
}

/* BEGIN(blinking animation) */
.blink {
    animation: blink 1s steps(1, start) infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
/* END(blinking animation) */
