:root {
    --primary-color: #d26b22;
    --background-color: #100f16;
    --text-color: #acacb5;
    --text-color-muted: #62605e;
    --logo-color: #8b95b9;
    --gap: 20px;
}
@media screen and (min-width: 768px) {
    :root {
        --gap: 40px;
    }
}
@media (prefers-color-scheme: dark) {
    :root {
        --primary-color: #aa1ce7;
        --background-color: #202024;
        --text-color: #b8c4d2;
        --text-color-muted: #aaa;
        --logo-color: #46527d;
    }
}
html {
    font-size: 18px;
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-size: 1rem;
    background: var(--background-color);
    color: var(--text-color);
    line-height: 1.75;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    padding: 0;
}
*, *::before, *::after {
    box-sizing: border-box;
}
html {
    height: 100%;
    scroll-behavior: smooth;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    text-underline-offset: 0.2em;
}
a[target="_blank"]:after {
  content:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='var(--primary-color, %23d26b22)' d='M13.0344828,1 L21.8275862,1 L21.9157969,1.00326853 L22.0629199,1.02372974 L22.1935464,1.05831362 L22.323777,1.10982394 L22.4380723,1.17116708 L22.5509917,1.24963936 L22.6566479,1.34341282 C22.6981044,1.38488852 22.73584,1.42872173 22.7698146,1.47446811 L22.8538338,1.60489271 L22.9164943,1.73705432 L22.9579747,1.86055997 L22.9919019,2.033957 L23,2.17241379 L23,10.9655172 C23,11.6130235 22.4750925,12.137931 21.8275862,12.137931 C21.1800799,12.137931 20.6551724,11.6130235 20.6551724,10.9655172 L20.6551724,5.00262069 L8.00143554,17.656608 C7.54357947,18.114464 6.80124812,18.114464 6.34339205,17.656608 C5.88553598,17.1987519 5.88553598,16.4564205 6.34339205,15.9985645 L18.9950345,3.34482759 L13.0344828,3.34482759 C12.3869765,3.34482759 11.862069,2.81992005 11.862069,2.17241379 C11.862069,1.52490753 12.3869765,1 13.0344828,1 Z'/%3E%3C/svg%3E");
    margin: 0 3px 0 5px;
    color: var(--primary-color);
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.15;
}
p, .body-text {
    font-size: 1em;
    margin: 0 0 1em;
    line-height: 1.6;
}


h1, .h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}
.h1--jumbo {
    font-size: clamp(2rem, 6vw, 4.5rem);
}
h2, .h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.page {
    padding: 0 var(--gap);
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 80em;
    margin: 0 auto;
    position: relative;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--gap)/2);
    position: relative;
    z-index: 10;
}

.logo {
    color: var(--logo-color);
    width: 36vw;
    max-width: 120px;
    opacity: 0.8;
}
.main-content {
    padding-bottom: var(--gap);
}
.site-footer {
    font-size: small;
    opacity: 0.8;
    margin-top: auto;
    padding: 2rem 1rem 1rem;
}
@media screen and (min-width: 768px) {
    .site-footer {
        display: flex;
        justify-content: space-between;
    }
}


.flex {
    display: flex;
}
.justify--center {
    justify-content: center;
}
.align--center {
    align-items: center;
}
.flex--column {
    flex-direction: column;
}
.space-between {
    justify-content: space-between;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60em, 1fr));
    gap: var(--gap);
}
.two-col.grid--tablet {
    grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 768px) {
    .flex--tablet {
        display: flex;
    }
    .grid--tablet {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(42em, 1fr));
        gap: var(--gap);
    }
}

/* widths */
.max-width--measure {
    max-width: 40em;
    margin: 0 auto;
}
.max-width--tablet {
    max-width: 768px;
    margin: 0 auto;
}
.max-width--desktop {
    max-width: 1200px;
    margin: 0 auto;
}


/* lists */
ul, ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}
li {
    margin-bottom: 0.5em;
}
dl {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0,max-content));
    line-height: 1.3;
}
dt {
    grid-column-start: 1;
    font-weight: 600;
}
dt, dd {
    margin: 0;
    padding-block: 0.25rem;
    padding-inline-end: 1rem;
    width: fit-content;
}

/* menu */
.menu {
    position: relative;
}
.menu svg {
    width: 30px;
    height: 30px;
    cursor: pointer;
}
.dropdown {
    display: none;
    position: absolute;
    top: 10px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    overflow: hidden;
}
.dropdown a {
    display: block;
    padding: 15px 30px;
    color: var(--primary-color);
    text-decoration: none;
}
.dropdown a:hover {
    background-color: rgba(0, 0, 0, 1);
}

.muted {
    opacity: 0.7;
}


/* utilities */
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.text-left {
    text-align: left;
}
.text-uppercase {
    text-transform: uppercase;
}
.text-lowercase {
    text-transform: lowercase;
}
.text-capitalize {
    text-transform: capitalize;
}
.text-bold {
    font-weight: bold;
}
.text-italic {
    font-style: italic;
}
.text-underline {
    text-decoration: underline;
}
.text-strikethrough {
    text-decoration: line-through;
}
.text-nowrap {
    white-space: nowrap;
}
.text-large {
    font-size: 1.5em;
    line-height: 1.3;
}
.text-small {
    font-size: 0.8em;
}

