.pm-prototype-guide .prototype-top {
  padding: .25rem 0 2.5rem;
  border-bottom: 1px solid var(--divider);
}

.pm-prototype-guide .article-kicker {
  margin-top: 2rem;
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--meta);
}

.pm-prototype-guide .article-title {
  max-width: 18ch;
  font-size: clamp(2.25rem, 5.8vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.pm-prototype-guide .prototype-deck {
  max-width: 62ch;
  margin: 1.25rem 0 0;
  color: var(--reading-color);
  font: 1.25rem/1.65 var(--baskervville);
}

.prototype-post {
  padding-top: 2.5rem;
}

.prototype-post > p,
.prototype-post section > p,
.prototype-post li {
  max-width: 65ch;
  color: var(--reading-color);
  font: 1.1875rem/1.7 var(--baskervville);
}

.prototype-post > p,
.prototype-post section > p {
  margin: 1rem 0 1.25rem;
}

.prototype-post section {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  scroll-margin-top: 1.5rem;
}

.prototype-post h2 {
  max-width: 28ch;
  margin: .5rem 0 1rem;
  color: var(--ink);
  font: 700 clamp(1.55rem, 3.4vw, 2rem)/1.16 var(--sans);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.prototype-step {
  margin: 0 !important;
  color: var(--meta) !important;
  font: 600 .8125rem/1.4 var(--sans) !important;
  letter-spacing: .025em;
}

.prototype-note {
  margin-top: .9rem !important;
  color: var(--muted) !important;
  font: 500 .875rem/1.6 var(--sans) !important;
}

.prototype-figure {
  margin: 1.75rem 0 2rem;
}

.prototype-figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--surface-border);
  border-radius: 12px;
  background: var(--surface);
}

.prototype-figure figcaption {
  margin: .65rem auto 0;
  max-width: 68ch;
  color: var(--muted);
  font: .875rem/1.5 var(--sans);
}

.prototype-table-wrap {
  margin: 1.5rem 0 1rem;
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--divider);
  scrollbar-color: var(--muted) transparent;
}

.prototype-shift-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.prototype-shift-table th,
.prototype-shift-table td {
  padding: .8rem .75rem;
  border-bottom: 1px solid var(--divider);
  text-align: left;
  vertical-align: baseline;
}

.prototype-shift-table thead th {
  color: var(--text-2);
  font: 600 .8125rem/1.4 var(--sans);
}

.prototype-shift-table tr > :first-child {
  width: 21%;
  padding-left: 0;
}

.prototype-shift-table tbody th[scope="row"] {
  color: var(--ink);
  font: 600 .8125rem/1.5 var(--sans);
}

.prototype-shift-table td {
  color: var(--reading-color);
  font: 1rem/1.55 var(--baskervville);
  font-variant-numeric: lining-nums;
}

.prototype-shift-table tbody tr:last-child > * {
  border-bottom: 0;
}

.prototype-prompt {
  margin: 1.5rem 0 2.25rem;
  overflow: hidden;
  border: 1px solid #292929;
  border-radius: 14px;
  background: #0b0b0b;
  color: #f3f3f3;
}

.prototype-prompt figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  padding: .55rem .75rem .55rem 1rem;
  border-bottom: 1px solid #292929;
  color: #c6c6c6;
  font: 500 .8125rem/1.4 var(--sans);
}

.prototype-prompt pre {
  margin: 0;
  padding: 1.2rem;
  overflow-x: auto;
  color: #f5f5f5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.prototype-prompt pre code {
  color: #f5f5f5;
  font: .875rem/1.75 var(--mono);
  -webkit-text-fill-color: #f5f5f5;
}

.prototype-close {
  margin-top: 2.5rem !important;
  font-style: italic !important;
}

.prototype-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
}

.prototype-end p {
  max-width: 55ch;
  margin: 0;
  color: var(--reading-color);
  font: 1.0625rem/1.65 var(--baskervville);
}

@media (max-width: 700px) {
  .pm-prototype-guide .article-title {
    max-width: 15ch;
  }

  .pm-prototype-guide .prototype-deck {
    font-size: 1.125rem;
  }

  .prototype-post section {
    margin-top: 3.25rem;
  }

  .prototype-figure {
    margin: 1.4rem 0 1.6rem;
  }

  .prototype-figure img {
    border-radius: 9px;
  }

  .prototype-table-wrap {
    overflow: visible;
    border-top: 0;
  }

  .prototype-shift-table,
  .prototype-shift-table tbody {
    display: block;
  }

  .prototype-shift-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .prototype-shift-table tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    margin: .75rem 0;
    padding: .85rem 1rem;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    background: var(--surface);
  }

  .prototype-shift-table tr > :first-child {
    width: auto;
    padding: 0 0 .55rem;
  }

  .prototype-shift-table tbody th[scope="row"] {
    border: 0;
    font-size: .875rem;
  }

  .prototype-shift-table td {
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr);
    gap: .6rem;
    padding: .5rem 0;
    border: 0;
    font-size: 1rem;
  }

  .prototype-shift-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font: 600 .72rem/1.6 var(--sans);
  }

  .prototype-end {
    align-items: flex-start;
    flex-direction: column;
  }

  .prototype-prompt pre {
    padding: 1rem;
  }
}
