:root {
    /* Color variables; also defined in personal.graphics.colors */

    /* gray scale */
    --black: #080911;
    --dark-gray: #35363B;
    --mid-gray: #72737E;
    --light-gray: #B4B5BB;
    --very-light-gray: #DADADD;
    --white: #EAEAF6;

    /* dark colors */
    --dark-blue: #22254f;
    --dark-purple: #3d224f;
    --dark-pink: #4f2243;
    --dark-red: #4f2225;
    --dark-yellow: #4f3d22;
    --dark-chartreuse: #434f22;
    --dark-green: #254f22;
    --dark-turquoise: #224f3d;
    --dark-teal: #22434f;

    /* middle colors */
    --mid-blue: #484EA8;
    --mid-purple: #8148A8;
    --mid-pink: #A8488E;
    --mid-red: #A8484E;
    --mid-yellow: #A88148;
    --mid-chartreuse: #8EA848;
    --mid-green: #4EA848;
    --mid-turquoise: #48A881;
    --mid-teal: #488EA8;

    /* light colors */
    --light-blue: #9B9FD4;
    --light-purple: #BD9BD4;
    --light-pink: #D49BC5;
    --light-red: #D49B9F;
    --light-yellow: #D4BD9B;
    --light-chartreuse: #C5D49B;
    --light-green: #9FD49B;
    --light-turquoise: #9BD4BD;
    --light-teal: #9BC5D4;
}

@font-face {
    font-family: 'Pontano Sans';
    src: url('/fonts/PontanoSans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pontano Sans';
    src: url('/fonts/PontanoSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pontano Sans';
    src: url('/fonts/PontanoSans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pontano Sans';
    src: url('/fonts/PontanoSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Pontano Sans';
    src: url('/fonts/PontanoSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

* {
    box-sizing: border-box;
}

a {
    color: var(--dark-turquoise);
    text-decoration: none;
}

/* column contains the site */
.column {
    width: 100%;
    /* max-width: 1200px; */
    min-height: 100vh;
    display: grid;
    grid-template-rows: 100px 1fr;
    background-color: var(--white);
}

.coreTopRow {
    grid-row: 1;
    display: flex;
    flex-direction: row;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1rem 1rem 0 1rem;
    background-color: var(--white);
}

.coreBottomRow {
    grid-row: 2;
    display: flex;
    flex-direction: row;
}

/* @dev border-radius here should match that in .scrollContainer */
/* overflow: hidden clips the scrolling images to the rounded shape */
.scrollWrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* border-radius: 3px; */
    /* background-color: var(--dark-blue); */
}

/* @dev border-radius here should match that in .scrollWrapper */
.scrollContainer {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    /* border-radius: 3px; */
}

.scrollTrack {
    display: flex;
    width: max-content;
    animation: scrollContinuous 40s linear infinite;
}

.scrollContainerTop .scrollTrack {
    animation: scrollContinuous 35s linear infinite reverse;
}

.scrollTrack img {
    height: 100px;
    width: 150px;
    object-fit: cover;
    flex-shrink: 0;
    padding: 0;
}

/* per-layer opacity, kept separate so there's no specificity clash */
.scrollContainer:not(.scrollContainerTop) .scrollTrack img {
    opacity: 0.8;
}

.scrollContainerTop .scrollTrack img {
    opacity: 0.4;
}

@keyframes scrollContinuous {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.mainTitle {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 0 0 0 0;
    padding: 0 0 0 0;
    background-color: var(--white);
    width: 100px;
    height: 100px;
}

/* z-index 1 ensures h1 renders on top */
.mainTitle h1 {
    position: relative;
    z-index: 1;
    margin: auto;
    color: var(--white);
    top: 0;
    padding: 0 0 0 1px;
    filter: blur(1px);
    opacity: 0.85;
    font-family: 'Pontano Sans', sans-serif;
    font-weight: 900;
    /* font-size: 52px; */
    font-size: 2.4rem;
    line-height: 1;
}

.mainTitle h1 a {
    text-decoration: none;
    color: white;
}

.navbar {
    background-color: var(--white);
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.navUl {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 1rem;
    font-family: 'Pontano Sans', sans-serif;
    font-weight: 500;
}

.navUl li a {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark-gray);
}


.radio {
    background-color: var(--light-chartreuse);
    flex: 1;
}

.page {
    min-width: 0;
    padding: 0 1rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pageContent {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pageContentTopRow {
    position: sticky;
    top: 100px;
    z-index: 5;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin: 0 0 1rem 0;
    padding: 1rem 0 1rem 0;
    background-color: var(--white);
    /* background-color: var(--mid-chartreuse); */
}

.pageTitle {
    padding: 1rem 0 0 0;
    flex: 1;
    margin: 0;
    font-family: 'Pontano Sans', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--black);
}

.searchSortFilter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sortAndFilter {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
}

.searchBarInput {
    margin: 0;
    font-family: 'Pontano Sans', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    background-color: var(--very-light-gray);
    border: none;
}

.filterButtons,
.sortButtons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filterButtons button,
.sortButtons button {
    margin: 0;
    padding: 0;
    border: none;
    cursor: pointer;
    font-family: 'Pontano Sans', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
}

/* active buttons */
.filterButtons button.active {
    background-color: var(--light-yellow);
}

.sortButtons button.active {
    background-color: var(--light-chartreuse);
}

.workPageDateCreated {
    padding: 1rem 0 0 0;
    font-family: 'Pontano Sans', sans-serif;
    font-weight: 200;
    font-size: 0.9rem;
}

.pageContentBottomRow {
    flex: 1;
    display: flex;
    flex-direction: row;
    padding: 1rem 0 0 0;
}

.pageLeft {
    flex: 1;
    min-width: 0;
}

.pageLeft iframe {
    max-width: 100%;
}

.workPageDescription {
    font-family: 'Pontano Sans', sans-serif;
    font-weight: 200;
}

.worksList {
    margin: 0;
    flex: 1;
    min-width: 0;
    list-style-type: none;
    padding: 0;
}

.workLi {
    /* background-color: var(--dark-green); */
}

/* basic workLiDiv given to all listed works; used in case work category is missing */
.workLiDiv {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 0 1rem 0;
}

/* @dev These 4 classes (editing, writing, music, platypus) are applied
 * in pages.works.works-lister, and they match the work categories from the back end. */
.editing {
    /* background-color: var(--light-blue); */
}

.writing {
    /* background-color: var(--light-turquoise); */
}

.music {
    /* background-color: var(--light-red); */
}

.platypus {
    /* background-color: var(--light-purple); */
}

.thumbWrapper {
    /* background-color: var(--light-chartreuse); */
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    overflow: hidden;
}

.thumbWrapper img {
    width: 100%;
    height: 100%;
    /* cover fills the box, cropping overflow, preserving aspect ratio */
    object-fit: cover;
    display: block;
}

.listedWorkInfo {
    padding: 0 0 0 1rem;
    font-family: 'Pontano Sans', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
}

.listedWorkTitle {
    margin: 0 0 1rem 0;
    font-family: 'Pontano Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

/* @dev `a` doesn't inherit color from outer h3.listedWorkTitle */
.listedWorkTitle a {
    color: var(--black);
    text-decoration: none;
}

.listedWorkDateCreated {
    color: var(--mid-gray);
}

.pageRight {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.workImage {
    max-width: min(100%, 400px);
    height: auto;
    display: block;
}