:root {
    --orange: #f7941d;
    --foreground: #1a1a1a;
    --background: #fafafa;
    --raised: #eeeeee;
    --raised2: #dddddd;
    --link: #2253ac;

}

html.dark-theme {
    --foreground: #eeeeee;
    --background: #0a0a0a;
    --raised: #1a1a1a;
    --raised2: #2a2a2a;
    --link: #7ccaff;
}

@font-face {
    font-family: "Roboto";
    src: url("/static/fonts/Roboto-VariableFont_wdth,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: "Roboto";
    src: url("/static/fonts/Roboto-Italic-VariableFont_wdth,wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: italic;
}

html {
    height: 100%;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 1rem;
    font-family: "Roboto", sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.3;

    main {
        flex: 1;
    }
}

a {
    color: var(--link);

    &.plain {
        color: inherit;
        text-decoration: none;
    }
}

.limited-width {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 12px;

    &.w1000 {
        max-width: 1000px;
    }

    &.w800 {
        max-width: 800px;
    }

    &.w600 {
        max-width: 600px;
    }


}

.header {
    display: flex;
    align-items: center;
    height: 5rem;
    gap: 0.25rem;

    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        height: 4.5rem;
        padding: 0 0.75rem;
        border-radius: 0.25rem;
        text-decoration: none;
        color: var(--foreground);
        font-size: 1.1rem;
        transition: background-color 100ms;

        &.active, &:hover {
            border-color: var(--orange);
            text-decoration: underline;
            text-decoration-color: var(--orange);
            text-underline-offset: 0.3rem;
            text-decoration-thickness: 0.1rem;
        }

        &:hover {
            background-color: var(--raised);
            text-decoration-thickness: 0.2rem;
        }
    }

    .theme-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 3.5rem;
        height: 3.5rem;
        background-color: transparent;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        margin-left: auto;

        &:hover {
            background-color: var(--raised);
        }

        .theme-icon {
            width: 2rem;
            height: 2rem;
        }
    }
}

.centered-info-box {
    max-width: 600px;
    background-color: var(--raised);
    border-radius: 4px;
    padding: 12px 24px;
    margin: 8px auto 0;
}

.projects-section {
    margin: 48px 0;
}

.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 24px;
}

.project-card {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    padding: 16px;
    gap: 12px;
    background-color: var(--raised);
    height: 100%;
    box-sizing: border-box;

    h2, p {
        margin: 0;
    }

    &:hover {
        background-color: var(--raised2);
    }
}

.project-header {
    background-color: var(--raised);
    padding: 24px;
    border-radius: 4px;
}