:root {
  --bg: #0a0a0a;
  --surface: #101010;
  --raised: #171717;
  --hover: #1a1a1a;
  --line: #1f1f1f;
  --line2: #2c2c2c;
  --text: #f4f4f4;
  --mute: #8e8e8e;
  --dim: #5e5e5e;
  --inv: #0a0a0a;
  --scrim: rgba(0, 0, 0, 0.62);
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", Consolas, monospace;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #fafafa;
  --surface: #ffffff;
  --raised: #f4f4f5;
  --hover: #f1f1f2;
  --line: #e8e8e8;
  --line2: #d6d6d6;
  --text: #0a0a0a;
  --mute: #6f6f6f;
  --dim: #a6a6a6;
  --inv: #fafafa;
  --scrim: rgba(10, 10, 10, 0.36);
  color-scheme: light;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

button {
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

::selection {
  background: var(--text);
  color: var(--inv);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--line2);
  border-radius: 10px;
  border: 3px solid var(--bg);
}

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

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: -0.01em;
}

.mute {
  color: var(--mute);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: none;
  }
  20% {
    transform: translateX(-7px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(3px);
  }
}

@keyframes ring {
  from {
    transform: scale(0.8);
    opacity: 0.7;
  }
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}

@keyframes drift {
  to {
    transform: rotate(360deg);
  }
}

.rise {
  animation: rise 0.6s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 55ms);
}

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