/* Aurora-achtergrond, overgenomen van koenholman.nl (preset "Aurora") en omgezet naar
   een lichte variant: vier zwaar geblurde, traag drijvende pastelblobs met korrel erover.
   Alleen CSS, geen JavaScript. Bij "minder beweging" staat de wash stil. */
:root {
  --c1: hsla(152, 62%, 30%, 0.80); /* dennengroen */
  --c2: hsla(42, 85%, 48%, 0.72);  /* goud */
  --c3: hsla(352, 66%, 38%, 0.70); /* kerstrood */
  --c4: hsla(160, 55%, 24%, 0.75); /* donker dennen */
  --c5: hsla(140, 50%, 34%, 0.70); /* mos */
  --aur-paint-op: 0.8;  /* sterkte van de wash */
  --aur-paint-boost: 1;
  --soft: 1.5;           /* blur-vermenigvuldiger */
  --speed: 0.4;          /* lager = trager */
}

/* Zacht kleurwisselen van de wash: de webshop zet --c1 t/m --c5 op de gekozen filterkleuren (app.js: tintAchtergrond). */
@property --c1 { syntax: "<color>"; inherits: true; initial-value: hsla(152, 62%, 30%, 0.80); }
@property --c2 { syntax: "<color>"; inherits: true; initial-value: hsla(42, 85%, 48%, 0.72); }
@property --c3 { syntax: "<color>"; inherits: true; initial-value: hsla(352, 66%, 38%, 0.70); }
@property --c4 { syntax: "<color>"; inherits: true; initial-value: hsla(160, 55%, 24%, 0.75); }
@property --c5 { syntax: "<color>"; inherits: true; initial-value: hsla(140, 50%, 34%, 0.70); }
:root { transition: --c1 3s ease, --c2 3s ease, --c3 3s ease, --c4 3s ease, --c5 3s ease; }

@keyframes khDrift {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(7%, -5%) scale(1.14); }
  55%  { transform: translate(12%, -9%) scale(1.3); }
  80%  { transform: translate(5%, -3%) scale(1.1); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes khDrift2 {
  0%   { transform: translate(0, 0) scale(1.12); }
  28%  { transform: translate(-7%, 4%) scale(1.02); }
  58%  { transform: translate(-12%, 8%) scale(0.94); }
  82%  { transform: translate(-5%, 3%) scale(1.05); }
  100% { transform: translate(0, 0) scale(1.12); }
}
@keyframes khGrain {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-2%, 1%); }
  50%      { transform: translate(1%, -2%); }
  75%      { transform: translate(2%, 2%); }
}
@keyframes khFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes khBreathe {
  0%   { filter: brightness(0.95) saturate(0.96); }
  50%  { filter: brightness(1.08) saturate(1.06); }
  100% { filter: brightness(0.95) saturate(0.96); }
}
/* Op smalle schermen ademt de wash op dekking in plaats van op filter: veel lichter voor een telefoon. */
@keyframes khBreatheSmal {
  0%   { opacity: calc(var(--aur-paint-op) * var(--aur-paint-boost) * 0.95); }
  50%  { opacity: calc(var(--aur-paint-op) * var(--aur-paint-boost) * 1.08); }
  100% { opacity: calc(var(--aur-paint-op) * var(--aur-paint-boost) * 0.95); }
}

.aur-defs { position: absolute; width: 0; height: 0; }
.aur-stage {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  animation: khFadeIn .5s ease both;
}
.aur-paint {
  position: absolute; inset: -12%;
  opacity: calc(var(--aur-paint-op) * var(--aur-paint-boost));
  animation: khBreathe 64s ease-in-out infinite;
}
.aur-blob { position: absolute; will-change: transform; }
.aur-blob--1 {
  top: 6%; left: 12%; width: 46vw; height: 46vw; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 40deg, var(--c5) 130deg, var(--c4) 220deg, transparent 320deg);
  filter: blur(calc(var(--soft) * 26px));
  animation: khDrift calc(26s / var(--speed)) ease-in-out infinite;
}
.aur-blob--2 {
  bottom: 0%; right: 4%; width: 54vw; height: 54vw; border-radius: 50%;
  background: conic-gradient(from 120deg, transparent 0deg, var(--c2) 90deg, var(--c3) 220deg, transparent 340deg);
  filter: blur(calc(var(--soft) * 34px));
  animation: khDrift2 calc(30s / var(--speed)) ease-in-out infinite;
}
.aur-blob--3 {
  top: -6%; left: -8%; width: 70vw; height: 50vh;
  background: radial-gradient(60% 55% at 40% 50%, var(--c1) 0%, transparent 72%);
  filter: blur(calc(var(--soft) * 40px));
  animation: khDrift calc(22s / var(--speed)) ease-in-out infinite;
}
.aur-blob--4 {
  top: 32%; right: -12%; width: 65vw; height: 60vh;
  background: radial-gradient(55% 50% at 60% 50%, var(--c2) 0%, transparent 70%);
  filter: blur(calc(var(--soft) * 48px));
  animation: khDrift2 calc(28s / var(--speed)) ease-in-out infinite;
}
.aur-grain {
  position: absolute; inset: -6%; width: 112%; height: 112%;
  opacity: 0.05; mix-blend-mode: multiply;
}
.aur-vignette {
  position: absolute; inset: 0;
  /* Naar onderen vloeit de wash uit in de papierkleur, zodat tekst rustig leesbaar blijft. */
  background: linear-gradient(180deg, transparent 0%, rgba(191, 186, 172, .55) 55%, rgba(191, 186, 172, .9) 100%);
}

@media (max-width: 699px) {
  :root { --aur-paint-boost: 1.15; }
  .aur-blob--1 { top: 2%;  left: 4%;    width: 92vw;  height: 92vw; }
  .aur-blob--2 { bottom: 2%; right: -8%; width: 108vw; height: 108vw; }
  .aur-blob--3 { top: -8%;  left: -20%;  width: 130vw; height: 55vh; }
  .aur-blob--4 { top: 28%;  right: -25%; width: 125vw; height: 60vh; }
  .aur-paint { animation: khBreatheSmal 64s ease-in-out infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .aur-stage, .aur-paint, .aur-blob, .aur-grain { animation: none; }
}
