/* The interactive queueing script waits on `FontFaceObserver("Suisse Intl Mono")`
   before registering its custom elements. The site now loads fonts via Next.js
   `localFont` (hashed family names), so the literal "Suisse Intl Mono" family is
   no longer declared globally — re-declare it here so the observer resolves and
   the animations initialise. */
@font-face {
  font-family: "Suisse Intl Mono";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("/assets/fonts/suisse-intl/SuisseIntlMono-Thin-WebS.woff2") format("woff2");
}
@font-face {
  font-family: "Suisse Intl Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/suisse-intl/SuisseIntlMono-Regular-WebS.woff2") format("woff2");
}
@font-face {
  font-family: "Suisse Intl Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/suisse-intl/SuisseIntlMono-Bold-WebS.woff2") format("woff2");
}

canvas {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
}

ul.tasklist {
  list-style: none;
}

ul.tasklist li p {
  display: inline;
  text-decoration: none;
  /* currentColor so the strike line follows the text in both site themes */
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: center left;
  background-size: 0% 2px;
  transition: background-size 800ms ease-in-out, opacity 800ms ease-in-out;
}

@media (prefers-reduced-motion) {
  ul li p {
    transition: none;
  }
}

ul.tasklist li::before {
  content: "⬜️️";
  padding-right: 0.25rem;
}

ul.tasklist li.completed::before {
  content: "✅";
  padding-right: 0.25rem;
}

ul.tasklist li.completed p {
  background-size: 100% 2px;
  opacity: 0.6;
}
