:root {
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --line: #d9d9d9;
  --link: #0645ad;
  --green: #1a7f37;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  /* The comment imitates how the PR page renders it. */
  --gh-text: #1f2328;
  --gh-muted: #59636e;
  --gh-line: #d1d9e0;
  --gh-head: #f6f8fa;
  --gh-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 15px / 1.65 var(--mono);
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

a {
  color: var(--link);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}

h1 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

h1::before {
  content: "●";
  color: #cf222e;
  margin-right: 8px;
}

h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 44px 0 10px;
}

p {
  margin: 0 0 14px;
}

ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

code {
  font-family: var(--mono);
  font-size: 14px;
}

pre {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: #f5f5f5;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}

.dim {
  color: var(--muted);
}

/* The setup prompt: prose, so it wraps, with a copy button in its corner. */
.prompt {
  position: relative;
}

.prompt pre {
  white-space: pre-wrap;
  padding-right: 84px;
}

.prompt .nowrap {
  white-space: nowrap;
}

.copy {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: 13px / 1.5 var(--mono);
  cursor: pointer;
}

.copy:hover {
  border-color: var(--muted);
}

/* The pull request comment */
.comment {
  margin: 28px 0 0;
  border: 1px solid var(--gh-line);
  border-radius: 6px;
  font: 14px / 1.5 var(--gh-sans);
  color: var(--gh-text);
  overflow: hidden;
}

.comment-head {
  background: var(--gh-head);
  border-bottom: 1px solid var(--gh-line);
  padding: 8px 16px;
  color: var(--gh-muted);
}

.comment-head b {
  color: var(--gh-text);
}

.comment-body {
  padding: 16px;
}

.comment h2 {
  font-size: 1.25em;
  font-weight: 600;
  margin: 0 0 12px;
}

.comment p {
  margin: 0 0 12px;
}

.comment video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  margin: 4px 0 16px;
  background: #000;
  border-radius: 6px;
}

.checklist {
  margin: 0;
  padding-left: 2em;
}

.checklist li {
  margin: 4px 0;
  color: var(--gh-muted);
  transition: color 0.3s;
}

.checklist li::marker {
  content: "○  ";
  color: var(--gh-muted);
}

.checklist li.done {
  color: var(--gh-text);
}

.checklist li.done::marker {
  content: "✓  ";
  color: var(--green);
}

.checklist .step {
  color: var(--gh-muted);
}
