@import "/css/reset.css?v=1.12";
@import "/css/page-home.css?v=1.12";
@import "/css/page-entry.css?v=1.12";
@import "/css/page-gallery.css?v=1.12";
@import "/css/page-content.css?v=1.12";
@import "/css/temp-dev.css?v=1.12";


/* 

    Hey there! Since you're here, feel free to take a look around.

    First, the disclaimer: I've been learning and applying some of the latest CSS 
    capabilities as I go while developing this site, and I was also designing while I
    was building. Both tend to lead to messiness that needs refactoring, so don't 
    look at this as an exercise in best practices or anything. There are probably a
    ton of better ways to do a lot of it! The number of media queries got away from 
    me, for one.

    Disclaimer aside: I had a lot of fun building this out so if you see something 
    you want to try yourself, go ahead! I may not have come into this knowing what all
    the latest and greatest CSS was when I started, but I knew what I wanted to make 
    and working through it led to a few surprises so maybe there are some ideas you 
    can take away.

    Also, this kind of targeted message used to be a lot more common many years ago 
    and I suspect most seeing this were around then too. But, if you're newer to 
    building websites and trying to learn from this one, please know that I am happy
    to help and you should feel free to get in touch. 

    – Dave

*/



:root {

    /* grid fundamentals */
    --site-grid-gap: 20px;
    --site-padding-vertical: 20px;
    --site-padding-horizontal: 20px;

    --site-sidebar-width: 200px;
    --site-content-width: 50rem;

    /* font families */
    --font-main: "Lato", sans-serif;
    --font-alt: 'Crete Round', serif;
    --font-accent: 'Lexend', sans-serif;
    --font-code: 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', Monaco, monospace;

    /* text sizing */
    --text-size-xsm: 0.875rem;      /* 14px */
    --text-size-sm: 1rem;           /* 16px */
    --text-size-m: 1.125rem;        /* 18px */
    --text-size-l: 1.375rem;        /* 22px */
    --text-size-xl: 1.75rem;        /* 28px */
    --text-size-xxl: 2.25rem;       /* 36px */
    --text-size-xxxl: 3rem;         /* 48px */

    --line-height-condensed: 1.2;
    --line-height-compact: 1.4;
    --line-height-regular: 1.8;
    --line-height-open: 2.4;


    /* UI measurements */
    --ui-measure-1: 0.125rem;       /* 2px */
    --ui-measure-2: 0.25rem;        /* 4px */
    --ui-measure-3: 0.375rem;       /* 6px */
    --ui-measure-4: 0.5rem;         /* 8px */
    --ui-measure-5: 0.625rem;       /* 10px */
    --ui-measure-6: 0.75rem;        /* 12px */
    --ui-measure-7: 0.875rem;       /* 14px */
    --ui-measure-8: 1rem;           /* 16px */

    --ui-measure-half: var(--ui-measure-4);
    --ui-measure-full: var(--ui-measure-8);
    --ui-measure-2x: 2rem;
    --ui-measure-3x: 3rem;
    --ui-measure-4x: 4rem;
    --ui-measure-6x: 6rem;
    --ui-measure-8x: 8rem;

    /* breakpoints */
    --ui-mq-1: 600px;
    --ui-mq-2: 900px;
    --ui-mq-3: 1200px;
    --ui-mq-4: 1600px;

    /* transition timing */
    --transition-delay-fastest: 0.1s;
    --transition-delay-fast: 0.15s;
    --transition-delay: 0.25s;
    --transition-delay-slow: 0.4s;


    /* base colour ramp */
    --blue-1: 14, 30, 45;
    --blue-2: 47, 90, 131;
    --blue-3: 73, 127, 178;
    --blue-4: 142, 185, 222;
    --blue-5: 188, 214, 236;

    --green-1: 38, 88, 80;
    --green-2: 82, 126, 119;
    --green-3: 121, 160, 154;
    --green-4: 156, 188, 183;
    --green-5: 201, 221, 218;

    --neutral-1: 63, 52, 33;
    --neutral-2: 121, 111, 99;
    --neutral-3: 161, 152, 139;
    --neutral-4: 201, 190, 175;
    --neutral-5: 239, 234, 229;

    --red-1: 158, 22, 8;
    --red-2: 218, 39, 19;
    --red-3: 230, 114, 101;

    --yellow-1: 160, 95, 4;
    --yellow-2: 255, 183, 0;
    --yellow-3: 248, 225, 166;

    --white: 255, 255, 255;
    --black: 0, 0, 0;

    /* utility colours */
    --main-bg-colour: var(--neutral-5);
    --main-text-colour: var(--blue-1);
    --main-link-colour: var(--red-1);
    --main-link-hover-colour: var(--red-2);
    --main-ui-colour: var(--green-1);
    --secondary-text-colour: var(--green-1);
    --secondary-accent-colour: var(--green-3);
    --secondary-link-colour: var(--green-2);
}
    .decor-green {
        --main-bg-colour: var(--green-5);
    }
    .decor-neutral {
        --main-bg-colour: var(--neutral-5);
    }
    .decor-blue {
        --main-bg-colour: var(--blue-5);
        --main-text-colour: var(--blue-1);
        --main-link-colour: var(--red-1);
        --main-link-hover-colour: var(--red-2);
        --main-ui-colour: var(--blue-1);
        --secondary-text-colour: var(--blue-1);
        --secondary-accent-colour: var(--blue-3);
        --secondary-link-colour: var(--blue-2);
    }


