:root {
  color-scheme: light;
  --paper: #f7f5ee;
  --ink: #183f35;
  --body: #30433a;
  --quiet: #59665a;
  --rule: #c9cbbd;
  --copper: #955333;
  --sand: #eeeadd;
  --serif: "Baskerville","Baskerville Old Face","Georgia","Noto Serif SC","Songti SC","SimSun",serif;
  --sans: "Inter","Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  --mono: "IBM Plex Mono","SFMono-Regular",Consolas,monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 22px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 5px;
}

a:hover {
  color: var(--copper);
}

button,select {
  font: inherit;
  color: inherit;
}

button:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible {
  outline: 3px solid #be7c43;
  outline-offset: 4px;
}

button:disabled {
  opacity: .45;
}

button:not(:disabled),summary,select {
  cursor: pointer;
}

.shell {
  width: min(1220px,calc(100% - clamp(40px,10vw,154px)));
  margin-inline: auto;
}

.mast {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
}

.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  font: 600 20px var(--serif);
  text-decoration: none;
}

.mark {
  width: 26px;
  height: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: rotate(-9deg);
  gap: 1px;
}

.mark i {
  background: var(--ink);
  border-radius: 85% 0 85% 0;
}

.mark i:nth-child(2),.mark i:nth-child(3) {
  transform: rotate(90deg);
}

.mast nav,.lead-actions,.legend,.reference-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.mast nav {
  gap: 30px;
  font-size: 13px;
}

.mast nav a {
  text-decoration: none;
}

.repo-link {
  border-left: 1px solid var(--rule);
  padding-left: 26px;
}

.skip:not(:focus),.sr-only {
  position: absolute;
  clip: rect(0,0,0,0);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  z-index: 2;
  background: white;
  padding: 8px 14px;
  top: 5px;
  left: 10px;
}

.lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px,6vw,100px);
  padding: clamp(50px,6vw,92px) 0;
}

.overline {
  margin: 0 0 13px;
  font: 600 11px/1.5 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--copper);
}

.overline span {
  margin: 0 4px;
}

h1,h2,h3,h4 {
  margin: 0;
  color: var(--ink);
}

h1 {
  font: 400 clamp(65px,7.4vw,116px)/.96 var(--serif);
  letter-spacing: -.057em;
}

h1 em {
  display: block;
  color: var(--copper);
  font-weight: 400;
}

.intro-text {
  max-width: 450px;
  margin: 24px 0 28px;
  line-height: 1.9;
  letter-spacing: .012em;
}

.lead-actions {
  gap: 19px;
}

.button {
  background: var(--ink);
  color: #fffaf2;
  padding: 9px 16px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.button span,.line-link span {
  margin-left: .45em;
}

.button:hover {
  background: #2e5142;
  color: white;
}

.line-link {
  color: var(--ink);
  font-size: 13px;
  white-space: nowrap;
}

.plate {
  margin: 0;
  padding: 25px 29px 17px;
  background: #173f35;
  color: #f6f1dc;
  border: 1px solid #12362d;
  box-shadow: 6px 6px 0 #e6e3d7;
}

.plate-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #798b72;
  padding-bottom: 14px;
  color: #eae6cd;
}

.plate-head>span:first-child {
  font: italic 19px/1 var(--serif);
}

.plate-key {
  font-size: 10px;
  letter-spacing: .12em;
}

.plate h2 {
  font: 500 clamp(18px,2.1vw,27px)/1.4 var(--serif);
  color: #fff8e6;
  margin: 20px 0 8px;
}

.legend {
  gap: 22px;
  font-size: 11px;
  color: #e1e6d7;
}

.legend>span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.dot.old {
  border: 1.5px solid #edead5;
}

.dot.new {
  background: #e2a271;
}

.plate canvas {
  width: 100%;
  height: 160px;
  display: block;
  margin: 10px 0 6px;
}

