/* =========================================================================
   about.css — the guide page.

   Prose and nothing else: headings, paragraphs, lists, a definition list and
   a few keys. The layout primitives it leans on — .page, .stack, .panel,
   .footer, .nav__link, .cosmos — all live in base.css and space.css, so this
   file adds no page of its own furniture and owns only what is specific to
   reading.

   It deliberately does not borrow `.eyebrow` from tasks.css. That file is
   documented as Home-only, and a page that reaches into another page's
   stylesheet for its masthead is one load order away from an unstyled kicker.
   The two rules are near-identical and that is the cheaper problem.
   ========================================================================= */

/* -------------------------------------------------------------------------
   Masthead
   ------------------------------------------------------------------------- */
.guide__head {
  padding: 0.5rem 0.25rem 0.5rem;
  animation: guide-rise var(--t-slow) var(--ease-out) both;
}

.guide__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.guide__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 0 0 rgba(var(--accent-1-rgb), 0.55);
  animation: guide-blip 3.4s var(--ease-out) infinite;
}

@keyframes guide-blip {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--accent-1-rgb), 0.5);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px rgba(var(--accent-1-rgb), 0);
  }
}

.guide__title {
  margin-top: 0.9rem;
  font-size: clamp(1.7rem, 5.5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}

.guide__lede {
  margin-top: 0.85rem;
  max-width: 54ch;
  font-size: 0.98rem;
  line-height: 1.66;
  color: var(--ink-2);
}

/* -------------------------------------------------------------------------
   Blocks
   ------------------------------------------------------------------------- */
.guide__block {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  /* One hairline more opaque than the Home panels. A wall of prose reads as
     heavier than a wall of controls, and the same glass that suits a list
     makes a paragraph look like it is floating in nothing. */
  border-color: var(--stroke-2);
}

.guide__h2 {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink-1);
}

.guide__p {
  max-width: 62ch;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.guide__p em,
.guide__list em,
.guide__note em {
  font-style: normal;
  color: var(--ink-1);
}

.guide__p strong,
.guide__list strong {
  font-weight: 500;
  color: var(--ink-1);
}

/* -------------------------------------------------------------------------
   Lists
   ------------------------------------------------------------------------- */
.guide__list,
.guide__keys {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 62ch;
  list-style: none;
  font-size: 0.88rem;
  line-height: 1.66;
  color: var(--ink-2);
}

.guide__list li,
.guide__keys li {
  position: relative;
  padding-left: 1.05rem;
}

/* A dot rather than a disc: the guide is prose, and a bullet the size of the
   text reads as a typo at this measure. */
.guide__list li::before,
.guide__keys li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ink-4);
}

/* -------------------------------------------------------------------------
   Terms — the three timer switches, and anything else defined inline
   ------------------------------------------------------------------------- */
.guide__terms {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  max-width: 62ch;
}

.guide__terms dt {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink-1);
}

.guide__terms dt:first-child {
  margin-top: 0;
}

.guide__terms dd {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  line-height: 1.66;
  color: var(--ink-2);
}

/* -------------------------------------------------------------------------
   Note — the honest limit, set apart without a box
   ------------------------------------------------------------------------- */
.guide__note {
  max-width: 62ch;
  padding-left: 0.95rem;
  border-left: 2px solid var(--stroke-3);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink-3);
}

/* -------------------------------------------------------------------------
   Keys
   ------------------------------------------------------------------------- */
.guide kbd {
  display: inline-block;
  padding: 0.1em 0.42em;
  border: 1px solid var(--stroke-2);
  border-radius: var(--r-sm);
  background: var(--glass-2);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 0.82em;
  line-height: 1.4;
  color: var(--ink-1);
  white-space: nowrap;
}

/* -------------------------------------------------------------------------
   Footer link
   ------------------------------------------------------------------------- */
.guide__foot {
  padding: 0.25rem 0.25rem 0.5rem;
  font-size: 0.86rem;
  color: var(--ink-3);
}

/* -------------------------------------------------------------------------
   Motion
   ------------------------------------------------------------------------- */
@keyframes guide-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Each block arrives a beat after the last, so a long page reads as a page
   rather than as a wall. The index is a sibling count, not an inline style,
   which is what keeps this page free of any script at all. The `min()` caps
   the stagger: a ninth section should not wait 400ms for its turn. */
.guide__block:nth-of-type(1) { --block-index: 1; }
.guide__block:nth-of-type(2) { --block-index: 2; }
.guide__block:nth-of-type(3) { --block-index: 3; }
.guide__block:nth-of-type(4) { --block-index: 4; }
.guide__block:nth-of-type(5) { --block-index: 5; }
.guide__block:nth-of-type(6) { --block-index: 6; }
.guide__block:nth-of-type(7) { --block-index: 7; }

.guide__block {
  animation: guide-rise var(--t-slow) var(--ease-out) both;
  animation-delay: calc(min(var(--block-index, 0), 7) * 45ms);
}

/* -------------------------------------------------------------------------
   Reduced motion
   The starfield already checks this in JS, but the entrance is CSS's job and
   has to answer for itself.
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .guide__head,
  .guide__block {
    animation: none;
  }

  .guide__pulse {
    animation: none;
    box-shadow: 0 0 0 0 rgba(var(--accent-1-rgb), 0);
  }
}
