@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap');

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

@font-face {
    font-family: 'Terminal Groteske';
    src: url('fonts/terminal-grotesque-webfont.woff2') format('woff2'),
        url('fonts/terminal-grotesque-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root{
    --main: #fff;
    --background: #301934;
    --highlight: #ffff00;
    --font-size: 15px;
    --letter-spacing: 0px;
    --line-height: 1.5;
    --margin: 15px;
    --header-height: 100px;
    --footer-height: 45px;
}

/* -^-^-^-^-^-^ */
/* SETUP        */
/* -^-^-^-^-^-^ */

html {
    box-sizing: border-box;
    background-color: var(--background);
    font-family: "Syne", sans-serif;
    font-weight: 400;
    font-optical-sizing: auto;
    color: var(--main);
    font-size: var(--font-size);
    letter-spacing: var(--letter-spacing);
    line-height: var(--line-height);
    -ms-overflow-style: none;
    scrollbar-width: none;
    height: 100%;
}
html::-webkit-scrollbar {display: none;}
body,
body *,
body > * {
    margin: 0;
    scrollbar-width: none;
}

*,
*:before,
*:after {
    box-sizing: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -^-^-^-^-^-^ */
/* CORE STYLING */
/* -^-^-^-^-^-^ */
h1{
    font-family: 'Interlope', serif;
    text-shadow: 0px 0px 5px var(--highlight);
    font-size: 2.5rem;
    letter-spacing: -0.8px;
    text-align: center;
    line-height: 0.8;
}
h2, h3, h4{
    font-family: 'Terminal Groteske', serif;
    font-size: 1.4rem;
}
h2::before{
    content: '_ ';
}
p {
  min-height: 1rem;
  margin: 1rem 0;
  font-size: 1.2rem;
}
a{
    text-decoration: none;
    color: inherit;
    display: inline-block;
}
p a, figcaption a{
    text-shadow: 0px 0px 5px var(--highlight);
    transition: text-shadow 1s ease;
    text-decoration: underline;
}
p a:hover, figcaption a:hover{text-shadow: 0px 0px 50px var(--highlight);}

ul {
  list-style-type: none;
  padding: 0;
}

blockquote {
  margin: 0 var(--margin);
  opacity: 0.8;
  font-style: italic;
}
blockquote footer {text-align: end;}

figcaption {
  text-align: center;
  font-size: 0.9rem;
}
header {
    padding: var(--margin);
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    width: 100%;
    height: var(--header-height);
    top: 0;
}

footer.footer {
    position: fixed;
    width: 100%;
    height: var(--footer-height);
    bottom: 0;
    padding: var(--margin);
    padding-top: 0;
}

img{width: 100%;}

svg{
    position: absolute;
    pointer-events: none;
    z-index: 4;
}

/* -^-^-^-^-^-^-^-^ */
/* GLOBALS STYLING  */
/* -^-^-^-^-^-^-^-^ */

.background {
  position: fixed;
  top: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
}
.background .overlay {
    z-index: 1;
  width: 100%;
  height: 100%;
  position: fixed;
  background-color: var(--background);
  opacity: 0.6;
}
.background img {
    filter: invert();
    object-fit: cover;
    width: 120%;
    height: 120%;
    object-position: center;
}

header a{
    display: inline-block;
} header a h1{transition: text-shadow 1s ease;}
header a h1:hover{ text-shadow: 0px 0px 50px var(--highlight); }
header .header-menu {width: 100%;}
ul.menu{
    display: flex;
    gap: 10px;
    position: relative;
}
ul.menu li:not(:last-of-type) h3::after {
    content: ',';
}

ul.menu .blank {
    flex-grow: 1;
    border-bottom: 1px solid;
    height: 22px;
}

ul.menu a{ transition: all 0.4s;}

ul.menu li.active a, 
ul.menu a:hover {
    mix-blend-mode: normal;
    text-shadow: 0px 0px 5px var(--highlight);
}

.content-container {
    padding: var(--margin);
    margin-top: var(--header-height);
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.img-border{
    fill: none;
    stroke: var(--main);
    stroke-width: 3px;
}
.image-caption{
    width: 100%;
    text-align: center;
}
.image-caption p{font-size: 1rem; margin-top: 0;}

/* -^-^-^-^-^-^-^-^ */
/* HOME.            */
/* -^-^-^-^-^-^-^-^ */

.content-container.home {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin-top: 0;
}

h1.main-title {
  font-size: 4rem;
  transition: text-shadow 1s ease;

}
h1.main-title:hover{text-shadow: 0px 0px 50px var(--highlight);}

/* -^-^-^-^-^-^-^-^-^-^-^-^ */
/* PROJECT COLLECTION       */
/* -^-^-^-^-^-^-^-^-^-^-^-^ */

.content-container.project-collection {
    max-height: calc(100vh - var(--header-height) - 25px);
    overflow-y: scroll;
}  
.projects-list li a h2:hover{mix-blend-mode: difference;}

.carousel {
    position: fixed;
    pointer-events: none;
    z-index: 4;
    width: 90vw;
    height: 110vh;
    top: 5vh;
    left: 20vw;
}
.carousel.desktop{display: block;}
svg#blob-projects {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
svg#blob-projects image, 
svg#blob-projects .project-cover{
    opacity: 0; 
    transition: opacity 0.6s cubic-bezier(0.29, 0.57, 0.12, 0.99);
}
svg .project-cover rect{
    fill: var(--background);
}
svg .project-cover text{
    text-anchor: middle;
    dominant-baseline: ideographic;
    fill: var(--main);
    font-size: 15rem;
    font-family: 'Interlope', serif;
    text-shadow: 0 0 5px var(--highlight);
}
svg#blob-projects .img-border{opacity: 0;}

.blob.mobile{display: none;}
/* -^-^-^-^-^-^ */
/* PROJECT      */
/* -^-^-^-^-^-^ */

.content-container.project {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: var(--margin);
    overflow: scroll;
    max-height: calc(100vh - var(--header-height));
}
.project .main-info{
    height: fit-content;
    position: sticky;
    top: 0;
}
.project .main-info .sub-info{padding-left: 22px;}
.project .content {
    width: 100%;
}

svg.image-blob {
    position: relative; 
    overflow: initial;
}

/* -^-^-^-^-^-^ */
/* INFO         */
/* -^-^-^-^-^-^ */

.content-container.info{
    display: grid;
    grid-template-columns: 1fr 4fr;
    margin-top: calc(var(--header-height) - 35px);
    gap: var(--margin);
    overflow: scroll;
    max-height: calc(100vh - var(--header-height) - 25px);
}

.info .content {
  display: grid;
  grid-template-columns: 3fr 2fr;
}
.text p:first-of-type {
  margin-top: 0;
}
.artist-portrait {
    position: fixed;
    right: 0;
    top: 10vh;
    width: 30vw;
}
.artist-portrait .image-caption {
    position: absolute;
    top: 0;
}

/* -^-^-^-^-^-^-^-^-^-^-^-^-^ */
/* MOBILE (PORTRAIT)          */
/* -^-^-^-^-^-^-^-^-^-^-^-^-^ */

@media screen and (max-width: 540px) {
    :root{--header-height: 130px;}
    header, footer.footer {z-index: 5;}
    .background .overlay {height: 115%;}
    .background img{   
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        position: fixed;
    }
    /* project colection */
    .content-container.project-collection{
        overflow-x: hidden;
    }
    /* project */
    .content-container.project{grid-template-columns: 1fr;}
    .project .main-info {
      height: fit-content;
      position: relative;
    }
    /* info */
    .content-container.info{grid-template-columns: 1fr; max-height: calc(100vh - var(--header-height) + 12px);}
    .info .content{ display: flex; flex-direction: column;}
    .artist-portrait{
        position: relative;
        width: calc(100vw - (var(--margin) * 2));
        margin-top: -60px;
        left: var(--margin);
        height: 60vh;
        order: 0;
    }
}

/* -^-^-^-^-^-^-^-^-^-^ */
/* TOUCHSCREENS         */
/* -^-^-^-^-^-^-^-^-^-^ */
@media (hover: none) {
    h1,
    p a, figcaption a,
    ul.menu li.active a{text-shadow: none; filter: drop-shadow(0 0 5px var(--highlight));}
    .content-container.info { max-height: calc(100vh - var(--header-height) + -28px);}
    .content-container.project-collection{ max-height: calc(100vh - var(--header-height) - 64px);}
    .carousel.desktop{display: none;}
    .blob.mobile{
        display: block;
        position: relative;
        width: 100vw;
        margin-left: 30vw;
    }
}