/* resume-link.css
 *
 * The "Résumé" link, small and quiet in the top-right corner of every
 * scene, just left of the sound toggle (sound.css), in the same style:
 * cream on a faint dark pill, half-faded until the pointer or keyboard
 * focus is on it.
 */

.resume-link {
  /* The sound toggle's size and the gap between them. */
  --toggle-size: 2.25rem;
  --gap: 0.5rem;

  position: fixed;
  /* In line with the sound toggle, clear of a phone's notch. */
  top: max(1rem, env(safe-area-inset-top));
  right: calc(max(1rem, env(safe-area-inset-right)) + var(--toggle-size) + var(--gap));
  /* Above the transition canvas, like the sound toggle. */
  z-index: 4;
  display: flex;
  align-items: center;
  height: var(--toggle-size);
  padding: 0 0.9em;
  border-radius: 999px;
  background: rgba(6, 14, 40, 0.3);
  color: #f6eee2;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.resume-link:hover,
.resume-link:focus-visible {
  opacity: 1;
}

.resume-link:active {
  background: rgba(6, 14, 40, 0.5);
}

.resume-link:focus-visible {
  outline: 2px solid #f6eee2;
  outline-offset: 3px;
}
