/* ==========================================================================
   S · How I work, on About's thirds, words only. Ten principles, read in
   order: in the first third, sticky, the principles as the contents; in the
   other two, a short text for each.
   ========================================================================== */

.hw {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: var(--page-top) var(--gutter) 0;
}

.hw-intro {
  position: sticky;
  top: var(--page-top);
  align-self: start;
  max-width: 400px;
  text-wrap: pretty;
}

/* One rhythm for every block: a grey label, 12px, then the words; paragraphs 0.75em apart. */
.hw .ab-label { margin: 0 0 12px; }
.hw-line p + p { margin-top: 0.75em; }

/* --- The lines: all black at the top of the page, then only the one being read ------------ */

.hw-lines { margin-top: 28px; }
.hw .ab-label + .hw-lines { margin-top: 0; }

.hw-lines a {
  display: block;
  padding: 2px 0;
  transition: color 150ms ease-out;
}

@media (min-width: 901px) {
  .hw[data-reading] .hw-lines a:not([aria-current]) { color: var(--muted); }
}

@media (hover: hover) {
  .hw[data-reading] .hw-lines a:hover { color: var(--fg); }
}

/* --- One principle per section ------------------------------------------------------------ */

.hw-main { grid-column: 2 / -1; max-width: 720px; }

.hw-line {
  padding: 20px 0 40px;
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--page-top);
  text-wrap: pretty;
}

.hw-line:first-child { padding-top: 0; border-top: 0; }

.hw-line p { max-width: 580px; }

/* Quotes sit in a soft grey card, like a pill that grew. */
.hw-quote {
  max-width: 580px;
  margin: 20px 0 0;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--surface);
}

.hw-quote p, .hw-quote p + p { margin: 0; }
.hw-quote footer { margin-top: 4px; font-size: var(--t-sm); }

.hw .hw-cta { margin-top: 0; }

/* Say hi ends on the hand from Contact, waving with it. */
.hw-hand svg {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  vertical-align: -3px;
  fill: none;
  stroke: currentColor;
  stroke-width: var(--hand-stroke);
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(-8deg);
  transform-origin: 50% 95%;
  animation: r-idle var(--wave-every) var(--wave-ease) 1.4s infinite;
}

@media (hover: hover) and (pointer: fine) {
  .hw-hi:hover .hw-hand svg { animation: r-wave 0.6s var(--wave-ease); }
}

@media (prefers-reduced-motion: reduce) {
  .hw-hand svg { animation: none !important; }
}

/* --- Phone ---------------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .hw { grid-template-columns: minmax(0, 1fr); }
  .hw-intro { position: static; max-width: none; }
  .hw-lines { margin-top: 20px; }
  .hw-main { grid-column: 1; margin-top: 56px; }
  .hw-line:first-child { padding-top: 20px; border-top: 1px solid var(--line); }
}
.page-s:has(.hw) { --foot-gap: clamp(160px, 22vh, 260px); }
