:root {
  color-scheme: light;
  --paper: #f2eee4;
  --paper-raised: #fbf8f0;
  --paper-sunk: #e9e3d5;
  --ink: #17201a;
  --ink-soft: #38443b;
  --muted: #566057;
  --rule: #b8b1a1;
  --rule-strong: #8c8678;
  --rust: #96331c;
  --rust-soft: #f2dfd7;
  --green: #1d5a43;
  --green-soft: #dcebe2;
  --charcoal: #151b17;
  --charcoal-raised: #0d110e;
  --code: #e9e4d7;
  --focus: #b23a1a;
  --display: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--rust);
  color: var(--paper-raised);
}

a {
  color: var(--green);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(74rem, calc(100% - clamp(2rem, 8vw, 6rem)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -12rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--ink);
  color: var(--paper-raised);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.masthead {
  border-top: 6px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.masthead-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.1rem;
}

.wordmark {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark span {
  color: var(--rust);
  font-style: italic;
}

.masthead-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 0.75fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.1rem;
  color: var(--rust);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 13ch;
  margin: 0 0 1.35rem;
  font-family: var(--display);
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.97;
}

.hero h1 em {
  color: var(--rust);
  font-weight: 400;
}

.lede {
  max-width: 60ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.4vw, 1.13rem);
}

.hero-note {
  padding-block: 1.1rem;
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--rule-strong);
}

.stamp {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--rust);
  color: var(--rust);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-1.2deg);
}

.statement {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  line-height: 1.18;
}

.note-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.run-section,
.preview-section,
.results,
.diff-section {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}

.section-number {
  margin: 0.35rem 0 0;
  color: var(--rust);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.section-heading h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.section-heading p:not(.section-number) {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.run-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--ink);
  background: var(--paper-raised);
}

.run-button {
  flex: 0 0 auto;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-raised);
  box-shadow: 4px 4px 0 var(--rust);
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.run-button:hover:not(:disabled) {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 6px 6px 0 var(--rust);
  transform: translate(-1px, -1px);
}

.run-button:active:not(:disabled) {
  box-shadow: 1px 1px 0 var(--rust);
  transform: translate(3px, 3px);
}

.run-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.status {
  flex: 1 1 20rem;
  min-height: 2.6em;
  margin: 0;
  padding-left: 1rem;
  border-left: 3px solid var(--rule-strong);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.alert {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--rust);
  background: var(--rust-soft);
  color: #4f1b0e;
  font-weight: 600;
}

.page-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 1.25rem 0;
  padding: 0;
  border: 0;
}

.page-switcher legend {
  margin-right: 0.45rem;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-switcher label {
  position: relative;
}

.page-switcher input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.page-switcher span {
  display: inline-block;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.page-switcher input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-raised);
}

.page-switcher input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.preview-card {
  margin: 0;
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
}

.preview-card figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--rule);
}