/*

    -----------------
    Base type styling
    -----------------

*/
body {
    color: rgb(var(--main-text-colour));
    background-color: rgb(var(--main-bg-colour));
    font-family: var(--font-main);
    font-weight: 400;
    font-style: normal;
    font-optical-sizing: auto;
    line-height: var(--line-height-regular);
    min-height: 100dvh;

    /* don't love how hacky this is, but large was feeling just a bit too big at lower canvas sizes */
    font-size: clamp(var(--text-size-sm), 1.5vw, 1.25rem);
    @media (min-width: 1600px) {
        font-size: clamp(var(--text-size-sm), 1.5vw, var(--text-size-l));
    }
}
a {
    color: rgb(var(--main-link-colour));
    text-decoration: none;

    &:hover {
        color: rgb(var(--main-link-hover-colour));
        text-decoration: underline;
        transition: 
            color var(--transition-delay) ease-out;
    }    
}

h1, h2, h3, h4 {
    text-wrap: balance;
    margin: 1rem 0 0 0;
}
h1 {
    font-family: var(--font-alt);
    font-size: var(--text-size-xl);
    font-size: clamp(var(--text-size-l), 2vw, var(--text-size-xxl));
}
h2 {
    font-family: var(--font-alt);
    font-size: var(--text-size-l);
    font-size: clamp(var(--text-size-m), 1.5vw, var(--text-size-xl));
    font-weight: 300;
    margin: var(--ui-measure-full) 0 var(--ui-measure-half) 0;
    @media (min-width: 900px) {
        margin: var(--ui-measure-2x) 0 var(--ui-measure-full) 0;
    }
}
h3 {
    margin: 2rem 0 1rem 0;
    font-size: var(--text-size-m);
    text-transform: uppercase;
}
article {

    @media (min-width: 900px) {
        margin: 2rem 0;
    }

    & section {
        margin: 4rem 0;
    }
}
code {
    display: inline-block;
    margin: 0 var(--ui-measure-1);
    padding: 0 var(--ui-measure-3);
    border-radius: 4px;
    font-family: var(--font-code);
    font-size: smaller;
    color: rgb(var(--green-2));
    background: rgba(var(--green-4), 0.5);
    box-shadow: 
        inset rgba(var(--black), 0.05) 1px 1px 1px,
        inset rgba(var(--white), 0.1) -1px -1px 1px;

    .decor-neutral & {
        color: rgb(var(--neutral-2));
        background: rgba(var(--neutral-4), 0.5);
    }
}
p {
    text-wrap: pretty;
    margin: var(--ui-measure-half) 0;
}
    p + p, div + p {
        margin-top: calc(var(--ui-measure-3) * 2);
        @media (min-width: 900px) {
            margin-top: calc(var(--ui-measure-6) * 2);
        }
    }
    p + img {
        margin-top: calc(var(--ui-measure-6) * 2);
    }
ul {
    padding: 0;
    margin: 1rem 0;
    li {
        list-style: disc;
        margin: 1rem 0 1rem 1rem;
    }
}

.disclaimer {
    font-size: var(--text-size-xsm);
}








