:root {
  --bg: #111214;
  --panel: #17191c;
  --raise: #1d2024;
  --line: #2a2e33;
  --text: #cfd2d6;
  --strong: #f1f2f3;
  --muted: #868c94;
  --accent: #8fc86a;
  --accent-soft: rgba(143, 200, 106, .13);
  --warn: #e2b25c;
  --code-bg: #0c0d0f;
  --code-text: #d6d9dd;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #fbfbfa;
  --panel: #f3f3f1;
  --raise: #ffffff;
  --line: #e0e0dc;
  --text: #34373b;
  --strong: #121315;
  --muted: #6b7077;
  --accent: #3f7d1f;
  --accent-soft: rgba(63, 125, 31, .1);
  --warn: #9a6a12;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

@view-transition {
  navigation: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

h1, h2, h3, h4 {
  color: var(--strong);
  line-height: 1.25;
  letter-spacing: -.01em;
}

h1 {
  font-size: 30px;
  margin: 0 0 10px;
}

h2 {
  font-size: 20px;
  margin: 44px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

h3 {
  font-size: 16px;
  margin: 28px 0 8px;
}

h2 a.anchor,
h3 a.anchor {
  margin-left: 8px;
  color: var(--muted);
  opacity: 0;
  transition: opacity .15s;
}

h2:hover a.anchor,
h3:hover a.anchor {
  opacity: 1;
}

p {
  margin: 0 0 14px;
}

.lead {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 26px;
}

code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--strong);
  white-space: pre-wrap;
  word-break: break-word;
}

kbd {
  font-family: var(--mono);
  font-size: 12px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 6px;
  background: var(--raise);
  color: var(--strong);
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--strong);
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand:hover {
  text-decoration: none;
}

.mark {
  width: 18px;
  height: 18px;
  position: relative;
}

.mark i {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent);
  transition: transform .35s var(--ease);
}

.mark i:nth-child(1) { top: 0; left: 0; }
.mark i:nth-child(2) { top: 0; right: 0; opacity: .55; }
.mark i:nth-child(3) { bottom: 0; left: 0; opacity: .55; }
.mark i:nth-child(4) { bottom: 0; right: 0; opacity: .3; }

.brand:hover .mark i:nth-child(1) { transform: translate(-2px, -2px); }
.brand:hover .mark i:nth-child(2) { transform: translate(2px, -2px); }
.brand:hover .mark i:nth-child(3) { transform: translate(-2px, 2px); }
.brand:hover .mark i:nth-child(4) { transform: translate(2px, 2px); }

.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}

.nav a {
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 14px;
  transition: color .15s, background .15s;
}

.nav a:hover {
  color: var(--strong);
  background: var(--panel);
  text-decoration: none;
}

.nav a.on {
  color: var(--strong);
  background: var(--raise);
}

.btn,
button.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 14px;
  color: var(--strong);
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color .15s, transform .12s var(--ease), background .15s;
}

.btn:hover {
  border-color: var(--muted);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn.main {
  background: var(--accent);
  border-color: var(--accent);
  color: #0f1a09;
  font-weight: 600;
}

:root[data-theme="light"] .btn.main {
  color: #fff;
}

.btn.small {
  font-size: 12px;
  padding: 3px 9px;
}

.searchbtn {
  color: var(--muted);
  min-width: 180px;
  justify-content: space-between;
}

.iconbtn {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
}

.top .menubtn {
  display: none;
}

.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr) 210px;
  gap: 36px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 20px;
}

.side {
  position: sticky;
  top: 54px;
  height: calc(100vh - 54px);
  overflow-y: auto;
  padding: 22px 0 40px;
  border-right: 1px solid var(--line);
}

.side h4 {
  margin: 18px 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
}

.side h4:first-child {
  margin-top: 0;
}

.side a {
  display: block;
  color: var(--text);
  font-size: 14px;
  padding: 3px 12px 3px 10px;
  border-left: 2px solid transparent;
  transition: border-color .2s, color .2s, padding .2s var(--ease);
}

.side a:hover {
  color: var(--strong);
  padding-left: 13px;
  text-decoration: none;
}

.side a.on {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
}

.page {
  padding: 30px 0 80px;
  animation: enter .38s var(--ease) both;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.toc {
  position: sticky;
  top: 54px;
  align-self: start;
  max-height: calc(100vh - 54px);
  overflow-y: auto;
  padding: 34px 0;
  font-size: 13px;
}

.toc strong {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .09em;
  margin-bottom: 8px;
}

.toc .track {
  position: relative;
  border-left: 1px solid var(--line);
}

.toc .glide {
  position: absolute;
  left: -1px;
  width: 2px;
  background: var(--accent);
  top: 0;
  height: 0;
  transition: top .28s var(--ease), height .28s var(--ease);
}

.toc a {
  display: block;
  color: var(--muted);
  padding: 3px 0 3px 12px;
  transition: color .2s;
}

.toc a.sub {
  padding-left: 24px;
}

.toc a.on,
.toc a:hover {
  color: var(--strong);
  text-decoration: none;
}

.wide {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 80px;
  animation: enter .38s var(--ease) both;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px;
  font-size: 14px;
}

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

th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.scroll {
  overflow-x: auto;
}

.code {
  margin: 10px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--code-bg);
}