.preview-tag {
  padding: 0.12rem 0.42rem;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-tag--before {
  background: var(--rust-soft);
  color: var(--rust);
}

.preview-tag--after {
  background: var(--green-soft);
  color: var(--green);
}

.preview-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.frame {
  position: relative;
  height: 430px;
  overflow: hidden;
  background: #ffffff;
}

.frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.frame--shot {
  height: auto;
}

.frame--shot img {
  display: block;
  width: 100%;
  height: auto;
}

.frame-empty {
  display: grid;
  height: 100%;
  margin: 0;
  padding: 2rem;
  place-content: center;
  background: var(--paper-sunk);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.preview-note {
  max-width: 70ch;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.run-meta {
  margin: 1rem 0 0;
  padding-bottom: 0.65rem;
  border-bottom: 1px dotted var(--rule-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  border: 1px solid var(--ink);
  background: var(--rule);
}

.metric {
  padding: 1rem;
  background: var(--paper-raised);
}

.metric-label {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-value {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.1;
}

.table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
}

.table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

table {
  width: 100%;
  min-width: 48rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}

caption {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

th,
td {
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

thead th {
  background: var(--paper-sunk);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody th {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.outcome {
  display: inline-block;
  padding: 0.16rem 0.45rem;
  border: 1px solid;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.outcome--good {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.outcome--bad {
  border-color: var(--rust);
  background: var(--rust-soft);
  color: #6b2412;
}

.outcome--neutral {
  border-color: var(--rule-strong);
  color: var(--muted);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: 2.25rem;
}

.result-block {
  padding-top: 0.9rem;
  border-top: 1px solid var(--ink);
}

.result-block h3 {
  margin: 0 0 0.7rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
}

.manual-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.manual-list li {
  padding: 0.6rem 0;
  border-bottom: 1px dotted var(--rule-strong);
  color: var(--ink-soft);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.manual-list li:last-child {
  border-bottom: 0;
}

.manual-list strong {
  font-family: var(--mono);
  font-size: 0.78rem;
}

.attempts details {
  border-bottom: 1px solid var(--rule);
}

.attempts details:last-child {
  border-bottom: 0;
}

.attempts summary {
  padding: 0.6rem 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.attempt-list {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.attempt-list li {
  margin-bottom: 0.75rem;
}

.attempt-headline {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
}

.attempt-meta,
.attempt-detail,
.attempt-empty {
  margin: 0.12rem 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.attempt-detail {
  color: #6b2412;
}

.attempt-empty {
  margin: 0 0 0.75rem;
  font-family: var(--body);
  font-size: 0.82rem;
}

.diff-shell {
  margin-top: 1rem;
  border: 1px solid var(--ink);
  background: var(--charcoal);
  color: var(--code);
}

.diff-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid #3b463d;
  background: var(--charcoal-raised);
  color: #b9c4ba;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diff-shell pre {
  max-height: 34rem;
  margin: 0;
  padding: 1rem;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.55;
  tab-size: 2;
  white-space: pre;
}

.diff-shell pre:focus-visible {
  outline: 3px solid #f3b562;
  outline-offset: -3px;
}

.limits {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.4fr);
  gap: 0.8rem clamp(1.5rem, 5vw, 4rem);
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: 1.25rem;
  border-top: 3px double var(--ink);
}

.limits h2 {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 400;
  line-height: 1.1;
}

.limits p,
.limits ul {
  grid-column: 2;
  margin: 0;
}

.limits p {
  max-width: 70ch;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.limits ul {
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.limits li {
  margin-bottom: 0.15rem;
}

code {
  padding: 0.08em 0.28em;
  background: var(--paper-sunk);
  font-family: var(--mono);
  font-size: 0.9em;
}

.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--ink);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 2rem;
  padding-block: 1.1rem 2.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.footer-inner p {
  margin: 0;
}

@media (max-width: 62rem) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
  }

  .hero h1 {
    max-width: 15ch;
  }

  .hero-note {
    max-width: 42rem;
    border-top-width: 1px;
    border-top-color: var(--rule-strong);
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .limits {
    grid-template-columns: minmax(0, 1fr);
  }

  .limits h2,
  .limits p,
  .limits ul {
    grid-column: 1;
    grid-row: auto;
  }

  .limits h2 {
    margin-bottom: 0.35rem;
  }

  .upload-form {
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 0.6fr);
  }

  .upload-form .run-button {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 46rem) {
  .preview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .frame {
    height: 380px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .run-bar {
    align-items: stretch;
  }

  .run-button {
    width: 100%;
  }

  .status {
    flex-basis: 100%;
    min-height: 0;
    padding: 0.75rem 0 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .upload-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .upload-form .run-button {
    grid-column: 1;
    width: 100%;
  }

  .live-tab {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (max-width: 30rem) {
  .metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .frame {
    height: 340px;
  }

  .masthead-note {
    display: none;
  }
}

.recorded-note {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--rust);
  border-left-width: 4px;
  background: var(--rust-soft);
  color: #4f1b0e;
  font-size: 0.88rem;
}

.recorded-note p {
  max-width: 82ch;
  margin: 0;
}

.recorded-note a {
  color: inherit;
  font-weight: 700;
}

.edits-section,
.reproduce-section {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.edit-grid,
.reproduce-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 1.25rem;
}

.edit-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
}

.edit-card h3,
.reproduce-grid h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 400;
}

.edit-list {
  margin: 0;
  padding-left: 1.25rem;
}

.edit-list li {
  margin-bottom: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.edit-list li:last-child {
  margin-bottom: 0;
}

.rule-tag {
  display: inline-block;
  margin-right: 0.4rem;
  padding: 0.1rem 0.38rem;
  border: 1px solid var(--green);
  background: var(--green-soft);
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.artifact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.artifact-list li {
  padding: 0.65rem 0;
  border-bottom: 1px dotted var(--rule-strong);
  font-size: 0.86rem;
}

.artifact-list li:last-child {
  border-bottom: 0;
}

.artifact-list a {
  display: inline-block;
  margin-right: 0.35rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.artifact-list span {
  display: block;
  margin-top: 0.1rem;
  color: var(--muted);
}

.reproduce-grid p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.command-block {
  margin: 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--ink);
  background: var(--charcoal);
  color: var(--code);
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.6;
  white-space: pre;
}

.command-block code {
  padding: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
}

@media (max-width: 62rem) {
  .edit-grid,
  .reproduce-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Live repair runner */

.live-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  border-bottom: 2px solid var(--ink);
}

.live-tab {
  padding: 0.65rem 1.05rem;
  border: 1px solid var(--rule-strong);
  border-bottom: 0;
  background: var(--paper-sunk);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.live-tab + .live-tab {
  border-left: 0;
}

.live-tab:hover:not([aria-selected="true"]) {
  background: var(--paper-raised);
  color: var(--ink);
}

.live-tab[aria-selected="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper-raised);
}

.live-panel {
  padding-top: 1.25rem;
}

.live-lede {
  max-width: 72ch;
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(11rem, 0.6fr) auto;
  align-items: end;
  gap: 1rem 1.25rem;
  padding: 1rem;
  border: 1px solid var(--ink);
  background: var(--paper-raised);
}

.upload-field,
.run-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.run-bar .run-field {
  flex: 0 1 12rem;
}

.upload-field label,
.run-field label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.upload-field input[type="file"],
.upload-field select,
.run-field select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper-raised);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
}

.upload-field input[type="file"] {
  padding: 0.4rem;
  background: var(--paper);
}

.upload-field select,
.run-field select {
  cursor: pointer;
}

.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.upload-form .status {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--rule);
  border-left: 0;
}

.upload-form .run-button {
  align-self: end;
}

.demo-run {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink);
}

.demo-run > h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
}

.benchmark-block {
  margin-bottom: 2rem;
  padding: 1.1rem 1.15rem 1.25rem;
  border: 1px solid var(--rule-strong);
  background: var(--paper-sunk);
}

.benchmark-block .eyebrow {
  margin-bottom: 0.6rem;
}

.compare-copy h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
}

.compare-copy p:not(.eyebrow) {
  max-width: 78ch;
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.benchmark-block .table-wrap {
  background: var(--paper-raised);
}

.compare-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-top: 1rem;
}

.compare-actions .preview-note {
  flex: 1 1 20rem;
  margin: 0;
}

.download-button {
  display: inline-block;
  padding: 0.62rem 0.95rem;
  border: 1px solid var(--ink);
  background: var(--paper-raised);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--rule-strong);
  font-family: var(--body);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.download-button:hover {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--green);
  transform: translate(-1px, -1px);
}

.download-button:active {
  box-shadow: 1px 1px 0 var(--green);
  transform: translate(2px, 2px);
}

.download-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

#live-results {
  margin-top: 1.5rem;
}

.run-actions {
  margin-top: 2rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ink);
}

.run-actions h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
}

.scan-frame {
  position: fixed;
  top: 0;
  left: -12000px;
  width: 1280px;
  height: 900px;
  border: 0;
}

.live-detail-grid,
.live-edits,
.live-preview {
  margin-top: 2rem;
}

.live-edits,
.live-preview {
  padding-top: 0.9rem;
  border-top: 1px solid var(--ink);
}

.live-edits h3,
.live-preview h3 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
}

.live-preview-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.live-preview-bar .page-switcher {
  margin: 0;
}

.download-link {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.frame--live {
  height: 430px;
  border: 1px solid var(--rule-strong);
}

.edit-list--detail {
  padding-left: 0;
  list-style: none;
}

.edit-list--detail > li {
  padding-top: 0.8rem;
  border-top: 1px dotted var(--rule-strong);
}

.edit-list--detail > li:first-child {
  padding-top: 0;
  border-top: 0;
}

.edit-pair {
  margin-top: 0.45rem;
}

.edit-label {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.edit-code {
  margin: 0.15rem 0 0.5rem;
  padding: 0.5rem 0.6rem;
  overflow-x: auto;
  background: var(--code);
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.live-cost {
  margin-top: 1rem;
}

@media (max-width: 62rem) {
  .live-edits .edit-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
