:root {
  --paper: #f7f7f0;
  --ink: #243630;
  --muted: #6f7c72;
  --line: #dce2d7;
  --teal: #24745e;
  --amber: #bd7133;
  --white: #fffef9;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.6 var(--sans);
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
select,
input {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 1px solid #cbd4c8;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  padding: 9px 15px;
  font-weight: 550;
  transition: background 0.15s;
}
button:hover,
.button:hover {
  background: #e9eee4;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid #c58640;
  outline-offset: 3px;
}
.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.primary:hover {
  background: var(--teal);
}
.button {
  text-decoration: none;
  display: inline-flex;
  gap: 35px;
  padding: 12px 20px;
}
select {
  width: 100%;
  padding: 8px 29px 8px 10px;
  background: var(--white);
  border: 1px solid #cbd4c8;
  border-radius: 4px;
  color: var(--ink);
  min-width: 0;
}
label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.025em;
}
label select {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  letter-spacing: 0;
}
.site-header {
  height: 88px;
  max-width: 1440px;
  margin: auto;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.wordmark {
  text-decoration: none;
  font: 600 24px var(--serif);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.brand-mark {
  color: var(--teal);
  font: 34px var(--serif);
}
.wordmark-note {
  font: 9px var(--sans);
  letter-spacing: 0.18em;
  color: var(--muted);
  border-left: 1px solid var(--line);
  margin-left: 10px;
  padding-left: 16px;
}
.site-header nav {
  display: flex;
  gap: 30px;
}
.site-header nav a {
  text-decoration: none;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 0;
}
.site-header nav a.active {
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
}
.site-header nav span {
  color: var(--teal);
  margin-left: 6px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.16em;
  color: var(--teal);
}
.eyebrow span {
  margin-left: 20px;
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.045em;
}
h1 em,
h2 em {
  font-weight: 400;
  color: var(--teal);
}
.article {
  max-width: 1120px;
  margin: 72px auto 100px;
  padding: 0 35px;
}
.article h1 {
  font-size: clamp(42px, 5.1vw, 70px);
  margin: 23px 0;
}
.dek {
  font-size: 18px;
  line-height: 1.7;
  max-width: 725px;
  color: var(--muted);
}
.byline {
  font-size: 11px;
  color: var(--muted);
  padding: 22px 0 30px;
  border-bottom: 1px solid var(--line);
}
.byline span {
  margin: 0 10px;
}
.article-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  padding-top: 50px;
}
.contents {
  align-self: start;
  position: sticky;
  top: 25px;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.contents > a {
  font-size: 11px;
  text-decoration: none;
  color: var(--muted);
}
.contents > a:hover {
  color: var(--teal);
}
.contents .eyebrow {
  margin-bottom: 5px;
}
.prose {
  max-width: 710px;
  font-size: 15px;
  line-height: 1.85;
}
.prose section {
  scroll-margin-top: 30px;
  margin-bottom: 65px;
}
.section-number {
  font: 10px var(--sans);
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 15px;
}
.prose h2 {
  font-size: 36px;
  margin-bottom: 22px;
}
.prose p {
  margin-bottom: 22px;
}
.prose strong {
  font-weight: 600;
}
.caption {
  font-size: 11px !important;
  line-height: 1.65;
  color: var(--muted);
}
.cell-demo {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 7px;
  margin: 28px 0;
  padding: 23px;
}
.demo-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.live-dot {
  font-size: 10px;
  color: var(--muted);
}
.live-dot:before,
.runtime-badge > span {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
  margin-right: 7px;
}
.cell-demo svg {
  width: 100%;
  height: 240px;
  display: block;
}
.cell-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.cell-controls input {
  display: block;
  width: 100%;
  accent-color: var(--teal);
}
output {
  float: right;
  color: var(--teal);
}
.cell-demo p {
  margin: 15px 0 0;
}
.try-note {
  font-size: 13px;
  border-left: 2px solid var(--amber);
  padding-left: 20px;
}
.inline-experiment {
  display: flex;
  gap: 20px;
  align-items: center;
  border-block: 1px solid var(--line);
  padding: 22px 0;
  margin: 25px 0;
  text-decoration: none;
}
.inline-experiment > span:last-child {
  margin-left: auto;
  font-size: 23px;
  color: var(--teal);
}
.inline-experiment strong {
  display: block;
  font-size: 14px;
}
.inline-experiment small {
  font-size: 12px;
  color: var(--muted);
}
.mini-tiles {
  font: 45px var(--serif);
  color: var(--teal);
}
.callout {
  background: #eaf0e5;
  padding: 22px;
  font-size: 13px;
  border-radius: 5px;
}
.legend-explainer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 11px;
}
.swatch {
  display: inline-block;
  width: 17px;
  height: 3px;
  vertical-align: middle;
  margin-right: 6px;
}
.teal {
  background: var(--teal);
}
.gray {
  background: #89948b;
}
.amber {
  background: var(--amber);
}
.lab {
  max-width: 1500px;
  margin: 38px auto 60px;
  padding: 0 4%;
}
.lab-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.lab-title h1 {
  font-size: 44px;
  margin: 10px 0 9px;
}
.lab-title p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.runtime-badge {
  font-size: 9px;
  letter-spacing: 0.1em;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 12px;
  white-space: nowrap;
}
.lab-controls {
  display: flex;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}
.lab-controls > label:first-child {
  width: 255px;
}
.lab-controls > label:nth-child(2) {
  width: 160px;
}
.transport {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.transport button {
  font-size: 12px;
  padding: 9px 13px;
  white-space: nowrap;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 7px;
  overflow: hidden;
}
.drawing-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.drawing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.coverage {
  font-size: 10px;
  background: #eef1e9;
  border-radius: 4px;
  padding: 4px 9px;
  color: var(--muted);
}
.coverage.complete {
  background: #e5f0e7;
  color: var(--teal);
}
.layers {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.layers label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
}
.layers input {
  accent-color: var(--teal);
  margin: 0;
}
.plot-wrap {
  position: relative;
  flex: 1;
  min-height: 390px;
  display: flex;
  align-items: center;
  background: #fbfcf7;
}
.plot-wrap > svg {
  display: block;
  width: 100%;
  max-height: 570px;
  aspect-ratio: 900/570;
}
.plot-wrap svg .selectable {
  cursor: pointer;
}
.plot-wrap svg .selectable:focus {
  outline: none;
  filter: drop-shadow(0 0 3px #c58539);
}
#empty-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  pointer-events: none;
}
#empty-hint > span {
  font: 44px var(--serif);
  color: #92aa98;
}
#empty-hint strong {
  font: 24px var(--serif);
  margin: 14px;
}
#empty-hint small {
  font-size: 11px;
  color: var(--muted);
}
.plot-footer {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px 20px;
  font-size: 10px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.axis-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}
