:root {
  /* Brand colors */
  --color-primary: #FFC629;
  --color-primary-hover: #FFB800;
  --color-primary-active: #E0A800;
  --color-primary-soft: #FFF4CC;
  --color-primary-bg: #FFFBE8;
  --color-primary-ink: #1A1A1A;

  /* Ink and text */
  --color-ink: #1A1A1A;
  --color-ink-2: #2E2E2E;
  --color-body: #4A4A4A;
  --color-muted: #6B6B6B;
  --color-faint: #9A9A9A;
  --color-on-dark: #FFFFFF;

  /* Surfaces */
  --color-surface: #FFFFFF;
  --color-surface-2: #FAFAFA;
  --color-surface-3: #F5F5F5;
  --color-surface-4: #EDEDED;
  --color-border: #E5E5E5;
  --color-border-strong: #CFCFCF;

  /* Status */
  --color-success: #16A34A;
  --color-success-bg: #DCFCE7;
  --color-warning: #EA580C;
  --color-warning-bg: #FFEDD5;
  --color-danger: #DC2626;
  --color-danger-bg: #FEE2E2;
  --color-info: #2563EB;
  --color-info-bg: #DBEAFE;

  /* Focus */
  --color-focus: #1A1A1A;
  --color-focus-ring: rgba(255, 198, 41, 0.55);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.875rem;
  --text-3xl: 2.25rem;
  --text-4xl: 3rem;
  --text-5xl: 3.75rem;

  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3rem;
  --space-10: 4rem;
  --space-11: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(16, 16, 16, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 16, 16, 0.08), 0 1px 2px rgba(16, 16, 16, 0.04);
  --shadow-md: 0 4px 12px rgba(16, 16, 16, 0.08), 0 2px 4px rgba(16, 16, 16, 0.04);
  --shadow-lg: 0 12px 32px rgba(16, 16, 16, 0.10), 0 4px 8px rgba(16, 16, 16, 0.04);
  --shadow-focus: 0 0 0 3px var(--color-focus-ring);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 760px;
  --container-pad: 1.25rem;
  --header-height: 64px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 320ms;

  /* Z-index */
  --z-header: 100;
  --z-menu: 200;
  --z-modal: 300;
  --z-toast: 400;
}

@media (min-width: 768px) {
  :root {
    --container-pad: 2rem;
    --header-height: 72px;
  }
}

@media (min-width: 1024px) {
  :root {
    --container-pad: 2.5rem;
  }
}

[data-theme="dark"] {
  --color-ink: #F5F5F5;
  --color-ink-2: #E0E0E0;
  --color-body: #C0C0C0;
  --color-muted: #8A8A8A;
  --color-faint: #666666;
  --color-surface: #121212;
  --color-surface-2: #1A1A1A;
  --color-surface-3: #222222;
  --color-surface-4: #2A2A2A;
  --color-border: #2E2E2E;
  --color-border-strong: #404040;
  --color-primary-bg: #2A2210;
  --color-primary-soft: #3D3215;
  --color-focus: #FFC629;
}