
:root{
  --grey-bg:      #eae8e6;
  --ink:          #363639;
  --ink-soft:      #363639;

  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-name: "Meow Script", cursive;

  --header-h: 132px;

  --gutter: 24px;
  --text-size: clamp(11px, 2.2vw, 14px);
  --description-text-size: clamp(9px, 1.8vw, 12px);
  --text-stroke: 0.5px  var(--ink);
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  overflow: hidden;
}

body{
  margin: 0;
  background: var(--grey-bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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


.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: transparent;
  pointer-events: none;
}

.header-inner{
  min-height: var(--header-h);
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 28px) clamp(14px, 4vw, 32px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  column-gap: clamp(8px, 2vw, 24px);
}

.contact{
  display: flex;
  flex-direction: column;
  gap: 0;
  font-family: var(--font-sans);
  font-size: var(--text-size);
  font-weight: 700;
  color: var(--ink);
  -webkit-text-stroke: var(--text-stroke);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  justify-self: start;
  pointer-events: auto;
}

.contact a{ 
  white-space: nowrap;
  line-height: 1; 
}

.name{
  grid-column: 2;
  justify-self: center;
  width: clamp(150px, 25vw, 320px);
  display: block;
  pointer-events: auto;
}

.name img{
  display: block;
  width: 100%;
  height: auto;
}

.categories{
  justify-self: end;
  pointer-events: auto;
}

.categories p{
  margin: 0;
  text-align: right;
  font-family: var(--font-sans);
  font-size: var(--text-size);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.categories span{
  color: var(--ink);
  -webkit-text-stroke: var(--text-stroke);
  font-style: normal;
}

.categories span.active{
  color: var(--ink);
  font-style: italic;

}


.project-list{
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 16px) var(--gutter) 24px;
}

.project{
  display: none;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.project.active{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-image{
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(70vw, 60vh);
  height: min(70vw, 60vh);
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.project-image img,
.project-image video{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.project-caption{
  margin: 25px 0 0;
  font-family: var(--font-sans);
  font-size: var(--description-text-size);
  font-weight: 700;
  color: var(--ink);
  -webkit-text-stroke: var(--text-stroke);
  line-height: 1;
}

.project-caption .project-year{
  font-weight: 700;
  color: var(--ink);
  -webkit-text-stroke: var(--text-stroke);
}

.project-desc{
  margin: 0 auto 0;
  font-family: var(--font-sans);
  font-size: var(--description-text-size);
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  -webkit-text-stroke: var(--text-stroke);
  max-width: 48ch;
  text-align: center;
}


@media (max-width: 600px){
  .project-list{
    padding: calc(var(--header-h) + 8px) 16px 16px;
  }

  .header-inner{
    column-gap: clamp(20px, 6vw, 32px);
  }

    .name{
    width: clamp(90px, 20vw, 200px);
  }

  .project-image{
  width: min(85vw, 50vh);
  height: min(85vw, 50vh);
  }
}

@media (max-width: 420px){
  :root{
    --text-size: clamp(7px, 2.6vw, 10px);
  }

  .header-inner{
    padding: 10px;
    column-gap: 10px;
  }

  .contact,
  .categories p{
    letter-spacing: 0;
  }

  .name{
    width: clamp(60px, 16vw, 150px);
  }
}


a:focus-visible,
.project-image:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}