/* The guide and the plugin page: one picture of the app beside what it does.
   Paper, one ink, hairlines — the same sheet as the app. */
.guide { max-width: 980px; margin: 0 auto; padding: 56px var(--gutter) 96px; }
.guide .mark { width: 72px; height: 72px; margin-bottom: 28px; }
.guide h1 { margin: 0 0 10px; font-size: 30px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.guide .lead { max-width: 620px; margin: 0 0 12px; font-size: 17px; }
.guide .lead + p { max-width: 620px; color: var(--ink-2); }

/* the contents: numbered, mono, one line each */
.toc { margin: 36px 0 8px; padding: 16px 0 0; border-top: 1px solid var(--line); columns: 2 220px; column-gap: 32px; list-style: none; font-family: var(--mono); font-size: 12.5px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.toc .n { display: inline-block; width: 2.4em; color: var(--ink-3); }

/* a chapter: the screen on the left, the words on the right */
.part {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 20px 48px;
  align-items: start;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 16px;
}
.part figure { margin: 0; }
.part figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.part figure.wide img { border-radius: 6px; }
.part figure + figure { margin-top: 16px; }
.part figcaption { margin-top: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.part .n { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.part h2 { margin: 2px 0 14px; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.part p { margin: 0 0 12px; color: var(--ink-2); }
.part .needs { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-3); }

/* a gesture and what it does, as the app's hints sheet prints them */
.how { margin: 0 0 14px; padding: 0; list-style: none; }
.how li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 4px 18px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.how li:first-child { border-top: 1px solid var(--line); }
.how b { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--ink); }
.how span { color: var(--ink-2); }

/* steps in another app */
.steps { margin: 0 0 14px; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 10px 0 10px 2.6em; border-bottom: 1px solid var(--line); color: var(--ink-2); counter-increment: s; }
.steps li:first-child { border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 11px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }

code { font-family: var(--mono); font-size: 0.92em; color: var(--ink); }

@media (max-width: 720px) {
  .part { grid-template-columns: minmax(0, 1fr); }
  .part figure { max-width: 300px; }
  .how li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
