/* Guide pages. Same tokens, same restraint as the tool — this is documentation
   that happens to be indexable, not a blog. Loaded alongside app.css, which
   supplies :root and the resets; nothing here redefines a token.

   Deliberately absent: cards, shadows, author bylines, dates, share buttons,
   related-posts rails, and anything else that would make these read as content
   marketing rather than as the tool explaining itself. */

.guide-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--space-6) var(--space-10);
}

.guide-header {
  padding: var(--space-7) 0 var(--space-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-8);
}

/* A link, not a heading: the guide's own title is the page's one h1. */
.guide-home {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

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

/* 68ch is roughly 12 words a line — past that the eye loses the start of the
   next one, which matters more here than anywhere else in the product because
   this is the only place with real paragraphs. */
.guide {
  max-width: 68ch;
  margin: 0 auto;
}

.guide h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 var(--space-4);
}

.guide h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: var(--space-8) 0 var(--space-3);
}

.guide p,
.guide li {
  font-size: var(--text-base);
  line-height: 1.7;
}

.guide p {
  margin: 0 0 var(--space-4);
}

.guide ul {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
}

.guide li {
  margin-bottom: var(--space-2);
}

.guide a {
  color: var(--accent);
}

/* The lead paragraph answers the question in the title before the reader has
   to scroll, which is the whole job of a page someone arrived at from a search
   result. */
.guide-lead {
  color: var(--ink-soft);
}

.guide-back {
  margin-top: var(--space-9);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
}

/* ---- Responsive ----
   At the end of the file, like app.css: media queries carry no specificity, so
   a block above the base rules loses to them on source order. */

@media (max-width: 600px) {
  .guide-shell {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .guide-header {
    padding: var(--space-5) 0 var(--space-4);
    margin-bottom: var(--space-6);
  }

  .guide h1 {
    font-size: var(--text-lg);
  }
}
