:root {
  color-scheme: dark;

  --schuin: normal;

  --bg: #28241c;
  --bg-2: #2f2a20;
  --bg-boek: #1d1a14;

  --spikkel-aarde: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' shape-rendering='crispEdges'%3E%3Cpath fill='%23000' fill-opacity='.3' d='M8 14h2v2h-2z M41 6h1v1h-1z M73 22h2v2h-2z M104 9h1v1h-1z M26 43h1v1h-1z M58 51h2v2h-2z M92 47h1v1h-1z M113 68h2v2h-2z M12 77h2v2h-2z M47 86h1v1h-1z M79 81h1v1h-1z M33 108h2v2h-2z M66 113h1v1h-1z M99 102h2v2h-2z M19 30h1v1h-1z M87 64h1v1h-1z'/%3E%3Cpath fill='%23000' fill-opacity='.3' d='M22 9h2v2h-2z M57 17h1v1h-1z M90 28h2v2h-2z M5 49h1v1h-1z M38 62h2v2h-2z M71 38h1v1h-1z M109 41h1v1h-1z M27 91h1v1h-1z M61 72h2v2h-2z M95 84h1v1h-1z M7 104h2v2h-2z M50 101h1v1h-1z M83 111h2v2h-2z M115 96h1v1h-1z M45 30h1v1h-1z M14 60h1v1h-1z'/%3E%3C/svg%3E");
  --spikkel: var(--spikkel-aarde);

  --tekst: #f0e8da;
  --tekst-mid: #d3c8b8;
  --tekst-zacht: #b3a595;
  --lijn: #f6e2b5;
  --lijn-sterk: #f6e2b5;
  --accent: #cf5b37;

  --hero-tekst: #f3ecde;
  --hero-label: #c9bfae;
  --hero-zin: #b9ab9a;
  --knop-hover: #1b2233;

  --licht: #f6e2b5;
  --licht-glow: rgba(245, 235, 200, 0.28);

  --klont: #43392b;
  --klont-tekst: #f0e8da;

  --widget-bg: #f7f4ec;
  --widget-tekst: #2a2420;
}

:root[data-thema="lente"] {
  color-scheme: light;

  --bg: #f7f4ec;
  --bg-2: #ebe4d3;
  --bg-boek: #3b3428;
  --spikkel: none;

  --tekst: #2a2420;
  --tekst-mid: #4a3f37;
  --tekst-zacht: #7a6c60;
  --lijn: #d9cfbd;
  --lijn-sterk: #8a6a52;
  --accent: #ff3b0f;

  --hero-tekst: #2a2420;
  --hero-label: #56616a;
  --hero-zin: #6f5f50;
  --knop-hover: #f7f4ec;

  --klont: #8a775b;
  --klont-tekst: #f7f4ec;

  --licht: #f6d06b;
  --licht-glow: rgba(246, 208, 107, 0.38);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Times New Roman", Times, serif;
  color: var(--tekst);
  background: var(--spikkel), var(--bg);
  font-size: 1.15rem;
  line-height: 1.65;
  overflow-x: hidden;
  transition:
    background-color 0.8s,
    color 0.8s;
}

a {
  color: var(--tekst);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  font-weight: normal;
}

.smal {
  max-width: 640px;
  margin: 0 auto;
}

.label {
  font-size: 0.95rem;
  color: var(--tekst-zacht);
}

.balk {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 22px 32px;
  color: var(--hero-tekst);
  transition: color 0.8s;
}

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

.balk a:hover {
  text-decoration: underline;
  text-decoration-color: var(--accent);
}

