/*---------------------------------------/*
 # SETTINGS
/*---------------------------------------*/

/* Kleuren, lettertypes en maten uit het Howest WDD Design System */
:root {
  color-scheme: light dark;

  --color-canvas: #f8f5ee;
  --color-surface: #ffffff;
  --color-surface-muted: #ece8dd;
  --color-line: #e4e0d3;
  --color-card-border: color-mix(in oklab, var(--color-line) 50%, transparent);
  --color-text: #22252b;
  --color-text-muted: #5b5f6b;
  --color-link: #2f65ae;
  --color-eyebrow: #2f65ae;
  --color-focus: #22252b;
  --color-selection: #eabd44;
  --color-yellow: #eabd44;
  --color-pink: #db79c5;
  --color-blue: #407bca;
  --color-ink: #22252b;

  --shadow-card: 0 10px 15px -3px oklch(0.3 0.08 255 / 0.12), 0 4px 6px -4px oklch(0.3 0.08 255 / 0.08);
  --shadow-card-hover: 0 20px 25px -5px oklch(0.3 0.08 255 / 0.16);

  --font-text: "Karla", sans-serif;
  --font-title: "Nunito", "Karla", sans-serif;

  --font-size-caption: 0.75rem;
  --font-size-small: 0.875rem;
  --font-size-text: 1rem;
  --font-size-subtitle: 1.125rem;
  --font-size-lead: 1.125rem;
  --font-size-lead-lg: 1.375rem;
  --font-size-section: 1.875rem;
  --font-size-hero: 2.75rem;
  --font-size-hero-md: 4.5rem;
  --font-size-hero-lg: 6rem;

  --space: 0.25rem;
  --space-2xs: var(--space); /* 0.25rem */
  --space-xs: calc(var(--space) * 2); /* 0.5rem */
  --space-sm: calc(var(--space) * 3); /* 0.75rem */
  --space-md: calc(var(--space) * 4); /* 1rem */
  --space-lg: calc(var(--space) * 6); /* 1.5rem */
  --space-xl: calc(var(--space) * 8); /* 2rem */
  --space-2xl: calc(var(--space) * 12); /* 3rem */
  --space-3xl: calc(var(--space) * 16); /* 4rem */
  --space-4xl: calc(var(--space) * 24); /* 6rem */
  --space-5xl: calc(var(--space) * 32); /* 8rem */

  --radius-card: 1.25rem;
  --card-min-width: 16.25rem;
  --container-max: 80rem;
  --transition: 150ms cubic-bezier(0, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0, 0, 0.2, 1);

  /* Donker thema: volgt de instelling van het besturingssysteem */
  @media (prefers-color-scheme: dark) {
    --color-canvas: #14161c;
    --color-surface: #1f222b;
    --color-surface-muted: #2c303b;
    --color-line: #2c303b;
    --color-text: #fbfbf8;
    --color-text-muted: #bfc3cc;
    --color-link: #8fb4e6;
    --color-eyebrow: #eabd44;
    --color-focus: #eabd44;
    --color-ink: #f8f5ee;

    --shadow-card: 0 10px 15px -3px oklch(0.08 0.03 255 / 0.34), 0 4px 6px -4px oklch(0.08 0.03 255 / 0.22);
    --shadow-card-hover: 0 20px 25px -5px oklch(0.08 0.03 255 / 0.4);
  }
}

/*---------------------------------------/*
 # TOOLS
/*---------------------------------------*/

/*---------------------------------------/*
 # GENERIC
/*---------------------------------------*/

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

* {
  margin: 0;
}

/*---------------------------------------/*
 # ELEMENTS
/*---------------------------------------*/

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-text);
  font-size: var(--font-size-text);
  line-height: 1.625rem;
}

main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:focus-visible {
  outline: 0.125rem solid var(--color-focus);
  outline-offset: 0.125rem;
}

::selection {
  background-color: var(--color-selection);
  color: var(--color-ink);
}

/*---------------------------------------/*
 # OBJECTS
/*---------------------------------------*/

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);

  @media (width >= 48rem) {
    padding: 0 var(--space-xl);
  }

  @media (width >= 64rem) {
    padding: 0 var(--space-2xl);
  }
}

.section {
  padding: var(--space-3xl) 0;

  @media (width >= 48rem) {
    padding: var(--space-4xl) 0;
  }
}