.plate figcaption {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.45;
  color: #cdd9c9;
}

.small-line {
  width: 16px;
  height: 1px;
  background: #9eae95;
}

.plate figcaption a {
  margin-left: auto;
  color: inherit;
  white-space: nowrap;
}

.section {
  padding: 38px 0 45px;
  border-top: 1px solid var(--ink);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
}

.section h2 {
  font: 500 clamp(25px,3.5vw,40px)/1.22 var(--serif);
  letter-spacing: -.035em;
}

.section .overline {
  margin-bottom: 8px;
}

.section-note {
  font-size: 14px;
  color: var(--quiet);
  margin: 13px 0 23px;
  line-height: 1.8;
}

.columns {
  display: grid;
  grid-template-columns: minmax(0,2.65fr) minmax(178px,1fr);
  align-items: start;
  gap: 28px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 13px;
  text-align: right;
}

caption {
  text-align: left;
  font-weight: 650;
  color: var(--ink);
  padding: 0 0 11px;
}

td,th {
  padding: 9px 9px;
  border-bottom: 1px solid var(--rule);
}

th {
  font-size: 11px;
  font-weight: 500;
  color: var(--quiet);
}

th:first-child,td:first-child {
  text-align: left;
  padding-left: 0;
}

tbody th {
  font: inherit;
  color: var(--ink);
}

table tbody .accent td,table tbody .accent th {
  color: var(--ink);
  font-weight: 650;
}

.budget {
  background: var(--sand);
  border-left: 2px solid #977658;
  padding: 14px 18px;
}

.budget h3,.filters label,.playback h3 {
  font: 600 13px/1.4 var(--sans);
}

dl {
  margin: 9px 0 0;
}

.budget dl div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 5px;
}

.budget dt {
  font-size: 12px;
  color: var(--quiet);
}

.budget dd {
  margin: 0;
  color: var(--ink);
  font: 500 17px var(--serif);
}

details {
  margin-top: 19px;
}

summary {
  color: var(--ink);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

details table {
  margin-top: 12px;
}

.reader {
  border: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(185px,.85fr) minmax(0,2.55fr);
  background: #faf8f2;
}

.filters {
  padding: 23px;
  background: var(--sand);
  border-right: 1px solid var(--rule);
}

.filters label {
  display: block;
  color: var(--quiet);
  margin-bottom: 16px;
  font-size: 12px;
}

.filters select {
  display: block;
  width: 100%;
  min-height: 38px;
  margin-top: 5px;
  border: 1px solid #b1b5a5;
  background: var(--paper);
  border-radius: 1px;
  padding: 4px;
  color: var(--ink);
  font: 400 13px var(--sans);
}

.outcome {
  display: inline-block;
  font-size: 12px;
  color: var(--ink);
  background: #dbe3d5;
  padding: 3px 8px;
}

.outcome.fail {
  background: #eddcca;
  color: #764126;
}

.evidence {
  min-width: 0;
  padding: 22px 26px;
}

.playback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--rule);
}

.playback>div {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 12px var(--mono);
}

button {
  min-width: 34px;
  min-height: 32px;
  background: none;
  border: 1px solid #a9b2a4;
}

.action {
  margin: 15px 0;
}

