@charset "UTF-8";


@import url('https://fonts.googleapis.com/css2?family=Geist+Mono&display=swap');

@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/InstrumentSans[wdth,wght].ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
  font-style: normal;
}

:root {
  --unit-maxwidth-text: 55rem;
  --unit-space: 1.5rem;
  --unit-font-large: 2.4rem;

}


* {
  font-feature-settings: 
    "ss07" 1,  /* Alternate G */
    "ss08" 1,  /* Alternate J */
    "ss12" 1,  /* Alternate Currency */
    "kern" 1,  /* Kerning pairs */
    /* "ss02" 1,   Alternate “a” with single-story constructions */
    "ss09" 1;  /* Alternate “Q” */
}




* {
  box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-optical-sizing: auto;
    /*font-size: clamp(20px,21.6478873239px + .0938967136vw,22px)!important;*/
    font-size: clamp(15px, 3vw, 17px)!important;
    letter-spacing: 0!important;
    margin: 0 calc(1*var(--unit-space));
    padding: 0;
    color: #000;
    font-weight: 400;
    font-variation-settings: "wght" 400,"wdth" 98; 
    letter-spacing: -.03vw; 
    line-height: 1.5;
    transition: background-color 0.6s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-size:inherit;
    margin:0;
    hyphens:none;
    /*font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-style: normal;
    /*font-variation-settings: "wght" 625,"wdth" 75;*/
    letter-spacing: 0;

    font-variation-settings: "wght" 500,"wdth" 100;
    /*font-weight: 400;*/
    
}

a {
    color: inherit;  
    text-decoration:none;
}

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

p {
    margin: 0 0 1rem;  
}

@media (min-width: 992px) {
   p {
        max-width: 60ch;
   } 
}

p:last-of-type {
    margin: 0;
}


/* ===== HEADER ===== */
header {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--unit-space);
    margin: 0 0 9rem 0;
    padding: 3rem 0 0 0;
}

@media (min-width: 768px) {
    header ul {
        display: flex;
        flex-wrap: wrap;
        gap: .25rem var(--unit-space);
        margin: 0;
        padding: 0;
        /*outline: 1px solid fuchsia;*/
    }

    header ul li {
        /*flex: 1 0 auto;*/
        /*width: calc(50% - (var(--unit-space) / 2));*/
        margin: 0;
        padding: 0;
        list-style: none;
        /*outline: 1px solid yellowgreen;*/
    }
}


a.logo div.desktop {
    display: none;
}

a.logo div.mobile {
    display: inline-block;
}

/*a.logo div.desktop {
    display: block;
    line-height: 1.2;
}

a.logo div.desktop span {
    display: block;
}*/

@media (min-width: 768px) {
    a.logo div.desktop { 
        display:inline-flex;
        cursor: pointer;
    }

    a.logo div.desktop span {
        margin-left: .35rem;
        display: inherit;
        opacity: 0;
        max-width: 0;
        overflow: hidden;
        transition:opacity 1s, max-width 1s
    }

    a.logo:hover div.desktop span {
        max-width: 100%;
        opacity:1
    }
    a.logo div.mobile {
        display: none;
    }
}




/* ===== FOOTER ===== */
footer {
    padding: 5rem 0 3rem 0;
}

footer div.container svg {
    width: 24px;
    height: auto;
}

footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--unit-space) var(--unit-space);
}

footer div:first-child, footer div:last-child {
    grid-column: 1 / span 2;
}

@media (min-width: 992px) {
    footer {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: var(--unit-space) var(--unit-space);
    }
    footer div:last-child {
        grid-column-start: 3;
    }
}

footer div.container div.copyright {
    grid-column-start: 2;

}


/* ===== PROJECT BLOCK LIST ===== */
@media (min-width: 768px) {
    div.project-block-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        display: grid;
        grid-gap: 0 var(--unit-space);
    }
}

@media (min-width: 1400px) {
    div.project-block-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        display: grid;
        grid-gap: 0 var(--unit-space);
    }
}

body:not(.index) div.project-block-list {
    background: #000;
    margin: 0 calc(-1*var(--unit-space));
    padding: var(--unit-space) calc(1*var(--unit-space));
}

body:not(.index) div.project-block-list a {
    color: #fff;
}

div.pb-ratio {
    position: relative;
    aspect-ratio: 4 / 4;
    background: slateblue;
    margin: 0 0 1rem 0;
    overflow: hidden;
}

div.pb-ratio  img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
    width: 100%;
}



/* ===== PROJECT ===== */
div.project {
    
}

/* div.project ul {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

div.project ul li {
    color: #757575;
    background: #f4f4f4;
    display: inline-block;
    padding: .25rem .5rem;
    border-radius: .625rem;
    font-family: 'Geist Mono', monospace;
    font-weight: 400;
    font-style: normal;
    font-size: .8rem;
} */

