:root {
  --white: #EBF7FF;
  --grey: #ddddd6;
  --black: #000;
  --page-padding: 24px;
  --bottom-blur-height: 52px;
}

@font-face {
  font-family: 'Abeezee';
  src: url('/Abeezee.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--black);
  font-family: Coconat, sans-serif;
}

    /* ['rgb(71,8,20)', 'rgb(110,129,0)', 'rgb(255,102,0)'],
    ['rgb(116,11,37)', 'rgb(197,219,200)', 'rgb(213,244,86)'],
    ['rgb(0,94,255)', 'rgb(0,188,97)', 'rgb(255,0,0)'],
    ['rgb(0,59,255)', 'rgb(158,206,238)', 'rgb(162,176,0)'],
    ['rgb(0,127,0)', '#FB71A8', 'rgb(255,255,0)'],
    ['#FF6000', '#00B8B7', '#03FF00'],
    ['#672108', '#6826F7', '#FF0091'], */

.type-projects.theme-bodem-voedsel {
  --theme-color-1: rgb(71,8,20);
  --theme-color-2: rgb(110,129,0);
  --theme-color-3: rgb(255,102,0);
}

.type-projects.theme-water-klimaat {
  --theme-color-1: rgb(0,59,255);
  --theme-color-2: rgb(158,206,238);
  --theme-color-3: rgb(162,176,0);
}

h1,
h2,
h3,
h4,
h5,
h6{
  font-weight: 400;
  font-family: Abeezee, sans-serif;
}

p {
  line-height: 1.4;
}

a{
  color: var(--black);
}

.site-header {
  position: fixed;
  top: 0;
  z-index: 10;
  right: var(--page-padding);
  left: var(--page-padding);
  padding-top: 10px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.bottom-header {
  position: fixed;
  bottom: 0;
  z-index: 10;
  right: var(--page-padding);
  left: var(--page-padding);
}

.header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 14px 0 0;
}

.bottom-header-inner {
  display: flex;
  position: relative;
  z-index: 1;
  align-items: flex-end;
  gap: 24px;
  padding: 0 0 var(--bottom-blur-height);
}

.bottom-header-blur {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--bottom-blur-height);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.logo {
  flex-shrink: 0;
}

.logo a {
  display: block;
  text-decoration: none;
  color: var(--black);
  font-size: 60px;
  line-height: 0.7;
}

.logo h1{
  margin: 0;
  line-height: 0.8;
}

.main-nav {
  flex-shrink: 0;
}

.menu-line {
  display: block;
  flex: 1 1 auto;
  height: 4px;
  background: var(--black);
}

.menu-line-after,
.menu-line-before {
  align-self: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  color: var(--black);
  font-size: 24px;
  font-weight: 400;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  opacity: 0.7;
}

.home-page .logo a,
.home-page .nav-list a,
.home-page .menu-line {
  transition: color 500ms ease, background-color 500ms ease;
}

.home-page.has-dark-featured .logo a,
.home-page.has-dark-featured .nav-list a {
  color: var(--white);
}

.home-page.has-dark-featured .menu-line {
  background-color: var(--white);
}

.home-projects {
  padding: 0 var(--page-padding) 100px;
}

.featured-projects {
  position: relative;
  height: 100dvh;
  margin: 0 0 56px;
}

.featured-projects-track {
  position: relative;
  height: 100%;
  background: var(--grey);
}

.featured-project {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end start;
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  transition: opacity 1000ms ease-in-out;
}

.featured-project.is-current {
  opacity: 1;
  pointer-events: auto;
}

.featured-project img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
  opacity: 0;
  /* transform: translateY(20px); */
  transition: filter 700ms ease, opacity 700ms ease, transform 700ms ease;
}

.featured-project img.is-loaded {
  filter: blur(0);
  opacity: 1;
 /* transform: translateY(0); */
}

.featured-project::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 48%);
}

.featured-project-title {
  position: relative;
  z-index: 1;
  max-width: min(760px, 90%);
  padding: 24px;
  font-size: clamp(28px, 5vw, 64px);
  line-height: 1;
}

.featured-projects-edge {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 25%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.featured-projects-edge-previous {
  left: 0;
}

.featured-projects-edge-next {
  right: 0;
}

.featured-projects-edge:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -6px;
}

.projects-index {
  padding: 24px 0 48px;
}

.projects-masonry {
  columns: 3 280px;
  column-gap: 20px;
}

.project-tile {
  break-inside: avoid;
  margin: 0 0 28px;
}

