:root {
  --ink: #262821;
  --paper: #efede6;
  --line: #d5d2c8;
  --accent: #db5a2a;
}
* {
  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;
}
button,
select,
input {
  font: inherit;
}
button,
a,
select,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  padding: 11px 14px;
  border-radius: 5px;
}
button:hover {
  background: #e4e0d5;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #386e8c;
  outline-offset: 4px;
}
.masthead {
  height: 85px;
  margin: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.masthead a {
  text-decoration: none;
}
.wordmark {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -1px;
}
.wordmark span {
  color: #5c6055;
  margin: 0 8px;
}
main {
  max-width: 1600px;
  margin: auto;
  padding: 0 5%;
}
.intro {
  padding: 55px 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: bold;
  margin: 0 0 23px;
}
h1 {
  font-size: clamp(38px, 4.5vw, 68px);
  line-height: 1.08;
  letter-spacing: -3px;
  margin: 0 0 22px;
  font-weight: 500;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.lede {
  max-width: 560px;
  line-height: 1.6;
  font-size: 16px;
  color: #5c6055;
}
.edition {
  text-align: center;
  min-width: 170px;
}
.edition .mark {
  font:
    82px Georgia,
    serif;
}
.edition p {
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.7;
}
.source-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  padding: 14px 0 20px;
  color: #5c6055;
}
.source-banner strong {
  color: #42473a;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7a875d;
}
.lab {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  background: #f5f3ed;
}
.workspace {
  min-width: 0;
}
.toolbar {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 1px;
}
.toolbar select {
  border: 0;
  background: transparent;
  font-size: 12px;
  max-width: 200px;
  color: inherit;
}
.toolbar > span {
  margin-left: auto;
  font: 10px monospace;
  white-space: nowrap;
}
.page {
  background: #fcfaf3;
  min-height: 690px;
  margin: 24px;
  box-shadow: 0 8px 22px #28241608;
  padding: 28px 32px 24px;
  overflow: hidden;
  --accent: #db5a2a;
}
.page-top {
  display: flex;
  justify-content: space-between;
  font: 10px monospace;
  letter-spacing: 1px;
  color: #5c6055;
  gap: 12px;
}
.page h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: clamp(30px, 3.5vw, 50px);
  letter-spacing: -1.6px;
  line-height: 1.15;
  min-height: 58px;
  margin: 38px 0 10px;
}
.page > p {
  font-size: 12px;
  color: #5c6055;
  margin: 0;
  min-height: 18px;
}
.diagram-wrap {
  position: relative;
  margin: 0 -12px;
}
.diagram-wrap svg {
  display: block;
  width: 100%;
  max-height: 430px;
}
.orbits {
  fill: none;
  stroke: #b7b3a6;
  stroke-width: 0.7;
  stroke-dasharray: 3 6;
}
.orb-label {
  font:
    italic 55px Georgia,
    serif;
  fill: #79786d;
}
.edge {
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-dasharray: 5 6;
  opacity: 0.55;
}
.node-ring {
  fill: #fcfaf3;
  stroke: var(--accent);
  stroke-width: 1;
}
.node-dot {
  fill: var(--accent);
}
.node-label {
  font:
    13px Arial,
    sans-serif;
  fill: #484b40;
  paint-order: stroke;
  stroke: #fcfaf3;
  stroke-width: 5px;
  stroke-linejoin: round;
}
.diagram-caption {
  display: block;
  text-align: center;
  font: 10px monospace;
  letter-spacing: 1px;
  color: #5c6055;
  margin-top: -12px;
}
.page-bottom {
  border-top: 1px solid #dfdccf;
  margin-top: 26px;
  padding-top: 16px;
  display: flex;
  align-items: start;
  gap: 30px;
  justify-content: space-between;
}
.page-bottom p {
  font:
    12px/1.6 Georgia,
    serif;
  max-width: 420px;
  margin: 0;
  color: #5c6055;
}
.page-bottom > span {
  font: 10px monospace;
  letter-spacing: 1px;
  border: 1px solid #d9d5c8;
  padding: 7px;
  white-space: nowrap;
}
.transport {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px 18px;
  flex-wrap: wrap;
}
.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  min-width: 134px;
}
.primary:hover {
  background: #44483d;
}
.speed-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  font-size: 11px;
}
.speed-label select {
  background: transparent;
  border: 0;
  padding: 8px;
  color: inherit;
}
#play-state {
  font-size: 10px;
  color: #5c6055;
  margin-left: auto;
}
.scrubber {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 24px 25px;
  font-size: 10px;
  color: #5c6055;
}
.scrubber input {
  flex: 1;
  min-width: 50px;
  accent-color: #3e4533;
}
.scrubber output {
  font: 10px monospace;
  white-space: nowrap;
}
.inspector {
  border-left: 1px solid var(--line);
  padding: 30px 25px;
}
.inspector h3 {
  font:
    34px/1.08 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 0 0 22px;
}
.inspector > p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.7;
  color: #5c6055;
}
.pipeline {
  margin: 30px 0;
  font: 11px monospace;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pipeline b {
  color: #5c6055;
}
.counts {
  display: flex;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.counts strong {
  display: block;
  font:
    32px Georgia,
    serif;
}
.counts span {
  display: block;
  font-size: 10px;
  margin-top: 6px;
}
.small {
  font-size: 10px !important;
  line-height: 1.6 !important;
  color: #5c6055;
}
h4 {
  font-size: 12px;
  margin: 27px 0 9px;
}
.faults {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.faults button {
  font-size: 11px;
  text-align: left;
}
.gate {
  border-left: 2px solid #7f8a63;
  padding-left: 10px;
  min-height: 40px;
}
.gate.error {
  border-color: var(--accent);
}
details {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 11px;
  margin-top: 22px;
}
summary {
  cursor: pointer;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.6 monospace;
  max-height: 300px;
  overflow: auto;
  background: #eae7de;
  padding: 12px;
}
.download {
  font-size: 11px;
  margin-top: 20px;
  width: 100%;
  border: 0;
  text-align: left;
  padding-left: 0;
}
.about {
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 70px;
}
.about > .eyebrow {
  grid-column: 1/-1;
}
.about h3 {
  font:
    40px/1.1 Georgia,
    serif;
  margin: 0;
}
.about p {
  font-size: 13px;
  line-height: 1.85;
  color: #5c6055;
  margin-top: 0;
}
.about a {
  font-size: 12px;
}
footer {
  margin: 0 5%;
  border-top: 1px solid var(--line);
  padding: 25px 0 35px;
  display: flex;
  justify-content: space-between;
  font: 11px monospace;
  color: #5c6055;
  gap: 15px;
}
@media (min-width: 1500px) {
  .page {
    min-height: 740px;
  }
  .diagram-wrap svg {
    max-height: 480px;
  }
}
@media (max-width: 950px) {
  .lab {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .inspector {
    padding: 25px 18px;
  }
  .page {
    padding: 25px 22px;
    margin: 16px;
    min-height: 620px;
  }
  .page-top {
    font-size: 10px;
  }
  .toolbar {
    padding: 0 16px;
    gap: 8px;
  }
  .toolbar label {
    display: none;
  }
  .diagram-wrap svg {
    min-height: 320px;
  }
  .page h2 {
    min-height: 78px;
  }
  .scrubber label {
    display: none;
  }
  .edition {
    display: none;
  }
}
@media (max-width: 700px) {
  .masthead {
    height: 65px;
  }
  .intro {
    padding: 35px 0 20px;
  }
  h1 {
    letter-spacing: -1.7px;
  }
  .lede {
    font-size: 14px;
  }
  .source-banner {
    flex-wrap: wrap;
    line-height: 1.5;
    gap: 6px 10px;
  }
  .source-banner > span:last-child {
    flex-basis: 100%;
  }
  .lab {
    grid-template-columns: 1fr;
  }
  .page {
    min-height: 570px;
    padding: 22px 18px;
  }
  .page h2 {
    font-size: 36px;
    min-height: 85px;
    margin-top: 30px;
  }
  .page-top span:last-child {
    display: none;
  }
  .diagram-wrap svg {
    min-height: 0;
    max-height: 380px;
  }
  .page-bottom {
    gap: 12px;
  }
  .page-bottom p {
    font-size: 11px;
  }
  .toolbar > span {
    font-size: 11px;
  }
  .transport {
    padding: 0 16px 15px;
  }
  .transport button {
    font-size: 12px;
    padding: 11px;
  }
  .speed-label {
    margin-left: auto;
  }
  #play-state {
    flex-basis: 100%;
    margin-top: 5px;
  }
  .scrubber {
    padding: 0 16px 22px;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 30px 24px;
  }
  .inspector h3 br {
    display: none;
  }
  .inspector h3 {
    font-size: 30px;
  }
  .pipeline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .pipeline b {
    transform: rotate(-90deg);
  }
  .faults {
    flex-direction: row;
  }
  .about {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 50px 0;
  }
  .about h3 {
    font-size: 34px;
  }
  .about > .eyebrow {
    margin-bottom: 0;
  }
  footer {
    flex-direction: column;
  }
  .counts {
    gap: 60px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
