/* Hair Counter — page styles.
 *
 * Deliberately small: the shared FocusHub shell supplies the header, rail and
 * footer. This file only styles what is specific to this tool, and it must
 * never set a background on .site-header — the shell's green gradient is a
 * layout contract the fleet parity test checks.
 */

:root {
  --hc-ink: #0f172a;
  --hc-muted: #475569;
  --hc-line: #e2e8f0;
  --hc-brand: #065f46;
  --hc-warn: #b45309;
  --hc-ok: #047857;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: var(--hc-ink);
  background: #f6f8fb;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--hc-brand); }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--hc-brand);
  outline-offset: 2px;
}

.btn:disabled { cursor: not-allowed; }

#scalp-map circle { transition: fill .15s ease, r .15s ease; }

#history-list ul { list-style: disc; }

.prose h2 { font-size: 1.35em; line-height: 1.3; margin: 32px 0 12px; }
.prose h3 { font-size: 1.1em; margin: 22px 0 8px; }
.prose p, .prose li { max-width: 72ch; line-height: 1.8; margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }

.cite {
  font-size: .9rem;
  color: var(--hc-muted);
  border-left: 3px solid var(--hc-line);
  padding-left: 12px;
  margin: 14px 0;
}

.cite a { word-break: break-word; }

@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  #scalp-map { width: 140px; height: 140px; }
}
