/* base.css — CSS variables, resets, typography */

:root {
  /* Colors */
  --bg: #05060a;
  --bg-elevated: #10121a;
  --bg-card: rgba(8, 10, 20, 0.96);
  --bg-card-inner: rgba(8, 10, 20, 0.9);
  
  /* Borders */
  --border-subtle: #2a3040;
  --border-card: rgba(50, 57, 80, 0.7);
  --border-task: rgba(55, 64, 95, 0.7);
  --border-divider: rgba(60, 65, 90, 0.6);
  
  /* Text */
  --text-main: #f5f5f5;
  --text-muted: #a0a6c0;
  
  /* Accent colors */
  --accent: #6b56c4;
  --accent-soft: rgba(107, 86, 196, 0.1);
  --accent-glow: rgba(107, 86, 196, 0.9);
  
  /* Semantic colors */
  --danger: #ff6b6b;
  --warn: #ffc857;
  --ok: #4ade80;
  --info: #38bdf8;
  
  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  
  /* Radii */
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --radius-pill: 999px;
  
  /* Shadows */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.55);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base body */
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(155, 135, 255, 0.16), transparent 55%),
    radial-gradient(circle at bottom, rgba(56, 189, 248, 0.18), transparent 60%),
    var(--bg);
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 1.7rem; letter-spacing: 0.03em; }
h2 { font-size: 1.4rem; letter-spacing: 0.02em; }
h3 { font-size: 1.1rem; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

code {
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 0.9em;
  background: var(--accent-soft);
  padding: 2px 5px;
  border-radius: var(--radius-sm);
}

/* Utility classes */
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-warn { color: var(--warn); }
.text-ok { color: var(--ok); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