[data-scroll-focus] {
  filter: blur(18px);
  opacity: 0.2;
  /* transform: scale(0.98); */
  transform: translateY(20px);
  transition: filter 500ms ease, opacity 500ms ease, transform 500ms ease;
}

[data-scroll-focus].is-visible {
  filter: blur(0);
  opacity: 1;
  transform: translateY(0);
  /* transform: scale(1); */
}

.project-tile a {
  color: inherit;
  text-decoration: none;
}

.project-tile img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--grey);
}

.project-tile h2 {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.1;
  font-family: Coconat, sans-serif;
}

.project-tile a:hover h2,
.project-tile a:focus-visible h2 {
  text-decoration: underline;
}

/* Project details */
.type-projects .detail-grid {
  padding: 0 var(--page-padding) 120px;
}

.type-projects .detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  column-gap: 24px;
  padding: 58px 0 0;
}

.type-projects .detail-header::after {
  grid-column: 2;
  grid-row: 1;
  content: 'Lapidaire';
  visibility: hidden;
  font-family: Abeezee, sans-serif;
  font-size: 60px;
  line-height: 0.8;
}

.type-projects .main-image {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  max-width: calc(100vw - 523px - 48px - 24px);
  height: calc(100vh - 58px - var(--bottom-blur-height) - 16px - 65px);
  margin-bottom: 16px;
  margin-top: 65px;
}

.type-projects .main-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: left bottom;
}

.type-projects .detail-header-text,
.type-projects .detail-content {
  grid-column: 1;
}

.type-projects .detail-header-text {
  margin-top: 48px;
  margin-bottom: 48px;
}

.type-projects .detail-header-text h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 0.95;
  /* text-align: center; */
}

.type-projects .detail-content {
  max-width: 900px;
  margin: auto;
  margin-top: 36px;
  font-size: 24px;
}

.type-projects .detail-related {
  margin: 48px 14px 0;
}

.project-drawing {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  pointer-events: none;
}

.is-drawing .project-drawing {
  pointer-events: auto;
  touch-action: none;
  cursor: crosshair;
}

.project-palette {
  position: fixed;
  top: 150px;
  right: calc(var(--page-padding) + 12px);
  z-index: 11;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-palette-swatch {
  width: 30px;
  height: 30px;
  padding: 0;
  /* border: 2px solid var(--swatch-color); */
  border: none;
  border-radius: 50%;
  background: var(--swatch-color);
  cursor: pointer;
  transition: transform 180ms ease;
}

.project-palette-swatch.is-selected {
  transform: scale(1.3);
}

.project-palette-swatch:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.project-palette-clear {
  display: grid;
  place-items: center;
  margin-top: 8px;
  background: var(--white);
  color: var(--black);
  font: 20px/1 Abeezee, sans-serif;
  border: 1px solid var(--black);
}

.footer-inner {
  padding: 24px var(--page-padding);
  text-align: center;
}

.footer-inner > :first-child {
  margin-top: 0;
}

.footer-inner > :last-child {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  .site-header {
    position: relative;
    right: auto;
    left: auto;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .logo a {
    font-size: 30px;
  }

  .menu-line {
    height: 3px;
  }

  .bottom-header {
    right: 14px;
    left: 14px;
  }

  .logo-img {
    height: 48px;
  }

  .nav-list {
    gap: 20px;
  }

  .nav-list a {
    font-size: 18px;
  }

  .home-projects {
    padding: 0 14px 88px;
  }
  

  .featured-projects-track {
    min-height: 0;
  }

  .featured-project-title {
    padding: 16px;
  }

  .projects-masonry {
    columns: 2 140px;
    column-gap: 12px;
  }

  .project-tile {
    margin-bottom: 20px;
  }

  .type-projects .detail-grid {
    padding: 0 14px 88px;
  }

  .type-projects .detail-header {
    display: block;
    padding: 24px 0 0;
  }

  .type-projects .detail-header::after {
    display: none;
  }

  .type-projects .main-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin-top: 0;
    margin-bottom: 0;
    align-items: flex-start;
  }

  .type-projects .main-image img {
    object-position: left top;
  }

  .type-projects .detail-header-text {
    margin-top: 32px;
  }

  .type-projects .detail-related {
    margin-right: 0;
    margin-left: 0;
  }

  .project-palette {
    right: 20px;
  }

  [data-scroll-focus] {
    filter: blur(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-scroll-focus] {
    filter: none;
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 480px) {
  .nav-list {
    width: 100%;
    justify-content: center;
  }
}