.inspector {
  border-left: 1px solid var(--line);
  padding: 21px;
}
.inspector-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.inspector-head > span:last-child {
  font: italic 24px var(--serif);
  color: #a0aea2;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 12px;
  padding: 20px 0;
}
.stats strong {
  display: block;
  font: 29px var(--serif);
  letter-spacing: -0.03em;
}
.stats span {
  font-size: 10px;
  color: var(--muted);
}
.integrity {
  font-size: 10px;
  color: var(--teal);
  background: #edf3e9;
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.integrity.warning {
  color: #9e4c29;
  background: #fff0df;
}
.inspector h3 {
  font: 19px var(--serif);
  margin-bottom: 9px;
}
.inspector p {
  font-size: 11px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 15px;
}
.tile-actions {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 17px;
}
.tile-actions > div {
  display: flex;
  gap: 5px;
  margin: 10px 0 19px;
}
.tile-actions button {
  font-size: 10px;
  padding: 6px 9px;
}
.candidate-heading {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.candidate-heading h3 {
  font-size: 16px;
}
.candidate-heading span {
  font-size: 11px;
  color: var(--muted);
}
.candidate-list {
  max-height: 148px;
  overflow: auto;
  margin-bottom: 15px;
}
.candidate-list button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e8ece3;
  border-radius: 0;
  font-size: 10px;
  padding: 8px 2px;
  text-align: left;
  background: transparent;
  gap: 5px;
}
.candidate-list button.selected {
  color: var(--teal);
  background: #edf3e9;
}
.candidate-list .status {
  font-size: 9px;
  color: var(--muted);
}
.candidate-list .accepted {
  color: var(--teal);
}
.candidate-list p {
  font-size: 10px;
  margin: 5px 0;
}
.download {
  font-size: 10px;
  background: transparent;
  width: 100%;
  padding: 8px;
}
.event-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0 11px;
}
.event-strip > span {
  font-size: 10px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: var(--teal);
}
.event-strip p {
  font-size: 12px;
  margin: 0;
  flex: 1;
}
.progress-track {
  height: 3px;
  background: #e4e9df;
}
.progress-track > div {
  height: 100%;
  width: 0;
  background: var(--teal);
  transition: width 0.25s;
}
.lab-footnotes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}
.lab-footnotes p {
  margin: 0;
}
.site-footer {
  max-width: 1440px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 30px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  color: var(--muted);
}
.site-footer .wordmark {
  font-size: 20px;
  color: var(--ink);
}
.site-footer p {
  font-size: 10px;
  margin: 0;
}
.site-footer > a:last-child {
  font-size: 11px;
}
.notes .prose {
  margin-top: 45px;
}
.notes h2 {
  margin-top: 40px;
}
.notes li {
  margin-bottom: 13px;
}
code {
  font-size: 0.85em;
  overflow-wrap: anywhere;
}
pre {
  padding: 20px;
  background: #eaf0e5;
  border-radius: 5px;
  overflow: auto;
}
#error {
  padding: 15px;
  background: #fff0df;
  color: #8a3927;
  margin-bottom: 15px;
}
.branch-options {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.branch-options button {
  font-size: 10px;
  padding: 5px 9px;
}
.branch-options .active {
  background: var(--amber);
  color: white;
  border-color: var(--amber);
}
@media (min-width: 1600px) {
  .lab {
    padding: 0 50px;
  }
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) 265px;
  }
  .transport {
    gap: 5px;
  }
  .transport button {
    padding: 9px;
  }
  .lab-controls {
    gap: 10px;
  }
  .lab-controls > label:first-child {
    width: 215px;
  }
  .lab-controls > label:nth-child(2) {
    width: 135px;
  }
  .drawing-toolbar {
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }
  .axis-note {
    display: none;
  }
  .inspector {
    padding: 16px;
  }
  .article-layout {
    grid-template-columns: 170px 1fr;
    gap: 30px;
  }
  .article h1 {
    font-size: 58px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 80px;
    padding: 17px 6%;
    flex-wrap: wrap;
    gap: 9px;
  }
  .wordmark {
    font-size: 23px;
  }
  .wordmark-note {
    font-size: 8px;
  }
  .site-header nav {
    gap: 22px;
    width: 100%;
  }
  .site-header nav a {
    font-size: 11px;
    padding: 5px 0;
  }
  .article {
    margin: 35px auto 60px;
    padding: 0 6%;
  }
  .article h1 {
    font-size: 43px;
  }
  .dek {
    font-size: 16px;
  }
  .byline {
    font-size: 10px;
  }
  .article-layout {
    display: block;
    padding-top: 30px;
  }
  .contents {
    position: static;
    display: flex;
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 24px;
    margin-bottom: 25px;
  }
  .contents .eyebrow {
    display: none;
  }
  .contents a {
    white-space: nowrap;
  }
  .prose {
    font-size: 14px;
  }
  .prose h2 {
    font-size: 32px;
  }
  .prose section {
    margin-bottom: 45px;
  }
  .cell-demo {
    padding: 15px;
  }
  .cell-demo svg {
    height: 210px;
  }
  .lab-title {
    display: block;
    margin-bottom: 20px;
  }
  .lab-title h1 {
    font-size: 35px;
  }
  .runtime-badge {
    display: inline-block;
    margin-top: 15px;
  }
  .lab {
    margin: 26px auto 40px;
    padding: 0 5%;
  }
  .lab-controls {
    flex-wrap: wrap;
    gap: 10px;
  }
  .lab-controls > label:first-child {
    width: 100%;
  }
  .lab-controls > label:nth-child(2) {
    width: 100%;
  }
  .transport {
    width: 100%;
    margin: 4px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .transport #finish {
    grid-column: 1/-1;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .drawing-toolbar {
    padding: 12px;
    gap: 10px;
  }
  .layers {
    gap: 10px;
  }
  .plot-wrap {
    min-height: 260px;
  }
  .plot-footer {
    padding: 12px;
    font-size: 9px;
    gap: 13px;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 20px;
  }
  .stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  .stats strong {
    font-size: 24px;
  }
  .stats span {
    font-size: 9px;
    display: block;
    line-height: 1.4;
  }
  .candidate-list {
    max-height: 130px;
  }
  .event-strip {
    align-items: start;
    gap: 10px;
  }
  .event-strip p {
    font-size: 11px;
  }
  .event-strip > span {
    font-size: 9px;
  }
  .lab-footnotes {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .site-footer {
    padding: 25px 6%;
    flex-wrap: wrap;
    justify-content: start;
  }
  .site-footer p {
    flex-basis: 100%;
    order: 3;
  }
  .site-footer > a:last-child {
    margin-left: auto;
  }
  .legend-explainer {
    gap: 10px;
  }
  .eyebrow span {
    display: block;
    margin: 8px 0 0;
  }
  .notes .prose {
    margin-top: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
