@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist/Geist-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../assets/fonts/geist/GeistMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "lucide";
  src: url("../assets/fonts/lucide/lucide.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --animus-gap: 0.75rem;
  /* The one corner radius. The editor is square-cornered; only things
     that are round by meaning may set their own. */
  --animus-radius: 0;
  --animus-panel: var(--card, #161518);
  --animus-border: var(--border, #343036);
  --animus-muted: var(--muted-foreground, #aba5aa);
}

/* Semantic colours, one set per theme, each at 4.5:1 or better on the
   theme's background and card. Pink stays the accent; these mean yes, no
   and caution only. */
html.dark {
  --animus-error: #f0616a;
  --animus-error-foreground: #0d0d0f;
  --animus-ok: #5dbf6e;
  --animus-ok-foreground: #0d0d0f;
  --animus-warning: #e2a336;
  --animus-warning-foreground: #0d0d0f;
}

html.light {
  --animus-error: #b42a32;
  --animus-error-foreground: #ffffff;
  --animus-ok: #2a7a38;
  --animus-ok-foreground: #ffffff;
  --animus-warning: #8a5a00;
  --animus-warning-foreground: #ffffff;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

html.dark body {
  background: #0d0d0f;
  color: #f3f0f2;
}

html.light body {
  background: #f5f3f4;
  color: #141214;
}

body {
  font-family: var(--font-sans);
}

code,
pre,
textarea {
  font-family: var(--font-mono);
}

/* Boot splash: the mark with a thin pink line that fills once while the
   bundle loads. bootstrap.js swaps the line for a message if it never does. */
.animus-boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.25rem;
  z-index: 999;
}

.animus-boot-mark {
  display: block;
}

.animus-boot-line {
  width: 7rem;
  height: 2px;
  overflow: hidden;
  background: color-mix(in srgb, #ff5fa8 18%, transparent);
}

.animus-boot-line span {
  display: block;
  height: 100%;
  width: 80%;
  background: #ff5fa8;
  transform-origin: left;
  animation: animus-boot-fill 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes animus-boot-fill {
  from {
    transform: scaleX(0);
  }
}

.animus-boot-message {
  margin: 0;
  max-width: min(22rem, calc(100vw - 2rem));
  text-align: center;
}

.animus-boot-message:empty,
.animus-boot.is-failed .animus-boot-line {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .animus-boot-line span {
    animation: none;
  }
}

/* Visually hidden, still read and focusable. */
.animus-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html.animus-scroll-locked,
html.animus-scroll-locked body {
  overflow: hidden;
}
