/* Icons: one 24px set, drawn inline by assets/js/icons.js. */
ion-icon { width: 1em; height: 1em; flex: none; }
ion-icon > svg { display: block; width: 100%; height: 100%; overflow: visible; }
ion-icon > svg * { vector-effect: non-scaling-stroke; }
@media (hover: hover) and (pointer: fine) {
  a:hover > ion-icon, button:hover > ion-icon, a:hover ion-icon[name^="arrow-forward"], .craft-cta-pill:hover ion-icon {
    transition: transform .18s ease-out;
  }
  a:hover > ion-icon[name^="arrow-forward"], button:hover > ion-icon[name^="arrow-forward"],
  a:hover > ion-icon[name^="open"], a:hover > ion-icon[name^="download"] { transform: translateX(2px); }
  a:hover > ion-icon[name^="download"] { transform: translateY(2px); }
}
@media (prefers-reduced-motion: reduce) { ion-icon { transition: none !important; transform: none !important; } }

/* Card tilt + paper glare (mouse only; set up by motion.js) */
.rk-tilt { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) !important; transition: transform .18s ease-out, background-color .2s ease; will-change: transform; }
.rk-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .2s ease-out;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 55%); mix-blend-mode: soft-light; }
.rk-tilt:hover > .rk-glare { opacity: 1; }
body[data-theme="dark"] .rk-glare { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%); }

/* About pen line: hand-drawn thread down the left margin */
.rk-pen { position: absolute; left: 6px; top: 0; width: 40px; pointer-events: none; z-index: 1; overflow: visible; }
.rk-pen-ghost, .rk-pen-ink { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.rk-pen-ghost { stroke: var(--border-subtle); stroke-width: 1.5; stroke-dasharray: 2 7; }
.rk-pen-ink { stroke: var(--accent-purple); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rk-pen-pin { fill: var(--surface-card); stroke: var(--border-subtle); stroke-width: 2; transition: fill .25s ease, stroke .25s ease; }
.rk-pen-pin.is-on { fill: var(--accent-purple); stroke: var(--accent-purple); }
@media (max-width: 899px) { .rk-pen { display: none; } }
@media print { .rk-pen, .rk-glare { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .rk-tilt { transform: none !important; } .rk-glare { display: none; } .rk-pen-pin { transition: none; } }
