@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-background: #08080b;
  --color-surface: #121218;
  --color-surface-raised: #1a1a23;
  --color-border: #26262f;
  --color-border-strong: #3a3a48;
  --color-text-primary: #f2f2f7;
  --color-text-secondary: #9c9cb0;
  --color-text-muted: #5e5e6e;
  --color-accent: #7f5af0;
  --color-accent-bright: #a48bff;
  --color-danger: #ff5c72;

  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 22px;
  --radius-pill: 999px;

  --shadow-raised: 0 18px 40px -22px rgb(0 0 0 / 90%);
  --shadow-floating: 0 30px 70px -30px rgb(0 0 0 / 95%);
  --shadow-accent-glow:
    0 0 0 1px color-mix(in srgb, var(--color-accent) 55%, transparent),
    0 12px 40px -12px color-mix(in srgb, var(--color-accent) 60%, transparent);

  --easing-emphasized: cubic-bezier(0.2, 0.9, 0.2, 1);
  --easing-exit: cubic-bezier(0.4, 0, 1, 1);
  --duration-fast: 140ms;
  --duration-medium: 260ms;
  --duration-slow: 460ms;

  --layout-width: 940px;

  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  background-color: var(--color-background);
  color: var(--color-text-primary);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Slowly drifting accent glow that keeps the near-black page from feeling flat. */
body::before {
  content: "";
  position: fixed;
  inset: -30vmax;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      38vmax 38vmax at 22% 12%,
      color-mix(in srgb, var(--color-accent) 22%, transparent),
      transparent 70%
    ),
    radial-gradient(
      30vmax 30vmax at 82% 78%,
      color-mix(in srgb, var(--color-accent-bright) 12%, transparent),
      transparent 70%
    );
  filter: blur(20px);
  animation: ambient-drift 32s var(--easing-emphasized) infinite alternate;
}

@keyframes ambient-drift {
  from {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(4%, 3%, 0) scale(1.12);
  }
}

.application-shell {
  width: min(100% - 40px, var(--layout-width));
  margin: 0 auto;
  padding: 28px 0 96px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (max-width: 620px) {
  .application-shell {
    width: min(100% - 24px, var(--layout-width));
    padding-bottom: 64px;
  }
}

/*
 * Shadow DOM does not inherit these rules, so the same block is repeated in the shared component
 * stylesheet. Overriding animation declarations from every component is exactly what !important
 * exists for here.
 */
@media (prefers-reduced-motion: reduce) {
  /* biome-ignore-start lint/complexity/noImportantStyles: accessibility override must win */
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
  /* biome-ignore-end lint/complexity/noImportantStyles: accessibility override must win */
}
