/* Shared native image cursors for the homepage and project pages.
   Intrinsic size: 24px. Hotspots sit on the arrow tip / index fingertip / text center.
   No JS tracking, hidden cursor, or universal override of system states. */
@media (hover: hover) and (pointer: fine) {
  body {
    --editorial-arrow: url('/asset/cursors/editorial-arrow.svg') 3 3, default;
    --editorial-pointer: url('/asset/cursors/editorial-pointer.svg') 9 3, pointer;
    --editorial-text: url('/asset/cursors/editorial-text.svg') 12 12, text;
    cursor: var(--editorial-arrow);
  }

  /* Selectable copy gets an I-beam; descendants of controls inherit the control. */
  :where(p, h1, h2, h3, h4, h5, h6, li, dt, dd, blockquote, figcaption,
         pre, code, td, th, label, .eyebrow, .work-category, .work-availability,
         .footer-baseline):not(:where(a, button, [role='button'], [draggable='true'], [aria-busy='true']) *) {
    cursor: var(--editorial-text);
  }
  :where(input:not([type]), input[type='text'], input[type='search'],
         input[type='email'], input[type='url'], input[type='tel'],
         input[type='password'], input[type='number'], textarea,
         [contenteditable=''], [contenteditable='true'], [contenteditable='plaintext-only']) {
    cursor: var(--editorial-text);
  }

  :where(a[href], button:enabled, [role='button'], summary),
  :is(.language-switcher, .atmosphere-strip, .expression-strip) button:enabled {
    cursor: var(--editorial-pointer);
  }

  /* Keep native feedback for semantic system states. Explicit resize / wait /
     progress / grab rules and inline cursor styles still take precedence. */
  :where([draggable='true']) { cursor: grab; }
  :where([draggable='true']:active) { cursor: grabbing; }
  :where([aria-busy='true']),
  :is(.language-switcher, .atmosphere-strip, .expression-strip) button[aria-busy='true'] { cursor: progress; }
  :where(:disabled, [aria-disabled='true']),
  :is(.language-switcher, .atmosphere-strip, .expression-strip) button:disabled,
  :is(.language-switcher, .atmosphere-strip, .expression-strip) button[aria-disabled='true'] { cursor: not-allowed; }
}