/* 

    ---------
    Dark mode
    ----------------

*/ 

.dark-mode {
    background: #000;
}




/*

    --------------
    Grid baselines
    --------------

*/
@media (min-width: 600px) {
    :root {
        --site-padding-vertical: 40px;
        --site-padding-horizontal: 40px;
    }
}
@media (min-width: 1200px) {
    :root {
        --site-grid-gap: 40px;
    }
}
@media (min-width: 1600px) {
    :root {
        --site-grid-gap: 80px;
        --site-padding-vertical: 80px;
        --site-padding-horizontal: 80px;
    }
}


.site-wrapper {
    width: 100%;
    padding: var(--site-padding-vertical) var(--site-padding-horizontal);
}
    @media (min-width: 900px) {
        .site-wrapper {
            display: grid;
            grid-template-columns: var(--site-sidebar-width) auto;
            grid-gap: var(--site-grid-gap);
        }
    }
@media (min-width: 900px) {
    main {
        display: grid;
        grid-template-rows: auto 8rem;
    }
}



/*

    ---------------
    Sidebar styling
    ---------------

*/
.site-head {
    @media (max-width: 900px) {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        transition: all var(--transition-delay-slow) ease-out;

        &::after {
            position: fixed;
            display: block;
            top: 0;
            z-index: 101;
            content: "";
            width: 100%;
            height: 40px;
            opacity: 0;
            transition: opacity var(--transition-delay-fast) ease-out;
        }

        &.scrolled {
            .decor-green & {
                --main-bg-colour: var(--green-4);        
            }
            background-image: linear-gradient(
                rgba(var(--main-bg-colour), 1) 0%,
                rgba(var(--main-bg-colour), 0.8) 60%,
                rgba(var(--main-bg-colour), 0.4) 80%,
                rgba(var(--main-bg-colour), 0) 100%
            );
            &::after {
                opacity: 1;
                z-index: -1;
                background-image: linear-gradient(
                    rgba(var(--main-bg-colour), 0.9) 0%,
                    rgba(var(--main-bg-colour), 0) 100%
                );
            }
        }
    }
}
.site-name {
    user-select: none; 
    @media (max-width: 900px) {
        padding-top: var(--ui-measure-half);
        padding-left: var(--ui-measure-full);
    }
    @media (min-width: 900px) {
        & {
            display: grid;
            align-items: start;
            height: 100%;
        }
    }
    position: relative;
    z-index: 105;
    a {
        display: inline-block;
        font-size: 1.5rem;
        font-family: var(--font-accent);
        font-weight: 600;
        text-decoration: none;
        text-transform: uppercase;
        color: rgb(var(--main-ui-colour));
        text-shadow: rgba(0,0,0,0.15) 0 1px 1px;
        transition: transform var(--transition-delay-slow) ease-out;

        &:hover {
            transform: scale(1.01);
        }
    }
    img {
        display: inline-block;
        filter: 
            drop-shadow(rgba(var(--black), 0.05) 0 2px 5px)
            drop-shadow(rgba(var(--black), 0.2) 0 1px 1px)
            ;
    }
}
.site-head-inner {
    /* who says HTML can't be kerned */
    .da {letter-spacing: -0.005rem;}
    .av {letter-spacing: -0.1rem;}
    .ve {letter-spacing: -0.03rem;}

    @media (max-width: 900px) {
        padding-bottom: var(--ui-measure-half);
    }
    @media (min-width: 900px) {
        & {
            display: grid;
            grid-template-rows: 100px 1fr 100px;
            align-items: center;

            width: var(--site-sidebar-width);
            height: calc(100% - var(--site-padding-vertical) * 2);
            position: fixed;
            top: var(--site-padding-vertical);
        }
    }
}
#site-menu-button {
    display: none;
    position: absolute;
    top: calc(var(--site-padding-vertical) / 4);
    right: calc(var(--site-padding-horizontal) / 2);
    width: var(--ui-measure-3x);
    height: var(--ui-measure-3x);
    cursor: pointer;
    z-index: 120;

    &::before, &::after {
        display: block;
        content: " ";
        position: absolute;
        left: var(--ui-measure-5);
        width: calc(var(--ui-measure-6) * 2);
        height: var(--ui-measure-1);
        background-color: rgb(var(--main-ui-colour));
        border-radius: 10px;
        transition: 
            background-color var(--transition-delay-fastest) ease-out,
            transform var(--transition-delay-fastest) ease-out,
            top var(--transition-delay-fastest) ease-out;
    }
    &::before {
        top: var(--ui-measure-full);
    }
    &::after {
        bottom: var(--ui-measure-full);
    }
    &.active::before {
        background-color: rgb(var(--white));
        top: 50%;
        transform: rotateZ(45deg);
    }
    &.active::after {
        background-color: rgb(var(--white));
        top: 50%;
        transform: rotateZ(-45deg);
    }

    @media (max-width: 900px) {
        display: block;
    }
}

