.swerve-demos {
  --demo-ink: #2c2924;
  --demo-muted: #67574d;
  --demo-accent: #974d2a;
  --demo-hand: "Swerve Caveat", "Segoe Print", cursive;
  box-sizing: content-box;
  max-width: 1136px;
  padding: 0 clamp(16px, 5vw, 66px) clamp(34px, 4.2vw, 52px);
  margin-inline: auto;
  color: var(--demo-ink);
  font: 650 21px/1.2 var(--demo-hand);
}

.swerve-demos *,
.swerve-demos *::before {
  box-sizing: border-box;
}

.swerve-demos h2 {
  margin: 0 0 clamp(15px, 2.4vw, 24px);
  font: 650 clamp(39px, 4.6vw, 58px)/1.02 var(--demo-hand);
  text-align: center;
}

.swerve-demos__section + .swerve-demos__section {
  margin-top: clamp(24px, 3.2vw, 38px);
}

.swerve-demos__examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

.swerve-demos__example {
  min-width: 0;
  padding: clamp(11px, 1.3vw, 16px);
  border: 1px solid #e5dbcc;
  border-radius: 17px;
  background: #fffdfa;
  box-shadow: 0 7px 20px rgb(73 53 30 / 7%);
}

.swerve-demos__example h3 {
  margin: 0 0 clamp(7px, 1.2vw, 13px);
  font: 650 clamp(21px, 2.4vw, 30px)/1.14 var(--demo-hand);
  text-align: center;
}

.swerve-demos__methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 6px;
  color: var(--demo-muted);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1;
  text-align: center;
}

.swerve-demos__methods strong {
  color: var(--demo-accent);
  font-weight: inherit;
}

.swerve-demos__example video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 968;
  border-radius: 9px;
  background: #292622;
}

.swerve-demos__trajectory {
  display: flex;
  justify-content: center;
  margin: 10px 0 2px;
  font-size: clamp(16px, 1.55vw, 20px);
  text-align: center;
}

.swerve-demos__section:last-child .swerve-demos__examples {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 446px), 1fr));
}

.swerve-demos__section:last-child .swerve-demos__actions {
  column-gap: 3px;
  font-size: clamp(15px, 1.45vw, 18px);
}

.swerve-demos__section:last-child .swerve-demos__actions li {
  gap: 3px;
}

.swerve-demos__section:last-child .swerve-demos__action {
  padding-inline: .3em;
}

.swerve-demos__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.swerve-demos__actions li {
  display: flex;
  align-items: center;
  gap: 5px;
}

.swerve-demos__actions li + li::before {
  color: #82746a;
  content: "→";
  font: 500 .67em/1 system-ui, sans-serif;
}

.swerve-demos__action {
  display: inline-block;
  padding: .13em .49em .2em;
  border-radius: .35em;
  color: #315867;
  background: #eaf1f2;
  line-height: 1;
  white-space: nowrap;
}

.swerve-demos__action[data-action="s"] {
  color: #604776;
  background: #f0eaf5;
}

.swerve-demos__action[data-action="j"],
.swerve-demos__action[data-action="l"] {
  color: #824522;
  background: #f7eadb;
}

.swerve-demos__action[data-action="a"],
.swerve-demos__action[data-action="d"] {
  color: #3a5e4f;
  background: #e8efe9;
}

.swerve-demos__action[data-action="noop"] {
  color: #62564d;
  background: #efeae3;
}

@media (max-width: 820px) {
  .swerve-demos__examples {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .swerve-demos__example {
    border-radius: 13px;
  }
}
