:root {
  --nacht: #070a09;
  --moeras: #0e1513;
  --kim: #1f2826;
  --hout: #26221e;
  --hout-rand: #3a3530;
  --perkament: #e8e6de;
  --stil: #6b746f;
  --dwaallicht: #8bd8a3;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--nacht);
  color: var(--perkament);
  font-family: 'Geist', system-ui, sans-serif;
}

.vlakte {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--nacht) 0%, var(--moeras) 58%, var(--nacht) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.titel {
  margin: 6vh 0 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: 0.06em;
  position: relative;
  z-index: 2;
}

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 52%;
}
.horizon .grond { fill: #050706; }
.horizon .kim { fill: none; stroke: var(--kim); stroke-width: 1.5; vector-effect: non-scaling-stroke; }

.dwaallicht {
  position: absolute;
  top: 44%;
  right: 18%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--dwaallicht);
  box-shadow: 0 0 10px 3px rgba(139, 216, 163, 0.35);
  opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
  .dwaallicht { animation: dwalen 9s ease-in-out infinite; }
  @keyframes dwalen {
    0%, 100% { transform: translate(0, 0); opacity: 0.25; }
    40% { transform: translate(-14px, -6px); opacity: 0.7; }
    70% { transform: translate(6px, 4px); opacity: 0.4; }
  }
}

.wegwijzer {
  position: relative;
  z-index: 2;
  margin-top: 4vh;
  padding: 12px 0 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transform: rotate(-1.5deg);
}

.paal {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 9px;
  margin-left: -4.5px;
  background: linear-gradient(90deg, #1c1916, var(--hout-rand), #1c1916);
  border-radius: 2px;
}

.arm {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: min(72vw, 300px);
  padding: 12px 34px 12px 18px;
  background: var(--hout);
  border: 1px solid var(--hout-rand);
  color: var(--perkament);
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%);
  transition: background 0.3s ease;
}

.arm.rechts { transform: translateX(calc(50% - 8px)) rotate(1.5deg); }
.arm.links {
  padding: 12px 18px 12px 34px;
  text-align: right;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%);
  transform: translateX(calc(-50% + 8px)) rotate(-2deg);
}

.arm .naam {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.1;
}
.arm .ondertitel { font-size: 0.78rem; color: var(--stil); }

.arm:hover, .arm:focus-visible { background: #312b25; outline: none; }
.arm:focus-visible .naam { text-decoration: underline; text-underline-offset: 4px; }

.arm-samhain .naam { color: #d6a873; }
.arm-zee .naam { color: #a8bcc4; }
.arm-polder .naam { color: #b4c896; }
.arm-aquarium .naam { color: #5eead4; }

.voet {
  position: absolute;
  bottom: 22px;
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3b4441;
  z-index: 2;
}

@media (max-width: 520px) {
  .arm.rechts { transform: translateX(10px) rotate(1.5deg); }
  .arm.links { transform: translateX(-10px) rotate(-2deg); }
}

/* Lichtelijk verstopt: bijna niet te zien tot je er met de muis of het toetsenbord op komt. */
/* Vast in beeld: met zes armen is de vlakte hoger dan een telefoonscherm. */
.tandwiel {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--stil);
  opacity: 0.22;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.tandwiel:hover, .tandwiel:focus-visible { opacity: 0.85; color: var(--dwaallicht); outline: none; }
