@import url('https://fonts.googleapis.com/css2?family=Doto:wght@800&display=swap');

:root {
  --ink: #1a1a1a;
  --muted: #9a9a9a;
  --soft: #5c5c5c;
  --line: #e3e3e3;
  --row: #fafafa;
  --pill: #efefef;
  --accent: #b5654a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: 'Doto', monospace;
  font-weight: 800;
  font-size: 16px;
  line-height: 24px;
}

/* gerasterde wolken achter alles */
.wolken {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #fff;
  background-image: url(/cloud.png);
  background-size: 1024px 784px;
  background-repeat: repeat;
  image-rendering: pixelated;
}

/* ---------- home ---------- */
.home {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
/* witte gloed in het midden, zodat de tekst los komt van de wolken */
.home::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 340px 230px at 50% 50%, #fff 0%, #fff 45%, rgba(255,255,255,0.85) 62%, rgba(255,255,255,0) 100%);
}
.home-blok { width: 255px; max-width: 100%; position: relative; }
.home-tekst {
  font-size: 10px;
  line-height: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0;
}
.home-nav { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 14px; white-space: nowrap; }
.home-nav a {
  display: flex;
  padding: 3px 3px;
  border-radius: 2px;
  background: var(--pill);
  color: #6b6b6b;
  font-size: 7px;
  line-height: 10.5px;
  letter-spacing: 0.42px;
  text-transform: uppercase;
  text-decoration: none;
}
.home-nav a:hover { background: #e2e2e2; color: var(--ink); }

/* ---------- binnenpagina's ---------- */
.kaart {
  position: relative;
  z-index: 1;
  width: 680px;
  max-width: calc(100% - 32px);
  margin: 48px auto;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid var(--line);
}
.kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.kop .logo { font-size: 14px; line-height: 18px; letter-spacing: 0.84px; color: var(--ink); text-decoration: none; }
.kop nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.kop nav a {
  display: flex;
  padding: 5px 14px;
  border-radius: 2px;
  background: var(--pill);
  color: var(--soft);
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.9px;
  text-decoration: none;
}
.kop nav a:hover { color: var(--ink); }
.kop nav a.actief { background: #e4e4e4; color: var(--ink); }
.kop nav a.x { background: none; padding: 5px 2px; }

section { margin-bottom: 40px; }
section:last-child { margin-bottom: 0; }
h1, h2 { font-size: 13px; line-height: 18px; letter-spacing: 0.52px; font-weight: 800; margin: 0 0 10px; }
p { font-size: 11px; line-height: 17px; margin: 0 0 10px; text-align: justify; hyphens: auto; }

/* melding dat de cijfers voorbeelden zijn */
.voorbeeld {
  font-size: 9px;
  line-height: 13px;
  letter-spacing: 0.6px;
  color: var(--soft);
  background: var(--pill);
  border-left: 2px solid var(--ink);
  padding: 8px 10px;
  margin: 0 0 26px;
}

table { width: 100%; border-collapse: collapse; margin: 6px 0 0; }
th {
  text-align: left;
  font-size: 9px;
  line-height: 12px;
  letter-spacing: 0.72px;
  font-weight: 400;
  color: var(--muted);
  padding: 0 8px 6px 0;
  border-bottom: 1px solid var(--line);
}
td { font-size: 10px; line-height: 14px; padding: 6px 8px 6px 0; vertical-align: top; overflow-wrap: anywhere; }
tbody tr:nth-child(even) { background: var(--row); }
td.waarde, th.waarde { color: var(--ink); }
td.zacht { color: var(--accent); }
td.mono, .mono { letter-spacing: 0.3px; }

.formule {
  background: var(--row);
  font-size: 9px;
  line-height: 14px;
  padding: 10px 12px;
  margin: 10px 0 12px;
  overflow-wrap: anywhere;
}

/* split-balk zcash / monero */
.balk-labels { display: flex; justify-content: space-between; font-size: 7px; line-height: 10px; margin-top: 6px; }
.balk { display: flex; height: 16px; border: 1px solid #555; margin-bottom: 14px; }
.balk .z { background: repeating-linear-gradient(90deg, #555 0 2px, #fff 2px 4px); }
.balk .m { background: #fff; border-left: 1px solid #555; }

/* vulmeters bij vault */
.meters { display: flex; justify-content: space-around; margin: 14px 0 6px; }
.meter { display: flex; gap: 8px; align-items: flex-start; }
.meter-titel { font-size: 7px; line-height: 10px; color: var(--muted); text-align: center; margin-bottom: 4px; }
.buis { width: 78px; height: 136px; border: 1px solid #222; position: relative; }
.buis .vul { position: absolute; left: 0; right: 0; bottom: 0; background: repeating-linear-gradient(0deg, #555 0 2px, #fff 2px 4px); }
.meter-info { font-size: 7px; line-height: 13px; color: var(--soft); margin-top: 14px; }

/* stroomdiagram bij mechanism */
.diagram { width: 100%; height: auto; margin: 8px 0 14px; }
.diagram text { font-family: 'Doto', monospace; font-weight: 800; }

/* bytes bij program / releases */
.bytes { display: flex; flex-wrap: wrap; gap: 2px; margin: 4px 0; }
.bytes span { width: 17px; height: 17px; background: #bdbdbd; border: 1px solid #a8a8a8; }
.bytes span.zwart { background: #1a1a1a; border-color: #1a1a1a; }
.bytes span.licht { background: #f2f2f2; border-color: #cfcfcf; }
.byte-label { font-size: 7px; line-height: 10px; color: var(--soft); margin-bottom: 8px; }
.memo-cellen { display: flex; flex-wrap: wrap; gap: 0; margin: 4px 0 6px; }
.memo-cellen span { width: 6px; height: 13px; border: 1px solid #777; margin-right: -1px; }
.memo-cellen span.vol { background: #1a1a1a; }

@media (max-width: 560px) {
  .kaart { padding: 22px 16px; margin: 16px auto; }
  .kop { flex-direction: column; align-items: flex-start; }
  .kop nav { justify-content: flex-start; }
  table { display: block; overflow-x: auto; }
  td.mono, th { white-space: nowrap; }
}
