:root {
  --ink: #211f29;
  --paper: #fff9ed;
  --blue: #3933df;
  --red: #d84128;
  --rule: #d4cbbb;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    1rem/1.6 "Inter",
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #e34e31;
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.wrap {
  width: min(1190px, calc(100% - 80px));
  margin: auto;
}
.skip {
  position: absolute;
  top: -90px;
}
.skip:focus {
  top: 5px;
  background: white;
  z-index: 9;
}
header {
  border-bottom: 1px solid var(--rule);
}
.nav,
.brand,
nav,
.actions,
.heading,
footer,
.control,
figcaption {
  display: flex;
  align-items: center;
}
.nav {
  min-height: 76px;
  gap: 30px;
}
.brand {
  gap: 10px;
  font-size: 1.26rem;
  font-weight: 800;
  letter-spacing: -0.055em;
}
nav {
  margin-left: auto;
  gap: 26px;
}
.gh,
.plain,
.body a {
  font-weight: 700;
}
.gh {
  border: 1px solid var(--ink);
  border-radius: 24px;
  padding: 5px 17px;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 6%;
  align-items: center;
  padding-block: clamp(42px, 6vw, 84px);
}
.kicker,
.meta,
figcaption span,
.control span,
.filters button,
.article time,
.article small {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.kicker,
.meta {
  font-weight: 700;
}
.kicker {
  margin: 0 0 15px;
}
.kicker span {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 5px;
}
.lead h1 {
  font-size: clamp(3.35rem, 6.65vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.08em;
  margin: 0;
  font-weight: 800;
}
.lead h1 em {
  color: var(--blue);
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.08em;
}
.intro {
  max-width: 48ch;
  font-size: 1.13rem;
  line-height: 1.55;
  margin: 20px 0 25px;
}
.actions {
  gap: 24px;
  flex-wrap: wrap;
}
.cta {
  background: var(--blue);
  color: white;
  border-radius: 30px;
  padding: 11px 21px;
  font-weight: 700;
}
.plain,
.body a {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.playground {
  margin: 0;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 6px 7px 0 var(--ink);
  transform: rotate(1deg);
}
figcaption,
.control {
  justify-content: space-between;
  gap: 8px;
  padding: 12px 17px;
}
figcaption {
  color: #fff5df;
  border-bottom: 1px solid #928afb;
}
figcaption b {
  font: 700 1rem var(--mono);
}
figcaption span {
  color: #ffed99;
}
canvas {
  display: block;
  width: 100%;
  height: auto;
}
.control {
  background: #24224c;
  color: white;
}
.control button {
  padding: 8px 14px;
  border: 0;
  background: #ffde79;
  color: #211f29;
  border-radius: 20px;
  font-weight: 700;
}
.control button:disabled {
  opacity: 0.75;
}
.projects {
  background: #f4eddc;
  border-block: 1px solid var(--rule);
  padding: 54px 0 62px;
}
.heading {
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 25px;
}
h2 {
  font-size: clamp(2.35rem, 4.8vw, 4.35rem);
  line-height: 1;
  letter-spacing: -0.075em;
  margin: 0;
}
h2 span {
  color: var(--red);
}
.heading .kicker,
.about .kicker {
  margin-bottom: 7px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}
.cards article {
  border: 1.5px solid var(--ink);
  border-radius: 13px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.body {
  padding: 20px;
  display: flex;
  align-items: start;
  flex-direction: column;
  flex: 1;
}
.body h3 {
  font-size: 1.62rem;
  line-height: 1.08;
  letter-spacing: -0.045em;
  margin: 7px 0 0;
}
.meta {
  margin: 0;
}
.body a {
  margin-top: auto;
}
.art {
  height: 145px;
  display: grid;
  place-items: center;
  border-bottom: 1.5px solid var(--ink);
  overflow: hidden;
}
.queue {
  background: #ff795e;
}
.storage {
  background: #b9acff;
}
.shards {
  background: #f4d26a;
}
.queuebars {
  display: flex;
  gap: 6px;
  transform: rotate(-12deg) skewY(-7deg);
}
.queuebars i {
  width: 24px;
  height: 67px;
  border: 2px solid var(--ink);
  background: #fff1d5;
  box-shadow: 5px 5px var(--ink);
}
.queuebars i:nth-child(2n) {
  background: #d63920;
  transform: translateY(-9px);
}
.disks {
  position: relative;
  width: 105px;
  height: 91px;
  transform: rotate(-12deg);
}
.disks i {
  position: absolute;
  width: 100%;
  height: 41px;
  background: #6450d8;
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 9px var(--ink);
  bottom: 6px;
}
.disks i:nth-child(2) {
  bottom: 26px;
  background: #9687ed;
}
.disks i:nth-child(3) {
  bottom: 46px;
  background: #e6deff;
}
.tiles {
  display: grid;
  grid-template-columns: 42px 42px;
  gap: 8px;
  transform: rotate(-24deg) skewX(18deg);
}
.tiles i {
  height: 36px;
  background: #fff2bb;
  border: 2px solid var(--ink);
  box-shadow: -6px 7px var(--ink);
}
.tiles i:last-child {
  background: #ec7652;
}
.writing,
.about {
  padding-block: 64px;
}
.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 23px;
}
.filters button {
  color: var(--ink);
  background: transparent;
  border: 1px solid #8b847c;
  padding: 7px 12px;
  border-radius: 20px;
}
.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.article {
  display: grid;
  grid-template-columns: 125px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.article:hover {
  color: var(--blue);
}
.article strong {
  line-height: 1.35;
}
.about {
  border-top: 2px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.about p:first-child {
  margin-top: 0;
}
footer {
  border-top: 1px solid var(--rule);
  justify-content: space-between;
  padding-block: 18px;
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .hero {
    gap: 4%;
  }
  .cards {
    gap: 10px;
  }
  .body {
    padding: 14px;
  }
  .body h3 {
    font-size: 1.35rem;
  }
  .control,
  figcaption {
    padding: 10px;
  }
  .control span,
  figcaption span {
    font-size: 0.73rem;
  }
}
@media (max-width: 650px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px 20px;
    padding-block: 12px;
  }
  .brand {
    flex: 1;
    white-space: nowrap;
  }
  .gh {
    order: 2;
  }
  nav {
    order: 3;
    width: 100%;
    gap: 23px;
  }
  .hero,
  .about {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 35px;
    padding-block: 37px 45px;
  }
  .lead h1 {
    font-size: clamp(3.65rem, 13vw, 5.2rem);
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .body {
    padding: 19px;
  }
  .art {
    height: 128px;
  }
  .article {
    grid-template-columns: 1fr auto;
    gap: 3px;
  }
  .article strong {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .heading {
    align-items: start;
    flex-direction: column;
  }
  .writing,
  .about {
    padding-block: 42px;
  }
  .about {
    gap: 18px;
  }
  .control button {
    padding: 10px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.cluster-stage {
  position: relative;
  isolation: isolate;
  background: #3933df;
}
.cluster-stage canvas {
  aspect-ratio: 600/460;
}
#node-map {
  position: absolute;
  inset: 0;
}
#node-map button {
  position: absolute;
  transform: translate(-50%, -50%);
  border: 1px solid #211f29;
  border-radius: 16px;
  padding: 4px 9px;
  min-height: 29px;
  font: 700 0.78rem var(--mono);
  white-space: nowrap;
  color: #211f29;
  background: #fff8e3;
}
#node-map [aria-pressed="true"] {
  outline: 3px solid #ffde79;
  outline-offset: 2px;
}
#node-map [data-state="offline"] {
  background: #45405b;
  color: white;
  border-style: dashed;
}
#node-map [data-state="behind"] {
  background: #ffb087;
}
.cluster-console {
  padding: 14px 18px 13px;
  background: #24224c;
  color: #fff8e7;
}
.cluster-summary,
.cluster-actions,
.inspector,
.inspector > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.cluster-summary {
  justify-content: space-between;
  border-bottom: 1px solid #55517b;
  padding-bottom: 9px;
  font: 600 0.77rem var(--mono);
}
.inspector {
  justify-content: space-between;
  min-height: 48px;
  line-height: 1.3;
  font-size: 0.88rem;
}
.cluster-console button {
  border: 1px solid #8c87b0;
  border-radius: 18px;
  background: transparent;
  color: #fff8e7;
  padding: 6px 11px;
  font-size: 0.81rem;
  line-height: 1.25;
  font-family: inherit;
  font-weight: 600;
}
.cluster-console button:disabled {
  opacity: 0.55;
  cursor: default;
}
.cluster-console #write {
  background: #ffde79;
  color: #211f29;
  border-color: #ffde79;
}
.cluster-console #reset {
  margin-left: auto;
}
#replica-state {
  margin: 10px 0 0;
  color: #e0dcf6;
  font-size: 0.85rem;
  line-height: 1.4;
  min-height: 2.8em;
}
@media (max-width: 420px) {
  .cluster-console {
    padding-inline: 10px;
  }
  .inspector {
    row-gap: 4px;
    padding-block: 7px;
  }
  .playground figcaption {
    flex-wrap: wrap;
  }
  #node-map button {
    font-size: 0.7rem;
    padding-inline: 6px;
  }
}

