/* Interaction and readability pass · 2026-08-10
   Keep the existing river/editorial hierarchy while strengthening small copy,
   keyboard focus and sticky-navigation anchor behaviour. */

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid #1769b0 !important;
  outline-offset: 2px !important;
}

:where(button, a) {
  -webkit-tap-highlight-color: rgba(23, 105, 176, .16);
}

/* Homepage: navigation remains quiet, but no longer disappears into the wash. */
.thought-river-guide a {
  min-height: 52px;
}

.thought-river-guide a span {
  color: rgba(31, 70, 117, .72) !important;
}

.thought-river-guide a strong {
  color: #244a76 !important;
  font-weight: 500 !important;
}

.thought-river-guide a:hover strong,
.thought-river-guide a.is-active strong {
  color: #123f73 !important;
}

.river-hero .river-hero__lead {
  color: rgba(17, 62, 111, .88) !important;
  font-weight: 400;
}

.river-hero .hero-keyword__copy {
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(28, 92, 135, .16);
  text-shadow: 0 1px 5px rgba(25, 91, 134, .82), 0 0 2px #fff;
}

.river-hero .hero-keyword__primary {
  color: #fff;
  font-weight: 600;
}

.river-hero .hero-keyword__secondary {
  color: rgba(255, 255, 255, .94);
  font-size: 10px;
  letter-spacing: .1em;
}

.river-hero .hero-keyword__icon-wrap {
  border-color: rgba(255, 255, 255, .72);
  background: rgba(24, 88, 131, .2);
}

/* Supporting copy should stay secondary, not faint. */
#faces :where(.resume-editorial__intro p, .resume-history-list p, .resume-index-block p),
#work :where(.folder-page-header p, .project-file-copy p, .project-file-data span),
#method :where(.workflow-track p, .method-grid p, .workflow-method-grid p),
#future :where(.world-copy p, .world-detail p),
#life .life-stack-heading p {
  color: rgba(35, 69, 111, .82) !important;
}

.river-footer > p,
.river-footer > div span {
  color: rgba(205, 228, 252, .72) !important;
}

#faces :where(.resume-history-list p, .resume-index-block p),
#work :where(.project-file-copy p, .project-file-data span),
#method :where(.workflow-track p, .method-grid p, .workflow-method-grid p) {
  font-size: max(13px, 1em);
  line-height: 1.75;
}

#future .future-world-nav button {
  min-height: 52px;
  color: #496584;
  font-size: 13px;
}

#future .future-world-nav button span {
  color: #587392;
  font-size: 11px;
}

#future .future-world-nav button.is-active {
  color: #173f70;
  font-weight: 500;
}

.contact-shell :where(a, button),
[data-workflow-dialog] button,
.say-hi,
.scroll-cue {
  min-height: 44px;
}

.contact-shell .contact-copy {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
}

.contact-shell .contact-copy img {
  width: 17px;
  height: 17px;
  opacity: .72;
}

.contact-shell .contact-copy > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-shell .contact-copy.is-copied::after {
  content: "已复制";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 6px 9px;
  border-radius: 6px;
  background: #173f70;
  color: #fff;
  font: 500 10px/1 var(--mono);
  white-space: nowrap;
  transform: translateX(-50%);
}

.contact-shell [data-contact-close]:focus-visible,
.contact-shell .contact-copy:focus-visible,
.contact-shell a:focus-visible {
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(23, 105, 176, .2), 0 0 0 1px #1769b0;
}

/* Project detail: preserve editorial tone with a clearer secondary tier. */
.case-breadcrumb__current,
.case-summary,
.case-story-intro__body aside p,
.case-story-chapter__intro p,
.case-html-block p,
.case-decision-list p,
.case-overview p,
.case-flow p,
.case-system-map p {
  color: #405d80 !important;
}

.case-detail-nav a {
  color: #536b89;
}

.case-story-chapter,
.case-story-intro,
[data-system-panel] {
  scroll-margin-top: 190px;
}

html[data-project="smart-water"] .case-system-guide header p,
html[data-project="smart-water"] .case-system-design > header p,
html[data-project="smart-water"] .case-system-design__body p,
html[data-project="smart-water"] .case-system-design footer p,
html[data-project="smart-water"] .case-system-design__journey p {
  color: #3d5a7e;
  font-size: 14px;
}

html[data-project="smart-water"] .case-system-guide header small,
html[data-project="smart-water"] .case-system-guide__tabs small,
html[data-project="smart-water"] .case-system-design small,
html[data-project="smart-water"] .case-system-design__journey span {
  font-size: 12px;
}

html[data-project="smart-water"] .case-system-guide__tabs button {
  min-height: 126px;
}

.case-media-dialog > button {
  min-width: 72px;
  min-height: 44px;
}

@media (max-width: 820px) {
  .river-hero .hero-keyword__secondary { font-size: 9px; }
  .case-story-chapter,
  .case-story-intro,
  [data-system-panel] { scroll-margin-top: 146px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
  }
}
