/* A field guide: type, rules and a drawing, with color reserved for decisions. */
:root {
  --paper: #f5f2e9;
  --ink: #242620;
  --muted: #62635b;
  --line: #cccbbf;
  --accent: #b9381d;
  --wash: #ece8dd;
  --confirmed: #365746;
}
.masthead,
.lab-opening {
  background: var(--paper);
  color: var(--ink);
}
.wrap {
  max-width: 1380px;
  padding-left: 52px;
  padding-right: 52px;
}
.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  gap: 24px;
}
.brand {
  display: flex;
  align-items: baseline;
  text-decoration: none;
  font-size: 16px;
  font-weight: 750;
  letter-spacing: -0.4px;
}
.brand small {
  display: inline;
  margin-left: 14px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.site-header nav {
  display: flex;
  gap: 26px;
  font-size: 12px;
}
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.site-header nav a:hover {
  text-decoration: underline;
}
.source-link {
  gap: 14px;
}
.hero {
  padding-top: 32px;
}
.hero-intro {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: end;
  gap: 50px;
  margin-bottom: 30px;
}
.hero .eyebrow {
  font: 11px var(--mono);
  color: var(--accent);
  letter-spacing: 0.4px;
}
.edition {
  color: var(--muted);
  margin-left: 15px;
}
h1 {
  font:
    400 clamp(52px, 6.8vw, 94px) / 1.06 Georgia,
    "Times New Roman",
    serif;
  letter-spacing: -4px;
  margin: 17px 0 0;
}
h1 em {
  font-weight: 400;
}
.intro-aside {
  max-width: 360px;
  justify-self: end;
  padding-bottom: 5px;
}
.intro-aside p {
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
}
.intro-aside .stack {
  font: 10px/1.6 var(--mono);
  color: var(--muted);
  margin-top: 15px;
}
.stack span {
  padding: 0 7px;
}
.experiment-console {
  border-top: 2px solid var(--ink);
}
.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.case-picker {
  display: flex;
  align-items: center;
  gap: 18px;
}
.case-picker > span {
  font: 10px/1.5 var(--mono);
  color: var(--muted);
  max-width: 80px;
}
.case-picker select {
  margin: 0;
  height: 44px;
  min-width: 258px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font:
    600 13px Manrope,
    Arial,
    sans-serif;
}
.case-heading {
  text-align: right;
}
.case-heading h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
}
.recording {
  font: 10px var(--mono);
  color: var(--muted);
}
.console-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 340px;
}
.hero-visual {
  min-width: 0;
  padding: 18px 42px 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.apparatus {
  min-width: 0;
}
.apparatus svg {
  display: block;
  width: 100%;
  height: 240px;
}
.apparatus svg text {
  fill: var(--ink);
  font-family: var(--mono);
}
.apparatus .drawing-note {
  fill: var(--muted);
  font-size: 11px;
}
.command-wire,
.return-wire {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
}
.return-wire {
  stroke-dasharray: 5 5;
}
.is-uncertain .return-wire {
  stroke: var(--accent);
}
.lost-reply-mark {
  display: none;
}
.is-uncertain .lost-reply-mark {
  display: block;
}
.wire-caption {
  font-size: 10px;
  letter-spacing: 0.5px;
}
.wire-caption text:last-child {
  fill: var(--accent);
}
.door-closed {
  opacity: 1;
}
.door-open {
  opacity: 0;
}
.is-open .door-open {
  opacity: 1;
}
.is-open .door-closed {
  opacity: 0;
}
.is-unknown .locker-shell {
  opacity: 0.2;
}
.is-offline .command-wire {
  opacity: 0.25;
}
.is-confirmed .return-wire {
  stroke: var(--confirmed);
  stroke-dasharray: none;
}
.is-confirmed .wire-caption text:last-child {
  fill: var(--confirmed);
}
.is-confirmed .lost-reply-mark {
  display: none;
}
.device-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.device-caption > div > span {
  font: 10px var(--mono);
  color: var(--muted);
}
.device-caption > div > strong {
  display: inline-block;
  font-size: 27px;
  font-weight: 550;
  letter-spacing: -1px;
  line-height: 1.3;
  margin: 0 13px 0 0;
}
.device-caption > div:first-child > span {
  display: block;
  margin-bottom: 3px;
}
.device-caption small {
  font: 10px var(--mono);
  color: var(--muted);
}
.pulse-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}
.device-caption .pulse-badge > strong {
  font:
    48px/1 Georgia,
    serif;
  margin: 0;
  color: var(--accent);
}
.device-caption .pulse-badge > span {
  font:
    11px/1.5 Manrope,
    Arial,
    sans-serif;
  color: var(--ink);
}
.instrument-caption {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}
.decision-panel {
  padding: 24px 0 24px 36px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.decision-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font: 10px var(--mono);
  color: var(--muted);
}
.status-marker {
  display: none;
}
.decision-label code {
  font: 10px var(--mono);
  color: var(--accent);
}
.decision-panel h3 {
  font:
    400 34px/1.15 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 18px 0 12px;
  max-width: 390px;
}
.decision-panel > p {
  font-size: 13px;
  line-height: 1.75;
  margin: 0;
  max-width: 410px;
}
.evidence-chain {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.evidence-chain li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 6px 0;
}
.step-number {
  font: 10px var(--mono);
  color: var(--muted);
}
.evidence-chain strong {
  font-size: 11px;
  font-weight: 650;
  display: block;
}
.evidence-chain div > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.evidence-chain b {
  display: none;
}
.console-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--ink);
  padding: 15px 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 48px;
  border: 1px solid var(--accent);
  border-radius: 0;
  background: var(--accent);
  color: #fffaf2;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 650;
}
.primary:hover {
  background: #922b15;
}
.primary > span {
  font-size: 22px;
}
.replay-disclosure {
  font: 9px/1.7 var(--mono);
  color: var(--muted);
}
.replay-disclosure strong {
  display: block;
  font:
    500 12px/1.7 Manrope,
    Arial,
    sans-serif;
  color: var(--ink);
}
.replay-disclosure strong.confirmed {
  color: var(--confirmed);
}
.service-readouts {
  display: flex;
  gap: 28px;
}
.service-readouts > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-readouts strong {
  font:
    28px/1 Georgia,
    serif;
}
.service-readouts span {
  font: 10px/1.5 var(--mono);
  color: var(--muted);
}
.sequence-panel {
  border-top: 1px solid var(--line);
  padding: 17px 0 0;
}
.sequence-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font: 10px var(--mono);
  color: var(--muted);
  margin-bottom: 15px;
}
.sequence {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 5px 5px 8px;
  margin: -5px -5px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.sequence button {
  position: relative;
  flex: 1 0 145px;
  padding: 12px 15px 10px 0;
  text-align: left;
  border: 0;
  border-top: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  min-height: 86px;
}
.sequence button:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--paper);
  border: 1px solid var(--muted);
  top: -5px;
  left: 0;
}
.sequence button:hover {
  background: var(--wash);
}
.sequence button[aria-pressed="true"] {
  border-top-color: var(--accent);
}
.sequence button[aria-pressed="true"]:before {
  background: var(--accent);
  border-color: var(--accent);
}
.sequence-number {
  font: 10px var(--mono);
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.sequence strong {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 550;
}
.sequence small {
  display: block;
  font: 10px var(--mono);
  color: var(--muted);
  margin-top: 6px;
}
.sequence button[aria-pressed="true"] strong,
.sequence button[aria-pressed="true"] .sequence-number {
  color: var(--accent);
}
.sequence-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 5px 0 0;
}
.experiment-console[data-state="COMPLETED"] #decision-title {
  color: var(--confirmed);
}
.experiment-console[data-state="NEEDS_INSPECTION"] #decision-title {
  color: var(--accent);
}
.proof-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  border-top: 1px solid var(--ink);
  margin-top: 35px;
}
.proof-path > a {
  padding: 21px 0;
  text-decoration: none;
}
.path-index {
  font: 10px var(--mono);
  color: var(--muted);
}
.proof-path strong {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 14px;
  font-weight: 650;
  margin: 9px 0;
}
.proof-path strong > span {
  color: var(--accent);
}
.proof-path p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 320px;
}
.proof-path > a:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
/* The supporting evidence follows the same paper, rules and typography. */
.scenarios,
.boundary-grid,
.plot-card,
.measurement-strip,
select,
.controls button,
.result-note button {
  border-radius: 0;
}
.section-intro h2,
.inspection h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  letter-spacing: -1.5px;
}
.section-number {
  border: 0;
  font:
    italic 28px Georgia,
    serif;
  color: var(--accent);
}
.scenarios button {
  background: var(--wash);
}
.scenarios button:hover {
  background: #e0dcd0;
}
.scenarios button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  box-shadow: inset 0 3px var(--accent);
}
.scenarios button[aria-pressed="true"] > span {
  color: #ffb09a;
}
.scenarios button[aria-pressed="true"] small {
  color: #d5d3c9;
}
.controls #play,
.measurement-strip,
.outcome {
  background: var(--wash);
}
.outcome.after {
  background: #e4ded0;
}
.journal-slip,
.after .journal-slip {
  transform: none;
  box-shadow: none;
  background: var(--paper);
}
.pulse-count strong {
  color: var(--ink);
  font-family: Georgia, serif;
}
.plot-card {
  background: #faf8f2;
}
.plot-legend .four-workers:before {
  background: #365746;
}
.measurement-strip,
.plot-card,
.boundary-grid,
.scenarios {
  border-color: var(--line);
}
.notice {
  border-top: 1px solid var(--line);
}
@media (max-width: 1150px) {
  .wrap {
    padding-left: 36px;
    padding-right: 36px;
  }
  .hero-intro {
    gap: 30px;
  }
  h1 {
    font-size: 70px;
    letter-spacing: -3px;
  }
  .edition {
    display: none;
  }
  .intro-aside p {
    font-size: 13px;
  }
  .hero-visual {
    padding-right: 26px;
  }
  .decision-panel {
    padding-left: 26px;
  }
  .decision-panel h3 {
    font-size: 29px;
  }
  .case-picker {
    gap: 12px;
  }
  .case-picker select {
    min-width: 240px;
  }
  .proof-path {
    gap: 26px;
  }
}
@media (max-width: 900px) {
  .site-header {
    height: 65px;
  }
  .site-header nav a:first-child {
    display: none;
  }
  .brand small {
    margin-left: 10px;
    font-size: 11px;
  }
  .hero {
    padding-top: 26px;
  }
  .hero-intro {
    grid-template-columns: 1.3fr 1fr;
    gap: 28px;
    margin-bottom: 25px;
  }
  h1 {
    font-size: 58px;
    letter-spacing: -2.5px;
  }
  .hero .eyebrow {
    font-size: 10px;
  }
  .intro-aside p {
    font-size: 12px;
  }
  .intro-aside .stack {
    font-size: 9px;
  }
  .case-picker {
    display: block;
  }
  .case-picker > span {
    max-width: none;
    display: block;
    margin-bottom: 5px;
  }
  .case-picker select {
    min-width: 225px;
    height: 40px;
    min-height: 40px;
    font-size: 12px;
  }
  .console-top {
    padding: 12px 0;
  }
  .case-heading h2 {
    font-size: 12px;
  }
  .recording {
    font-size: 9px;
  }
  .console-body {
    grid-template-columns: 1.1fr 1fr;
    min-height: 310px;
  }
  .hero-visual {
    padding: 12px 24px 12px 0;
  }
  .apparatus svg {
    height: 200px;
  }
  .decision-panel {
    padding: 20px 0 20px 24px;
  }
  .decision-panel h3 {
    font-size: 28px;
  }
  .decision-panel > p {
    font-size: 12px;
  }
  .decision-label,
  .decision-label code {
    font-size: 9px;
  }
  .evidence-chain {
    margin-top: 12px;
  }
  .evidence-chain li {
    padding: 5px 0;
    gap: 10px;
  }
  .evidence-chain strong,
  .evidence-chain div > span {
    font-size: 10px;
  }
  .device-caption > div > strong {
    font-size: 24px;
  }
  .device-caption small {
    display: block;
  }
  .device-caption .pulse-badge > strong {
    font-size: 42px;
  }
  .device-caption .pulse-badge > span,
  .instrument-caption {
    font-size: 10px;
  }
  .hero-actions {
    gap: 16px;
  }
  .primary {
    padding: 0 14px;
    gap: 18px;
    font-size: 12px;
  }
  .service-readouts {
    gap: 15px;
  }
  .service-readouts > div {
    gap: 8px;
  }
  .service-readouts span {
    font-size: 9px;
  }
  .proof-path {
    gap: 20px;
  }
  .proof-path strong {
    font-size: 13px;
  }
  .path-index {
    font-size: 9px;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
  .site-header {
    height: 58px;
  }
  .brand {
    font-size: 14px;
  }
  .brand small {
    display: block;
    margin: 0;
    font-size: 10px;
  }
  .site-header nav a:not(.source-link) {
    display: none;
  }
  .source-link {
    font-size: 11px;
    gap: 8px;
  }
  .hero {
    padding-top: 23px;
  }
  .hero-intro {
    display: block;
    margin-bottom: 21px;
  }
  h1 {
    font-size: 51px;
    letter-spacing: -2.7px;
    margin: 11px 0 0;
  }
  .intro-aside {
    max-width: none;
    margin-top: 14px;
    padding: 0;
  }
  .intro-aside p {
    font-size: 12px;
    line-height: 1.7;
  }
  .intro-aside .stack {
    display: none;
  }
  .console-top {
    gap: 15px;
    padding: 11px 0;
  }
  .case-picker {
    flex: 1;
    min-width: 0;
  }
  .case-picker > span {
    font-size: 9px;
  }
  .case-picker select {
    width: 100%;
    min-width: 0;
    font-size: 11px;
    padding-left: 9px;
  }
  .case-heading {
    max-width: 92px;
    align-self: end;
    margin-bottom: 8px;
    text-align: left;
  }
  .case-heading h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .recording {
    display: block;
    font-size: 9px;
    line-height: 1.4;
  }
  .console-body {
    display: block;
    min-height: 0;
  }
  .hero-visual {
    padding: 0 0 12px;
  }
  .apparatus svg {
    height: 160px;
    margin: 0;
  }
  .device-caption {
    padding-top: 7px;
  }
  .device-caption > div:first-child > span {
    font-size: 9px;
  }
  .device-caption > div > strong {
    font-size: 23px;
  }
  .device-caption small {
    display: inline;
    font-size: 9px;
  }
  .device-caption .pulse-badge > strong {
    font-size: 37px;
  }
  .instrument-caption {
    margin-top: 5px;
  }
  .decision-panel {
    border: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0;
  }
  .decision-panel h3 {
    font-size: 25px;
    margin: 8px 0;
  }
  .decision-panel > p {
    font-size: 11px;
    line-height: 1.7;
  }
  .evidence-chain {
    display: none;
  }
  .console-controls {
    display: block;
    padding: 13px 0;
  }
  .hero-actions {
    justify-content: space-between;
    gap: 12px;
  }
  .primary {
    min-height: 44px;
    font-size: 11px;
    gap: 14px;
    padding: 0 12px;
  }
  .replay-disclosure {
    font-size: 8px;
  }
  .replay-disclosure strong {
    font-size: 10px;
    white-space: nowrap;
  }
  .service-readouts {
    display: none;
  }
  .sequence-heading {
    font-size: 9px;
  }
  .sequence button {
    flex-basis: 132px;
  }
  .sequence strong {
    font-size: 11px;
  }
  .sequence-note {
    font-size: 10px;
  }
  .proof-path {
    display: block;
    margin-top: 25px;
  }
  .proof-path > a {
    display: block;
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
  }
  .proof-path > a:last-child {
    border: 0;
  }
  .proof-path strong {
    font-size: 14px;
  }
  .proof-path p {
    max-width: none;
  }
}
@media (max-width: 360px) {
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
  h1 {
    font-size: 43px;
    letter-spacing: -2.3px;
  }
  .case-heading {
    max-width: 70px;
  }
  .recording {
    font-size: 8px;
  }
  .primary {
    gap: 7px;
    padding: 0 9px;
    font-size: 10px;
  }
  .replay-disclosure strong {
    font-size: 9px;
  }
}
@media (min-width: 601px) and (max-height: 800px) {
  .site-header {
    height: 58px;
  }
  .hero {
    padding-top: 20px;
  }
  .hero-intro {
    margin-bottom: 20px;
  }
  h1 {
    font-size: 70px;
  }
  .console-body {
    min-height: 0;
  }
  .apparatus svg {
    height: 205px;
  }
  .decision-panel {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .decision-panel h3 {
    font-size: 28px;
    margin-top: 12px;
  }
  .evidence-chain {
    margin-top: 12px;
  }
  .evidence-chain li {
    padding: 4px 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
