:root {
    --background-primary: #f0f0f0;
    --background-secondary: #fff;
    --base-primary: #333;
    --base-secondary: #aaa;
    --text-color-primary: #000;
    --text-color-secondary: #fff;
    --link-color: blue;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-primary: #121212;
        --background-secondary: #252525;
        --base-primary: #222;
        --base-secondary: #555;
        --text-color-primary: #fff;
        --text-color-secondary: #fff;
        --link-color: #1e90ff;
    }
}

body {
    background-color: var(--background-primary);
    color: var(--text-color-primary);
    font-family: "Source Sans 3", sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

a {
    color: var(--text-color-primary);
}

header {
    background-color: var(--base-primary);
    color: var(--text-color-secondary);
    padding: 0.4em;
    box-shadow:
        rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
        rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
    position: relative;
}

footer {
    margin-top: auto;
    gap: 2em;
    margin-bottom: 0.6em;
}

.content {
    padding: 2em;
    padding-top: 1em;
}

.header-logo-link {
    display: flex;
}

.header-logo {
    filter: invert(1);
    transition: 0.3s;
}

.header-logo:hover {
    filter: invert(0.7);
    transition: 0.3s;
}

.footer-link {
    text-decoration: none;
    filter: contrast(1);
    transition: 0.3s;
}

.footer-link:hover {
    filter: contrast(0.2);
    transition: 0.3s;
}

.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1em;
}

.card {
    background-color: var(--background-secondary);
    border-radius: 1em;
    box-shadow:
        rgba(0, 0, 0, 0.1) 0px 4px 6px -1px,
        rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
    padding: 1em;
    display: flex;
    flex-direction: column;
}

.card-title {
    text-align: center;
    font-size: 1.4em;
    border-bottom: 1px solid var(--base-secondary);
    margin: 0;
    padding-bottom: 0.4em;
}

.card-links {
    display: flex;
    justify-content: center;
    gap: 1em;
    margin-top: auto;
}

.card-link:hover {
    opacity: 0.5;
    transition: opacity 0.1s ease-in-out;
}

.about-logo-container {
    margin-bottom: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-logo {
    background-image: url("/assets/img/dechirpbg.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    padding: 2em;
    text-align: center;
}

.about-logo-title {
    font-family: "Jost", sans-serif;
    font-weight: 500;
    font-size: 5em;
    margin: 0;
}

.about-logo-desc {
    margin-top: 0.1em;
    font-family: "Jost", sans-serif;
    font-size: 1.2em;
    font-style: italic;
}

@media (prefers-color-scheme: dark) {
    .card-link,
    .footer-logo {
        filter: invert(1);
    }
    .about-logo {
        background-image: url("/assets/img/dechirpbg-dark.svg");
    }
}

@media screen and (max-width: 450px) {
    footer {
        gap: 1.5em;
    }
}

@media screen and (max-width: 300px) {
    .footer-logo {
        display: hidden;
    }
}
