.benchmark {
  --ink: #202821;
  --muted: #515c52;
  --paper: #f8f6ee;
  --green: #204c3e;
  --rule: #c9c9bb;
  --red: #993d29;
}
.benchmark :is(header, main, footer) {
  width: min(1220px, 100%);
}
.masthead {
  min-height: 76px;
  justify-content: space-between;
}
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.7rem, 3vw, 2rem);
  margin: 0;
}
.masthead nav a,
.wordmark {
  text-decoration: none;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  white-space: nowrap;
  font-size: 1.2rem;
  letter-spacing: -0.045em;
}
.mark {
  width: 26px;
  height: 26px;
  border: 2px solid var(--green);
  border-radius: 2px;
  background:
    linear-gradient(var(--green), var(--green)) left center/56% 2px no-repeat,
    linear-gradient(var(--green), var(--green)) center bottom/2px 58% no-repeat;
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(1.6rem, 3vw, 2.8rem);
}
.intro h1 {
  font-size: clamp(2.65rem, 6.8vw, 5.15rem);
  max-width: 11.1ch;
  margin: 0;
}
.intro .lede {
  font-size: clamp(1rem, 1.9vw, 1.22rem);
  max-width: 37rem;
  margin: 1rem 0 1.5rem;
}
.intro figure {
  margin: 0;
}
.intro figure a {
  display: block;
}
.intro img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--rule);
}
.intro figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.45rem;
}
.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.benchmark .action,
.benchmark .share {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--green);
  border-radius: 2px;
  line-height: 1.35;
}
.benchmark .share {
  background: transparent;
  color: var(--green);
}
.benchmark .share:hover {
  background: #e4ebdf;
  color: var(--ink);
}
#share-status {
  font-size: 0.875rem;
}
.board-section {
  padding-block: clamp(1.55rem, 3vw, 2.55rem);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 0.8rem;
}
.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.15rem;
}
.section-heading h2,
.section-heading p {
  margin: 0;
}
.section-heading p,
.board-note {
  color: var(--muted);
}
.board-table {
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fffdf6;
}
.board-table table {
  margin: 0;
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.board-table :is(th, td) {
  padding: 0.75rem clamp(0.6rem, 2.2vw, 1.5rem);
  text-align: left;
}
.board-table thead th {
  background: #e6ebdf;
  color: var(--green);
  font-size: 0.875rem;
}
.board-table tbody th {
  white-space: nowrap;
}
.board-table tbody tr:last-child > * {
  border-bottom: 0;
}
.score-value {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.denominator {
  font-size: 0.875rem;
  color: var(--muted);
}
.board-table meter {
  display: block;
  width: min(11rem, 100%);
  height: 0.75rem;
  margin-top: 0.15rem;
  accent-color: var(--green);
}
.board-table meter::-webkit-meter-optimum-value {
  background: var(--green);
}
.board-table meter::-moz-meter-bar {
  background: var(--green);
}
.cost {
  font-weight: 700;
}
.board-note {
  font-size: 0.91rem;
  margin: 0.65rem 0 0;
}
.leaderboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
  gap: clamp(1rem, 2.6vw, 2rem);
  align-items: start;
}
.score-card-download {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--green);
  font-weight: 700;
}
.failure-example {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--red);
  border-radius: 4px;
  padding: clamp(0.9rem, 2vw, 1.35rem);
  background: #fffdf6;
}
.failure-example h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}
.failure-example p {
  margin: 0.65rem 0;
}
.failure-metric strong {
  font-size: 1.5rem;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.failure-example a {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
}
@media (max-width: 850px) {
  .leaderboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.task {
  padding: 1.15rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fffdf6;
}
.task h3,
.scoring-grid h3,
.ledger-task h3 {
  font-size: 1.3rem;
  margin: 0;
}
.task p {
  margin: 0.45rem 0 0.7rem;
}
.task-score {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  color: var(--green);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.task details {
  border-top: 1px solid var(--rule);
  margin-top: 0.85rem;
  padding-top: 0.6rem;
}
.benchmark summary {
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green);
}
.files {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.8rem;
  align-items: baseline;
  font-size: 0.875rem;
}
ul.files {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}
.ledger {
  border-top: 1px solid var(--rule);
}
.ledger:last-child {
  border-bottom: 1px solid var(--rule);
}
.ledger summary {
  padding: 0.8rem 0;
}
.ledger summary span {
  color: var(--muted);
  font-weight: 400;
  display: inline-block;
  margin-left: 0.6rem;
}
.ledger-task {
  padding: 0.8rem;
  margin-bottom: 0.6rem;
  background: #fffdf6;
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.ledger-task ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.ledger-task li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  margin-top: 0.65rem;
}
.status {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.06rem 0.32rem;
  border-radius: 2px;
}
.status.pass {
  background: #e3eddf;
  color: var(--green);
}
.status.fail {
  background: #f5e4dc;
  color: #802d20;
}
.scoring-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 4vw, 4rem);
}
.archive-list {
  padding-left: 1.25rem;
  margin-top: 0.2rem;
}
.archive-list li {
  margin-bottom: 0.55rem;
}
@media (max-width: 720px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
  }
  .intro figure {
    display: none;
  }
  .task-grid,
  .scoring-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 400px) {
  .masthead {
    gap: 0.5rem;
  }
  .board-table :is(th, td) {
    padding-inline: 0.43rem;
  }
  .board-table th {
    font-size: 0.8rem;
  }
  .board-table tbody th {
    white-space: normal;
  }
}
