/* ky-note — footer postscript.
   Replaces the dead Socials column (three href="#" links) with a short
   personal note, typed on in the site's mono voice. Colours are read live
   from the theme vars (ky-switch rewrites them on documentElement), with
   the Honey & Ink defaults as fallbacks, so a theme switch recolours the
   note and caret instantly with no script work. */

[data-ky-note] .ky-note-body {
  /* NB: the site's montrealMono 400 woff2 is the true monospace cut
     (the 500-weight file is a proportional face) — stay on 400 */
  font-family: montrealMono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 400;
  font-size: var(--text-base-small, 0.8rem);
  line-height: 1.75;
  letter-spacing: var(--tracking-mono, 0);
  color: var(--color-secondary-100, #14110a);
  max-width: 46ch;
  overflow-wrap: anywhere;
  cursor: default;
}

/* the mailto — real link, underlined ink, the site's interactive easing */
[data-ky-note] .ky-note-mail {
  color: var(--color-secondary-300, #14110a);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: opacity 0.4s cubic-bezier(0.51, 0.92, 0.24, 1.15);
}
[data-ky-note] .ky-note-mail:hover { opacity: 0.62; }
[data-ky-note] .ky-note-mail:focus-visible {
  outline: 1.5px solid var(--color-secondary-300, #14110a);
  outline-offset: 2px;
  border-radius: 2px;
}

/* block caret in the theme accent (secondary-300 = the switcher's btn/side) */
[data-ky-note] .ky-note-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 0.08em;
  vertical-align: -0.14em;
  background: var(--color-secondary-300, #14110a);
  animation: ky-note-blink 1.06s steps(1, end) infinite;
}
[data-ky-note] .ky-note-caret.ky-typing { animation: none; opacity: 1; }
[data-ky-note] .ky-note-caret.ky-dead {
  animation: none;
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.51, 0.92, 0.24, 1.15);
}
@keyframes ky-note-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* finished note sits like ink — the honeykit roughen at low strength
   (static feTurbulence displacement, injected by ky-note.js) */
[data-ky-note] .ky-note-body.ky-note-inked { filter: url(#ky-roughen-lite); }

@media (prefers-reduced-motion: reduce) {
  [data-ky-note] .ky-note-caret { animation: none; opacity: 1; }
}
