@charset "UTF-8";

:root {
  color-scheme: dark;
  background-color: #000;
  font-family: "Avenir Next", "Avenir", "Gill Sans", "Trebuchet MS", sans-serif;
  font-size: 10px;
  color: #e6e6e6;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  min-height: 100dvh;
  background-color: #000;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 50px max(16px, env(safe-area-inset-right)) 50px max(16px, env(safe-area-inset-left));
  background-color: #000;
  color: #e6e6e6;
  text-align: center;
  font-size: 1.4rem;
  line-height: 1.45;
  -webkit-text-size-adjust: 100%;
  font-synthesis: none;
}

a {
  color: #6b9aad;
  text-decoration: none;
}

a:visited { color: #6b9aad; }
a:hover, a:focus-visible, a:active { color: #fff; }
a:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

.page-header,
.portfolio-page,
.page-footer {
  width: 100%;
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

.page-header { margin-bottom: 5.8rem; }
.home-link {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.project {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 0 10rem;
  text-align: center;
}

.project h2,
.project p,
.project figure {
  margin: 0;
}

.project h2 {
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: 0.045em;
  margin-bottom: 0.6rem;
}

.project p {
  width: 100%;
  max-width: 790px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.48;
}

/* Vast verticaal ritme rond tekst en beelden. */
.project h2 + .project-image,
.project p + .project-image {
  margin-top: 1.5rem;
}

.project-image + .image-caption {
  margin-top: 1.2rem;
}

.image-caption + .project-image {
  margin-top: 2.2rem;
}

.project-image + .project-image {
  margin-top: 1.8rem;
}

.project-image {
  width: 100%;
  max-width: var(--image-width, 790px);
  margin-top: 0.55rem;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  line-height: 0;
  align-self: center;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Alleen deze beeldreeks hoort visueel als losse gangen te lezen. */
.happy-meals .project-image + .project-image {
  margin-top: 1.8rem;
}

.spacer { height: 1.776rem; }

.page-footer {
  padding-top: 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.045em;
}

.page-footer span { margin-inline: 0.55rem; }

@media (max-width: 820px) {
  body {
    padding-top: max(32px, env(safe-area-inset-top));
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }

  .page-header { margin-bottom: 4.2rem; }
  .project { margin-bottom: 8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Correctieronde: tekst hoort steeds bij het beeld eronder. */
.project figure + p,
.project figure + .spacer + p {
  margin-top: 3.25rem;
}
.project p + figure,
.project p + .spacer + figure {
  margin-top: 0.65rem;
}
.project .spacer {
  flex: 0 0 1.776rem;
  width: 100%;
  height: 1.776rem;
  min-height: 1.776rem;
  margin: 0;
}
.project .quoted-text {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  color: inherit;
  margin: 0;
}
