:root {
  font-family: Arial, Helvetica, sans-serif;
  color: #1e2220;
  background: #f1f1e9;
  --orange: #ed623c;
  --dark: #1d2420;
  --line: #cacdc0;
  scroll-behavior: smooth;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
pre:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
.skip {
  position: fixed;
  top: -70px;
  padding: 15px;
  background: white;
  z-index: 10;
}
.skip:focus {
  top: 0;
}
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: 78px;
  background: var(--dark);
  color: #f1f1e9;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  padding: 23px 0;
  z-index: 4;
}
.mark {
  font-size: 38px;
  font-weight: 900;
  position: relative;
}
.mark span {
  font-size: 18px;
  color: var(--orange);
  position: absolute;
  right: -11px;
  top: 1px;
}
.rail-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 10px "Courier New";
  letter-spacing: 3px;
}
.rail-source {
  border: 1px solid #616d61;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
}
.shell {
  margin-left: 78px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 4%;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.wordmark {
  font-size: 20px;
  letter-spacing: -1px;
  font-weight: bold;
}
.wordmark span {
  font-weight: 400;
  margin-left: 4px;
}
nav {
  display: flex;
  gap: 25px;
  font-size: 12px;
  align-items: center;
}
nav button {
  background: none;
  border: 0;
  font-size: 11px;
  color: inherit;
  text-decoration: underline;
}
.system-status {
  font: 10px "Courier New";
  letter-spacing: 1px;
  white-space: nowrap;
}
.system-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-right: 5px;
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  padding: 60px 5% 70px;
  gap: 65px;
  min-height: 590px;
  align-items: center;
}
.eyebrow {
  font:
    10px/1.5 "Courier New",
    monospace;
  letter-spacing: 1.8px;
}
h1 {
  font-size: clamp(58px, 7.4vw, 116px);
  line-height: 0.89;
  letter-spacing: -7px;
  margin: 30px 0;
  white-space: nowrap;
}
h1 > span {
  display: inline-block;
  animation: kinetic 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
h1 > span:nth-of-type(2) {
  animation-delay: 0.15s;
}
.dot {
  color: var(--orange);
}
.hero-text > p:not(.eyebrow) {
  font-size: 15px;
  line-height: 1.7;
  color: #536052;
}
.square-link {
  display: inline-flex;
  gap: 45px;
  align-items: center;
  border-bottom: 1px solid var(--dark);
  padding: 16px 0 10px;
  font-size: 12px;
  margin-top: 15px;
}
.square-link span {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: var(--orange);
  transition: transform 0.35s cubic-bezier(0.2, 2, 0.4, 1);
}
.square-link:hover span {
  transform: translate(5px, -5px);
}
.orbit-card {
  background: #e3e7d7;
  padding: 24px;
  border: 1px solid #cdd4bc;
  aspect-ratio: 1;
  position: relative;
}
.orbit-caption,
.orbit-bottom {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font: 8px/1.5 "Courier New";
  letter-spacing: 1px;
}
.orbit-bottom {
  position: absolute;
  bottom: 22px;
  left: 24px;
  right: 24px;
}
.orbit-bottom b {
  font-size: 20px;
  font-weight: 400;
}
.orbit-card svg {
  width: 100%;
  height: auto;
  display: block;
}
.orbit-card #spiro {
  transform-origin: center;
  animation: orbit 70s linear infinite;
}
.readout {
  border-top: 1px solid var(--dark);
  border-bottom: 1px solid var(--dark);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 5%;
}
.readout > div {
  padding: 22px 25px;
  border-right: 1px solid var(--line);
}
.readout > div:last-child {
  border: 0;
}
.readout span {
  font: 9px "Courier New";
  letter-spacing: 1px;
  display: block;
  margin-bottom: 12px;
}
.readout strong {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -2px;
  display: inline-block;
  font-family: "Courier New", monospace;
  font-weight: 400;
}
.readout strong small {
  font-size: 20px;
  margin-left: 5px;
}
#health {
  font-size: 22px;
  letter-spacing: -1px;
  padding: 13px 0;
}
.workbench {
  padding: 70px 5%;
  scroll-margin-top: 20px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 20px;
}
h2 {
  font-size: 43px;
  letter-spacing: -2px;
  margin: 12px 0;
  line-height: 1.05;
}
h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.primary {
  padding: 15px 20px;
  background: var(--orange);
  color: var(--dark);
  font-weight: bold;
  font-size: 12px;
  border: 1px solid #b64323;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0 var(--dark);
}
.primary:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}
.primary:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}
.session-bar {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border: 1px solid var(--line);
  background: #e8eadf;
  padding: 14px 16px;
  font: 10px/1.5 "Courier New";
  min-height: 44px;
}
.session-bar button {
  border: 0;
  background: none;
  text-decoration: underline;
  font-size: 10px;
  color: inherit;
  white-space: nowrap;
}
.bench-grid {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
}
.resource-nav {
  padding: 22px 15px;
  border-right: 1px solid var(--line);
}
.resource-nav > .eyebrow {
  font-size: 8px;
  letter-spacing: 0.7px;
  margin-bottom: 20px;
}
#resource-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#resource-buttons button {
  text-align: left;
  padding: 12px 10px;
  border: 0;
  background: none;
  font: 12px "Courier New";
  color: var(--dark);
  transition:
    background 0.2s,
    transform 0.2s;
}
#resource-buttons button[aria-pressed="true"] {
  background: var(--dark);
  color: #f5f5eb;
  transform: translateX(4px);
}
.hint {
  font-size: 10px;
  line-height: 1.7;
  color: #596451;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 35px;
}
.hint > span {
  font-size: 25px;
  color: #b64c2c;
}
.request-pane {
  padding: 23px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.pane-top {
  display: flex;
  justify-content: space-between;
  font: 9px "Courier New";
  letter-spacing: 2px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px;
}
.request-pane label {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  font-size: 11px;
  margin-bottom: 10px;
}
.request-pane label > span {
  font-size: 9px;
  color: #636b5e;
}
.request-pane select,
.request-pane input,
.request-pane textarea {
  border: 1px solid #a9b09e;
  background: #f8f8f0;
  color: var(--dark);
  padding: 12px;
  font: 11px/1.5 "Courier New";
  min-width: 0;
  border-radius: 0;
}
.request-pane > select {
  width: 100%;
  font-family: Arial;
}
.request-line {
  display: flex;
  margin: 18px 0 25px;
  gap: 6px;
}
.request-line select {
  max-width: 83px;
  background: #e0e8d8;
}
.request-line input {
  width: 100%;
}
.request-pane textarea {
  resize: vertical;
  width: 100%;
  font-size: 11px;
  line-height: 1.8;
  tab-size: 2;
  min-height: 210px;
}
.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  margin-top: 20px;
}
.request-actions > button:not(.primary) {
  border: 0;
  background: none;
  text-decoration: underline;
  font-size: 11px;
  color: inherit;
}
.request-note {
  font: 9px/1.7 "Courier New";
  color: #596451;
}
.response-pane {
  background: var(--dark);
  color: #dce7d3;
  min-width: 0;
  padding: 23px;
  display: flex;
  flex-direction: column;
}
.response-pane .pane-top {
  border-color: #455142;
}
.response-indicator {
  width: 7px;
  height: 7px;
  background: #6e7f62;
  border-radius: 50%;
}
.response-indicator.ok {
  background: #c6e488;
}
.response-indicator.error {
  background: #f59a72;
}
.response-metrics {
  display: flex;
  gap: 15px;
  align-items: center;
  margin: 0 0 25px;
}
.response-metrics strong {
  font: 35px "Courier New";
  letter-spacing: -3px;
  display: inline-block;
  min-width: 75px;
}
.response-metrics span {
  font: 8px "Courier New";
  letter-spacing: 1px;
  line-height: 1.8;
}
.response-pane pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 11px/1.8 "Courier New";
  margin: 0;
  flex: 1;
  min-height: 260px;
  max-height: 420px;
  overflow: auto;
  color: #c2d2b6;
}
.response-foot {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #455142;
  margin-top: 20px;
  padding-top: 16px;
  font: 9px "Courier New";
}
.response-foot button {
  background: none;
  color: #dce7d3;
  border: 0;
  text-decoration: underline;
  font-size: 10px;
}
#feedback {
  font: 10px/1.5 "Courier New";
  color: #edd3a0;
  min-height: 15px;
}
.field-notes {
  background: #dfe4d4;
  padding: 75px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  border-top: 1px solid #bdc5ae;
}
.field-notes > div > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.8;
  max-width: 390px;
}
.note-list article {
  position: relative;
  padding: 5px 0 20px 42px;
  border-bottom: 1px solid #b8c3ab;
}
.note-list article > span {
  position: absolute;
  left: 0;
  top: 21px;
  font: 11px "Courier New";
  color: #626f55;
}
.note-list h3 {
  font-size: 15px;
}
.note-list p {
  font-size: 12px;
  line-height: 1.8;
  color: #4d5a44;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding: 28px 5%;
  background: var(--dark);
  color: #dce7d3;
  font: 9px/1.6 "Courier New";
  letter-spacing: 1px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.request-pane .sr-only {
  display: block;
}
body.paused * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}
@keyframes kinetic {
  from {
    transform: translateY(24px) skewY(4deg);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}
@media (max-width: 1150px) {
  .hero {
    gap: 25px;
    padding-top: 40px;
    min-height: 510px;
  }
  h1 {
    font-size: 7.8vw;
    letter-spacing: -5px;
  }
  .bench-grid {
    grid-template-columns: 130px minmax(0, 1fr) minmax(0, 1fr);
  }
  .request-pane,
  .response-pane {
    padding: 17px;
  }
  .readout > div {
    padding: 20px 15px;
  }
  .field-notes {
    gap: 30px;
  }
  .system-status {
    display: none;
  }
}
@media (max-width: 800px) {
  .rail {
    width: 48px;
  }
  .shell {
    margin-left: 48px;
  }
  .mark {
    font-size: 30px;
  }
  .mark span {
    right: -7px;
    font-size: 14px;
  }
  .rail-label {
    font-size: 8px;
  }
  .rail-source {
    width: 29px;
    height: 29px;
  }
  header {
    flex-wrap: wrap;
    padding: 20px 6%;
  }
  nav {
    gap: 18px;
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 40px 6%;
    gap: 35px;
  }
  h1 {
    font-size: clamp(50px, 12.5vw, 94px);
    letter-spacing: -4px;
  }
  .orbit-card {
    max-width: 370px;
    width: 100%;
    justify-self: center;
  }
  .readout {
    grid-template-columns: 1fr 1fr;
    margin: 0 6%;
  }
  .readout > div:nth-child(2) {
    border-right: 0;
  }
  .readout > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .readout strong {
    font-size: 35px;
  }
  .readout span {
    font-size: 8px;
  }
  #health {
    font-size: 18px;
  }
  .workbench {
    padding: 45px 6%;
  }
  .section-title {
    display: block;
  }
  h2 {
    font-size: 36px;
  }
  .section-title > .primary {
    margin-top: 15px;
  }
  .session-bar {
    flex-direction: column;
    align-items: start;
  }
  .bench-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .resource-nav {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 15px;
  }
  .resource-nav > .eyebrow,
  .hint {
    display: none;
  }
  #resource-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
  }
  #resource-buttons button {
    font-size: 10px;
    padding: 10px 8px;
  }
  #resource-buttons button[aria-pressed="true"] {
    transform: none;
  }
  .request-pane {
    border: 0;
  }
  .response-pane pre {
    min-height: 210px;
  }
  .field-notes {
    display: block;
    padding: 45px 6%;
  }
  .note-list {
    margin-top: 35px;
  }
  footer {
    flex-direction: column;
    padding: 25px 6%;
  }
  .hero-text > p:not(.eyebrow) {
    font-size: 13px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .pane-top {
    margin-bottom: 18px;
  }
  .request-pane label > span {
    font-size: 8px;
  }
}

html:has(body.paused) {
  scroll-behavior: auto;
}

@media (max-width: 700px) {
  button,
  input,
  select {
    min-height: 44px;
  }
  nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
}

/* Vector arrows keep their shape across Safari, system fonts, and emoji sets. */
svg.compat-arrow {
  display: inline-block;
  position: static;
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
}

/* Keep text-entry controls readable without iPhone Safari focus zoom. */
@media (max-width: 640px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), #scenario, #method, #payload {
    font-size: 16px;
  }
  .request-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .request-line select {
    width: 100%;
    max-width: none;
  }
}