.site-head-nav .nav-list {
    li {
        margin: 0;
        list-style: none;
        user-select: none; 
    }
    a {
        display: inline-block;
        position: relative;
        padding: var(--ui-measure-full) 0;
        
        font-weight: 400;
        font-size: var(--text-size-m);
        text-decoration: none;
        color: rgba(var(--secondary-link-colour), 0.66);

        transition: 
            color var(--transition-delay-fast) ease-out,
            opacity var(--transition-delay-fast) ease-out,
            padding var(--transition-delay-fast) ease-out,
            text-shadow var(--transition-delay-fast) ease-out;
    
        &::before {
            position: absolute;
            left: 0;
            top: 50%;
            margin-top: -10px;
            width: 20px;
            height: 20px;
            content: " ";
            background-color: rgb(var(--red-2));
            background-repeat: no-repeat;
            background-position: center;
            mask-image: url(/images/site/icons/indicator.svg);
            opacity: 0;
            transform: scale(0.9);
            transition: 
                opacity var(--transition-delay-fastest) ease-out,
                transform var(--transition-delay-fast) ease-out,
                left var(--transition-delay-fast) ease-out;
        }
        .site-home &::before {
            background-color: rgb(var(--white));
        }

        @media (hover: hover) {
            &:hover {
                color: rgba(var(--secondary-link-colour), 1);
                padding-left: var(--ui-measure-full);

                &::before {
                    left: -0.35rem;
                    opacity: 0.97;
                }
                .site-home &::before {
                    opacity: 0.9;
                }
            }
        }
        &:focus {
            font-weight: 500;
        }
        &[data-state="active"] {
            font-weight: 600;
            opacity: 1;

            &:hover {
                padding-left: 0;

                &::before {
                    opacity: 0;
                }
            }
        }

        .decor-blue & {
            color: rgba(var(--secondary-link-colour), 0.5);
            &:hover {
                color: rgba(var(--secondary-link-colour), 0.8333);
            }
        }

        @media (min-width: 900px) {
            &[data-state="active"] {
                color: rgba(var(--secondary-text-colour), 1);
            }
        }
        @media (min-width: 1200px) {
            font-size: var(--text-size-l);
        }
    }

    @media (max-width: 900px) {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 110;
        width: 100%;
        height: 0;
        overflow: hidden;
        background-color: rgba(var(--white), 0);
        backdrop-filter: blur(45px);
        transition: 
            height var(--transition-delay-fast) ease-out,
            background-color var(--transition-delay-fastest) ease-out;

        li {
            position: relative;
            top: -1rem;
            transition: top var(--transition-delay-fast) ease-out;
            margin-bottom: var(--ui-measure-2x);
            &:nth-child(2) {
                transition-duration: 0.2s;
            }
            &:nth-child(3) {
                transition-duration: 0.25s;
            }
            &:nth-child(4) {
                transition-duration: 0.3s;
            }
        }
        a {
            display: none;
            font-size: var(--text-size-xl);
            font-weight: 300;
            color: rgb(var(--white));
            text-shadow: rgba(var(--main-ui-colour), 0.5) 0 1px 2px;

            .decor-blue & {
                color: rgb(var(--white));
            }
        }

        &.active-helper {
            padding: var(--ui-measure-3x) var(--ui-measure-2x);
        }

        &.active {
            z-index: 110;
            height: 100vh;
                height: 100dvh; /* a bit fresh, so keeping vh around as a fallback */
            display: grid;
            align-items: center;
            background-color: rgba(var(--main-ui-colour), 0.7);
            background-blend-mode: multiply;
            li {
                align-self: center;
            }
            a {
                display: block;
            }

            .decor-blue & {
                background-color: rgba(var(--blue-2), 0.7);
            }
        }

    }
}

