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

:root {
  --color-bg: #f7f5f2;
  --color-text: #1a1a1a;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #1a1a18;
    --color-text: #e8e4dc;
    color-scheme: dark;
  }
}

[data-theme="dark"] {
  --color-bg: #1a1a18;
  --color-text: #e8e4dc;
  color-scheme: dark;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  gap: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* Illustratie */
.illustration {
  width: 100%;
  max-width: 700px;
}

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

/* Footer */
footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.email {
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.2s ease;
}

.email:hover {
  opacity: 0.45;
}

.instagram {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  font-weight: 400;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: opacity 0.2s ease;
  margin-top: 10px;
}

.instagram:hover {
  opacity: 0.45;
}

.instagram img {
  width: 20px;
  height: 20px;
  display: block;
  transition: filter 0.4s ease;
}

/* Dark mode: Instagram icoon wordt geel */
[data-theme="dark"] .insta-icon {
  filter: hue-rotate(190deg) saturate(1.3) brightness(1.15);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .insta-icon {
    filter: hue-rotate(190deg) saturate(1.3) brightness(1.15);
  }
}

/* Theme toggle knop */
.theme-toggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.2s ease, color 0.4s ease;
  z-index: 10;
}

.theme-toggle:hover {
  opacity: 1;
}

.icon-sun  { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun  { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
