/* The way back to the portfolio, added by the portfolio (tools/sync-concepts.mjs), not part of the concept.
   A dark hardware key like the studio's own controls, in the nav's spaced capitals, with the arrow in the current
   kit's colour (it follows the kit like the rest of the page). A hairline sets it apart from the logo. */
.pf-back {
  display: inline-flex; align-items: center; gap: 0.7em; flex: none;
  padding: 0.84em 1.1em 0.84em 0.9em; margin-right: -4px;
  background: var(--device); color: var(--ink); border: 1px solid var(--device-line); border-radius: 8px;
  font: 500 clamp(12px, 0.94vw, 24px)/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none;
}
.pf-back svg { width: 1.25em; height: 1.25em; fill: none; stroke: var(--accent-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pf-back:hover { background: var(--device-2); border-color: var(--device-3); }
.pf-back:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.pf-back + .logo { margin-right: auto; padding-left: clamp(16px, 1.6vw, 40px); border-left: 1px solid var(--line); height: 1.1em; }
@media (max-width: 760px) {
  .site-head:has(.pf-back) { gap: 10px; }
  .pf-back { padding: 0; width: 34px; height: 34px; justify-content: center; margin-right: 0; }
  .pf-back span { display: none; }
  .pf-back svg { width: 18px; height: 18px; }
  .pf-back + .logo { padding-left: 10px; }
}
/* on narrow phones the nav's keys close up a little so the arrow fits beside the logo */
@media (max-width: 420px) {
  .site-head:has(.pf-back) { gap: 8px; }
  .site-head:has(.pf-back) .site-nav a { padding-inline: 6px; letter-spacing: 0.1em; }
  .pf-back + .logo { padding-left: 8px; }
}