.action b {
  font: 600 18px var(--mono);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.action p {
  margin: 3px 0;
  font-size: 13px;
  color: var(--quiet);
}

.states {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.states>div {
  min-width: 0;
  border-top: 2px solid var(--rule);
  padding-top: 10px;
}

.states h4 {
  font-size: 12px;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.states h4 i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}

.ring {
  border: 1px solid var(--ink);
}

.solid {
  background: var(--ink);
}

.states dl div {
  margin-bottom: 6px;
}

.states dt {
  font-size: 11px;
  color: var(--quiet);
}

.states dd {
  font: 13px/1.5 var(--mono);
  margin: 0;
  overflow-wrap: anywhere;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 4px;
}

.chip {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid var(--rule);
  font: 11px/1.55 var(--mono);
  background: var(--paper);
}

.chip.changed {
  border-color: #a47850;
  background: #f3e6d7;
}

.signal {
  font-size: 12px;
  color: var(--quiet);
  padding: 9px 0 0;
  overflow-wrap: anywhere;
}

.signal.flag {
  color: #814b2f;
  font-weight: 600;
}

.references {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 7%;
}

.reference-body p {
  margin: 0 0 12px;
  font-size: 14px;
}

.reference-links {
  gap: 16px;
  margin-top: 19px;
}

.reference-links a {
  color: var(--ink);
  font-size: 12px;
}

footer {
  border-top: 1px solid var(--ink);
  padding: 18px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--quiet);
  font-size: 12px;
}

footer span {
  font: italic 18px var(--serif);
}

.notice {
  background: var(--sand);
  padding: 10px 15px;
}

.notice[hidden] {
  display: none;
}

@media(max-width:900px) {
  .shell {
    width: calc(100% - 56px);
  }
  .lead {
    gap: 28px;
  }
  .plate {
    padding: 20px;
  }
  .columns {
    gap: 16px;
  }
  .reader {
    grid-template-columns: 190px minmax(0,1fr);
  }
}

@media(max-width:700px) {
  .shell {
    width: calc(100% - 32px);
  }
  .mast {
    min-height: 62px;
  }
  .brand {
    font-size: 16px;
    gap: 7px;
  }
  .mark {
    width: 20px;
    height: 20px;
  }
  .mast nav {
    gap: 12px;
    font-size: 12px;
  }
  .repo-link {
    padding-left: 12px;
  }
  .lead {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 36px 0;
  }
  .intro-text {
    margin: 16px 0 19px;
  }
  .lead h1 {
    font-size: clamp(57px,11vw,78px);
  }
  .lead h1 em {
    display: inline;
  }
  .plate {
    padding: 19px 20px 16px;
  }
  .plate canvas {
    height: 145px;
  }
  .columns,.references {
    grid-template-columns: 1fr;
  }
  .budget {
    padding: 12px 14px;
  }
  .budget dl {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .budget dl div {
    flex-direction: column-reverse;
    align-items: start;
    gap: 0;
    margin: 0;
  }
  .reader {
    grid-template-columns: 1fr;
  }
  .filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px 12px;
    padding: 14px;
    border: 0;
    border-bottom: 1px solid var(--rule);
  }
  .filters label {
    margin: 0;
    min-width: 0;
  }
  .outcome {
    align-self: end;
    justify-self: start;
    padding: 5px 8px;
  }
  .evidence {
    padding: 14px;
  }
  .section {
    padding: 27px 0 30px;
  }
  .reference-body {
    margin-top: 18px;
  }
  .section-note {
    margin: 10px 0 17px;
  }
  td,th {
    padding: 7px 5px;
  }
  table {
    font-size: 12px;
  }
}

@media(max-width:380px) {
  .mast nav {
    gap: 8px;
  }
  .mast .repo-link {
    padding-left: 7px;
  }
  .brand {
    font-size: 14px;
  }
  .states {
    gap: 9px;
  }
  .lead-actions {
    gap: 11px;
  }
  .plate-key {
    letter-spacing: 0;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}

.mean {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 0 12px;
  margin: 0 0 10px;
  border-bottom: 1px solid #678172;
  color: #d5dfce;
  font-size: 11px;
}

.mean strong {
  font: 400 27px/1 var(--serif);
  color: #f4c5a3;
}

.audit-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 13px;
  color: var(--quiet);
  font-size: 12px;
}

.audit-filter select {
  min-height: 32px;
  padding: 2px 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
}

#start-id {
  font: 12px var(--mono);
  overflow-wrap: anywhere;
}

#selection {
  font-size: 11px;
  color: var(--quiet);
  margin: 8px 0 0;
}
