/* glitch.css (Nora 20 Nov): the RGB-split glitch is removed from the header, the footer and the buttons.
   Nora: no flashing colour, no jumping. Links in the header and footer only get underlined, softly and slowly.
   Old version: archive/glitch-2026-11-20-calm.css. The glitch is kept only on the project-table rows on "Mitt arbete". */
@keyframes rgb-glitch {
  0%   { text-shadow: 2px 0 rgba(255, 0, 60, .75), -2px 0 rgba(0, 200, 255, .75); transform: translate(0); }
  20%  { text-shadow: -2px 1px rgba(255, 0, 60, .75), 2px -1px rgba(0, 200, 255, .75); transform: translate(-1px, 0); }
  40%  { text-shadow: 1px -1px rgba(255, 0, 60, .75), -1px 1px rgba(0, 200, 255, .75); transform: translate(1px, 0); }
  60%  { text-shadow: -1px 0 rgba(255, 0, 60, .6), 1px 0 rgba(0, 200, 255, .6); transform: translate(0); }
  100% { text-shadow: none; transform: translate(0); }
}
#wt-body .wt-row:hover .glitch, #wt-body .wt-row:focus-visible .glitch {
  display: inline-block; animation: rgb-glitch .45s steps(2, end) 1;
}

/* Header menu: the line under the link fades in slowly. The text keeps its colour (no yellow flash on dark pages). */
.site-nav a { transition: border-bottom-color .7s ease, text-decoration-color .7s ease; }
.site-header.on-dark .site-nav a:hover { color: inherit; border-bottom-color: currentColor; }

/* Footer: the same soft underline; the text keeps its colour */
.site-footer a { text-decoration-line: underline; text-decoration-color: transparent; text-decoration-thickness: 1.5px;
  text-underline-offset: 4px; transition: text-decoration-color .7s ease; }
.site-footer a:hover, .site-footer a:focus-visible,
.ft-col a:hover, .ft-col a:focus-visible, .ft-follow a:hover, .ft-follow a:focus-visible { color: inherit; text-decoration-color: currentColor; }
.ft-col a.nav-soon:hover { text-decoration-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  #wt-body .wt-row:hover .glitch { animation: none; }
  .site-nav a, .site-footer a { transition: none; }
}
