:root {
  /* Echoprice contractor-grade design system */
  --earthy-green: #3a4a2e;
  --earthy-green-light: #d4a96a;
  --earthy-green-powder: #e6e9d8;
  --earthy-green-dark: #2a3621;
  
  /* Primary Actions */
  --primary: #b84a1e;
  --primary-hover: #8a3815;
  --primary-strong: #0d0d0d;
  --primary-soft: #f6e9d6;
  --primary-border: #c9bfaf;

  /* Text Colors */
  --text: #0d0d0d;
  --secondary: #595550;
  --muted: #8a8480;
  --tertiary: #c9bfaf;

  /* Background Colors */
  --bg: #f0ebe1;
  --bg-elevated: #faf8f4;
  --surface: #e4ddd0;

  /* Border Colors */
  --border: #c9bfaf;
  --border-soft: rgba(201, 191, 175, 0.55);

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

  /* Radius */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --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(184, 74, 30, 0.18);

  /* Portal Specific - Updated for Vo Design */
  --portal-accent: #b84a1e;
  --portal-accent-deep: #8a3815;
  --portal-text: #0d0d0d;
  --portal-muted: #595550;
  --portal-bg: #f0ebe1;
  --portal-surface: rgba(250, 248, 244, 0.86);
  --portal-surface-soft: rgba(250, 248, 244, 0.56);
  --portal-border: rgba(201, 191, 175, 0.82);
  --portal-border-strong: rgba(74, 53, 32, 0.22);
  
  /* Sidebar Specific */
  --sidebar-width: 260px;
  --sidebar-bg: #faf8f4;
  --sidebar-border: rgba(201, 191, 175, 0.82);
  --sidebar-active-bg: rgba(44, 31, 14, 0.08);
  --sidebar-active-text: var(--portal-accent);
  
  /* Bottom Nav Specific */
  --bottom-nav-height: 80px;
  --bottom-nav-bg: rgba(250, 248, 244, 0.9);
  --bottom-nav-border: rgba(201, 191, 175, 0.82);
  
  /* 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: 'DM Sans', -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;
  }
}
