@import "normalize.css";
@import "fonts.css";
@import "typography.css";

:root {
    --accent-color: light-dark(oklch(0.5746 0.2126 29.55), oklch(0.85 0.2126 29.55));
    --background-color: light-dark(oklch(1 0% 360), oklch(0.34 5% 294));
    --blockquote-grey: oklch(0.33 0% 280);
    --font-sans: OpenMoji, Atkinson Hyperlegible Next, ui-sans-serif, sans-serif;
    --font-serif: OpenMoji, Libertinus, ui-serif, serif;
    --font-mono:
        OpenMoji, Fantasque Sans Mono, Atkinson Hyperlegible Mono, Julia Mono, ui-monospace,
        monospace;
    --side-background: light-dark(oklch(0.98 0% 360), oklch(0.3 5% 294));
    --grey-borders: light-dark(oklch(0.86 2% 277), oklch(0.45 2% 277));
    --slate-text: light-dark(oklch(0.55 1% 251), oklch(0.9 1% 251));
    --text-color: light-dark(oklch(0 0% 360), oklch(1 0% 360));
    color-scheme: light dark;
}

html {
    background-color: var(--background-color);
    height: 100%;
}

body {
    color: var(--text-color);
    container: page / inline-size;
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    height: 100%;
    hyphens: auto;
    justify-content: space-between;
    line-height: 1.5;
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100rex;
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: justify;
    word-wrap: break-word;

    & > *:first-child {
        margin-top: 0;
    }
    & > *:last-child {
        margin-bottom: 0;
    }
}

#main {
    margin-top: 2rem;
}

#banner {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    padding-bottom: 0.3em;
    row-gap: 1em;

    #navbar {
        .nav-item {
            font-size: x-large;
            margin-inline: 0.25em;

            &.current-nav {
                color: var(--slate-text);
            }
        }
    }

    #subtitle {
        font-size: xx-large;
        max-width: 28em;
        text-align: left;
    }
    #title {
        font-size: xxx-large;
        a {
            text-decoration: none;
            &:hover,
            &:focus {
                text-decoration: none;
            }
        }
    }
}

#content {
    p {
        min-width: 30ex;
    }
}

#page-footer {
    border-top: 1px solid var(--grey-borders);
    column-gap: 3ex;
    display: flex;
    filter: grayscale(0.25);
    font-size: small;
    justify-content: space-between;
    margin-bottom: 1rem;
    opacity: 0.625;
    padding: 1.5em;
    text-align: left;
}
