@charset "UTF-8";

@font-face {
    font-family: "Google Sans Code RF";
    src: url("project/assets/fonts/google-sans-code-rf/GoogleSansCode[wght]-RF.woff2") format("woff2-variations");
}

@font-face {
    font-family: "Google Sans Code RF";
    font-style: italic;
    src: url("project/assets/fonts/google-sans-code-rf/GoogleSansCode-Italic[wght]-RF.woff2") format("woff2-variations");
}

:root {
    --color-bg: #3b3935;
    --color-text: #d0d0cd;

    --p-main-inline: 2.5rem;
    --width-content: 52rem;

    --font-sans: "InterVariable", -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
    --font-serif: "Source Serif 4", serif;
    --font-mono: "IBM Plex Mono", "Google Sans Code RF", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --font-features-inter: "calt", "cv06", "cv11", "liga", "ss02", "ss03";

    --f-s-page-title: 3rem;
    --f-s-text-main: 1.35rem;
    --f-s-section-title: 3.2rem;
    --f-s-project-title: 3.2rem;
    --f-s-project-subtitle: 1.45rem;
    --f-s-mono-text: 0.8rem;
}

html {
    width: 100%;
    min-height: 100%;
    font-size: clamp(12px, 1vw, 20px);
    background-color: var(--color-bg);
    scroll-behavior: smooth;
}

body {
    padding: 0 var(--p-main-inline);
    padding-bottom: 3rem;
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.3;
    font-feature-settings: var(--font-features-inter);
}

a {
    color: inherit;

    &:hover {
        text-decoration: none;
    }
}

p + p {
    margin-top: 1em;
}

h2 {
    font-size: 2.35rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

* + h3 {
    margin-top: 1.5rem;
}

.header {
    padding: 1.5rem 0;
    border-bottom: 1px solid hsl(from currentColor h s l / 0.25);
    margin-bottom: 3rem;

    & a {
        opacity: 0.3;
        font-size: 1.25rem;
        text-decoration: none;
        transition: opacity 0.2s;

        & div {
            mask-image: url("../assets/logos/rf-header-logo-03.svg");
            mask-repeat: no-repeat;
            mask-size: contain;
            background-color: currentColor;
            width: fit-content;
            display: inline-block;
            margin-left: 0.35em;
        }

        & img {
            height: 0.75rem;
            width: auto;
            line-height: 0;
            visibility: hidden;
        }

        &:hover {
            opacity: 1;
        }
    }
}

.section-title {

    & .title {
        line-height: 1.2;
        font-size: var(--f-s-page-title);
        margin-bottom: 1.5rem;
    }

    & h1 {
        font-weight: 600;
        margin-bottom: 0.15em;
    }

    & .subtitle {
        font-weight: 400;
        max-width: 35ch;
        text-indent: -0.1em;
    }
}

.section-intro {
    width: var(--width-content);

    & .coming {
        border: 1px solid currentColor;
        padding: 0.5em 0.75em;
        width: fit-content;
        border-radius: 0.5em;
        color: gold;
        margin-bottom: 3.5rem;
    }

    & .text {
        font-family: var(--font-serif);
        font-size: var(--f-s-text-main);
        line-height: 1.5;
        margin-bottom: 3rem;

        & .footnotes {
            font-size: 0.7em;
            margin-top: 2em;
            opacity: 0.75;
            max-width: 90ch;

            & p {
                padding-left: 1.5rem;
                text-indent: -1.5rem;
            }

            & p + p {
                margin-top: 0.35em;
            }
        }
    }

    & .title-interfaces {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;

        & .preview {
            font-weight: 400;
            color: gold;
            font-size: 1rem;
            border: 1px solid currentColor;
            padding: 0.5em 0.75em;
            border-radius: 0.5em;
            margin-bottom: 1rem;

            &::before {
                content: "Full documentation coming soon.";
            }
        }
    }

    & .links {
        border-top: 3px solid hsl(from currentColor h s l / 0.25);
        font-size: 1.35rem;
        color: hsl(from currentColor h s l / 0.5);

        & .link {
            padding: 1em 0;
            border-bottom: 1px solid hsl(from currentColor h s l / 0.25);
            display: flex;
            align-items: flex-start;
            gap: 2rem;
            line-height: 1.6;

            & img {
                width: 15rem;
                height: auto;
                box-shadow: 0 0 1rem rgba(0, 0, 0, 0.4);
            }

            & a {
                color: var(--color-text);
                text-underline-offset: 0.2em;
            }
        }
    }
}

.section-publications {
    width: var(--width-content);
    margin-top: 3rem;

    & > div {
        font-family: var(--font-serif);
        font-size: 1rem;
        line-height: 1.5;
        margin-top: 1.75rem;

        & .title {
            font-family: var(--font-sans);
            font-size: 1.3em;
            font-weight: 600;
            line-height: 1.3;
            margin: 0.25em 0;
        }

        & .meta {
            opacity: 0.7;
        }

        & + div {
            margin-top: 1.5rem;
        }
    }
}

.section-credits {
    width: var(--width-content);
    margin-top: 8rem;
    opacity: 0.7;

    & p {
        font-family: var(--font-serif);
        font-size: 1.15rem;
        line-height: 1.5;
    }

    & p + p {
        margin-top: 0.25em;
    }
}

@media (max-width: 768px) {
    :root {
        --width-content: auto;
        --p-main-inline: 2.25rem;

        --f-s-page-title: 3rem;
        --f-s-text-main: 1.35rem;
    }

    html {
        font-size: 2.6vw;
    }

    .section-intro {
        width: var(--width-content);

        & .coming {
            font-size: 1.2rem;
        }

        & .title-interfaces {
            & .preview {
                font-size: 1.2rem;

                &::before {
                    content: "Preview";
                }
            }
        }

        & .links {
            & .link {
                gap: 1.5rem;

                & img {
                    width: 12rem;
                }
            }
        }
    }
}