.site-head-extras {
    display: none;
    @media (min-width: 900px) {
        display: flex;
        flex-direction: row; 
        justify-content: flex-start; 
        align-items: flex-end;
        height: 100%;
    }
}
.site-head-extras ul {
    width: 100%;
    user-select: none;
}
.site-head-extras li {
    display: inline-block;
    list-style: none;
    margin: 0 20px 0 0;

    a, span {
        display: block;
        width: 20px;
        height: 20px;
        padding: 20px 0 0 20px;
        overflow: hidden;
        background-repeat: no-repeat;
        cursor: pointer;

        transition: 
            opacity var(--transition-delay-fast) ease-out,
            background-color var(--transition-delay-fast) ease-out;


        opacity: 0.75;
        background-color: rgba(var(--main-ui-colour), 0.75);
        .decor-blue & {
            background-color: rgba(var(--secondary-link-colour), 0.8);
        }
        .site-home & {
            background-color: rgba(var(--white), 0.75);
            &:hover {
                background-color: rgba(var(--white), 1);
            }
        }

        &:hover {
            opacity: 1;
            filter: none;
            background-color: rgb(var(--main-link-hover-colour));
        }
    }

    &.rss a {
        mask-image: url(/images/site/icons/rss-alt.svg);
    }
    &.contact a {
        mask-image: url(/images/site/icons/contact.svg);
    }
    &.mode span {
        mask-image: url(/images/site/icons/mode-dark.svg);
    }
        .dark-mode &.mode span {
            mask-image: url(/images/site/icons/mode-light.svg);
        }
}




/*

    -------------------
    Site footer styling
    -------------------

*/
.site-foot {
    font-size: var(--text-size-xsm);
    color: rgba(var(--secondary-text-colour));
    margin-top: var(--ui-measure-2x);

    p, ul {
        display: inline-block;
        margin: 0;
        @media (min-width: 900px) {
            margin-bottom: var(--ui-measure-half);
        }
    }
    li {
        display: inline-block;
        margin: 0 var(--ui-measure-half);
        @media (min-width: 900px) {
            margin: 0 0 0 var(--ui-measure-2x);
        }
    }

    @media (max-width: 900px) {
        padding-bottom: var(--ui-measure-2x);
        text-align: center;
    }
    @media (min-width: 600px) {
        display: flex;
        flex-direction: row; 
        justify-content: flex-start; 
        align-items: flex-end;
        text-align: left;
    }
}


/*

    -----------------
    Reusable controls
    -----------------

*/
.quiet-button {
    user-select: none; 
    display: inline-block;
    padding: var(--ui-measure-2) var(--ui-measure-6);
    border: solid 1px rgba(var(--white), 0);
    border-width: 1px 0;
    border-radius: 100px;
    color: rgba(var(--main-text-colour), 0.8);
    font-size: var(--text-size-sm);
    line-height: 1;
    text-transform: uppercase;
    &:hover {
        text-decoration: none;
        text-shadow: rgba(var(--red-1), 0.1) 0 1px 2px;
        color: rgba(var(--white), 1);
        background-color: rgba(var(--red-2), 1);
        background-image: linear-gradient(
            180deg, 
            rgba(var(--red-2), 0.4) 0%,
            rgba(var(--white), 0) 50%);
        border-top-color: rgba(var(--red-3), 0.1);
        border-bottom-color: rgba(var(--red-1), 0.1);
        box-shadow: 
            0 4px 3px rgba(var(--red-3), 0.2),
            0 6px 8px rgba(var(--black), 0.1);

        transition: 
            background-color var(--transition-delay-fast) ease-out,
            box-shadow var(--transition-delay-fast) ease-out,
            color var(--transition-delay-fast) ease-out;

        .decor-blue & {
            color: rgba(var(--white), 1);
        }
    }
    &:focus {
        margin-top: 2px;
        box-shadow: 
            0 2px 1px rgba(var(--red-3), 0.1),
            0 2px 3px rgba(var(--black), 0.2);
        background-color: rgba(var(--red-2), 0.8);
        backdrop-filter: blur(1px);

        transition: 
            margin-top var(--transition-delay-fast) ease-out,
            box-shadow var(--transition-delay-fast) ease-out
    }
    &:active {
        color: rgb(var(--white));
    }
    .site-home & {
        &:hover {
            text-shadow: rgba(var(--blue-1), 0.1) 0 1px 2px;
            background-color: rgba(var(--blue-2), 0.8);
            background-image: linear-gradient(
                180deg, 
                rgba(var(--blue-3), 0.2) 0%,
                rgba(var(--white), 0) 50%);
            border-top-color: rgba(var(--blue-3), 0.1);
            border-bottom-color: rgba(var(--red-1), 0.1);
            box-shadow: 
                0 4px 3px rgba(var(--blue-3), 0.2),
                0 6px 8px rgba(var(--black), 0.1);
        }
        &:focus {
            box-shadow: none;
            background-color: rgba(var(--blue-2), 1);
        }

    }
}

