html {
    scrollbar-gutter: stable;
}

body {
    background-color:  #000000;
    font-family: 'Libre Baskerville';
}

/* Homepage --------------------------------------------------------------- */

.home-page,
.content-page {
    --background: #000000;
    --foreground: #ffffff;
    min-height: 100vh;
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: 'Libre Baskerville', 'Libre Baskerville', monospace;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.content-page {
    box-sizing: border-box;
    padding: 40px 0;
    justify-content: safe center;
}

.site-grid {
    width: min(960px, calc(100% - 40px));
    min-height: 540px;
    display: grid;
    grid-template-columns: minmax(190px, 0.6fr) minmax(0, 2fr);
}

.panel {
    box-sizing: border-box;
    border: 1px solid var(--foreground);
    background: var(--background);
}

.sidebar {
    padding: 28px 24px;
}

.site-title {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0 auto 48px;
    text-decoration: none;
}

.site-logo {
    display: block;
    width: 112px;
    height: 112px;
    image-rendering: pixelated;
}

.site-logo--animated {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.site-title:hover .site-logo--static,
.site-title:focus-visible .site-logo--static {
    opacity: 0;
}

.site-title:hover .site-logo--animated,
.site-title:focus-visible .site-logo--animated {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .site-title:hover .site-logo--static,
    .site-title:focus-visible .site-logo--static {
        opacity: 1;
    }

    .site-title:hover .site-logo--animated,
    .site-title:focus-visible .site-logo--animated {
        opacity: 0;
    }
}

.sidebar__links {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar__links li {
    margin-bottom: 14px;
}

.sidebar__links a {
    color: var(--foreground);
    font-size: 0.85rem;
    text-decoration: none;
}

.sidebar__links a:hover,
.sidebar__links a:focus-visible {
    text-decoration: underline;
    outline-offset: 4px;
}

.intro {
    border-left: 0;
    display: flex;
    flex-direction: column;
}

.intro__content {
    flex: 1;
    padding: clamp(40px, 7vw, 72px);
}

.intro h1 {
    margin: 0 0 32px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: normal;
}

.intro p {
    max-width: 62ch;
    margin: 0 0 16px;
    font-size: 0.85rem;
    line-height: 1.7;
}

.contact-box {
    padding: 20px;
    border-top: 1px solid var(--foreground);
}

.contact-box h2 {
    margin: 0 0 16px;
    font-size: 0.85rem;
    font-weight: normal;
}

.contact-box ul {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    list-style: none;
}

.contact-box a {
    color: var(--foreground);
    font-size: 0.8rem;
}

.contact-box a:hover,
.contact-box a:focus-visible {
    text-decoration: none;
    outline-offset: 4px;
}

.badge-footer {
    box-sizing: border-box;
    width: min(960px, calc(100% - 40px));
    padding: 12px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.badge-footer img {
    display: block;
    width: auto;
    height: 31px;
    image-rendering: pixelated;
}

/* About and portfolio ---------------------------------------------------- */

.content-grid {
    margin: 0;
    min-height: 540px;
}

.content-grid > .sidebar {
    align-self: stretch;
}

.content-panel {
    min-width: 0;
    border-left: 0;
}

.about-panel {
    display: flex;
    flex-direction: column;
}

.about-copy {
    flex: 1;
    padding: clamp(40px, 7vw, 72px);
}

.content-panel h1 {
    margin: 0 0 32px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: normal;
}

.about-panel p,
.portfolio-header p,
.project-card {
    font-size: 0.85rem;
    line-height: 1.7;
}

.about-panel p {
    max-width: 62ch;
    margin: 0;
}

.favourites-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--foreground);
}

.favourites-box {
    padding: 20px;
}

.favourites-box + .favourites-box {
    border-left: 1px solid var(--foreground);
}

.favourites-box h2 {
    margin: 0 0 16px;
    font-size: 0.85rem;
    font-weight: normal;
}

.favourites-box ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.8rem;
    line-height: 1.7;
}

.portfolio-header {
    padding: clamp(32px, 5vw, 56px);
}

.portfolio-header p {
    max-width: 62ch;
    margin: 0;
}

.portfolio-list {
    padding: 0;
}

.project-card {
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--foreground);
    border-right: 0;
    border-left: 0;
}

.project-card + .project-card {
    border-top: 0;
}

.project-card:last-child {
    border-bottom: 0;
}

.project-card h2 {
    margin: 0 0 20px;
    font-size: 1rem;
    font-weight: normal;
}