.code .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px 5px 12px;
  border-bottom: 1px solid #22252a;
  color: #80868e;
  font: 12px var(--mono);
}

.code .bar span {
  margin-right: auto;
}

.code .bar button,
.code .bar a {
  font: 12px system-ui, sans-serif;
  color: #b9bec5;
  background: transparent;
  border: 1px solid #2b2f35;
  border-radius: 5px;
  padding: 2px 9px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.code .bar button:hover,
.code .bar a:hover {
  border-color: #6a717a;
  color: #fff;
  text-decoration: none;
}

.code .bar button.done {
  color: var(--accent);
  border-color: var(--accent);
}

pre {
  margin: 0;
  padding: 12px 14px;
  overflow-x: auto;
  font: 13px/1.7 var(--mono);
  color: var(--code-text);
  tab-size: 4;
}

pre.plain {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0 18px;
}

.t-sec { color: #e2b25c; }
.t-theme { color: #c595e0; }
.t-brace { color: #7fb7e6; }
.t-var { color: #a8d8ff; }
.t-str { color: #b8dc9a; }
.t-kw { color: #e98f8f; }
.t-com { color: #66707b; }
.t-col { border-bottom: 1px solid currentColor; }

figure {
  margin: 12px 0 22px;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  image-rendering: auto;
  cursor: zoom-in;
  transition: transform .25s var(--ease), border-color .2s;
}

figure img:hover {
  border-color: var(--muted);
}

figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  align-items: start;
}

.pair .code,
.pair figure {
  margin: 0 0 18px;
}

.note {
  border-left: 3px solid var(--accent);
  background: var(--panel);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin: 14px 0 20px;
}

.note.warn {
  border-left-color: var(--warn);
}

.note p:last-child {
  margin: 0;
}

.next {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 54px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.next a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--strong);
  min-width: min(180px, 46%);
  transition: border-color .15s, transform .2s var(--ease);
}

.next a small {
  display: block;
  color: var(--muted);
}

.next a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.next a.fwd {
  margin-left: auto;
  text-align: right;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: center;
  padding: 30px 0 46px;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 14px;
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 460px;
}

.hero .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.demo {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}

.demo .tabs {
  display: flex;
  gap: 2px;
  padding: 6px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.demo .tabs button {
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 4px 11px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, background .15s;
}

.demo .tabs button.on {
  color: var(--strong);
  background: var(--raise);
}

.demo .shot {
  position: relative;
  aspect-ratio: 1920 / 1061;
  background: #000;
  overflow: hidden;
}

.demo .shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
  cursor: zoom-in;
}

.demo .shot img.on {
  opacity: 1;
  transform: none;
}

.demo pre {
  max-height: 190px;
  overflow: auto;
  background: var(--code-bg);
  border-top: 1px solid var(--line);
  transition: opacity .2s;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0 30px;
}

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  padding: 0;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--muted);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  text-decoration: none;
}

.card .thumb {
  aspect-ratio: 16 / 9;
  background: #0b0c0d;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card .thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform .45s var(--ease);
}

.card:hover .thumb img {
  transform: scale(1.04);
}

.card .body {
  padding: 11px 14px 13px;
}

.card h3 {
  margin: 0 0 3px;
  font-size: 15px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
}

.chip {
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 12px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}

.chip:hover {
  color: var(--strong);
}

.chip.on {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .2s, box-shadow .25s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal.in:hover {
  transform: translateY(-3px);
}

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 28px;
}

.cols a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--strong);
  transition: padding .2s var(--ease), border-color .2s;
}

.cols a span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.cols a:hover {
  padding-left: 6px;
  border-color: var(--accent);
  text-decoration: none;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 22px 20px 30px;
  text-align: center;
}

.filter {
  position: sticky;
  top: 54px;
  z-index: 5;
  background: var(--bg);
  padding: 10px 0;
}

input[type="search"],
input[type="text"],
input[type="number"],
select,
textarea {
  font: inherit;
  color: var(--strong);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 11px;
  outline: none;
  transition: border-color .15s, box-shadow .2s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.filter input {
  width: 100%;
  margin-bottom: 8px;
}

.vars td:first-child {
  width: 46%;
}

.vars .name {
  font: 13px var(--mono);
  color: var(--strong);
  background: none;
  border: 0;
  padding: 0;
  cursor: copy;
  text-align: left;
  word-break: break-word;
}

.vars .name:hover {
  color: var(--accent);
}

.vars .alias {
  display: block;
  font: 12px var(--mono);
  color: var(--muted);
  word-break: break-word;
}

.type {
  display: inline-block;
  font: 11px var(--mono);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 6px;
  white-space: nowrap;
}

#mod-files {
  min-height: 150px;
  margin-bottom: 18px;
}

.get {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 8px 0 14px;
  animation: settle .3s var(--ease);
}

.get strong {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--strong);
  overflow-wrap: anywhere;
}

.get p {
  width: 100%;
  margin: 0;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.count {
  color: var(--muted);
  font-size: 13px;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: rgba(5, 6, 7, .72);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.overlay .sheet {
  transform: translateY(-8px) scale(.985);
  transition: transform .28s var(--ease);
}

.overlay.open .sheet {
  transform: none;
}

.search .sheet {
  width: min(640px, calc(100vw - 28px));
  margin-top: 11vh;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .5);
}

.search input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 16px;
  font-size: 16px;
  background: transparent;
}

.search input:focus {
  box-shadow: none;
}

.search ul {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 55vh;
  overflow-y: auto;
}

.search li a {
  display: block;
  padding: 7px 12px;
  border-radius: 7px;
  color: var(--strong);
}

.search li a small {
  display: block;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search li.on a {
  background: var(--accent-soft);
  text-decoration: none;
}

.search .empty {
  padding: 18px;
  color: var(--muted);
}

.zoom {
  align-items: center;
}

.zoom img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 8px;
  cursor: zoom-out;
}

.modal .sheet {
  width: min(900px, calc(100vw - 24px));
  max-height: 90vh;
  margin-top: 5vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
}

.modal .head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.modal .head h2 {
  border: 0;
  margin: 0;
  padding: 0;
  margin-right: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  transform: translate(-50%, 14px);
  opacity: 0;
  background: var(--raise);
  color: var(--strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  pointer-events: none;
  transition: opacity .2s, transform .3s var(--ease);
}

.toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}

.play {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px;
  align-items: start;
}

.play textarea {
  width: 100%;
  height: 430px;
  resize: vertical;
  font: 13px/1.6 var(--mono);
  background: var(--code-bg);
  color: var(--code-text);
  white-space: pre;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #223 url("/images/playground-bg.webp") center / cover;
}

.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.report {
  font: 12px/1.6 var(--mono);
  color: var(--warn);
  white-space: pre-wrap;
  word-break: break-word;
  margin: 8px 0;
}

.play > * {
  min-width: 0;
}

.sticky {
  position: sticky;
  top: 70px;
}

.sticky .code pre {
  max-height: 34vh;
  overflow: auto;
}

.part {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
  transition: border-color .2s, background .2s;
}

.part.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.part label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  cursor: pointer;
  padding: 3px 0;
}

