:root {
  color-scheme: light;

  --font-sans: 'Montserrat', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --leading: 1.5;
  --leading-tight: 1.25;

  --ink-950: #101314;
  --ink-900: #181D1F;
  --ink-800: #22292B;
  --ink-700: #2E3639;
  --ink-600: #485256;
  --ink-500: #5F686B;
  --ink-400: #858A85;
  --ink-300: #B8BCB6;
  --ink-200: #D9DBD6;
  --ink-100: #ECEDE9;
  --ink-50: #FAFAF9;

  --gold-50: #FDF8E7;
  --gold-100: #F9EDC6;
  --gold-200: #F3DCA0;
  --gold-300: #E8C767;
  --gold-400: #DFB738;
  --gold-500: #D3A032;
  --gold-600: #CC8D2E;
  --gold-700: #8F5E00;
  --gold-800: #6B4700;
  --gold-900: #4A3100;

  --surface-app: #F4F4F4;
  --surface-card: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-muted: #FAFAF9;
  --surface-sunken: #ECEDE9;

  --border-subtle: #E3E4E1;
  --border-strong: #858A85;

  --text-primary: #181D1F;
  --text-secondary: #485256;
  --text-muted: #5F686B;
  --text-on-accent: #181D1F;
  --text-inverse: #F2F4F3;

  --accent: #DFB738;
  --accent-strong: #CC8D2E;
  --accent-text: #8F5E00;
  --accent-soft: #FDF8E7;
  --accent-border: #F3DCA0;
  --gradient-accent: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 55%, var(--gold-600) 100%);
  --focus-ring: #8F5E00;

  --success-text: #1D6B45;
  --success-bg: #E6F3EC;
  --success-border: #A9D3BC;
  --danger-text: #A3261D;
  --danger-bg: #FBE9E7;
  --danger-border: #EBB7B2;
  --warning-text: #A23E00;
  --warning-bg: #FBEBDC;
  --warning-border: #EBC4A2;
  --info-text: #2C5470;
  --info-bg: #E8F0F7;
  --info-border: #B7CFE0;

  --sidebar-bg: #FFFFFF;
  --sidebar-bg-elev: #F4F4F4;
  --sidebar-border: #E3E4E1;
  --sidebar-text: #181D1F;
  --sidebar-muted: #5F686B;
  --sidebar-accent: #8F5E00;

  --shadow-1: 0 1px 2px rgba(16, 19, 20, 0.06), 0 1px 3px rgba(16, 19, 20, 0.08);
  --shadow-2: 0 4px 12px rgba(16, 19, 20, 0.08), 0 1px 3px rgba(16, 19, 20, 0.06);
  --shadow-3: 0 16px 40px rgba(16, 19, 20, 0.14), 0 4px 12px rgba(16, 19, 20, 0.08);

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --duration-fast: 150ms;
  --duration-base: 220ms;
  --duration-slow: 250ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-emphasized: cubic-bezier(0.05, 0.7, 0.1, 1);

  --content-max: 1200px;
  --sidebar-width: 264px;
  --header-height: 64px;
  --bottom-nav-height: 64px;
  --tap-target: 44px;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --surface-app: #121617;
  --surface-card: #1A1F21;
  --surface-raised: #222829;
  --surface-muted: #161B1C;
  --surface-sunken: #0E1213;

  --border-subtle: #2C3436;
  --border-strong: #66716F;

  --text-primary: #F2F4F3;
  --text-secondary: #C3CCCB;
  --text-muted: #9AA4A4;
  --text-on-accent: #171B1D;
  --text-inverse: #181D1F;

  --accent: #E3BC52;
  --accent-strong: #CF9E36;
  --accent-text: #EDCB6B;
  --accent-soft: #26200F;
  --accent-border: #5C4A19;
  --gradient-accent: linear-gradient(135deg, #EBCB63 0%, #DDAF3D 55%, #CC8D2E 100%);
  --focus-ring: #F0CE6E;

  --success-text: #7BD8A8;
  --success-bg: #12281E;
  --success-border: #266842;
  --danger-text: #FFA79D;
  --danger-bg: #2A1614;
  --danger-border: #72362F;
  --warning-text: #F2B978;
  --warning-bg: #2A1E11;
  --warning-border: #6E4A25;
  --info-text: #9CCAE9;
  --info-bg: #14212A;
  --info-border: #315874;

  --sidebar-bg: #101415;
  --sidebar-bg-elev: #181E20;
  --sidebar-border: #283032;
  --sidebar-text: #F2F4F3;
  --sidebar-muted: #A9B2B2;
  --sidebar-accent: #E9C766;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.32), 0 1px 3px rgba(0, 0, 0, 0.28);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-3: 0 16px 40px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.36);
}
