@import url('./tokens.css');
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
  font-size:15px;
  line-height:1.5
}
a {
  color:inherit;
  text-underline-offset:4px
}
button,input {
  font:inherit
}
button,a,input,summary {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer;
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  padding:9px 13px;
  border-radius:5px;
  font-size:13px;
  font-weight:600;
  transition:background .15s,border-color .15s
}
button:hover:not(:disabled) {
  background:#eae7de;
  border-color:#a09e95
}
button:disabled,input:disabled {
  opacity:.45;
  cursor:not-allowed
}
:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px
}
button.primary {
  background:var(--ink);
  color:#fff;
  border-color:var(--ink);
  padding:12px 20px
}
button.primary:hover:not(:disabled) {
  background:#36434a
}
button.danger {
  color:#a13325;
  border-color:#cfaaa2
}
button.quiet {
  border:0;
  text-decoration:underline;
  text-underline-offset:4px
}
.wrap {
  max-width:1240px;
  margin:0 auto;
  padding:0 36px
}
.site-header {
  display:flex;
  align-items:center;
  gap:24px;
  height:100px;
  border-bottom:1px solid var(--line)
}
.wordmark {
  font-size:31px;
  font-weight:900;
  letter-spacing:-2px;
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:9px
}
.brand-square {
  width:7px;
  height:7px;
  background:var(--accent);
  margin-top:16px
}
.header-label,.section-label,.eyebrow,.mono {
  font:10px/1.6 'Courier New',monospace;
  letter-spacing:1.4px;
  font-weight:700
}
.header-label {
  border-left:1px solid var(--line);
  padding-left:24px;
  color:var(--muted)
}
nav {
  margin-left:auto;
  display:flex;
  gap:28px;
  font-size:13px
}
nav a {
  text-decoration:none
}
.intro {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  padding:65px 0 48px
}
.eyebrow {
  color:var(--accent);
  margin:0 0 19px;
  display:block
}
.dot {
  display:inline-block;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
  margin-right:9px
}
.dot.pending {
  background:#9f9585
}
h1 {
  font-size:clamp(37px,4.3vw,62px);
  font-weight:500;
  letter-spacing:-2.7px;
  line-height:1.04;
  margin:0 0 25px
}
.lede {
  font-size:16px;
  line-height:1.8;
  color:var(--muted);
  margin:0
}
.intro-note {
  padding:0 0 5px 35px;
  border-left:1px solid var(--line);
  font-size:13px;
  color:var(--muted)
}
.note-number {
  font:28px 'Courier New',monospace;
  letter-spacing:-2px;
  color:var(--ink)
}
.intro-note a {
  text-decoration:none;
  color:var(--accent)
}
.lab-bar {
  display:flex;
  justify-content:space-between;
  padding:14px 19px;
  border:1px solid var(--line);
  background:#edeae3;
  font:11px 'Courier New',monospace
}
.lab {
  border:1px solid var(--line);
  border-top:0;
  display:grid;
  grid-template-columns:242px minmax(0,1fr);
  scroll-margin-top:20px
}
.scenarios {
  padding:28px 17px;
  border-right:1px solid var(--line)
}
.scenarios h2 {
  margin:0 11px 22px;
  color:var(--muted)
}
.scenario-button {
  display:flex;
  align-items:baseline;
  gap:12px;
  border:0;
  width:100%;
  text-align:left;
  font-size:12px;
  padding:13px 11px;
  margin-bottom:4px;
  font-weight:500;
  line-height:1.45
}
.scenario-button span {
  font:10px 'Courier New',monospace;
  opacity:.6
}
.scenario-button[aria-pressed=true] {
  background:var(--ink);
  color:#fff
}
.scenario-button[aria-pressed=true]:hover {
  background:#36434a
}
.aside-note {
  font-size:11px;
  color:var(--muted);
  padding:20px 11px 0;
  border-top:1px solid var(--line);
  margin-top:25px;
  line-height:1.7
}
.workspace {
  padding:30px;
  min-width:0
}
.scenario-heading {
  display:flex;
  justify-content:space-between;
  gap:15px;
  align-items:center
}
.scenario-heading .eyebrow {
  margin-bottom:4px
}
.scenario-heading h2 {
  font-size:23px;
  font-weight:500;
  letter-spacing:-.6px;
  margin:0
}
.description {
  color:var(--muted);
  font-size:13px;
  line-height:1.75;
  min-height:46px;
  margin:14px 0 24px
}
.device-panel {
  border:1px solid #d8d7cd;
  background:var(--card);
  border-radius:7px;
  overflow:hidden
}
.device-top {
  padding:15px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center
}
.device-top .mono {
  font-size:9px;
  color:var(--muted)
}
.state {
  font:10px 'Courier New',monospace;
  background:#e4ece4;
  color:#315b47;
  padding:4px 9px;
  border-radius:3px
}
.state[data-state=Faulted],.state[data-state=Estopped] {
  background:#f6ddd6;
  color:#9c3525
}
.device-body {
  display:flex;
  align-items:center;
  justify-content:space-evenly;
  gap:25px;
  padding:8px 25px 20px
}
.motor {
  width:48%;
  max-width:270px;
  color:#a3a599
}
.motor-wire {
  fill:none;
  stroke:#b5b8ad;
  stroke-width:2
}
.motor-case {
  fill:#efefe7;
  stroke:#91978c;
  stroke-width:1.5
}
.motor-rib,.motor-ring {
  fill:none;
  stroke:#939b8f;
  stroke-width:1
}
.motor-spoke {
  stroke:#788b7b;
  stroke-width:7
}
.motor-hub {
  fill:#263e33
}
.output .section-label {
  font-size:9px;
  color:var(--muted);
  white-space:nowrap
}
.output>div {
  line-height:1.2;
  margin:9px 0
}
.output #velocity {
  font-size:50px;
  letter-spacing:-3px;
  font-weight:500;
  font-variant-numeric:tabular-nums
}
.unit {
  font:12px 'Courier New',monospace;
  margin-left:10px;
  color:var(--muted)
}
.output p {
  font-size:11px;
  color:var(--muted);
  margin:4px 0
}
.output strong {
  font-weight:500
}
.metrics {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin:0;
  border-top:1px solid var(--line)
}
.metrics>div {
  padding:15px 18px;
  border-right:1px solid var(--line)
}
.metrics>div:last-child {
  border:0
}
.metrics dt {
  font-size:10px;
  color:var(--muted);
  margin-bottom:6px
}
.metrics dd {
  font:18px 'Courier New',monospace;
  margin:0;
  white-space:nowrap
}
.metrics small {
  font-size:11px
}
.sandbox {
  margin-top:28px
}
.sandbox-heading {
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  margin-bottom:15px
}
.sandbox h3 {
  font-size:14px;
  margin:0;
  font-weight:600
}
.sandbox-heading>span {
  font-size:10px;
  color:var(--muted)
}
#command-form {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:13px
}
label {
  font-size:11px
}
label>span {
  color:var(--muted);
  font-size:9px
}
input {
  display:block;
  width:100%;
  background:var(--card);
  border:1px solid #c8c8bb;
  border-radius:4px;
  padding:10px;
  margin-top:7px;
  font:16px 'Courier New',monospace;
  color:var(--ink)
}
label small {
  display:block;
  margin-top:5px;
  font-size:9px;
  color:var(--muted)
}
#command-form .primary {
  grid-column:1/-1;
  margin-top:4px;
  display:flex;
  justify-content:space-between
}
.actions {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px
}
.actions button {
  font-size:11px;
  padding:8px 10px
}
.local-controls {
  font-size:11px;
  margin-top:20px
}
.local-controls summary {
  cursor:pointer;
  color:var(--muted)
}
.local-controls p {
  color:var(--muted)
}
.operation {
  font-size:12px;
  margin:16px 0 0;
  min-height:18px;
  color:var(--muted)
}
.receipts {
  padding:48px 0 0
}
.receipt-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
.receipt-heading .eyebrow {
  margin-bottom:9px
}
.receipt-heading h2 {
  font-size:28px;
  letter-spacing:-1px;
  font-weight:500;
  margin:0
}
.receipt-note {
  font-size:12px;
  color:var(--muted);
  margin:12px 0 23px
}
.table-scroll {
  overflow-x:auto;
  border-top:1px solid var(--line)
}
table {
  border-collapse:collapse;
  width:100%;
  font-size:12px;
  text-align:left
}
th {
  font:10px 'Courier New',monospace;
  text-transform:uppercase;
  letter-spacing:1px;
  color:var(--muted);
  padding:13px 16px;
  background:#edeae3
}
td {
  padding:14px 16px;
  border-top:1px solid var(--line);
  vertical-align:top
}
td:first-child,td:nth-child(2) {
  font-family:'Courier New',monospace;
  white-space:nowrap
}
.decision {
  display:inline-block;
  border-radius:3px;
  padding:2px 7px;
  background:#e1e9e2;
  color:#355540;
  font-size:10px
}
.decision[data-decision=Rejected] {
  background:#efe3cb;
  color:#805916
}
.decision[data-decision=Fallback],.decision[data-decision=Failed] {
  background:#f1dcd5;
  color:#963626
}
.decision[data-decision=Control] {
  background:#e4e5e4;
  color:#535c59
}
td details summary {
  cursor:pointer;
  font-size:11px;
  white-space:nowrap
}
pre {
  font:10px/1.65 'Courier New',monospace;
  white-space:pre-wrap;
  word-break:break-word;
  min-width:175px;
  max-width:290px;
  background:#edeae3;
  padding:12px;
  border-radius:4px
}
.under-hood {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:95px;
  border-top:1px solid var(--line);
  padding:45px 0;
  margin-top:45px
}
.under-hood h2 {
  font-size:32px;
  font-weight:500;
  letter-spacing:-1px;
  margin:0 0 12px
}
.under-hood p {
  font-size:13px;
  line-height:1.8;
  color:var(--muted)
}
.under-hood .eyebrow {
  margin-bottom:10px
}
.scope {
  padding-left:28px;
  border-left:1px solid var(--line)
}
.scope h3 {
  font-size:14px;
  font-weight:600;
  margin-top:4px
}
.text-link {
  font-size:12px;
  color:var(--accent)
}
footer.wrap {
  display:flex;
  justify-content:space-between;
  gap:20px;
  border-top:1px solid var(--line);
  padding-top:23px;
  padding-bottom:28px;
  color:var(--muted);
  font-size:10px
}
.error {
  padding:16px;
  background:#f5dfd8;
  color:#7d261b;
  border:1px solid #d9aaa0
}
.skip {
  position:absolute;
  left:20px;
  top:-80px;
  background:var(--ink);
  color:white;
  padding:12px;
  z-index:10
}
.skip:focus {
  top:15px
}
@media(max-width:1000px) {
  .wrap {
    padding-left:24px;
    padding-right:24px
  }
  .intro-note {
    display:none
  }
  .lab {
    grid-template-columns:205px minmax(0,1fr)
  }
  .workspace {
    padding:24px
  }
  .scenarios {
    padding:24px 10px
  }
  .scenario-heading {
    align-items:flex-start
  }
  .scenario-heading h2 {
    font-size:21px
  }
  .scenario-heading .quiet {
    font-size:10px;
    white-space:nowrap
  }
  .metrics>div {
    padding:12px
  }
  .sandbox-heading>span {
    display:none
  }
  .under-hood {
    gap:45px
  }
  .output #velocity {
    font-size:42px
  }
}
@media(max-width:720px) {
  .wrap {
    padding-left:18px;
    padding-right:18px
  }
  .site-header {
    height:76px;
    gap:12px
  }
  .header-label {
    font-size:8px;
    letter-spacing:1px;
    padding-left:12px
  }
  nav {
    gap:14px;
    font-size:11px
  }
  nav a:first-child {
    display:none
  }
  .intro {
    padding:40px 0 30px
  }
  h1 {
    font-size:42px;
    letter-spacing:-1.8px
  }
  .lede {
    font-size:14px
  }
  .desktop-break {
    display:none
  }
  .lab-bar {
    font-size:9px;
    padding:12px;
    gap:12px
  }
  .lab {
    display:block
  }
  .scenarios {
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:18px 12px 12px
  }
  .scenarios h2 {
    margin-bottom:11px;
    font-size:9px
  }
  #scenario-list {
    display:flex;
    gap:6px;
    overflow-x:auto;
    padding-bottom:7px
  }
  .scenario-button {
    width:auto;
    flex:0 0 auto;
    border:1px solid var(--line);
    padding:9px 11px;
    font-size:11px;
    margin:0
  }
  .scenario-button span {
    font-size:9px
  }
  .aside-note {
    display:none
  }
  .workspace {
    padding:22px 16px
  }
  .scenario-heading {
    gap:8px
  }
  .scenario-heading h2 {
    font-size:21px
  }
  .scenario-heading .quiet {
    max-width:92px;
    white-space:normal;
    padding:0;
    text-align:right
  }
  .description {
    font-size:12px;
    min-height:0
  }
  .device-top {
    padding:12px
  }
  .device-body {
    padding:7px 10px 16px;
    gap:12px
  }
  .motor {
    width:46%
  }
  .output #velocity {
    font-size:36px;
    letter-spacing:-2px
  }
  .output .section-label {
    font-size:8px;
    letter-spacing:.7px
  }
  .unit {
    font-size:10px;
    margin-left:6px
  }
  .metrics {
    grid-template-columns:1fr 1fr
  }
  .metrics>div {
    border-bottom:1px solid var(--line)
  }
  .metrics>div:nth-child(2) {
    border-right:0
  }
  .metrics>div:nth-child(3) {
    border-bottom:0
  }
  .metrics dt {
    font-size:9px
  }
  .metrics dd {
    font-size:17px
  }
  #command-form {
    grid-template-columns:1fr 1fr;
    gap:13px
  }
  .receipt-heading h2 {
    font-size:25px
  }
  .receipt-heading .quiet {
    white-space:nowrap;
    font-size:11px;
    padding:0
  }
  .receipts {
    padding-top:34px
  }
  .receipt-note {
    font-size:11px
  }
  th,td {
    padding:12px 10px;
    font-size:11px
  }
  .under-hood {
    grid-template-columns:1fr;
    gap:20px;
    margin-top:30px;
    padding:30px 0
  }
  .scope {
    border-left:0;
    border-top:1px solid var(--line);
    padding:20px 0 0
  }
  .under-hood h2 {
    font-size:29px
  }
  footer.wrap {
    flex-wrap:wrap;
    gap:10px;
    font-size:9px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  * {
    transition:none!important
  }
}