/*! spacing */

.m-none {
    margin:0 !important
}

.p-none {
    padding:0 !important
}

.m-t-none {
    margin-top:0 !important
}

.p-t-none {
    padding-top:0 !important
}

.m-r-none {
    margin-right:0 !important
}

.p-r-none {
    padding-right:0 !important
}

.m-b-none {
    margin-bottom:0 !important
}

.p-b-none {
    padding-bottom:0 !important
}

.m-l-none {
    margin-left:0 !important
}

.p-l-none {
    padding-left:0 !important
}

.m-half {
    margin:.5rem !important
}

.p-half {
    padding:.5rem !important
}

.m-t-half {
    margin-top:.5rem !important
}

.p-t-half {
    padding-top:.5rem !important
}

.m-r-half {
    margin-right:.5rem !important
}

.p-r-half {
    padding-right:.5rem !important
}

.m-b-half {
    margin-bottom:.5rem !important
}

.p-b-half {
    padding-bottom:.5rem !important
}

.m-l-half {
    margin-left:.5rem !important
}

.p-l-half {
    padding-left:.5rem !important
}

.m-1 {
    margin:1rem !important
}

.p-1 {
    padding:1rem !important
}

.m-t-1 {
    margin-top:1rem !important
}

.p-t-1 {
    padding-top:1rem !important
}

.m-r-1 {
    margin-right:1rem !important
}

.p-r-1 {
    padding-right:1rem !important
}

.m-b-1 {
    margin-bottom:1rem !important
}

.p-b-1 {
    padding-bottom:1rem !important
}

.m-l-1 {
    margin-left:1rem !important
}

.p-l-1 {
    padding-left:1rem !important
}

.m-2 {
    margin:2rem !important
}

.p-2 {
    padding:2rem !important
}

.m-t-2 {
    margin-top:2rem !important
}

.p-t-2 {
    padding-top:2rem !important
}

.m-r-2 {
    margin-right:2rem !important
}

.p-r-2 {
    padding-right:2rem !important
}

.m-b-2 {
    margin-bottom:2rem !important
}

.p-b-2 {
    padding-bottom:2rem !important
}

.m-l-2 {
    margin-left:2rem !important
}

.p-l-2 {
    padding-left:2rem !important
}

.m-3 {
    margin:3rem !important
}

.p-3 {
    padding:3rem !important
}

.m-t-3 {
    margin-top:3rem !important
}

.p-t-3 {
    padding-top:3rem !important
}

.m-r-3 {
    margin-right:3rem !important
}

.p-r-3 {
    padding-right:3rem !important
}

.m-b-3 {
    margin-bottom:3rem !important
}

.p-b-3 {
    padding-bottom:3rem !important
}

.m-l-3 {
    margin-left:3rem !important
}

.p-l-3 {
    padding-left:3rem !important
}

.m-4 {
    margin:4rem !important
}

.p-4 {
    padding:4rem !important
}

.m-t-4 {
    margin-top:4rem !important
}

.p-t-4 {
    padding-top:4rem !important
}

.m-r-4 {
    margin-right:4rem !important
}

.p-r-4 {
    padding-right:4rem !important
}

.m-b-4 {
    margin-bottom:4rem !important
}

.p-b-4 {
    padding-bottom:4rem !important
}

.m-l-4 {
    margin-left:4rem !important
}

.p-l-4 {
    padding-left:4rem !important
}

.m-l-auto {
    margin-left:auto
}

.m-r-auto {
    margin-right:auto
}

.m-t-auto {
    margin-top:auto
}

.m-b-auto {
    margin-bottom: auto
}




/* Page takeover */
body:has(.page-takeover) {
    padding-top: 0;
    padding-bottom: 0;
    --logo-color: white;
}
.page-takeover.knv {
    background-color: #080808;
}
.page-takeover .poster {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 1800px;
    background: var(--background-color) url(/img/knv--poster1-bg--16x9.jpg) no-repeat 30% 20%;
    background-size: cover;
    margin-inline: auto;
    margin-bottom: 20px;
}
.page-takeover h1 > img {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 38%;
}
.page-takeover .award-logo {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 15%;
    height: auto;
    opacity: 0.7;
}
.poster-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
}
.poster-footer {
    text-align: center;
    padding-inline: var(--gap);
}


/* project grid */
.projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
    max-width: 2000px;
    margin: 0 auto;
}
@media screen and (min-width: 768px) {
    .projects {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}
.project {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-decoration: none;
}
.project .hero {
    aspect-ratio: 16 / 9;
}
.project .background-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    transition: opacity 0.6s ease;
}
.project .content {
    position: relative;
}
.project:hover .background-wrap {
    opacity: 1;
}


/* news link */
.news {
    display: block;
    padding: 0.5rem 1rem;
    background: rgba(100, 100, 100, 0.3);
    border-radius: 8px;
    line-height: 1.2;
}


/* contact page */
.contact {
    background: var(--background-color) radial-gradient(at center top, #2b2b39, #100f16);
}
.contact .logo {
    display: block;
    padding: var(--gap);
    width: 60%;
    max-width: 400px;
    margin: 0 auto;
}