.project-card h2 span {
    font-size: 0.8em;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 20px;
    background: var(--foreground);
    border: 1px solid var(--foreground);
}

.project-images--single {
    grid-template-columns: 1fr;
}

.project-images img {
    display: block;
    width: 100%;
    height: clamp(150px, 22vw, 230px);
    object-fit: cover;
    background: var(--background);
}

.project-images--single img {
    height: auto;
    max-height: 320px;
    object-fit: contain;
}

.project-card ul {
    margin: 0;
    padding-left: 20px;
}

.project-card li + li {
    margin-top: 5px;
}

.project-card a {
    color: var(--foreground);
}

.project-card a:hover,
.project-card a:focus-visible {
    text-decoration: none;
    outline-offset: 4px;
}

@media (max-width: 680px) {
    .site-grid {
        width: min(100% - 24px, 520px);
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .badge-footer {
        width: min(100% - 24px, 520px);
    }

    .sidebar {
        padding: 24px;
    }

    .sidebar__links {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 20px;
    }

    .sidebar__links li {
        margin: 0;
    }

    .site-title {
        margin-bottom: 24px;
    }

    .intro {
        border-top: 0;
        border-left: 1px solid var(--foreground);
    }

    .content-panel {
        border-top: 0;
        border-left: 1px solid var(--foreground);
    }

    .portfolio-header {
        padding: 32px 24px;
    }

    .content-page {
        padding: 12px 0;
    }

    .favourites-grid {
        grid-template-columns: 1fr;
    }

    .favourites-box + .favourites-box {
        border-top: 1px solid var(--foreground);
        border-left: 0;
    }

    .project-images {
        grid-template-columns: 1fr;
    }
}

@font-face {
    font-family: 'Pixellari';
    src: url('fonts/subset-Pixellari.woff2') format('woff2'),
        url('fonts/subset-Pixellari.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Departure Mono';
    src: url('fonts/subset-DepartureMono-Regular.woff2') format('woff2'),
        url('fonts/subset-DepartureMono-Regular.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('fonts/subset-Roboto-Regular.woff2') format('woff2'),
        url('fonts/subset-Roboto-Regular.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto Mono';
    src: url('fonts/subset-RobotoMono-Medium.woff2') format('woff2'),
        url('fonts/subset-RobotoMono-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Jetbrains Mono';
    src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito';
    src: url('fonts/subset-Nunito-Regular.woff2') format('woff2'),
        url('fonts/subset-Nunito-Regular.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Libre Baskerville';
    src: url('fonts/subset-LibreBaskerville-Regular.woff2') format('woff2'),
        url('fonts/subset-LibreBaskerville-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}





@media(max-width:500px) {
    header {
        float: none;
        text-align: center;
        margin: 0;
        width: 100%;
    }

}


body:not(.home-page):not(.content-page) article {
    margin: auto;    
    color: #000000;
    padding-left: 200px;
    padding-right: 200px;
    padding-top: 50px;
    padding-bottom: 0px;
    font-size: x-large;
    outline: none;

}

body:not(.home-page):not(.content-page) article img {
    display: inline-block;
    width: 50%;
    width: 400px;
    height: 250px;
    outline: none;
    border: none;
}

body:not(.home-page):not(.content-page) article h1 {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: -20px;
}

body:not(.home-page):not(.content-page) article p {
    display: flex;
    justify-content: center;
    align-items: center;
}

body:not(.home-page):not(.content-page) article li {
    margin: auto;
}


body:not(.home-page):not(.content-page) article a {
    color: #248680;
    border: none;
    outline: none;
    text-decoration: none;

}

body:not(.home-page):not(.content-page) article a:hover {
    color: #1D5450;
}

.navbar {
    margin: 0;
    overflow: hidden;
	background-color: #000000;
    width: 100%;
}

.navbar li {
    float: left;
}

.navbar li a {
    padding-right: 50px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: left;
    text-decoration: none;
    color: #ffffff;
    display: block;
    font-size: medium;
}

.navbar li a:hover {
    color: #938e88;
}

footer  {
}

.buttons {
    padding-bottom: 10px;
}

footer p {
    color: #000000;
    background-color: #DEE6E0;
    text-align: center;
    position: fixed;
    bottom: 0;


}


.special {
    color: rgb(110, 135, 91)
}

.portimg {
    display: block;
    margin: auto;
    width: 50%;
    width: 200px;
    height: 200px;
    outline: none;
    border: none;
}
