/* Reading progress + Esc hint chrome, shared by every page with a site header. */
.reading-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  pointer-events: none;
  background: rgb(239 247 255 / 7%);
}

.reading-bar__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #4f86d6, var(--accent));
  transition: width 0.12s linear;
}

@media (prefers-reduced-motion: reduce) {
  .reading-bar__fill {
    transition: none;
  }
}

.esc-hint {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid rgb(239 247 255 / 14%);
  border-radius: 999px;
  background: rgb(11 15 20 / 72%);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.esc-hint:hover {
  color: #fff;
  border-color: rgb(142 203 255 / 45%);
}

.esc-hint:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.esc-hint kbd {
  font: inherit;
  padding: 0.1rem 0.35rem;
  border: 1px solid rgb(239 247 255 / 22%);
  border-radius: 4px;
  color: var(--text-primary);
}

@media (max-width: 560px) {
  .esc-hint {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.62rem;
  }
}
