@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans-latin.woff") format("woff");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}
:root {
  --paper: #f5f3ee;
  --surface: #fff;
  --ink: #202522;
  --muted: #60675f;
  --line: #d4d8cf;
  --green: #345449;
  --soft: #e6ece5;
  --rust: #8a422b;
  --focus: #205f8c;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Instrument Sans", Arial, sans-serif;
  line-height: 1.55;
  font-size: 16px;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
a:hover {
  color: var(--green);
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
img {
  display: block;
  max-width: 100%;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: var(--surface);
  padding: 10px;
}
.skip:focus {
  top: 12px;
}
.masthead,
main,
footer {
  width: min(1120px, calc(100% - 80px));
  margin: auto;
}
.masthead {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: block;
  width: 155px;
}
.brand img {
  width: 155px;
  height: auto;
}
.masthead nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}
.masthead nav a {
  text-decoration: none;
  padding: 12px 0;
}
.repo-link {
  font-weight: 600;
}
.introduction {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  padding: 54px 0 40px;
  align-items: end;
}
.project-kind {
  font-size: 13px;
  color: var(--green);
  margin: 0 0 14px;
  font-weight: 500;
}
h1 {
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -1.7px;
  line-height: 1.07;
  margin: 0;
}
h2,
h3,
p {
  margin-top: 0;
}
.intro-copy > p:first-child {
  font-size: 17px;
  line-height: 1.5;
  max-width: 470px;
  margin: 0 0 18px;
}
.intro-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  font-weight: 600;
}
.stack {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-family: var(--mono);
}
.stack span {
  padding: 0 6px;
}
.demo {
  background: var(--surface);
  border: 1px solid var(--line);
}
.section-bar {
  padding: 17px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.section-bar h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.25px;
  margin: 0;
}
.run-label {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--muted);
}
.scenario-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.scenario-bar > span {
  font-size: 12px;
  color: var(--muted);
  margin-right: 12px;
}
.scenario-bar button {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 12px;
  min-height: 36px;
  border-radius: 3px;
}
.scenario-bar button:hover {
  background: var(--paper);
}
.scenario-bar button[aria-pressed="true"] {
  background: var(--soft);
  color: var(--green);
  border-color: #c2cebf;
}
.viewer {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
}
.viewport {
  min-width: 0;
  background: #edece7;
}
.view-heading {
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-family: var(--mono);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
}
.scene-wrap {
  position: relative;
  aspect-ratio: 3/2;
  max-height: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #eae9e5;
  overflow: hidden;
}
.scene-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.empty-scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #eae9e5;
  text-align: center;
}
.empty-scene span {
  color: var(--muted);
  font-size: 12px;
}
.empty-scene strong {
  font-weight: 500;
  font-size: 22px;
  margin: 8px 0;
}
.empty-scene p {
  font-size: 13px;
  color: var(--muted);
}
.transport {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 18px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.transport button {
  background: var(--green);
  color: #fff;
  border: 0;
  padding: 8px 14px;
  min-width: 66px;
  min-height: 38px;
  font-size: 12px;
  border-radius: 3px;
}
.transport input {
  min-width: 20px;
  flex: 1;
  accent-color: var(--green);
  height: 24px;
}
.transport output {
  font-size: 11px;
  font-family: var(--mono);
  min-width: 48px;
  text-align: right;
}
.inspector {
  border-left: 1px solid var(--line);
  padding: 20px 22px;
  min-width: 0;
}
.inspector-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.inspector-title h3 {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}
.inspector-title span {
  font-size: 11px;
  color: var(--muted);
}
.tracks {
  display: grid;
  gap: 9px;
}
.track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.track strong {
  font-weight: 450;
}
.track span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}
.empty {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.decision {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 18px;
}
.label {
  font-size: 11px;
  color: var(--muted);
}
.decision-status {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin: 8px 0;
}
.decision-status[data-status="suppressed"] {
  color: var(--rust);
}
.decision-status[data-status="clarify"] {
  color: #6d5b25;
}
.decision p {
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  margin: 0 0 10px;
}
.decision small {
  font-size: 11px;
  color: var(--muted);
}
.retained {
  margin-top: 16px;
}
.retained-title {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--green);
  margin-bottom: 6px;
}
.retained img {
  max-height: 110px;
  width: 100%;
  object-fit: contain;
  background: var(--paper);
}
.retained:not([hidden]) + .decision {
  margin-top: 14px;
  padding-top: 12px;
}
.event-heading {
  display: flex;
  justify-content: space-between;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.event-heading h3 {
  font-size: 12px;
  font-weight: 600;
  margin: 0;
}
.event-heading span {
  font-size: 11px;
  color: var(--muted);
}
.event-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.event {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  padding: 11px 20px;
  display: grid;
  grid-template-columns: 45px 1fr;
  column-gap: 8px;
  row-gap: 3px;
  color: var(--ink);
  min-height: 64px;
}
.event:nth-child(3n) {
  border-right: 0;
}
.event:nth-child(n + 4) {
  border-bottom: 0;
}
.event time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  padding-top: 2px;
}
.event strong {
  font-size: 12px;
  font-weight: 500;
}
.event span {
  grid-column: 2;
  font-size: 10px;
  color: var(--muted);
}
.event.current {
  background: var(--soft);
  box-shadow: inset 3px 0 var(--green);
}
.event:hover {
  background: var(--paper);
}
.event.future span {
  color: var(--muted);
}
.caption {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 14px 0 0;
}
.demo > .caption {
  padding: 0 22px 17px;
  margin-top: 12px;
  font-size: 11px;
}
.reading-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: baseline;
  margin-bottom: 24px;
}
.section-intro h2,
.implementation h2,
.get-started h2 {
  font-size: 27px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.7px;
  margin: 0;
}
.section-intro p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}
.research-figure {
  margin: 0;
  border: 1px solid var(--line);
  background: #fafbf9;
}
.research-figure img {
  width: 100%;
  height: auto;
}
.measurement-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin: 32px 0;
}
.measurement-note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
thead {
  color: var(--muted);
  font-size: 11px;
}
th,
td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
}
th:first-child {
  padding-left: 0;
}
th {
  font-weight: 450;
}
td {
  font-family: var(--mono);
  font-size: 13px;
}
tbody tr:first-child {
  color: var(--green);
}
.conditions {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  align-self: center;
}
.conditions p {
  margin-bottom: 9px;
}
.conditions p:first-child {
  font-weight: 600;
  color: var(--ink);
}
.conditions a {
  font-size: 12px;
  color: var(--ink);
}
.trace-details {
  border-top: 1px solid var(--line);
  margin-top: 25px;
}
.trace-details summary {
  padding: 18px 0;
  font-size: 13px;
  cursor: pointer;
}
.trace-details img {
  width: 100%;
}
.implementation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.implementation > div > p {
  font-size: 14px;
  color: var(--muted);
  max-width: 330px;
  margin: 20px 0;
}
.implementation a,
.get-started a {
  font-size: 13px;
}
dl {
  margin: 0;
}
dl > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
dt {
  font-size: 13px;
  font-weight: 600;
}
dd {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.get-started {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.get-started p {
  font-size: 14px;
  color: var(--muted);
  margin: 14px 0;
}
.code-panel {
  border: 1px solid var(--line);
  background: #edefe9;
}
.code-panel > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.code-panel button {
  background: transparent;
  border: 0;
  color: var(--green);
  font-size: 11px;
  padding: 8px;
  min-height: 36px;
}
pre {
  margin: 0;
  padding: 22px;
  font-size: 12px;
  line-height: 1.8;
  overflow: auto;
  font-family: var(--mono);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  font-size: 12px;
  color: var(--muted);
}
footer > div {
  display: flex;
  gap: 24px;
}
footer a {
  text-decoration: none;
}
@media (min-width: 1440px) {
  .scene-wrap {
    max-height: 390px;
  }
}
@media (max-width: 900px) {
  .masthead,
  main,
  footer {
    width: calc(100% - 48px);
  }
  .introduction,
  .section-intro,
  .measurement-summary,
  .implementation,
  .get-started {
    gap: 34px;
  }
  h1 {
    font-size: 38px;
  }
  .intro-copy > p:first-child {
    font-size: 15px;
  }
  .viewer {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr);
  }
  .scene-wrap {
    height: 300px;
    aspect-ratio: auto;
  }
  .inspector {
    padding: 16px;
  }
  .event {
    padding: 10px 14px;
  }
  .scenario-bar > span {
    display: none;
  }
  .decision p {
    font-size: 15px;
  }
  dl > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .stack {
    font-size: 10px;
  }
  .stack span {
    padding: 0 3px;
  }
}
@media (max-width: 600px) {
  .masthead,
  main,
  footer {
    width: calc(100% - 36px);
  }
  .masthead {
    height: 68px;
  }
  .brand,
  .brand img {
    width: 137px;
  }
  .masthead nav {
    gap: 18px;
    font-size: 12px;
  }
  .masthead nav a[href="#measurements"] {
    display: none;
  }
  .introduction {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 32px 0;
  }
  .project-kind {
    font-size: 12px;
    margin-bottom: 12px;
  }
  h1 {
    font-size: 37px;
    letter-spacing: -1.2px;
  }
  .intro-copy > p:first-child {
    font-size: 15px;
    max-width: 360px;
  }
  .intro-links {
    gap: 22px;
    font-size: 12px;
  }
  .stack {
    margin-top: 18px;
  }
  .section-bar {
    padding: 14px;
  }
  .section-bar h2 {
    font-size: 14px;
  }
  .run-label {
    font-size: 9px;
  }
  .scenario-bar {
    padding: 8px;
    gap: 2px;
    flex-wrap: nowrap;
  }
  .scenario-bar button {
    font-size: 10px;
    padding: 8px 6px;
    flex: 1;
    min-height: 44px;
  }
  .viewer {
    grid-template-columns: 1fr;
  }
  .scene-wrap {
    height: auto;
    aspect-ratio: 3/2;
  }
  .view-heading {
    padding: 10px 14px;
    font-size: 10px;
  }
  .transport {
    padding: 10px 14px;
    gap: 12px;
  }
  .transport button {
    min-height: 44px;
  }
  .inspector {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px;
  }
  .decision {
    margin-top: 18px;
  }
  .retained img {
    max-height: 150px;
  }
  .event-heading {
    padding: 12px 14px;
  }
  .event-heading span {
    display: none;
  }
  .event-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .event {
    padding: 10px;
    grid-template-columns: 36px 1fr;
    column-gap: 4px;
  }
  .event:nth-child(3n) {
    border-right: 1px solid var(--line);
  }
  .event:nth-child(2n) {
    border-right: 0;
  }
  .event:nth-child(n + 4) {
    border-bottom: 1px solid var(--line);
  }
  .event:nth-child(n + 5) {
    border-bottom: 0;
  }
  .event time {
    font-size: 9px;
  }
  .event strong {
    font-size: 11px;
  }
  .event span {
    font-size: 9px;
  }
  .demo > .caption {
    padding: 0 14px 14px;
  }
  .reading-section {
    padding: 36px 0;
  }
  .section-intro,
  .measurement-summary,
  .implementation,
  .get-started {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .section-intro h2,
  .implementation h2,
  .get-started h2 {
    font-size: 25px;
  }
  .section-intro p {
    font-size: 13px;
  }
  .measurement-summary {
    margin: 22px 0;
  }
  .conditions {
    margin-top: 3px;
  }
  .research-figure {
    overflow: auto;
  }
  .research-figure img {
    min-width: 640px;
  }
  .caption {
    font-size: 11px;
  }
  .trace-details {
    overflow: auto;
  }
  .trace-details img {
    min-width: 640px;
  }
  .implementation > div > p {
    margin: 15px 0;
  }
  dl > div {
    grid-template-columns: 130px 1fr;
    gap: 15px;
  }
  footer {
    flex-direction: column;
    gap: 12px;
    font-size: 11px;
  }
  footer > div {
    gap: 24px;
  }
  pre {
    padding: 16px;
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