/*---------------------------------------/*
 # COMPONENTS
/*---------------------------------------*/

/* Hero: bovenschrift, naam en keuzetraject */
.hero {
  position: relative;
  padding: var(--space-3xl) 0;

  @media (width >= 48rem) {
    padding: var(--space-5xl) 0 var(--space-4xl);
  }
}

/* Decoratie: drie vormen in de lege ruimte rechts, enkel op brede schermen */
.hero__decor {
  display: none;

  @media (width >= 64rem) {
    display: block;
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
}

.hero__dot {
  position: absolute;
  border-radius: 50%;
}

.hero__dot--yellow {
  top: 30%;
  right: 12%;
  width: 5rem;
  height: 5rem;
  background-color: var(--color-yellow);
}

.hero__dot--pink {
  top: 58%;
  right: 6%;
  width: 3rem;
  height: 3rem;
  background-image: radial-gradient(circle, var(--color-ink) 0 33%, var(--color-pink) 35%);
}

.hero__dot--blue {
  top: 66%;
  right: 22%;
  width: 1.5rem;
  height: 1.5rem;
  background-color: var(--color-blue);
}

.hero__eyebrow {
  font-size: var(--font-size-caption);
  font-weight: 700;
  line-height: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-eyebrow);
}

.hero__title {
  margin-top: var(--space-md);
  font-family: var(--font-title);
  font-size: var(--font-size-hero);
  font-weight: 900;
  line-height: 2.75rem;
  letter-spacing: -0.035em;
  text-wrap: balance;

  @media (width >= 48rem) {
    font-size: var(--font-size-hero-md);
    line-height: 4.375rem;
  }

  @media (width >= 64rem) {
    font-size: var(--font-size-hero-lg);
    line-height: 5.75rem;
  }
}

.hero__lead {
  margin-top: var(--space-lg);
  font-size: var(--font-size-lead);
  font-weight: 500;
  line-height: 1.75rem;
  color: var(--color-text-muted);

  @media (width >= 48rem) {
    font-size: var(--font-size-lead-lg);
    line-height: 2rem;
  }
}

/* Projecten: witte band over de volle breedte met een raster van kaarten */
.projects {
  flex-grow: 1;
  background-color: var(--color-surface);
}

.projects__title {
  font-family: var(--font-title);
  font-size: var(--font-size-section);
  font-weight: 900;
  line-height: 2.125rem;
  letter-spacing: -0.025em;
}

/* De deploy-skill zet hier per project een <li> met een .project-card */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(var(--card-min-width), 100%), 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding: 0;
  list-style: none;
}

/* Nog geen projecten online: één regel tekst over de volle breedte van het raster */
.projects__empty {
  grid-column: 1 / -1;
  color: var(--color-text-muted);
}

/* Projectkaart: afbeelding bovenaan, daaronder titel, beschrijving en pad met datum */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background-color: var(--color-surface);
  color: var(--color-text);
  text-decoration: none;
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    border-color var(--transition-slow),
    color var(--transition);

  &:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--color-yellow);
    color: var(--color-link);
  }
}

/* Het beeld staat ingesprongen en heeft rechte hoeken, als tegengewicht voor de ronde kaart */
.project-card__media {
  aspect-ratio: 16 / 10;
  margin: var(--space-sm) var(--space-sm) 0;
  overflow: hidden;
  background-color: var(--color-surface-muted);
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--space-lg);
}

.project-card__title {
  font-family: var(--font-title);
  font-size: var(--font-size-subtitle);
  font-weight: 700;
  line-height: 1.5rem;
}

.project-card__text {
  display: -webkit-box;
  margin-top: var(--space-xs);
  overflow: hidden;
  font-size: var(--font-size-small);
  line-height: 1.375rem;
  color: var(--color-text-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.project-card__meta {
  margin-top: auto;
  padding-top: var(--space-sm);
  font-size: var(--font-size-caption);
  line-height: 1rem;
  color: var(--color-text-muted);
}

/* Footer met het WDD-symbool */
.site-footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-line);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-footer__logo {
  max-width: 2.5rem;
}

.site-footer__text {
  font-size: var(--font-size-small);
  line-height: 1.25rem;
  color: var(--color-text-muted);
}

/*---------------------------------------/*
 # UTILITIES
/*---------------------------------------*/