div.project h3 {
    padding: 0;
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    div.project-cards { 
        outline: 1px solid fuchsia;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--unit-space);
    }
}

div.project-card {
    display: flex;
    align-content: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    position: relative;
    aspect-ratio: 3 / 2;
}

div.project-card.cover {
    grid-column: span 2;
}

div.project-card.cover img {
    display: block;
    width: 100%;
    height: calc(82.5vw - 2*var(--unit-space));
    object-fit: cover;
}

@media (min-width: 1024px) {
  div.project-card.cover img {
        height: auto;
        object-fit: cover;
        aspect-ratio: 3 / 2;
    }
}

div.project-card.spread {
    aspect-ratio: 4 / 4;  
}

div.project-card.spread img {
    filter: drop-shadow(0 .5rem .5rem rgba(0, 0, 0, 0.1));
    object-fit: contain;
    display: block;
    width: 50%;
    height: auto;
}

figcaption {
    display: none;
}

@media (min-width: 1024px) {
    figcaption {
        display: block;
        position: absolute;
        left: calc(1*var(--unit-space));
        bottom: 1rem;
        color: #fff;
        text-transform: uppercase;
    }
}


/* ===== ABOUT ===== */
body.about {
  background-color: #000000;
  color: rgb(180, 180, 180);
}

/* body.about a {
  color: #000000;
}

body.about footer a {
  color: inherit;
} */

@media (min-width: 1024px) {
    body.about main {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 var(--unit-space);
    }
}

body.about main div.intro {
    width: 100%
}

@media (min-width: 1024px) {
    body.about main div.intro {
        width: 40vw;
    }
}

body.about main h2 {
    margin-bottom: 6vh;   
    color: #fff;
    font-size: clamp(1.6rem, 4vw, 2rem);
    letter-spacing: -.03rem;
    line-height: 1.125;
    font-variation-settings: "wght" 400; 
}

body.about main h3 {
  margin-bottom: 2vh;  
  color: #fff;
}

body.about main hr {
    margin: 5vh 0;
    border: 0;
    height: 1px;
    background-color: rgba(255,255,255, .25);
}

body.about main hr:last-child {
    grid-column: span 2;
    margin: 8vh 0 0 0;
}

body.about main div.photo-wrap {
    margin-bottom: 6vh;
    padding-bottom: 66.666%;
    width: 100%;
    height: 0;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    body.about main div.photo-wrap {
        width: 66.666%;
        padding-bottom: 44%;
    }
}

body.about main div.photo-wrap img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}


@media (min-width: 768px) {
    body.about main div ul {
        display: flex;
        flex-wrap: wrap;
        gap: .25rem var(--unit-space);
        margin: 0;
        padding: 0;
    }

    body.about main div ul li {
        flex: 0 0 auto;
        width: calc(50% - (var(--unit-space) / 2));
        margin: 0;
        padding: 0;
    }
}



/* ===== ERROR ===== */
html:has(body.error) {
  height: 100%;
}

body.error {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: peachpuff;
}

body.error footer {
  margin-top: auto;
}




.fade {
  animation-name: fade;
  animation-duration: 1000ms;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


html:has(body.maintenance) {
    height: 100%;
}

body.maintenance {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.maintenance header {
    flex-shrink: 0;
}

body.maintenance footer {
    margin-top: auto;
    display: block;
}

body.maintenance footer .message {
  display: inline-flex;
  align-items: center;
  border: 1px solid #eee;
  padding: 1rem 3rem;
  border-radius: .375rem;
  gap: 1rem;
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.pulse {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d9534f;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(217,83,79, 0.4);
  animation: pulse 2s infinite;
}
.pulse:hover {
  animation: none;
}

@-webkit-keyframes pulse {
  0% {
    -webkit-box-shadow: 0 0 0 0 rgba(217,83,79, 0.4);
  }
  70% {
      -webkit-box-shadow: 0 0 0 10px rgba(217,83,79, 0);
  }
  100% {
      -webkit-box-shadow: 0 0 0 0 rgba(217,83,79, 0);
  }
}
@keyframes pulse {
  0% {
    -moz-box-shadow: 0 0 0 0 rgba(217,83,79, 0.4);
    box-shadow: 0 0 0 0 rgba(217,83,79, 0.4);
  }
  70% {
      -moz-box-shadow: 0 0 0 10px rgba(217,83,79, 0);
      box-shadow: 0 0 0 10px rgba(217,83,79, 0);
  }
  100% {
      -moz-box-shadow: 0 0 0 0 rgba(217,83,79, 0);
      box-shadow: 0 0 0 0 rgba(217,83,79, 0);
  }
}

