:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --white: #fdfcf8;
  --ink: #1e2820;
  --muted: #48584b;
  --line: #ced3c7;
  --leaf: #284c37;
  --light-leaf: #e1ebe0;
  --serif: Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font: 1rem/1.5 system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
p, h1, h2, h3, ol { margin: 0; }
a { color: var(--leaf); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #8f5209; outline-offset: 3px; }
:where(section, #case) { scroll-margin-top: 1.5rem; }
.wrap { width: min(100% - 3rem, 67rem); margin-inline: auto; }
.bar { border-bottom: 1px solid var(--line); }
.bar .wrap, .site-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}
.brand { font-weight: 780; font-size: 1.1rem; letter-spacing: -.045em; }
.bar a, .site-foot { font-size: .875rem; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem; background: var(--white); z-index: 1; }
.skip:not(:focus) { clip-path: inset(50%); }
.intro { padding-block: clamp(2.25rem, 6vw, 4.75rem) 2rem; }
.eyebrow, .reference { font: 700 .75rem/1.5 var(--mono); letter-spacing: .075em; text-transform: uppercase; color: var(--muted); }
h1, .recording h2 { font: normal clamp(2.6rem, 7vw, 5.1rem)/.99 var(--serif); letter-spacing: -.055em; }
h1 { margin-block: .5rem .85rem; }
.intro > p:last-child { max-width: 39rem; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.12rem); }
.desk { display: grid; grid-template-columns: minmax(15rem, .9fr) minmax(0, 2fr); align-items: start; gap: clamp(1rem, 3vw, 1.75rem); }
.slip {
  padding: 1.4rem;
  border: 1px solid #bfc9b9;
  border-top: 4px solid var(--leaf);
  background: #ebefe5;
}
.slip h2 { margin: .3rem 0 .6rem; font: normal 1.95rem/1.12 var(--serif); letter-spacing: -.04em; }
.workbench { min-width: 0; border: 1px solid var(--line); border-radius: .55rem; background: var(--white); }
.workbench-head, .workbench-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem;
  padding: 1rem clamp(.9rem, 3vw, 1.5rem);
}
.workbench-head h2 { font-size: 1.1rem; }
.workbench-head .reference { border: 1px solid var(--line); padding: .15rem .45rem; border-radius: .25rem; }
.screens { display: flex; flex-wrap: wrap; gap: .35rem; border-block: 1px solid var(--line); padding: .5rem clamp(.75rem, 3vw, 1.25rem); }
button, .primary {
  min-height: 2.75rem;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: .3rem;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 650;
  cursor: pointer;
}
button:hover { background: var(--light-leaf); }
.screens button { border-color: transparent; font-size: .825rem; }
.screens button[aria-pressed="true"], .replay-grid button[aria-current="step"] { border-color: #b1c5b4; background: var(--light-leaf); color: var(--leaf); }
.primary { display: inline-flex; align-items: center; border-color: var(--leaf); background: var(--leaf); color: #fff; text-decoration: none; }
.primary:hover { background: #193725; }
.workbench-body { padding: 1.2rem clamp(.9rem, 3vw, 1.5rem); }
h3 { font-size: 1.14rem; }
.workbench-foot { justify-content: flex-end; padding-block: .7rem; border-top: 1px solid var(--line); }
.message { margin: 1rem clamp(.9rem, 3vw, 1.5rem) 0; padding: .65rem .8rem; border-left: 3px solid var(--leaf); background: var(--light-leaf); font-size: .9rem; }
.message:empty { position: absolute; padding: 0; margin: 0; border: 0; }
.message.issue { border-color: #8f5209; background: #fff0d6; color: #553207; }
.quantities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: .8rem;
  margin-block: .75rem 1rem;
}
.quantities label { display: grid; gap: .3rem; font-size: .875rem; font-weight: 650; }
input { width: 100%; min-height: 2.75rem; padding: .35rem .55rem; border: 1px solid #8e998c; border-radius: .25rem; background: var(--white); color: var(--ink); font: 1rem var(--mono); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: .65rem .4rem .65rem 0; }
tr > :last-child { text-align: right; padding-right: 0; }
thead { color: var(--muted); font-size: .78rem; }
tbody td { font-family: var(--mono); }
tbody th { font-weight: 650; }
.slip small { display: block; color: var(--muted); font: .74rem var(--mono); margin-top: .18rem; }
.debrief { border-top: 1px solid var(--line); }
.debrief h3 { margin-block: .2rem .4rem; font: normal clamp(1.8rem, 4vw, 2.5rem)/1.08 var(--serif); letter-spacing: -.04em; }
.debrief p:not(.eyebrow) { margin-bottom: .6rem; color: var(--muted); }
.debrief-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.recording { margin-top: clamp(3.5rem, 8vw, 6.5rem); border-top: 1px solid var(--line); padding-block: 1.5rem 2.6rem; }
.recording-head { margin-bottom: 1.35rem; }
.recording h2 { font-size: clamp(2.1rem, 5vw, 3.55rem); margin-block: .4rem .5rem; }
.recording-head > p:last-child { color: var(--muted); overflow-wrap: anywhere; }
.replay-grid { display: grid; grid-template-columns: minmax(12rem, .9fr) minmax(0, 2fr); align-items: start; gap: 1rem; }
.replay-grid ol { display: grid; gap: .45rem; list-style: none; padding: 0; }
.replay-grid button { width: 100%; text-align: start; }
.replay-card { min-width: 0; padding: 1rem clamp(.9rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: .55rem; background: var(--white); }
.replay-card h3 { margin-block: .2rem .4rem; }
.replay-card > p:not(.eyebrow) { color: var(--muted); margin-bottom: .5rem; }
.replay-card details { margin-top: .75rem; font-size: .875rem; }
.replay-card summary { cursor: pointer; padding-block: .3rem; }
.replay-card pre { white-space: pre-wrap; overflow-wrap: anywhere; font: .875rem/1.5 var(--mono); }
.replay-footer { display: flex; flex-wrap: wrap; gap: .6rem 1.25rem; margin-top: .8rem; font-size: .875rem; }
.site-foot { border-top: 1px solid var(--line); padding-block: .8rem; color: var(--muted); }
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 1.5rem); }
  .desk, .replay-grid { grid-template-columns: minmax(0, 1fr); }
  .slip { padding: .8rem 1rem; }
  .slip h2 { font-size: 1.5rem; }
  .slip th, .slip td { padding-block: .35rem; }
  .screens button { flex: 1 1 calc(50% - .35rem); }
  .site-foot { flex-wrap: wrap; gap: .3rem 1rem; }
}
