/* Site cursor. Oct 2026 book cursor, replaced Nov 10 2026 by the Gilded arrow (Editorial plate look):
   an emerald arrow with a gold edge everywhere, a plain gold arrow over anything you can click
   (owner 11-10: no square on links; links lift 2px on hover instead, skipped under reduced motion).
   Mouse and trackpad only, so touch screens are untouched. Text fields keep the normal I-beam.
   Other stylesheets write cursor:var(--cur-open,pointer) wherever they want a pointer, so they
   fall back to the normal hand when this file isn't loaded. Hotspot is the arrow tip (2,2).
   The old book images stay in img/cursor/ for rollback. */
@media (hover:hover) and (pointer:fine){
:root{
  --cur-closed:url("/img/cursor/arrow-closed.png") 2 2,auto;
  --cur-open:url("/img/cursor/arrow-open.png") 2 2,pointer;
}
@supports (cursor:-webkit-image-set(url("/img/cursor/arrow-closed.png") 1x) 2 2,auto){
:root{
  --cur-closed:-webkit-image-set(url("/img/cursor/arrow-closed.png") 1x,url("/img/cursor/arrow-closed@2x.png") 2x) 2 2,auto;
  --cur-open:-webkit-image-set(url("/img/cursor/arrow-open.png") 1x,url("/img/cursor/arrow-open@2x.png") 2x) 2 2,pointer;
}}
@supports (cursor:image-set(url("/img/cursor/arrow-closed.png") 1x) 2 2,auto){
:root{
  --cur-closed:image-set(url("/img/cursor/arrow-closed.png") 1x,url("/img/cursor/arrow-closed@2x.png") 2x) 2 2,auto;
  --cur-open:image-set(url("/img/cursor/arrow-open.png") 1x,url("/img/cursor/arrow-open@2x.png") 2x) 2 2,pointer;
}}
html{cursor:var(--cur-closed)}
a[href],area[href],button,summary,select,label[for],[onclick],
[role=button],[role=link],[role=tab],[role=menuitem],[role=option],[role=switch],[role=checkbox],[role=radio],
input[type=checkbox],input[type=radio],input[type=submit],input[type=button],input[type=reset],
input[type=file],input[type=color],input[type=range],input[type=image]{cursor:var(--cur-open)}
input:not([type]),input[type=text],input[type=email],input[type=search],input[type=tel],input[type=url],
input[type=password],input[type=number],input[type=date],input[type=time],input[type=datetime-local],
input[type=month],input[type=week],textarea,[contenteditable]:not([contenteditable=false]){cursor:text}
:disabled,[aria-disabled=true]{cursor:not-allowed}
[aria-busy=true]{cursor:progress}
}
/* Lift: anything you can click rises 2px on hover. Uses the separate translate property so it adds to,
   never replaces, a transform a button already has. Plain text links inside a sentence don't move
   (translate doesn't apply to inline text), so paragraphs never jump. The easing is in :where() so it never
   overrides a button's own transition. */
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
:where(a[href],button,summary,[role=button],[role=link],[role=tab],input[type=submit],input[type=button],input[type=reset]){transition:translate .15s ease-out}
a[href]:hover,button:not(:disabled):hover,summary:hover,[role=button]:not([aria-disabled=true]):hover,[role=link]:hover,[role=tab]:hover,
input[type=submit]:not(:disabled):hover,input[type=button]:not(:disabled):hover,input[type=reset]:not(:disabled):hover{translate:0 -2px}
a[href]:active,button:active,[role=button]:active{translate:0 0}
/* Header: no lift. A 2px jump under the pointer made header links and buttons flicker when the
   mouse sat near their bottom edge (hover on, item moves away, hover off, item drops back). */
header :is(a[href],button,summary,[role=button],[role=link],[role=tab],input):is(:hover,:active){translate:none}
}
