:root {
  --text: #aab8c4;
  --text-h: #e4eaef;
  --bg: #161c22;
  --panel: #1d242b;
  --border: #35404a;
  --code-bg: #252d35;
  --accent: #5fc9ae;
  --accent-2: #82b6e0;
  --accent-bg: #17302a;
  --accent-border: #2f5f53;
  --error: #e88b90;
  --error-bg: #2e1c1e;
  --shadow: none;

  --sans: 'Fira Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'SFMono-Regular', 'JetBrains Mono', 'Fira Mono', Menlo, Consolas, monospace;

  font: 16px/145% var(--sans);
  color-scheme: dark;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root[data-theme='light'] {
  --text: #4a5a6a;
  --text-h: #1b2733;
  --bg: #ffffff;
  --panel: #f5f7f9;
  --border: #d7dee5;
  --code-bg: #eaeef2;
  --accent: #0b6b58;
  --accent-2: #1f4e79;
  --accent-bg: #e3f1ed;
  --accent-border: #9dcabe;
  --error: #a4343a;
  --error-bg: #fbeced;
  --shadow: none;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  transition: color 0.25s ease;
}

#root {
  height: 100svh;
  display: flex;
  flex-direction: column;
}

h1 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--text-h);
  margin: 0;
}

button {
  font: inherit;
}

button,
input,
.entry,
.status-pill {
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, opacity 0.18s ease, transform 0.12s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

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