.part select {
  font-size: 13px;
  padding: 3px 8px;
}

input[type="checkbox"] {
  accent-color: var(--accent);
}

textarea.short {
  width: 100%;
  resize: vertical;
  font: 14px/1.6 var(--mono);
  margin-bottom: 10px;
}

pre.wrap {
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 260px;
  overflow: auto;
}

.server {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: var(--panel);
  padding: 14px 16px;
}

.server div {
  margin-right: auto;
}

.server strong {
  display: block;
  color: var(--strong);
}

.server span {
  color: var(--muted);
  font-size: 14px;
}

.samples {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.samples label {
  font: 11px var(--mono);
  color: var(--muted);
}

.samples input {
  display: block;
  width: 100%;
  padding: 4px 8px;
  font-size: 13px;
}

.stops {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stops input[type="color"] {
  width: 44px;
  height: 34px;
  padding: 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.gradout {
  font: 600 22px/1.7 var(--mono);
  background: #1b2a1c url("/images/playground-bg.webp") center / cover;
  border-radius: 10px;
  padding: 22px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .55);
  white-space: pre-wrap;
  min-height: 90px;
}

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 10px 0 22px;
}

.swatch {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  background: var(--panel);
  font: 12px var(--mono);
  cursor: copy;
  color: var(--strong);
  text-align: left;
  transition: border-color .15s, transform .2s var(--ease);
}

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

.swatch i {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.swatch small {
  display: block;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .toc {
    display: none;
  }

  .searchbtn {
    min-width: 0;
  }

  .top {
    gap: 12px;
  }

  .nav a {
    padding: 5px 7px;
  }
}

@media (max-width: 960px) {
  .top {
    gap: 10px;
    padding: 0 12px;
  }

  .nav {
    display: none;
  }

  .brand {
    margin-right: auto;
  }

  .top .menubtn {
    display: inline-flex;
  }

  .searchbtn kbd {
    display: none;
  }

  .shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 0 14px;
  }

  .side {
    position: fixed;
    top: 54px;
    left: 0;
    bottom: 0;
    z-index: 15;
    width: 270px;
    height: auto;
    background: var(--bg);
    padding: 18px 12px 40px;
    transform: translateX(-102%);
    transition: transform .3s var(--ease);
  }

  .side.open {
    transform: none;
  }

  .side .mobile-only {
    display: block;
  }

  .hero,
  .play {
    grid-template-columns: minmax(0, 1fr);
  }

  .sticky {
    position: static;
  }

  .hero h1 {
    font-size: 34px;
  }

  .vars td:first-child {
    width: 55%;
  }
}

@media (min-width: 961px) {
  .side .mobile-only {
    display: none;
  }

  .nodocs .side {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

[hidden] {
  display: none !important;
}