.lab-deck {
  min-width: 0;
  align-self: center;
}
.deck-nav,
.deck-nav > div,
.lab-actions,
.clients,
.ledger-head,
.partition {
  display: flex;
  align-items: center;
  gap: 8px;
}
.deck-nav {
  justify-content: space-between;
  margin-bottom: 10px;
  font: 700 0.78rem var(--mono);
  letter-spacing: 0.06em;
}
.deck-nav button {
  width: 39px;
  height: 36px;
  border: 1.5px solid var(--ink);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.12rem;
}
.deck-hand {
  position: relative;
  touch-action: pan-y;
  isolation: isolate;
}
.deck-hand:before {
  content: "";
  position: absolute;
  inset: 5px 2px -4px;
  background: #bcb1ff;
  transform: rotate(-1.3deg);
  border-radius: 18px;
  border: 2px solid var(--ink);
  z-index: -1;
}
.deck-hand .playground {
  transform: none;
  transform-origin: center 80%;
}
.swipe-tip {
  margin: 14px 0 0;
  text-align: center;
  font: 0.76rem/1.45 var(--mono);
}
.kafka-lab figcaption {
  background: #4c201e;
  color: #fff3dd;
}
.kube-lab figcaption {
  background: #173f3b;
}
.kafka-map,
.kube-map {
  padding: clamp(15px, 3vw, 27px);
  display: grid;
  gap: 12px;
  color: var(--ink);
}
.kafka-map {
  background: #ff997c;
}
.clients,
.ledger-head {
  justify-content: space-between;
}
.clients strong,
.ledger-head,
.partition b,
.kube-group b {
  font-family: var(--mono);
}
.clients strong {
  background: #fff5d9;
  border: 1px solid var(--ink);
  border-radius: 6px;
  padding: 5px 12px;
}
.clients span,
.ledger-head span,
.partition small {
  font: 0.75rem var(--mono);
}
.clients strong.lit,
.partition.lit,
.kube-group .lit {
  background: #ffdb64;
  box-shadow: 2px 3px 0 var(--ink);
}
.logbook {
  background: #fff5dc;
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  padding: 10px;
}
.ledger-head {
  margin-bottom: 7px;
}
.partition {
  padding: 5px 8px;
  min-height: 36px;
  border: 1px solid #c0ad94;
  border-radius: 4px;
  margin-top: 4px;
}
.partition small {
  margin-left: auto;
}
.record {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  border: 1px solid #44332b;
  background: #ffc4a7;
  font: 0.8rem/1.5 var(--mono);
}
.record.pending {
  border-style: dashed;
}
.kube-map {
  background: #95d8c2;
}
.kube-group {
  padding: 9px 10px;
  border: 1px solid #44695c;
  background: #c4ead8;
  border-radius: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kube-group b {
  width: 100%;
  font-size: 0.75rem;
}
.kube-group span {
  font-size: 0.84rem;
  padding: 3px 8px;
  background: #f4ffed;
  border: 1px solid #647b70;
  border-radius: 5px;
}
.kube-group .blocked {
  background: #ff9c85;
}
.lab-console {
  padding: 15px 17px;
  color: #fff8ea;
  background: #29253f;
}
.lab-console label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 650;
}
.lab-console select {
  max-width: 100%;
  padding: 5px 8px;
  font: inherit;
  border: 0;
  border-radius: 5px;
  color: var(--ink);
  background: #fff3d7;
}
.trace {
  font-size: 0.94rem;
  line-height: 1.45;
  min-height: 4.35em;
  margin: 12px 0;
}
.lab-actions {
  gap: 8px;
  flex-wrap: wrap;
}
.lab-actions button {
  border: 1px solid #ada6bf;
  background: transparent;
  color: white;
  border-radius: 18px;
  padding: 7px 13px;
  font-weight: 650;
}
.lab-actions button:first-child {
  background: #ffde79;
  color: var(--ink);
  border-color: #ffde79;
}
.lab-actions a {
  margin-left: auto;
  color: #fff1bb;
  text-decoration: underline;
  font-size: 0.81rem;
}
