* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 1rem;
}
body {
  margin: 0;
  background: var(--cleetus-background-canvas);
  color: var(--cleetus-text-primary);
  font:
    1rem/1.6 Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
a {
  color: var(--cleetus-link-default);
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration: underline;
}
a:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--cleetus-focus-ring);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  color: #090d18;
  background: white;
  z-index: 10;
  padding: 0.6rem 1rem;
  transform: translateY(-130%);
}
.skip:focus {
  transform: none;
}
.shell {
  width: min(1190px, calc(100% - 4rem));
  margin: auto;
}
header {
  border-bottom: 1px solid var(--cleetus-border-subtle);
}
.mast,
footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.mast {
  min-height: 4.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cleetus-text-primary);
  font-size: 1.22rem;
  white-space: nowrap;
  text-decoration: none;
}
.brand em {
  color: var(--cleetus-brand-amber);
  font-style: normal;
}
.mast nav,
footer nav,
.actions {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  flex-wrap: wrap;
}
.mast nav a,
footer a {
  text-decoration: none;
  color: #d8deec;
}
.mast nav a:hover,
footer a:hover,
.text-link:hover {
  text-decoration: underline;
}
.mast .nav-cta {
  border: 1px solid var(--cleetus-border-default);
  border-radius: 0.45rem;
  padding: 0.35rem 0.8rem;
}
.hero,
.dev-hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  padding: 5.8rem 0;
}
.kicker,
.terminal > span,
.boundary > b,
.diagram-node strong {
  font:
    650 0.87rem/1.45 "SFMono-Regular",
    Consolas,
    monospace;
  letter-spacing: 0.03em;
}
.kicker {
  color: var(--cleetus-brand-amber);
  margin: 0 0 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
h1,
h2,
h3,
p {
  margin: 0 0 1rem;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.hero h1,
.dev-hero h1 {
  font-size: clamp(3.1rem, 6.5vw, 6.2rem);
  font-weight: 760;
  max-width: 11ch;
}
.hero h1 em,
.dev-hero h1 em {
  font-style: normal;
  color: var(--cleetus-brand-amber);
}
.lead {
  color: #cad1e1;
  font-size: 1.22rem;
  line-height: 1.6;
  max-width: 46ch;
}
.actions {
  margin-top: 1.7rem;
  gap: 1.25rem;
}
.button {
  display: inline-flex;
  color: #18130a;
  text-decoration: none;
  font-weight: 700;
  background: var(--cleetus-brand-amber);
  border-radius: 0.4rem;
  padding: 0.65rem 1rem;
}
.button:hover {
  background: var(--cleetus-brand-amber-hover);
}
.text-link {
  color: var(--cleetus-text-primary);
  font-weight: 600;
}
.workshop {
  margin: 0;
  overflow: hidden;
  border: 1px solid #424454;
  border-radius: 1rem;
  background: #151e30;
}
.workshop img {
  display: block;
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
  object-position: 50% 55%;
}
.band {
  border-top: 1px solid var(--cleetus-border-subtle);
  padding: 3.6rem 0;
}
.section-intro {
  max-width: 48rem;
  margin-bottom: 1.7rem;
}
.section-intro h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
}
.section-intro p:not(.kicker),
.terminal p,
.guide-card span,
.reading-list span {
  color: var(--cleetus-text-secondary);
}
.split,
.dev-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.reading-list {
  border-top: 1px solid var(--cleetus-border-default);
}
.reading-list a {
  display: grid;
  gap: 0.2rem;
  border-bottom: 1px solid var(--cleetus-border-subtle);
  padding: 1rem 0;
  color: var(--cleetus-text-primary);
  text-decoration: none;
}
.reading-list a:hover strong,
.guide-card:hover strong {
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.4rem;
  background: var(--cleetus-background-sidebar);
  border: 1px solid var(--cleetus-border-default);
  border-radius: 0.65rem;
  color: var(--cleetus-text-primary);
  text-decoration: none;
}
.guide-card:hover {
  border-color: var(--cleetus-brand-amber);
  text-decoration: none;
}
.guide-card strong {
  font-size: 1.2rem;
}
.terminal {
  padding: 1.7rem 2rem;
  border: 1px solid var(--cleetus-border-default);
  border-radius: 0.8rem;
  background: var(--cleetus-background-sidebar);
}
.terminal img {
  float: right;
  object-fit: contain;
}
.terminal > span {
  color: var(--cleetus-brand-amber);
  display: block;
}
.terminal code {
  display: block;
  margin: 1.7rem 0 1rem;
  color: var(--cleetus-brand-cyan);
  font-size: clamp(1rem, 2vw, 1.4rem);
}
.terminal p {
  max-width: 34ch;
}
.reader {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: 4rem;
  padding-block: 3rem 5rem;
}
.reader article {
  max-width: 52rem;
  min-width: 0;
}
.reader aside {
  align-self: start;
}
.reader summary {
  font-weight: 700;
  cursor: pointer;
}
.reader aside nav {
  display: grid;
  padding-top: 0.7rem;
}
.reader aside nav b {
  padding: 0.9rem 0.55rem 0.2rem;
}
.reader aside nav a {
  padding: 0.3rem 0.55rem;
  text-decoration: none;
  color: var(--cleetus-text-secondary);
  border-left: 2px solid transparent;
}
.reader aside nav a:hover {
  text-decoration: underline;
}
.reader aside a[aria-current="page"] {
  border-color: var(--cleetus-brand-amber);
  color: var(--cleetus-text-primary);
  background: var(--cleetus-background-sidebar);
}
article h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
}
article h2 {
  margin: 2.4rem 0 0.9rem;
  font-size: 1.7rem;
}
article p,
article li {
  color: #c9cfdf;
}
article > p:nth-of-type(2) {
  font-size: 1.15rem;
}
article code {
  font-size: 0.91em;
  overflow-wrap: anywhere;
  color: #a5e9f6;
}
article pre {
  overflow: auto;
  padding: 1rem;
  border: 1px solid var(--cleetus-border-default);
  border-radius: 0.4rem;
  background: #101828;
}
article table {
  width: 100%;
  border-collapse: collapse;
}
article th,
article td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem;
  border-bottom: 1px solid var(--cleetus-border-default);
}
article th {
  color: var(--cleetus-brand-amber);
}
article li + li {
  margin-top: 0.5rem;
}
.table-wrap {
  overflow: auto;
}
.diagram {
  border: 1px solid var(--cleetus-border-default);
  background: #0d1526;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  overflow: hidden;
}
.diagram figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #29394d;
}
.motion {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #c8d1e2;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
}
.motion input {
  accent-color: #49c7e7;
  width: 1rem;
  height: 1rem;
}
.diagram .plot {
  padding: 1.4rem;
  display: grid;
  justify-items: center;
  background-image: radial-gradient(#263248 1px, transparent 1px);
  background-size: 18px 18px;
}
.flow {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.diagram-node,
.boundary,
.worker {
  background: #111d30;
  border: 1.5px solid #4e6686;
  border-radius: 0.5rem;
}
.diagram-node {
  padding: 0.8rem 1rem;
  display: grid;
  flex: 1;
  align-content: center;
  gap: 0.25rem;
  max-width: 20rem;
  min-height: 5.3rem;
}
.diagram-node span,
.boundary small,
.diagram > p {
  font-size: 0.94rem;
  line-height: 1.5;
  color: #bac5d8;
}
.diagram-node strong {
  color: #a7e8f7;
}
.diagram-node.approved,
.worker {
  border-color: #4ca983;
}
.diagram-node.pending {
  border-color: #c3994e;
}
.boundary {
  width: min(100%, 43rem);
  padding: 0.65rem 1.15rem 0.85rem;
  border-style: dashed;
  color: #83dfef;
}
.boundary b,
.boundary small {
  display: block;
}
.boundary small {
  padding-bottom: 0.45rem;
}
.boundary .boundary {
  width: 100%;
  padding-left: 1.05rem;
  background: #142436;
}
.worker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.15rem 0.8rem;
  background: #132c27;
  color: #d4f6e5;
}
.worker img {
  object-fit: contain;
}
.flow-edge {
  position: relative;
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2px;
  background: #6986a7;
  display: block;
}
.flow-edge:after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  border-left: 6px solid #a3bdd3;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.plot > .flow-edge {
  width: 2px;
  height: 1.8rem;
}
.plot > .flow-edge:after {
  top: auto;
  bottom: 0;
  right: -3px;
  border: none;
  border-top: 6px solid #a3bdd3;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
}
.diagram:has(input:checked) .flow-edge:before {
  content: "";
  position: absolute;
  background: #79e5f1;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  top: -1px;
  left: 0;
  animation: across 2.8s linear infinite;
}
.diagram:has(input:checked) .plot > .flow-edge:before {
  left: -1px;
  top: 0;
  animation-name: down;
}
.diagram > p {
  margin: 0;
  border-top: 1px solid #29394d;
  padding: 0.85rem 1.2rem;
}
.plot > .diagram-node {
  width: min(100%, 30rem);
}
@keyframes across {
  from {
    left: 0;
  }
  to {
    left: calc(100% - 5px);
  }
}
@keyframes down {
  from {
    top: 0;
  }
  to {
    top: calc(100% - 5px);
  }
}
footer {
  border-top: 1px solid var(--cleetus-border-subtle);
  padding: 2rem 0;
  color: var(--cleetus-text-secondary);
}
footer .shell > span {
  font-weight: 700;
}
@media (max-width: 800px) {
  .shell {
    width: calc(100% - 2.5rem);
  }
  .hero,
  .dev-hero,
  .split {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    padding: 3rem 0;
  }
  .dev-hero h1 {
    max-width: 18ch;
  }
  .hero h1 {
    max-width: 14ch;
  }
  .workshop img {
    aspect-ratio: 2.35;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reader {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .reader aside nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reader aside nav b {
    grid-column: 1/-1;
  }
  .reader aside {
    border-bottom: 1px solid var(--cleetus-border-default);
    padding-bottom: 0.7rem;
  }
  footer .shell {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }
}
@media (max-width: 580px) {
  .shell {
    width: calc(100% - 2rem);
  }
  .mast {
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.75rem 0;
  }
  .mast nav {
    gap: 1.05rem;
    margin-left: 0;
    width: 100%;
    font-size: 0.95rem;
  }
  .mast .nav-cta {
    padding: 0.2rem 0.45rem;
  }
  .hero,
  .dev-hero {
    padding: 2.3rem 0;
  }
  .band {
    padding: 2rem 0;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .reader {
    padding-top: 1rem;
  }
  .reader aside nav {
    font-size: 0.95rem;
  }
  .plot .flow {
    flex-direction: column;
  }
  .diagram-node {
    flex: none;
    max-width: none;
    width: 100%;
    min-height: auto;
  }
  .flow > .flow-edge {
    flex: 0 0 1.4rem;
    width: 2px;
    height: 1.4rem;
  }
  .flow > .flow-edge:after {
    top: auto;
    bottom: 0;
    right: -3px;
    border: none;
    border-top: 6px solid #a3bdd3;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
  }
  .diagram:has(input:checked) .flow > .flow-edge:before {
    left: -1px;
    top: 0;
    animation-name: down;
  }
  .diagram .plot {
    padding: 0.8rem;
  }
  .diagram figcaption {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .boundary,
  .boundary .boundary {
    padding: 0.55rem 0.65rem;
  }
  .lead {
    font-size: 1.1rem;
  }
  .guide-card {
    padding: 1rem;
  }
  .terminal {
    padding: 1rem;
  }
  .section-intro h2 {
    font-size: 2rem;
  }
  footer nav {
    gap: 0.5rem 1.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .diagram:has(input:checked) .flow-edge:before {
    display: none;
    animation: none;
  }
  .motion {
    display: none;
  }
}

.reader aside details {
  display: none;
}
@media (max-width: 800px) {
  .reader aside .desktop-guides {
    display: none;
  }
  .reader aside details {
    display: block;
  }
}

.flow > .boundary {
  flex: 1.7;
  min-width: 0;
  border-style: solid;
  border-color: var(--cleetus-status-success);
}
@media (max-width: 580px) {
  .flow > .boundary {
    width: 100%;
    flex: none;
  }
}
