/* The guide — the landing page's typography, at reading width.

   Deliberately not a docs site: no sidebar, no search, no version switcher. It
   is one page because the app is one gesture, and a manual longer than the
   thing it explains is its own kind of failure. */

.guide {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 24px;
}

.guide-head {
  margin-bottom: 28px;
}

.guide-head .home {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.guide-head .home:hover {
  color: var(--accent);
}

.guide h1 {
  font-size: clamp(30px, 6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.guide .sub {
  margin-top: 8px;
  color: var(--muted);
  font-size: 17px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 40px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.toc a {
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  text-decoration: none;
}

.toc a:hover {
  background: rgba(124, 92, 255, 0.1);
  color: var(--accent);
}

.guide section {
  margin-bottom: 44px;
  scroll-margin-top: 24px;
}

.guide h2 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.guide p {
  margin-bottom: 12px;
  color: #33333c;
  font-size: 16px;
}

.guide .note {
  padding: 10px 14px;
  border-left: 2px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(124, 92, 255, 0.05);
  color: var(--muted);
  font-size: 14.5px;
}

.guide .say {
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.07);
  color: var(--text);
  font-size: 17px;
  text-align: center;
}

.guide .kbd {
  margin: 14px 0 16px;
  text-align: center;
}

kbd {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(23, 23, 28, 0.05);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
}

.guide .kbd kbd {
  font-size: 16px;
}

.gestures,
.facts,
.steps {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding-left: 0;
  list-style: none;
}

.gestures li {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}

.gestures b {
  font-size: 15px;
}

.gestures span {
  color: var(--muted);
  font-size: 15px;
}

.steps {
  counter-reset: step;
}

.steps li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  color: #33333c;
  font-size: 15.5px;
  counter-increment: step;
}

.steps li::before {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  content: counter(step);
  font-size: 13px;
  font-weight: 600;
}

.facts li {
  padding-left: 16px;
  border-left: 2px solid var(--line);
  color: #33333c;
  font-size: 15.5px;
}

.tree {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.tree > code {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.tree ul {
  display: grid;
  gap: 5px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  list-style: none;
}

.tree li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  white-space: nowrap;
}

.tree code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 13.5px;
}

.tree li span {
  color: var(--muted);
  font-size: 13.5px;
  white-space: normal;
}

.guide .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 560px) {
  .guide {
    padding-top: 72px;
  }

  .tree li {
    white-space: normal;
  }
}
