/* Article content and media retain the original structure. */
.column { width: min(660px, 100%); margin: 0 auto; }
.blog-index { margin: 0 0 70px; }
.blog-index h1 { font-size: 34px; line-height: 1.25; font-weight: 400; letter-spacing: -.55px; margin-bottom: 12px; }
.blog-index .lede { margin-bottom: 45px; font-size: 18px; color: var(--muted); }
.post-navigation { margin-top: 52px; margin-bottom: 28px; font-size: 16px; color: var(--muted); }

.post-header {
  margin-bottom: 56px;
}
.post-header h1 {
  font-size: 40px;
  line-height: 1.16;
  font-weight: 400;
  letter-spacing: -1.15px;
  margin: 0 0 24px;
  text-wrap: balance;
}
.post-header .dek {
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -0.2px;
  color: var(--ink);
  text-wrap: pretty;
}
.byline {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.prose {
  font-size: 20px;
  line-height: 1.65;
  color: var(--ink);
}
.prose p {
  margin: 0 0 28px;
  text-wrap: pretty;
}
.prose h2 {
  font-size: 30px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 58px 0 19px;
  scroll-margin-top: 24px;
}
.prose h3 {
  font-size: 23px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.2px;
  margin: 36px 0 13px;
  scroll-margin-top: 24px;
}
.prose a {
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(#777, #777);
  background-size: 0% 1px, 100% 1px;
}
.prose a:hover, .prose a:focus-visible {
  background-size: 100% 1px, 100% 1px;
}

/* A heading sets its own space below; nothing stacks extra space on top. */
.prose h2 + h3,
.prose h2 + .table-wrap,
.prose h3 + .table-wrap {
  margin-top: 0;
}

/* Figures and video break out of the text column. */
.prose figure {
  margin: 2.4em 0;
}
.prose figure.wide {
  width: min(760px, calc(100vw - 128px));
  margin-left: 50%;
  transform: translateX(-50%);
}
.prose figure picture,
.prose figure img,
.prose figure video {
  display: block;
  width: 100%;
  height: auto;
}
.prose figure video {
  aspect-ratio: 16 / 9;
  background: transparent;
  border-radius: 4px;
}
.prose figure video.race {
  aspect-ratio: 1920 / 800;
  background: none;
  border-radius: 0;
  cursor: pointer;
}
.prose figure video.race.narrow {
  aspect-ratio: 1080 / 1640;
}
.prose figure video.race:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
.prose figcaption {
  width: min(660px, 100%);
  margin: 14px auto 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}
.prose figcaption strong {
  font-weight: 600;
  color: var(--ink);
}

.clips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.clips .clip:first-child {
  grid-column: 1 / -1;
}
.clip span {
  display: block;
  margin-top: 8px;
  font-size: 16px;
  color: var(--muted);
}

/* Tables. */
.table-wrap {
  margin: 1.6em 0 1.4em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}
.prose th,
.prose td {
  padding: 10px 14px 10px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.prose th:last-child,
.prose td:last-child {
  padding-right: 0;
}
.prose thead th {
  font-weight: 500;
  font-size: 15px;
  color: #3f3f3f;
  border-bottom-color: var(--rule);
  white-space: nowrap;
}
.prose td.num,
.prose th.num {
  text-align: right;
  white-space: nowrap;
}
.prose table.nowrap td {
  white-space: nowrap;
}
.prose tr.ours td {
  font-weight: 600;
}
.prose table.spec th {
  width: 120px;
  font-weight: 500;
  color: #3f3f3f;
}
.prose table.spec tr:first-child th,
.prose table.spec tr:first-child td {
  border-top: 1px solid var(--rule);
}

/* Citation. */
.citation {
  font-size: 20px;
  line-height: 1.65;
  margin: 0 0 1.25em;
  padding-left: 16px;
  border-left: 2px solid var(--ink);
}
.code {
  position: relative;
  margin: 0 0 1.25em;
}
.code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  white-space: pre;
  background: #e8e8e8;
  border-radius: 4px;
  font: 15px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
}
.copy {
  position: absolute;
  top: 10px;
  right: 10px;
  appearance: none;
  border: 1px solid #b9b9b9;
  border-radius: 4px;
  background: var(--paper);
  padding: 4px 10px;
  font: 14px Arial, Helvetica, sans-serif;
  color: #333;
  cursor: pointer;
}
.copy:hover {
  color: #000;
  border-color: #777;
}
.copy:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

article.post {
  margin-bottom: 60px;
}

/* Set table colors explicitly, including confidence intervals. */
.prose table, .prose thead, .prose tbody, .prose tfoot, .prose tr, .prose th, .prose td {
  background: var(--paper);
  color: var(--ink);
}
.prose thead th, .prose table.spec th { color: #3f3f3f; }
.prose .ci { color: #454545; }
.code pre code { font: inherit; color: inherit; }

@media (max-width: 900px) {
  .prose figure.wide { width: 100%; margin-left: 0; transform: none; }
}
@media (max-width: 600px) {
  .post-header h1 { font-size: 36px; }
  .post-header .dek { font-size: 19px; }
  .post-header { margin-bottom: 42px; }
  .clips { grid-template-columns: 1fr; }
  .prose table { font-size: 15px; }
  .prose thead th { font-size: 14px; }
  .prose thead th, .prose th.num { white-space: normal; }
  .prose table.nowrap td:first-child { white-space: normal; }
  .prose td, .prose th { padding-right: 8px; }
  .prose .ci { display: block; font-size: 13px; font-weight: 400; }
  .code pre { padding: 52px 16px 18px; }
}
@media (pointer: coarse) {
  .copy { min-height: 44px; }
  .code pre { padding-top: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .prose a { transition: none; }
}