.stempel {
  display: block;
  width: 112px;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.stempel:hover {
  opacity: 1;
}

.stempel svg {
  display: block;
  width: 100%;
  height: auto;
}

.stempel ellipse {
  fill: #cf4326;
  transition: fill 0.3s;
}

.stempel:hover ellipse,
:root[data-thema="lente"] .stempel ellipse {
  fill: tomato;
}

.stempel .naam {
  fill: white;
  font-size: 36px;
  text-anchor: middle;
  dominant-baseline: middle;
}

.stempel .boog {
  fill: white;
  font-style: italic;
  font-size: 14px;
  text-anchor: middle;
}

.balk nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

@media (min-width: 1100px) {
  .balk {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .wissel {
    justify-self: end;
  }
}

.wissel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.8em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.wissel .w-winter,
.wissel .w-lente {
  opacity: 0.5;
  transition: opacity 0.5s;
}

:root:not([data-thema="lente"]) .wissel .w-winter,
:root[data-thema="lente"] .wissel .w-lente {
  opacity: 1;
}

.wissel .schakelaar {
  position: relative;
  width: 54px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.wissel .knop-rond {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--licht);
  box-shadow: 0 0 10px 2px var(--licht-glow);
  transition:
    transform 0.5s,
    background-color 0.8s,
    box-shadow 0.8s;
}

:root[data-thema="lente"] .wissel .knop-rond {
  transform: translateX(26px);
}

.wissel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
  border-radius: 4px;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  text-align: center;
  color: var(--hero-tekst);
  overflow: hidden;
  transition: color 0.8s;
}

.hero {
  --lucht-boven: 120px;
  --lucht-onder: 100px;
  --aarde: clamp(200px, 22vw, 300px);
}

.laag {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: opacity 1s;
}

.laag.winter {
  background: linear-gradient(to bottom, #101b31 0%, #273e51 45%, #3e5776 100%);
}

.laag.lente {
  opacity: 0;
  background: linear-gradient(
    to bottom,
    #9abacb 0%,
    rgb(184, 200, 207) 40%,
    hsl(223, 21%, 84%) 100%
  );
}

:root[data-thema="lente"] .laag.winter {
  opacity: 0;
}

:root[data-thema="lente"] .laag.lente {
  opacity: 1;
}

.bodem {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--aarde);
}

.bodem::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 280px;
  pointer-events: none;
}

.bodem .vlak {
  position: absolute;
  inset: 0;
}

.bodem .vlak::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--spikkel-aarde);
}