.callout-panel {
    margin: var(--ui-measure-2x) 0;
    padding: var(--ui-measure-2x);
    border-radius: 24px;
    background-image: linear-gradient(
        180deg, 
        rgba(var(--white), 0.2) 0%,
        rgba(var(--white), 0.1) 100%
    );
    border: solid 1px rgba(var(--white), 0.4);
    border-width: 1px 0 0 1px;
    backdrop-filter: blur(65px);
    box-shadow: rgba(var(--black), 0.1) -5px -5px 125px;

    @media (min-width: 900px) {
        margin: var(--ui-measure-2x) -2rem;
    }
    article + & {
        margin-top: var(--ui-measure-full);
    }
}
.header-section {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    line-height: var(--line-height-regular);

    h2 {
        margin: 0 var(--ui-measure-half) 0 0;
        a {
            color: rgb(var(--main-text-colour));
            &:hover, &:focus {
                color: rgb(var(--main-link-hover-colour));
                text-decoration: none;
            }
        }
    }
    .view-all {
        text-transform: uppercase;
        font-size: var(--text-size-sm);
        margin-right: -0.75rem;
    }
    div {
        flex: 1 1 auto;
        text-align: right;
    }
}

.blur-panel {
    margin-top: var(--ui-measure-full);

    @media (min-width: 900px) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
        grid-row-gap: var(--ui-measure-full);
        grid-column-gap: var(--ui-measure-full);
    }

    ul {
        display: inline;
        padding: 0;
    }

    li, figure {
        list-style: none;
        margin: 0;
        border-radius: 8px;
        overflow: hidden;
        position: relative;
        height: 100%;
        &:hover, &:focus {
            transform: none;
            box-shadow:
                rgba(var(--black), 0.25) 0 1px 4px,
                rgba(var(--black), 0.1) 0 4px 12px;

        }
        @media (max-width: 900px) {
            margin-bottom: var(--ui-measure-half);
        }
    }

    img {
        min-width: 100%;
        min-height: 100%;
        object-fit: cover;
        z-index: 1;
        aspect-ratio: 2 / 1;
        border-radius: 8px;

        li[class^="panel"] & {
            filter: saturate(0.3);
        }
        li[class^="panel"]:hover & {
            filter: saturate(1);
        }

        @media (max-width: 900px) {
            aspect-ratio: 3 / 1;
        }
    }

    .caption {
        display: grid;
        align-items: center;
        position: absolute;
        user-select: none; 
        top: 0;
        left: 0;
        z-index: 2;
        width: 100%;
        height: 100%;
        font-family: var(--font-accent);
        font-weight: 600;
        font-size: var(--text-size-l);
        text-transform: uppercase;
        text-align: center;
        text-shadow: 
            rgba(var(--black), 0.5) 0 1px 3px,
            rgba(var(--black), 0.5) 0 2px 5px,
            rgba(var(--black), 1) 0 10px 30px
            ;
        color: rgba(var(--white), 0.9);
        background-color: rgba(var(--black), 0.3);
        backdrop-filter: blur(4px);
        background-blend-mode: multiply;
        border-radius: 8px;
        transition:
            color var(--transition-delay-fast) ease-out,
            background var(--transition-delay-fast) ease-out,
            backdrop-filter var(--transition-delay-fast) ease-out;

        @media (min-width: 900px) {
            font-size: var(--text-size-xxl); 
        }


        .projects & {
            text-shadow: 
                rgba(var(--black), 0.15) 0 1px 3px,
                rgba(var(--black), 0.15) 0 2px 5px,
                rgba(var(--black), 0.3) 0 10px 30px
                ;
        }

        span:not([class]) {
            display: none;
        }
        span.name {
            align-self: end;
        }
        span.date {
            font-size: var(--text-size-sm);
            text-shadow: none;
            align-self: start;
        }

        &:hover, &:focus {
            color: rgba(var(--white), 0);
            text-shadow: rgba(var(--black), 0) 0 0 0;
            background-color: rgba(var(--black), 0.1);
            backdrop-filter: blur(0);
        }


        .panel-red & {
            background-color: rgba(var(--red-1), 0.7);
            &:hover {
                background-color: rgba(var(--red-1), 0);
            }
        }
        .panel-orange & {
            background-color: rgba(180, 90, 0, 0.7);
            &:hover {
                background-color: rgba(var(--red-1), 0);
            }
        }
        .panel-green & {
            background-color: rgba(var(--green-2), 0.7);
            &:hover {
                background-color: rgba(var(--green-2), 0);
            }
        }
        .panel-blue & {
            background-color: rgba(var(--blue-2), 0.7);
            &:hover {
                background-color: rgba(var(--blue-2), 0);
            }
        }
        .panel-neutral & {
            background-color: rgba(var(--neutral-2), 0.7);
            &:hover {
                background-color: rgba(var(--neutral-2), 0);
            }
        }

    }

    &.square img {
        aspect-ratio: 1;
    }
}

