@font-face {
    font-family: "u-reg";
    src: local("u-reg"), url("fonts/arial-cousins.woff2") format("woff2");
}

:root {
    /* Theme definitions */
    --green-primary: #00ff00;
    --green-bg: color-mix(in srgb, var(--green-primary) 10%, black);

    --red-primary: #ff0000;
    --red-bg: color-mix(in srgb, var(--red-primary) 10%, black);

    --pink-primary: #ff00ff;
    --pink-bg: color-mix(in srgb, var(--pink-primary) 10%, black);

    --blue-primary: #0015ff;
    --blue-bg: color-mix(in srgb, var(--blue-primary) 10%, black);

    /* Active theme (default to green) */
    --primary-color: var(--green-primary);
    --bg-color: var(--green-bg);
}

* {
    box-sizing: border-box;
    font-weight: normal;
    color: var(--primary-color);
}

a {
    text-underline-offset: .2em;
    text-decoration-thickness: .05em;
}

html {
    /* scroll-behavior: smooth; */
}

html,
body {
    margin: 0;
}

body {
    padding: clamp(.5lh, 1lh, 1lh);
    background-color: var(--bg-color);
    font-family: "u-reg", sans-serif;
    font-size: 3.5rem;
    font-size: clamp(.9rem, .9rem + 2.3vw, 8rem);
    text-transform: uppercase;
    text-align: center;
    /* text-wrap: balance; */
    line-height: 1.1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -------------------layout */
button {
    border: none;
    border-radius: none;
    background-color: var(--bg-color);
    font-size: inherit;
    margin: 1lh;
    margin-bottom: 0;
    font-family: "u-reg", sans-serif;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: .2em;
    text-decoration-thickness: .05em;
    padding-bottom: 1lh;
}

ul,
li {
    margin: 0;
    padding: 0;
    list-style-type: none;
    text-align: left;
}

header,
main,
footer {
    margin: auto;
}

.first {
    margin-top: 0px;
    padding-top: 0px;
}

.last {
    margin-bottom: 0px;
    padding-bottom: 0px;
}

.social {
    padding-top: 1lh;
    display: flex;
    gap: 1lh;
    width: fit-content;
    margin: auto;
}


/* -------------------images */

img {
    max-width: 100%;
}

.logo {
    display: block;
    max-width: 33vw;
    position: sticky;
    bottom: .5lh;
    transform: translateX(-50%);
    left: 50%;
    padding-top: 1lh;
}

.logo svg {
    max-width: 100%;
}

.logo svg path {
    fill: var(--primary-color);
}

/* -------------------projects */
.hidden {
    display: none;
}

.project-list:not(:has(.hidden)) li {
    display: block;
    text-align: center;
    padding-bottom: 1lh;

    & .video {
        margin-bottom: 1lh;
    }

    & .year::after,
    .title::after {
        content: ",";
    }

    & .title,
    .category {
        text-indent: 0lh;
        padding-left: 0lh;

    }



}

.video {
    width: 100%;
    max-width: min(1000px, 70vw);
    margin: 0 auto;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    margin-top: 1lh;
}

.video iframe {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    display: block;
}

.project-list {
    display: grid;
    grid-template-columns: auto auto auto;
    column-gap: 1lh;
    max-width: 100%;
}

.project-list li {
    display: grid;
    grid-column: 1 / -1;
    gap: 1lh;
    grid-template-columns: subgrid;
}

.title,
.category {
    text-indent: -1lh;
    padding-left: 1lh;

}

.project-list .year {
    grid-column: 1;
}

.project-list .title {
    grid-column: 2;
}

.project-list .category {
    grid-column: 3;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
    .project-list {
        row-gap: 1lh;
    }

    .project-list li {
        grid-template-columns: 1fr;
        gap: 0lh;
    }

    .project-list .year,
    .project-list .title,
    .project-list .category {
        grid-column: 1;
    }
}

/* Respect user color scheme preferences */
@media (prefers-color-scheme: light) {
    * {
        color: var(--bg-color);
        letter-spacing: -.001em;

    }

    body {
        background-color: var(--primary-color);
    }

    button {
        background-color: var(--primary-color);
    }

    .logo svg path {
        fill: var(--bg-color);
    }
}