/* Dezio: the tokens the website and the dashboard share. A mixing desk at night: graphite surfaces,
   the logo's orchid as the one accent, and the logo's diamond facet as the mark on every control. */
@font-face { font-family: "Rubik"; src: url("fonts/rubik.woff") format("woff"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: dark;
  --ink: #0f0f10;
  --bg: #141415;
  --card: #19191b;
  --raised: #232325;
  --raised-2: #2c2c2f;
  --line: rgba(237, 237, 237, .08);
  --line-2: rgba(237, 237, 237, .14);
  --text: #ededed;
  --text-2: #a1a1a6;
  --text-3: #85858b;
  --accent: #cf7be6;
  --on-accent: #1d1022;
  --orchid: #b657d0;
  --violet: #6f52d6;
  --cobalt: #2549c9;
  --good: #4cc38a;
  --bad: #f2777a;
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fast: 140ms;
  --menu: 200ms;
  --enter: 420ms;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/22px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-weight: 500; margin: 0; }
img { max-width: 100%; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(207, 123, 230, .32); }

.mark { display: block; flex: none; }

code, kbd {
  display: inline-block; padding: 0 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px;
  background: var(--raised); color: var(--text); font: 400 12px/18px var(--mono);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--raised); color: var(--text);
  font: 500 14px/20px var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}
.btn:hover { background: var(--raised-2); border-color: var(--line-2); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--ink); }
.btn.primary:hover { background: #fff; border-color: #fff; }
.btn.ghost { background: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--raised); color: var(--text); }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
