:root {
    --color-accent: oklch(0.8395 0.0527 125.48);
    --color-accent-darker: oklch(from var(--color-accent) calc(l * 0.5) c h);
    --color-fg: oklch(0.2435 0 0);
    --color-fg-lighter: oklch(from var(--color-fg) calc(l * 1.7) c h);
    --color-bg: oklch(1 0 0);

    --width-site: 1000px;
}

body {
    font-family: serif;
    font-size: 16px;
    line-height: 1;
    color: var(--color-fg);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

body[data-page="about"] .navbar-links .links a[href="/"],
body[data-page="notes"] .navbar-links .links a[href="/tech-notes"],
body[data-page="links"] .navbar-links .links a[href="/recs"] {
    color: var(--color-bg);
    background-color: var(--color-accent-darker);
}

body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

main {
    flex: 1 0 auto;
}



/************
* UTILITIES *
*************/

.content-width {
    width: 100%;
    max-width: var(--width-site);
    margin-inline: auto;
    padding-inline: 1rem;
}



/*************
* COMPONENTS *
*************/


.navbar-container {
    width: 100%;
    max-width: var(--width-site);
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;

    & > .commit {
        font-size: 0.7rem;
        margin-inline-start: 3rem;
    }
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 1rem;

    & > .logo {
        font-size: 2rem;
        font-weight: 700;
    }

    & > .links {
        font-size: 0.9rem;
        display: flex;

        & > a:first-child {
            border-inline-start: 1px solid var(--color-accent-darker);
        }

        & > a {
            border-block: 1px solid var(--color-accent-darker);
            border-inline-end: 1px solid var(--color-accent-darker);
            display: block;
            padding: 0.5rem 1rem;
            text-decoration: none;
            color: var(--color-fg);
        }
    }
}


.hero-container {
    background-color: var(--color-accent);
    padding-block: 1rem;
}

.hero-content{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;

    & > .title {
        font-size: 2rem;
        font-weight: 600;
        font-variant-caps: small-caps;
    }
    & > .subtitle{
        font-size: 0.8rem;
        font-style: italic;
        font-weight: 400;
        align-self: end;
    }

}

.hero-quote {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    & > .quote {
        font-size: 0.9rem;
    }

    & > .attribution {
        font-size: 0.8rem;
    }
}

.post-list-container {
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;

    & > .header {
        font-size: 1.5rem;
    }

    & > .morelink {
        align-self: flex-end;
        & > a {
            color: var(--color-accent-darker);
            text-underline-offset: 3px;
        }
    }
}

.post-list {
    display: flex;
    flex-direction: column;
    padding-inline: 0;
}

.post-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 0.8rem 0.1rem;
    list-style: none;
    border-block-end: 1px solid var(--color-fg);

    & > a {
        font-size: 1.1rem;
        text-decoration: none;
        font-weight: 600;
        color: var(--color-fg);
        flex: 1 0 90%;
    }

    & > a:hover {
        text-decoration: underline;
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
        color: var(--color-accent-darker);
    }

    & > time {
        font-size: 0.75rem;
        color: var(--color-fg-lighter);
    }
}

.footer-container {
    width: 100%;
    max-width: var(--width-site);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between; 
    padding: 0.8rem 1rem;
    border-block-start: 1px solid var(--color-fg);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    font-variant-caps: small-caps;

    & > a {
        text-underline-offset: 4px;
        color: var(--color-fg);
    }

    & > a:hover {
        color: var(--color-accent-darker);
    }
}

.prose-container {
    max-width: 80ch;
    line-height: 1.5;

    & > * + * {
        margin-block-start: 0.8rem;
    }

    .pull-quote {
        quotes: "“" "”" "‘" "’";
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        border-inline-start: 4px solid var(--color-accent-darker);
        padding-inline-start: 1rem;

        & > q::before {
            content: open-quote;
        }
        & > q::after {
            content: close-quote;
        }

    }
}

