@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ground: #0d0e10;
  --panel: #131518;
  --raised: #1a1d21;
  --hover: #22262b;
  --line: #262a30;
  --strong: #3a4048;
  --text: #f3f4f5;
  --soft: #b4bac1;
  --muted: #8a919a;
  --good: #57c793;
  --warn: #e5b652;
  --bad: #f07a76;
  --radius: 10px;
  --speed: 140ms;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 15px/1.55 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  text-wrap: balance;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--strong);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--speed), border-color var(--speed), opacity var(--speed);
}

.button:hover:not(:disabled) {
  background: var(--hover);
  border-color: #535b65;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button.primary {
  background: var(--text);
  border-color: var(--text);
  color: #101113;
}

.button.primary:hover:not(:disabled) {
  background: #d5d8db;
  border-color: #d5d8db;
}

.button.primary .icon {
  filter: invert(1);
}

.button.danger {
  border-color: #6b3433;
  color: var(--bad);
}

.button.danger:hover:not(:disabled) {
  background: #2b1817;
  border-color: var(--bad);
}

.notice {
  padding: 12px 16px;
  border: 1px solid var(--strong);
  border-radius: var(--radius);
  background: var(--raised);
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

.still *,
.still *::before,
.still *::after {
  animation-duration: 1ms !important;
  transition-duration: 1ms !important;
}
