:root {
  color-scheme: light;
  --ink: #112522;
  --green: #167660;
  --paper: #f5f7f3;
  --muted: #51645f;
  --rule: #ccd7d0;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: Inter, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body,
figure,
h1,
h2,
p {
  margin: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
button,
a {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid #ca7923;
  outline-offset: 4px;
}
.wrap {
  width: min(1220px, calc(100% - clamp(40px, 10vw, 144px)));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 5;
  padding: 10px;
  background: white;
}
.skip:focus {
  top: 8px;
}
.top {
  background: #111f23;
  color: #edf5ef;
  border-bottom: 1px solid #2d3e40;
}
.top-inner,
.foot {
  display: flex;
  align-items: center;
  gap: 32px;
}
.top-inner {
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.42rem;
  font-weight: 720;
  letter-spacing: -0.05em;
  white-space: nowrap;
}
.brand img {
  display: block;
}
nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
nav,
.source {
  font-size: 0.91rem;
}
nav a:hover,
.secondary:hover {
  color: #91f0c8;
}
.source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-left: 1px solid #425153;
  padding-left: 28px;
  color: #d3e1dc;
}
.hero {
  background: radial-gradient(ellipse at 76% 65%, #203b38 0, transparent 56%), #101e22;
  color: #edf5f1;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(14px, 3vw, 46px);
  align-items: center;
  min-height: 520px;
  padding-block: 54px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.87rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--green);
}
.hero .eyebrow {
  color: #96e8c6;
}
.line {
  display: block;
  width: 25px;
  height: 2px;
  background: currentColor;
}
.intro h1 {
  font-size: clamp(2.65rem, 4.8vw, 4.65rem);
  letter-spacing: -0.075em;
  line-height: 1.21;
  margin: 22px 0 19px;
  font-weight: 720;
}
h1 em {
  font-style: normal;
  color: #9ae9c6;
}
.intro > p:not(.meta) {
  max-width: 31em;
  color: #bbceca;
  line-height: 1.85;
  font-size: 1.04rem;
}
.actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 29px 0 15px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 5px;
  padding: 11px 18px;
  font-weight: 670;
}
.primary {
  background: #a7f1ce;
  color: #0e3027;
}
.primary:hover {
  background: #c8ffe3;
}
.prompt-icon {
  font: 700 1.12rem var(--mono);
}
.secondary {
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #718c84;
}
.meta {
  font-size: 0.8rem;
  color: #afc4bc;
}
.meta span {
  padding-inline: 6px;
  color: #68887d;
}
.diagram {
  position: relative;
  min-width: 0;
  background: linear-gradient(115deg, rgba(21, 42, 43, 0.7), rgba(10, 24, 28, 0.8));
  border: 1px solid #39534f;
  border-radius: 10px;
  box-shadow: 0 18px 52px #050f1330;
  overflow: hidden;
}
.diagram-top,
.diagram figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 0.83rem;
  color: #bfd1c9;
}
.diagram-top {
  border-bottom: 1px solid #38504b;
}
.diagram-top .mono {
  color: #86ae9f;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
}
.mono,
code {
  font-family: var(--mono);
}
.board-space {
  position: relative;
  aspect-ratio: 640/355;
  background-image: radial-gradient(#70988c4d 0.75px, transparent 0.8px);
  background-size: 10px 10px;
}
.trace-label {
  position: absolute;
  padding: 2px 7px;
  color: #ccded5;
  background: #162b29;
  border: 1px solid #486658;
  border-radius: 3px;
  font-size: 0.78rem;
}
.trace-input {
  top: 8%;
  left: 4%;
}
.trace-output {
  bottom: 8%;
  right: 4%;
}
#board {
  display: block;
  width: 100%;
  height: 100%;
}
.diagram figcaption {
  padding: 11px 15px;
  border-top: 1px solid #39514c;
}
.switch {
  display: flex;
  gap: 3px;
  border: 1px solid #566a63;
  padding: 2px;
  border-radius: 5px;
}
.switch button {
  color: #c2d5ca;
  background: transparent;
  border: 0;
  border-radius: 3px;
  padding: 4px 9px;
  font-size: 0.82rem;
}
.switch button[aria-pressed='true'] {
  background: #bddac9;
  color: #17372a;
}
#route {
  font-size: 0.8rem;
  color: #b0d2c3;
}
.setup {
  background: #e3ece4;
  border-bottom: 1px solid var(--rule);
}
.setup-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 30px;
  align-items: center;
  padding-block: 28px;
}
.setup h2 {
  font-size: 1.3rem;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.setup p {
  font-size: 0.92rem;
  color: var(--muted);
}
.terminal {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f8fbf7;
  border: 1px solid #acbdb3;
  border-radius: 5px;
  padding: 9px 10px 9px 15px;
}
.terminal code {
  font-size: clamp(0.81rem, 1.13vw, 1.02rem);
  overflow-wrap: anywhere;
  font-weight: 550;
}
.dollar {
  color: var(--green);
  font: 600 1rem var(--mono);
}
.terminal button {
  margin-left: auto;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-left: 1px solid #c2cec6;
  border-radius: 0;
  color: #36584a;
  min-width: 39px;
  min-height: 30px;
}
.command-note {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 0.8rem;
  color: #355a49;
}
.command-note a:hover,
.text-link:hover,
.foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.downloads {
  padding-block: 56px 68px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
  gap: 16px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  letter-spacing: -0.06em;
  margin-top: 4px;
  line-height: 1.4;
}
.text-link {
  color: var(--green);
  font-size: 0.91rem;
  font-weight: 600;
}
.resource {
  border-top: 1px solid var(--rule);
}
.resource:last-child {
  border-bottom: 1px solid var(--rule);
}
.resource summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 17px 4px;
  font-size: 1.14rem;
  font-weight: 680;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: '+';
  margin-left: 8px;
  font: 1.4rem var(--mono);
  color: #5a7768;
}
details[open] > summary::after {
  content: '−';
}
.resource-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #e0ece2;
  color: #31654d;
  border: 1px solid #ccddcf;
  border-radius: 7px;
  font: 1.55rem var(--mono);
}
.sub-summary {
  font: 400 0.84rem var(--mono);
  color: #607669;
  margin-left: auto;
  text-align: right;
}
.resource-body {
  padding: 0 12px 22px 58px;
}
.resource-body > p {
  font-size: 0.96rem;
  color: var(--muted);
  margin: 0 0 14px;
}
.asset {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #dce4dd;
  padding: 12px 0;
}
.asset .name {
  font-weight: 650;
}
.asset .version {
  font: 400 0.87rem var(--mono);
  color: #5b6c64;
}
.asset-links {
  margin-left: auto;
  display: flex;
  gap: 15px;
}
.asset .checksum {
  flex-basis: 100%;
  font-size: 0.82rem;
  color: #54685d;
  overflow-wrap: anywhere;
}
.asset .checksum summary {
  width: max-content;
  padding: 0;
  font-size: 0.82rem;
  font-weight: 500;
  gap: 1px;
}
.asset .checksum summary::after {
  font-size: 0.95rem;
}
.foot {
  font-size: 0.87rem;
  color: var(--muted);
  padding-block: 22px;
  border-top: 1px solid var(--rule);
  gap: 17px;
}
.foot .brand {
  font-size: 1.08rem;
  color: var(--ink);
}
.foot a {
  margin-left: auto;
}
@media (max-width: 960px) {
  .wrap {
    width: calc(100% - 56px);
  }
  .hero-grid {
    min-height: 460px;
  }
  .setup-inner {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .intro h1 {
    font-size: clamp(2.6rem, 5.3vw, 3.4rem);
  }
}
@media (max-width: 740px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .top-inner {
    min-height: 62px;
    gap: 18px;
    flex-wrap: wrap;
    padding-block: 10px;
  }
  .brand {
    font-size: 1.17rem;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  nav {
    order: 3;
    width: 100%;
    gap: 22px;
    border-top: 1px solid #334643;
    padding-top: 8px;
  }
  nav a {
    font-size: 0.87rem;
  }
  .source {
    margin-left: auto;
    border: 0;
    padding: 0;
  }
  .hero-grid,
  .setup-inner {
    grid-template-columns: 1fr;
  }
  .hero-grid {
    padding-block: 36px 24px;
    gap: 26px;
  }
  .intro h1 {
    font-size: clamp(2.6rem, 8.8vw, 3.85rem);
    margin: 17px 0;
  }
  .intro > p:not(.meta) {
    font-size: 1rem;
  }
  .actions {
    margin: 22px 0 12px;
  }
  .diagram {
    max-width: 550px;
    width: 100%;
    justify-self: center;
  }
  .setup-inner {
    gap: 14px;
    padding-block: 24px;
  }
  .downloads {
    padding-block: 32px 45px;
  }
  .resource-body {
    padding-left: 4px;
  }
  .asset {
    gap: 6px 10px;
  }
  .foot {
    flex-wrap: wrap;
    gap: 8px 15px;
  }
  .sub-summary {
    font-size: 0.76rem;
  }
  .diagram-top {
    padding: 9px 14px;
  }
  .diagram figcaption {
    padding: 9px 10px;
  }
  .resource summary {
    gap: 10px;
  }
  .asset .checksum summary {
    gap: 0;
  }
  .foot > span:nth-child(2) {
    font-size: 0.8rem;
  }
}
@media (max-width: 395px) {
  .sub-summary {
    display: none;
  }
  .resource summary::after {
    margin-left: auto;
  }
  .asset .checksum summary::after {
    margin-left: 6px;
  }
  #route {
    font-size: 0.7rem;
  }
  .intro h1 {
    font-size: 2.5rem;
  }
  .diagram-top {
    font-size: 0.78rem;
  }
  .switch button {
    padding: 4px 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