.rss-button {
    display: inline-block;
    width: 20px;
    height: 20px;
    padding: 20px 0 0 20px;
    overflow: hidden;
    mask-image: url(/images/site/icons/rss-alt.svg);
    background-color: rgb(var(--main-ui-colour));
    opacity: 0.75;
    transition: 
        opacity var(--transition-delay-fast) ease-out,
        background-color var(--transition-delay-fast) ease-out;

    &:hover {
        opacity: 1;
        background-color: rgb(var(--red-2));
    }

}

/*

    --------------
    Helper classes
    --------------

*/
.pixellated {
    image-rendering: pixelated;
}

.no-scroll {
    height: 100%;
        height: 100dvh; /* a bit fresh, so keeping vh around as a fallback */
    overflow: hidden;
}






/*

    -----------
    Transitions
    -----------

*/
/* copypasta, need to dig into this more in future iterations */
@view-transition {
    navigation: auto;
}
@media (prefers-reduced-motion: reduce) {
    ::view-transition-group(*),
    ::view-transition-old(*),
    ::view-transition-new(*) {
        animation-duration: 0s !important;
    }
}




/*

    -------------------
    Functional controls
    -------------------

*/
#function-skip-link {
    position: absolute;
    top: -100px;
    left: -100px;
    font-size: 1px;
    width: 1px;
    overflow: hidden;
    user-select: none;
}

#function-top-link {
    position: fixed;
    z-index: 1000;
    top: calc(100% - var(--site-padding-vertical) - (var(--ui-measure-5) * 2));
    right: var(--ui-measure-2x);
    user-select: none;
    opacity: 0;

    transition: 
        opacity var(--transition-delay-fast) ease-out,
        top var(--transition-delay-fast) ease-out;

    &.visible {
        opacity: 1;
        top: calc(100% - var(--site-padding-vertical) - (var(--ui-measure-7) * 2));
    }

    /* gonna assume device with other mechanism to get back to top like tapping the status bar */
    /* width isn't the best proxy, but it'll have to do. */
    @media (max-width: 600px) {
        display: none;
    }
}
    /*
        Ideally would have kept this attached, but styling the id overrides .quiet-button 
        (which, if you combine general class and specific element styling, makes this a 
        ridiculously over-engineered part of the site with flourishes that no one 
        reasonable will ever notice yet I love it anyway)
    */
    .back-to-top {
        color: rgba(var(--main-text-colour), 0.8);
        background-color: rgba(var(--white), 0.25);
        backdrop-filter: blur(6px);
        box-shadow: 0 0 0 rgba(var(--black), 0);
        text-shadow: 
            rgba(var(--white), 0.2) 0 2px 0px,
            rgba(var(--white), 0.2) 0 -2px 0px,
            rgba(var(--white), 0.2) 2px 0 0px,
            rgba(var(--white), 0.2) -2px 0 0px
            ;
    }