:root {
    --accent-hue: 260;
    --accent: hsl(var(--accent-hue), 100%, 70%);

    --background: #111;
    --text: white;
    --link: hsl(0, 5%, 85%);
    --muted: #777;
    --border: #444;

    --link-glow: 0 0 10px hsla(var(--accent-hue), 100%, 70%, 0.4);
    --header-glow: 0 0 8px hsla(0, 0%, 100%, 0.7);
}

/* -------------------- */
/* Global               */
/* -------------------- */

* {
    box-sizing: border-box;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* -------------------- */
/* Body                 */
/* -------------------- */

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;

    padding: 20px;
    
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    line-height: 1.5;

    color: var(--text);

    background-color: #130f40;
    background-image: linear-gradient(
        315deg,
        #130f40 0%,
        #000000 74%
    );

    background-attachment: fixed;

    display: flex;
    flex-direction: column;
}

/* -------------------- */
/* Main                 */
/* -------------------- */

main {
    width: min(100%, 1200px);
    margin: 0 auto;

    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.deftext {
    display: flex;
    justify-content: center;
    max-width: 100%;
    padding: 10px;
}

.CSalert {
    margin: 0;

    font-size: clamp(2.5rem, 8vw, 7rem);

    line-height: 1.1;

    overflow-wrap: anywhere;
}

section + section {
    margin-top: 4rem;
    /* Neglibile currently, no sections on the site */
}

/* -------------------- */
/* Links                */
/* -------------------- */

a {
    color: var(--link);

    transition:
        color 0.15s ease,
        text-shadow 0.15s ease;
}

a:hover {
    color: var(--accent);
    text-shadow: var(--link-glow);
}

/* -------------------- */
/* Footer               */
/* -------------------- */

.end {
    width: 100%;

    margin-top: auto;
    padding-top: 2rem;

    font-size: 0.75rem;
    color: var(--muted);

    text-align: center;
    user-select: none;

    position: static;
}

.end p {
    margin: 0;
}

.end #blink::after {
    content: " █";
    color: var(--muted);

    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* -------------------- */
/* Selection            */
/* -------------------- */

::selection {
    background: var(--text);
    color: var(--background);
}

/* -------------------- */
/* Reduced motion       */
/* -------------------- */

@media (prefers-reduced-motion: reduce) {
    a,
    .project {
        transition: none;
    }

    .end #blink::after {
        animation: none;
    }
}

/* -------------------- */
/* Small screens        */
/* -------------------- */

@media (max-width: 500px) {
    body {
        padding: 16px;
    }

    main {
        padding: 0 4px;
    }

    .CSalert {
        font-size: clamp(2.25rem, 12vw, 4rem);
    }
}