.section {
  padding: clamp(2rem, 1rem + 3vw, 3.25rem) 0 clamp(3rem, 1.5rem + 5vw, 5.5rem);
}

.section+.section {
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: .4rem 0 .75rem;
  max-width: 22ch;
}

.section__lede {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-size: var(--s1);
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-base) var(--ease),
    transform var(--dur-base) var(--ease);
}

.card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.card__title {
  margin: 0 0 .5rem;
  font-size: var(--s0);
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .card {
    transition: none;
  }

  .card:hover {
    transform: none;
  }
}

.note {
  margin-top: 2.5rem;
  max-width: var(--measure);
  padding: 1.25rem 1.5rem;
  background: var(--blue-tint);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.note__title {
  margin: 0 0 .35rem;
  font-size: var(--s0);
  font-weight: 600;
}

.note p {
  margin: 0;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
  margin: 0 0 3rem;
}

.table-scroll:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: var(--s-1);
}

.table th,
.table td {
  padding: .7rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.table thead th {
  font-weight: 600;
  color: var(--muted);
  border-bottom-width: 2px;
  white-space: nowrap;
}

.table__group {
  padding-top: 1.4rem;
  font-family: var(--mono);
  font-size: var(--s-1);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
}

.table td:nth-child(3) {
  color: var(--muted);
}

.table code {
  font-size: .95em;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1.1fr;
  }
}

.code {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--code-ink);
  border: 1px solid var(--code-line);
  border-radius: var(--r-md);
  font-size: var(--s-1);
  line-height: 1.6;
}

.stats {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.stat {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.stat__value {
  display: block;
  font-family: var(--mono);
  font-size: var(--s2);
  font-weight: 700;
  line-height: 1.1;
  color: var(--blue);
}

.stat__label {
  display: block;
  margin-top: .5rem;
  color: var(--muted);
  font-size: var(--s-1);
}

.copy {
  position: relative;
}

.copy__btn {
  position: absolute;
  top: 50%;
  right: .6rem;
  transform: translateY(-50%);
  padding: .35rem .7rem;
  background: var(--code-line);
  color: var(--code-ink);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: var(--s-1);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease);
}

.copy__btn:hover {
  background: var(--blue);
  color: var(--on-blue);
}

.copy__btn[data-copied] {
  background: var(--signal);
  color: var(--code-bg);
}

.copy__note {
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: var(--s-1);
}

.paper {
  max-width: var(--measure);
  margin: 0 0 2rem;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.paper__title {
  margin: 0 0 .5rem;
  font-size: var(--s1);
}

.paper__meta {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: var(--s-1);
}

.paper__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.team__support {
  margin-top: 2.5rem;
}

.team__sub {
  margin: 0 0 1.25rem;
  font-size: var(--s0);
  font-weight: 600;
  color: var(--muted);
}

@media (min-width: 700px) {
  .team__support .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tok-kw {
  color: var(--tok-kw);
}

.tok-str {
  color: var(--tok-str);
}

.tok-cls {
  color: var(--tok-cls);
}

.tok-fn {
  color: var(--tok-fn);
}

.steps {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 3rem;
  counter-reset: step;
}

.steps__group {
  display: grid;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--group-tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--group);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.steps__group--auto {
  --group: var(--blue);
  --group-tint: var(--blue-tint);
}

.steps__group--prop {
  --group: var(--signal);
  --group-tint: var(--prop-tint);
}

@media (min-width: 860px) {
  .steps__group {
    grid-template-columns: 13rem 1fr;
    align-items: start;
  }
}

.steps__title {
  margin: 0 0 .35rem;
  font-size: var(--s0);
  color: var(--group);
}

.steps__note {
  margin: 0;
  color: var(--muted);
  font-size: var(--s-1);
}

.steps__list {
  display: grid;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
}

.step {
  counter-increment: step;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: var(--s-1);
  font-weight: 700;
  color: var(--group);
}

.step__name {
  font-weight: 700;
  color: var(--ink);
}

.step__what {
  color: var(--muted);
  font-size: var(--s-1);
  line-height: 1.45;
}

.step__tool {
  margin-top: auto;
  padding-top: .35rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .72rem;
}
