:root {
  /* Earthy Green - Vo Design System */
  --earthy-green: #65a30d;
  --earthy-green-light: #84cc16;
  --earthy-green-powder: #ecfccb;
  --earthy-green-dark: #4d7c0f;
  
  /* Primary Actions */
  --primary: #000000;
  --primary-hover: rgba(0, 0, 0, 0.9);
  --primary-strong: #000000;
  --primary-soft: rgba(0, 0, 0, 0.05);
  --primary-border: rgba(0, 0, 0, 0.1);

  /* Text Colors */
  --text: #0c0a09;
  --secondary: #78716c;
  --muted: #a8a29e;
  --tertiary: #d6d3d1;

  /* Background Colors */
  --bg: #fafaf9;
  --bg-elevated: #ffffff;
  --surface: #f5f5f4;

  /* Border Colors */
  --border: #e7e5e4;
  --border-soft: rgba(231, 229, 228, 0.5);

  /* Error Colors */
  --error: #ef4444;
  --error-bg: rgba(239, 68, 68, 0.1);
  --error-border: rgba(239, 68, 68, 0.2);

  /* Radius */
  --radius-sm: 0.5rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-green: 0 10px 15px -3px rgba(101, 163, 13, 0.2);

  /* Portal Specific - Updated for Vo Design */
  --portal-accent: #65a30d;
  --portal-accent-deep: #4d7c0f;
  --portal-text: #0c0a09;
  --portal-muted: #64748b;
  --portal-bg: #f8fafc;
  --portal-surface: rgba(255, 255, 255, 0.7);
  --portal-surface-soft: rgba(255, 255, 255, 0.4);
  --portal-border: rgba(226, 232, 240, 0.8);
  --portal-border-strong: rgba(203, 213, 225, 0.5);
  
  /* Sidebar Specific */
  --sidebar-width: 260px;
  --sidebar-bg: #ffffff;
  --sidebar-border: rgba(226, 232, 240, 0.8);
  --sidebar-active-bg: rgba(101, 163, 13, 0.08);
  --sidebar-active-text: var(--portal-accent);
  
  /* Bottom Nav Specific */
  --bottom-nav-height: 80px;
  --bottom-nav-bg: rgba(255, 255, 255, 0.85);
  --bottom-nav-border: rgba(226, 232, 240, 0.8);
  
  /* Status Colors */
  --status-viewed-bg: rgba(168, 85, 247, 0.1);
  --status-viewed-text: #7e22ce;
  --status-viewed-border: rgba(168, 85, 247, 0.2);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A11y: present across portal + onboarding; homepage has its own CSS */
.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-weight: 600;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
  z-index: 300;
}

.skip-link:focus {
  transform: translateY(0);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--earthy-green);
  outline-offset: 2px;
}

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