/* ======================================================
   STUDIO#RE — BASIS
   Algemene variabelen, reset, typografie en layouthulpen
======================================================= */

:root {
  /* Kleuren */
  --re-black: #1E1E1E;     /* enkel voor echt zwart, tekst of accenten */
  --re-dark:  #292827;     /* hoofdkleur voor donkere secties */
  --re-light: #F1F0ED;     /* huidige lichte achtergrond */
  --re-white: #FFFFFF;
  --re-text:  #111111;

  --re-muted-light: rgba(255, 255, 255, 0.62);
  --re-muted-dark: rgba(17, 17, 17, 0.62);

  --re-line-light: rgba(255, 255, 255, 0.14);
  --re-line-dark: rgba(17, 17, 17, 0.16);

  /* Layout */
  --re-container-max: 1440px;
  --re-page-padding: 6vw;
  --re-grid-gap: 4vw;

  /* Header */
  --re-nav-height: 88px;
  --re-nav-height-scrolled: 76px;

  /* Beweging */
  --re-ease: cubic-bezier(.22, 1, .36, 1);
  --re-transition-fast: 0.25s ease;
  --re-transition: 0.4s var(--re-ease);

  /* Typografie */
  --re-font:
    "Inter",
    "Helvetica Neue",
    Helvetica,
    Arial,
    sans-serif;
}


/* ======================================================
   RESET
======================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;

  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  padding: 0;

  overflow-x: hidden;

  color: var(--re-text);
  background: var(--re-light);

  font-family: var(--re-font);
  font-size: 16px;
  line-height: 1.5;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  display: block;
  width: 100%;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure {
  margin: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

address {
  font-style: normal;
}


/* ======================================================
   TOEGANKELIJKHEID
======================================================= */

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}


/* ======================================================
   ALGEMENE PAGINA'S
======================================================= */

.re-page,
.home-page,
.projects-page,
.project-page {
  width: 100%;
  overflow: hidden;
}


/* ======================================================
   CONTAINERS
======================================================= */

.re-container,
.home-container,
.projects-container,
.project-container,
.sr-footer-inner {
  width: min(
    var(--re-container-max),
    calc(100% - (var(--re-page-padding) * 2))
  );

  margin-right: auto;
  margin-left: auto;
}


/* ======================================================
   THEMA'S
======================================================= */

.re-light,
.home-light,
.project-light {
  color: var(--re-text);
  background: var(--re-light);
}

.re-dark {
  color: var(--re-white);
  background: var(--re-dark);
}

.re-black {
  color: var(--re-white);
  background: var(--re-black);
}


/* ======================================================
   ALGEMENE TYPOGRAFIE
======================================================= */

.re-display {
  margin: 0;

  font-size: clamp(64px, 9vw, 160px);
  line-height: 0.87;
  font-weight: 400;
  letter-spacing: -0.085em;
}

.re-heading {
  margin: 0;

  font-size: clamp(48px, 7vw, 126px);
  line-height: 0.94;
  font-weight: 400;
  letter-spacing: -0.075em;
}

.re-lead {
  margin: 0;

  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.4;
  letter-spacing: -0.035em;
}

.re-copy {
  margin: 0;

  font-size: 16px;
  line-height: 1.65;
}

.re-copy--muted {
  color: var(--re-muted-dark);
}


/* ======================================================
   HULPKLASSEN
======================================================= */

.re-visually-hidden {
  position: absolute !important;

  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;

  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;

  border: 0 !important;
}

.re-no-scroll {
  overflow: hidden;
}

.re-full-bleed {
  width: 100%;
}

.re-media-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ======================================================
   TABLET
======================================================= */

@media (max-width: 900px) {

  :root {
    --re-page-padding: 24px;
    --re-grid-gap: 24px;
  }

  .re-display {
    font-size: clamp(58px, 15vw, 100px);
  }

  .re-heading {
    font-size: clamp(47px, 13.5vw, 76px);
  }

  .re-lead {
    font-size: 22px;
  }

}


/* ======================================================
   KLEIN MOBIEL
======================================================= */

@media (max-width: 520px) {

  :root {
    --re-page-padding: 20px;
    --re-grid-gap: 20px;
  }

}


/* ======================================================
   REDUCED MOTION
======================================================= */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

}