.lente .bodem .vlak::after {
  -webkit-mask-image: linear-gradient(to bottom, #000 25%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 25%, transparent 70%);
}

.bodem .rand {
  position: absolute;
  left: 0;
  bottom: calc(100% - 1px);
  width: 100%;
  height: clamp(40px, 4.2vw, 120px);
  overflow: visible;
}

.winter .bodem::before {
  background: linear-gradient(to top, rgba(214, 150, 84, 0.3), transparent);
}

.winter .bodem .vlak {
  background: linear-gradient(to bottom, #40392c 0%, #342e24 45%, #28241c 100%);
}

.winter .rand .voor {
  fill: #40392c;
}

.lente .bodem::before {
  background: linear-gradient(to top, rgba(255, 236, 170, 0.65), transparent);
}

.lente .bodem .vlak {
  background: linear-gradient(
    to bottom,
    #6e5d45 0%,
    #8b7c63 30%,
    #ecdfc6 72%,
    #f7f4ec 100%
  );
}

.lente .rand .voor {
  fill: #6e5d45;
}

.deeltjes {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 48%,
    transparent 72%
  );
  mask-image: linear-gradient(to bottom, #000 0%, #000 48%, transparent 72%);
}

.sterren,
.sneeuw,
.stuifmeel {
  position: absolute;
  inset: 0;
  transition: opacity 1s;
}

.sterren {
  -webkit-mask-image: linear-gradient(to bottom, #000 12%, transparent 38%);
  mask-image: linear-gradient(to bottom, #000 12%, transparent 38%);
}

.sterren i {
  position: absolute;
  width: var(--g);
  height: var(--g);
  border-radius: 50%;
  background: #ffcf5c;
  box-shadow: 0 0 calc(var(--g) * 2.5) rgba(255, 200, 80, 0.6);
  opacity: var(--o);
}

.sterren i.fonkel {
  animation: twinkel var(--d) ease-in-out var(--v) infinite;
}

@keyframes twinkel {
  0%,
  100% {
    opacity: var(--o);
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.sneeuw {
  inset: 0 -20px;
  opacity: 0.55;
  animation: wiegen 9s ease-in-out infinite alternate;
}

.sneeuw::before,
.sneeuw::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.sneeuw::before {
  top: -450px;
  background-image:
    radial-gradient(
      3px 3px at 90px 45px,
      rgba(255, 255, 255, 0.9),
      transparent
    ),
    radial-gradient(
      3.4px 3.4px at 195px 285px,
      rgba(255, 255, 255, 0.85),
      transparent
    ),
    radial-gradient(
      2.8px 2.8px at 405px 405px,
      rgba(255, 255, 255, 0.85),
      transparent
    );
  background-size: 450px 450px;
  animation: omlaag 39s linear infinite;
}

.sneeuw::after {
  top: -330px;
  background-image:
    radial-gradient(
      1.8px 1.8px at 45px 120px,
      rgba(255, 255, 255, 0.6),
      transparent
    ),
    radial-gradient(
      1.6px 1.6px at 290px 195px,
      rgba(255, 255, 255, 0.5),
      transparent
    );
  background-size: 330px 330px;
  animation: omlaag-ver 51s linear infinite;
}

.stuifmeel {
  opacity: 0;
  inset: 0 0 -300px 0;
  background-image:
    radial-gradient(
      3px 3px at 40px 50px,
      rgba(255, 250, 205, 0.95),
      transparent
    ),
    radial-gradient(
      2.4px 2.4px at 180px 140px,
      rgba(255, 250, 205, 0.9),
      transparent
    ),
    radial-gradient(
      3.2px 3.2px at 90px 240px,
      rgba(255, 250, 205, 0.9),
      transparent
    ),
    radial-gradient(
      2px 2px at 250px 90px,
      rgba(255, 250, 205, 0.85),
      transparent
    ),
    radial-gradient(
      2.6px 2.6px at 270px 220px,
      rgba(255, 250, 205, 0.9),
      transparent
    );
  background-size: 300px 300px;
  animation: omhoog 45s linear infinite;
}

:root[data-thema="lente"] .sterren,
:root[data-thema="lente"] .sneeuw {
  opacity: 0;
}

:root[data-thema="lente"] .stuifmeel {
  opacity: 1;
}

@keyframes omhoog {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-300px);
  }
}

@keyframes omlaag {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(450px);
  }
}

@keyframes omlaag-ver {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(330px);
  }
}

@keyframes wiegen {
  from {
    transform: translateX(-10px);
  }
  to {
    transform: translateX(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sterren i.fonkel,
  .sneeuw,
  .sneeuw::before,
  .sneeuw::after,
  .stuifmeel {
    animation: none;
  }
}

.licht {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 90px;
  margin: var(--lucht-boven) auto 36px;
  border-radius: 50%;
  background: var(--licht);
  box-shadow: 0 0 60px 18px var(--licht-glow);
  transition:
    background-color 1s,
    box-shadow 1s,
    transform 1s;
}

:root[data-thema="lente"] .licht {
  box-shadow: 0 0 80px 30px var(--licht-glow);
  transform: scale(1.05);
}

.hero .tekst {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero .label {
  color: var(--hero-label);
  transition: color 0.8s;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-style: italic;
  line-height: 1;
  margin: 12px 0 18px;
}

.hero .ondertitel {
  font-size: 1.35rem;
  max-width: 450px;
  margin: 0 auto 36px;
}

.knop {
  display: inline-block;
  padding: 12px 26px;
  border: 1px solid currentColor;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  transition:
    background-color 0.3s,
    color 0.3s;
}

.hero .knop:hover {
  background: var(--hero-tekst);
  color: var(--knop-hover);
}

section {
  padding: 110px 24px;
  transition: background-color 0.8s;
}

section.hero {
  padding: 0 0 calc(var(--lucht-onder) + var(--aarde));
}

section h2 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-style: var(--schuin);
  text-align: center;
  margin: 6px 0 50px;
}

section > .label {
  display: block;
  text-align: center;
}

.intro {
  --klont-omhoog: 200px;
  position: relative;
  z-index: 1;
  margin-top: calc(-1 * var(--klont-omhoog));
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0.6;
}

.intro .smal {
  position: relative;
  isolation: isolate;
  max-width: 780px;
  padding: 80px 110px;
  color: var(--klont-tekst);
  transition: color 0.8s;
}

.intro .smal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--spikkel-aarde), var(--klont);
  clip-path: url(#knip-klont);
  rotate: -1deg;
  transition: background-color 0.8s;
}

.intro p {
  font-size: 1.5rem;
  line-height: 1.55;
  text-align: center;
  margin: 0;
}

.onderdelen {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 860px;
}

.onderdelen li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 6px 40px;
  align-items: baseline;
  padding: 32px 0;
  border-top: 1px solid var(--lijn);
}

.onderdelen li:last-child {
  border-bottom: 1px solid var(--lijn);
}

.onderdelen h3 {
  font-size: 1.7rem;
  font-style: var(--schuin);
  margin: 0;
  line-height: 1.2;
}

.onderdelen p {
  margin: 0;
  color: var(--tekst-mid);
}

.plaatjes {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.onderdelen li:not(.naast) .plaatjes {
  grid-column: 2;
}

.onderdelen li.naast {
  grid-template-columns: 200px 1fr 220px;
}

.onderdelen li.naast .plaatjes {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  margin-top: 0;
}

.onderdelen li.naast .plaatjes img {
  flex-basis: 100%;
}

.plaatjes img {
  flex: var(--r, 1) 1 0;
  min-width: 0;
  height: auto;
  aspect-ratio: var(--r, 1);
  background: var(--bg-2);
}

.plaatjes img:only-child {
  flex: 0 1 50%;
}

.plaatjes img,
.fotos img {
  clip-path: url(#knip-5);
  rotate: -1deg;
}

.plaatjes img:nth-of-type(8n + 2),
.fotos img:nth-of-type(8n + 2) {
  clip-path: url(#knip-2);
  rotate: 1.5deg;
}

.plaatjes img:nth-of-type(8n + 3),
.fotos img:nth-of-type(8n + 3) {
  clip-path: url(#knip-7);
  rotate: -0.5deg;
}

.plaatjes img:nth-of-type(8n + 4),
.fotos img:nth-of-type(8n + 4) {
  clip-path: url(#knip-3);
  rotate: 1deg;
}

.plaatjes img:nth-of-type(8n + 5),
.fotos img:nth-of-type(8n + 5) {
  clip-path: url(#knip-8);
  rotate: -1.5deg;
}

.plaatjes img:nth-of-type(8n + 6),
.fotos img:nth-of-type(8n + 6) {
  clip-path: url(#knip-1);
  rotate: 0.5deg;
}

.plaatjes img:nth-of-type(8n + 7),
.fotos img:nth-of-type(8n + 7) {
  clip-path: url(#knip-6);
  rotate: -1deg;
}

.plaatjes img:nth-of-type(8n + 8),
.fotos img:nth-of-type(8n + 8) {
  clip-path: url(#knip-4);
  rotate: 2deg;
}

.wie-fotos {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 50px auto 0;
}

.wie-fotos li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 36px;
  align-items: center;
  padding: 24px 0;
}

.wie-fotos img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--bg-2);
  clip-path: url(#knip-1);
}

.wie-fotos li:nth-child(1) img {
  rotate: -3deg;
}

.wie-fotos li:nth-child(2) img {
  clip-path: url(#knip-2);
  rotate: 4deg;
}

.wie-fotos li:nth-child(3) img {
  clip-path: url(#knip-3);
  rotate: -2deg;
}

.wie-fotos li:nth-child(4) img {
  clip-path: url(#knip-4);
  rotate: 3deg;
}

.wie-fotos h3 {
  font-size: 1.6rem;
  font-style: var(--schuin);
  margin: 0 0 6px;
}

.wie-fotos p {
  margin: 0;
  color: var(--tekst-mid);
}

#programma {
  background: var(--spikkel), var(--bg-2);
}

.dagen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  max-width: 960px;
  margin: 0 auto;
}

.dagen h3 {
  font-size: 1.6rem;
  font-style: var(--schuin);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lijn-sterk);
}

.dagen ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dagen li {
  padding: 4px 0;
}

.dagen time {
  display: inline-block;
  width: 3.6em;
  color: var(--tekst-zacht);
  font-size: 0.95rem;
}

.voetnoot {
  text-align: center;
  font-style: var(--schuin);
  color: var(--tekst-zacht);
  margin: 50px 0 0;
}

.locatie-fotos {
  max-width: 760px;
  margin: 50px auto 0;
}

.locatie-fotos .smal {
  margin: 44px auto 30px;
}

.locatie-fotos .plaatjes {
  gap: 14px;
  margin-top: 14px;
}

#slapen p {
  margin: 0 0 1em;
}

.fotos {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 960px;
  margin: 50px auto 0;
}

.fotos img {
  flex: 1 1 0;
  min-width: 0;
  height: auto;
  background: var(--bg-2);
}

.praktisch {
  max-width: 700px;
  margin: 0 auto;
}

.praktisch div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--lijn);
}

.praktisch div:last-child {
  border-bottom: 1px solid var(--lijn);
}

.praktisch dt {
  color: var(--tekst-zacht);
}

.praktisch dd {
  margin: 0;
}

#boeken {
  background: var(--spikkel-aarde), var(--bg-boek);
  color: #f0e8da;
  text-align: center;
}

#boeken .label {
  color: #c9b9a6;
}

#boeken a {
  color: #f0e8da;
}

.plekken {
  font-size: 1.4rem;
  margin: -20px 0 40px;
}

.boekwidget {
  max-width: 640px;
  margin: 0 auto 40px;
  padding: 40px 24px;
  background: var(--widget-bg);
  color: var(--widget-tekst);
  border-radius: 6px;
}

.boekwidget p {
  margin: 0;
  font-style: var(--schuin);
  color: #7a6c60;
}

footer {
  padding: 60px 24px 70px;
  text-align: center;
  color: var(--tekst-zacht);
}

footer img {
  width: 120px;
  margin: 0 auto 20px;
}

footer p {
  max-width: 520px;
  margin: 0 auto;
}

footer .stempel {
  width: 150px;
  margin: 36px auto 0;
  opacity: 1;
}

footer .stempel ellipse {
  fill: tomato;
}

@media (max-width: 760px) {
  body {
    font-size: 1.08rem;
  }

  .balk {
    padding: 18px 16px;
  }

  .balk nav {
    gap: 14px;
    font-size: 1rem;
  }

  .stempel {
    width: 92px;
  }

  .licht {
    width: 64px;
    height: 64px;
    margin: 170px auto 28px;
  }

  .hero {
    --lucht-onder: 70px;
  }

  section {
    padding: 70px 16px;
  }

  .intro .smal {
    padding: 70px 44px;
  }

  .intro p {
    font-size: 1.25rem;
  }

  .onderdelen li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .plaatjes,
  .onderdelen li:not(.naast) .plaatjes {
    grid-column: 1;
    gap: 6px;
  }

  .onderdelen li.naast {
    grid-template-columns: 1fr;
  }

  .onderdelen li.naast .plaatjes {
    grid-column: 1;
    grid-row: auto;
    margin-top: 18px;
  }

  .onderdelen li.naast .plaatjes img {
    flex-basis: 50%;
  }

  .locatie-fotos .plaatjes,
  .fotos {
    flex-direction: column;
    gap: 14px;
  }

  .locatie-fotos .plaatjes img,
  .fotos img {
    flex: none;
    width: 100%;
  }

  .dagen {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .wie-fotos li {
    grid-template-columns: 110px 1fr;
    gap: 20px;
    align-items: start;
  }

  .praktisch div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 560px) {
  .balk {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
  }

  .stempel {
    flex: none;
    width: 80px;
  }

  .balk nav .niet-mobiel {
    display: none;
  }

  .balk nav {
    flex: 1 1 calc(100% - 94px);
    justify-content: flex-end;
    gap: 8px 12px;
    font-size: clamp(0.85rem, calc((100vw - 170px) / 12.5), 1.1rem);
  }

  .wissel {
    margin-left: auto;
    font-size: 0.72rem;
  }
}
