@font-face {
    font-family: Tilda;
    src: url("../fonts/TildaSans-VF.woff2") format("woff2");
}

@font-face {
    font-family: Geologica;
    src: url("../fonts/Geologica-Medium.woff") format("woff");
}

@font-face {
    font-family: "FA-Brands";
    src: url("../fonts/fa-brands-400.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Defaults */
    --font-family: Geologica, -apple-system, system-ui, sans-serif;
    --font-family-title: Tilda, -apple-system, system-ui, sans-serif;
    font-size: clamp(13px, 5vw, 20px);
    font-weight: 300;

    /* Theme colors */
    --color-gray-20: #d6dcff2a;
    --color-gray-50: #d6dcff90;
    --color-gray-90: #d6dcff;
    --color-red-highlight: #f30000;
    --background-color: #0f000d;
    --stroke-color: #2c1b29;
    --shadow-color: rgba(45, 0, 0, 1);
    --text-color: var(--color-gray-90);
    --text-color-link: var(--color-red-highlight);
    --text-color-link-active: #ff4343;
    --text-color-link-visited: #f30000;
}

html,
body {
    padding: 0;
    margin: 0 auto;
    font-family: var(--font-family);
    color: var(--text-color);
}

html {
    overflow-y: scroll;
    background-color: var(--background-color);
}

body {
    max-width: 90vw;
}

#renderSurface {
    position: fixed;
    left: 0;
    top: 0;
    z-index: -10;
    width: 100vw;
    height: 100vh;
}

/* Header */
header {
    margin: 2em 0;
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
    padding: 1em;
}

header a {
    flex-grow: 1;
    font-size: 1em;
    font-weight: 700;
}

header a:link:not(:hover) {
    text-decoration: none;
}

header a img {
    display: block;
}

/* Nav */
nav {
    display: flex;
    gap: 0.5em 1em;
    padding: 0;
    margin: 0;
    list-style: none;
    font-family: var(--font-family-title);
    font-weight: 500;
    align-items: center;
}

nav a,
nav p {
    display: block;
}

nav a[href]:not(:hover) {
    color: var(--text-color);
}

nav a[href][aria-current="page"] {
    text-decoration: underline;
    color: var(--text-color-link);
}

/* Footer */
footer {
    margin-top: 3em;
    padding: 2em 1em 5em 1em;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3em;
    border-top: 3px dashed var(--color-gray-20);
    align-items: stretch;
}

footer > * {
    flex-grow: 1;
}

footer > div:last-child {
    display: flex;
    flex-direction: column;
    text-align: right;
    flex-grow: 4;
    justify-content: flex-end;
}

footer h1 {
    font-size: clamp(3em, 4vw, 6em);
}

footer h1,
footer h2,
footer h3 {
    color: var(--color-red-highlight);
    margin: 1.2rem 0 0.4rem 0;
}

footer a {
    line-height: 1.5em;
    color: var(--color-gray-50);
}

footer a:not(:hover) {
    text-decoration: none;
    color: var(--color-gray-50) !important;
}

#footer-icon {
    width: 6em;
    margin: 2em 0;
}

/* content */

h1 {
    margin-top: 0;
    font-size: clamp(3em, 6vw, 10em);
}

h2 {
    font-size: clamp(2em, 3vw, 5em);
}

h3 {
    font-size: clamp(1.5em, 2vw, 3em);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-title);
    font-weight: 800;
}

time {
    color: var(--color-gray-20);
}

.red {
    color: var(--color-red-highlight);
}

.blue {
    color: royalblue;
}

.green {
    color: mediumseagreen;
}

.coral {
    color: coral;
}

hr {
    border: 0;
    border-top: 3px solid var(--color-gray-20);
}

p {
    line-height: 1.5;
}

main {
    display: flex;
    gap: 2em;
    flex-wrap: wrap;
    align-items: center;
}

section {
    flex-basis: 40em;
    flex-grow: 1;
}

aside {
    flex-basis: 40%;
    overflow: hidden;
    height: 94vh;
    flex-grow: 5;
    flex-shrink: 1;
    border: 2px solid var(--color-gray-20);
    border-radius: 30px;
    box-shadow: 0 1em 4em var(--shadow-color);
}

aside > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    animation: scrolling 60s linear infinite;
}

@keyframes scrolling {
    0% {
        transform: translateY(0%);
    }
    100% {
        transform: translateY(-50%);
    }
}

aside > div > img {
    width: 100%;
}

a[href] {
    color: var(--text-color-link);
}

a[href]:visited {
    color: var(--text-color-link-visited);
}

a[href]:hover,
a[href]:active {
    color: var(--text-color-link-active);
}

.yt::before {
    font-family: "FA-Brands";
    display: inline-block;
    text-rendering: auto;
    content: "\f167";
    font-size: 1em;
}

.bsky::before {
    font-family: "FA-Brands";
    display: inline-block;
    text-rendering: auto;
    content: "\e671";
    font-size: 1.7em;
    padding-right: 0.3em;
}

.discord::before {
    font-family: "FA-Brands";
    display: inline-block;
    text-rendering: auto;
    content: "\f392";
    font-size: 1.7em;
    padding-right: 0.3em;
}

.github::before {
    font-family: "FA-Brands";
    display: inline-block;
    text-rendering: auto;
    content: "\f09b";
    font-size: 1.7em;
    padding-right: 0.3em;
}

.tg::before {
    font-family: "FA-Brands";
    display: inline-block;
    text-rendering: auto;
    content: "\f2c6";
    font-size: 1.7em;
}
