@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=JetBrains+Mono:wght@400;600&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --color-bg: #fbf9f4;
  --color-surface: #ffffff;
  --color-surface-muted: #f3efe4;
  --color-surface-raised: #fffdf8;
  --color-border: #e7e1d2;
  --color-border-strong: #d6cebc;
  --color-text: #2b2a25;
  --color-text-muted: #6b6559;
  --color-primary: #1e9e5a;
  --color-primary-strong: #146b3d;
  --color-primary-soft: #dcf4e4;
  --color-on-primary: #102219;
  --color-button-primary: #146b3d;
  --color-button-primary-hover: #0a4529;
  --color-button-text: #ffffff;
  --color-accent: #ffb648;
  --color-accent-strong: #9a5b00;
  --color-accent-soft: #fff0d4;
  --color-coral: #ff7a66;
  --color-coral-soft: #ffe3de;
  --color-success: #167a46;
  --color-success-soft: #dcf4e4;
  --color-warning: #9a5b00;
  --color-warning-soft: #fff0d4;
  --color-danger: #bd3434;
  --color-danger-soft: #fde7e7;
  --color-on-danger: #ffffff;
  --color-info: #1268ad;
  --color-info-soft: #e3f1fd;
  --color-sidebar: #115d37;
  --color-sidebar-strong: #0a4529;
  --color-sidebar-text: #ffffff;
  --color-sidebar-muted: #d7f1e1;
  --color-sidebar-hover: rgb(255 255 255 / 9%);
  --color-sidebar-panel: rgb(255 255 255 / 8%);
  --color-sidebar-border: rgb(255 255 255 / 14%);
  --color-sidebar-glow: rgb(255 255 255 / 10%);
  --color-overlay: rgb(43 42 37 / 48%);

  --font-base: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Baloo 2', var(--font-base);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --text-display-size: clamp(2.15rem, 5vw, 3.25rem);
  --text-display-line: 1.08;
  --text-display-weight: 800;
  --text-h1-size: clamp(1.65rem, 3vw, 2rem);
  --text-h1-line: 1.2;
  --text-h1-weight: 700;
  --text-h2-size: 1.5rem;
  --text-h2-line: 1.25;
  --text-h2-weight: 700;
  --text-h3-size: 1.25rem;
  --text-h3-line: 1.3;
  --text-h3-weight: 600;
  --text-body-size: 1rem;
  --text-body-line: 1.6;
  --text-body-weight: 400;
  --text-body-sm-size: 0.875rem;
  --text-body-sm-line: 1.5;
  --text-caption-size: 0.75rem;
  --text-caption-line: 1.4;
  --text-caption-weight: 700;
  --text-display: var(--text-display-weight) var(--text-display-size) / var(--text-display-line) var(--font-display);
  --text-h1: var(--text-h1-weight) var(--text-h1-size) / var(--text-h1-line) var(--font-base);
  --text-h2: var(--text-h2-weight) var(--text-h2-size) / var(--text-h2-line) var(--font-base);
  --text-h3: var(--text-h3-weight) var(--text-h3-size) / var(--text-h3-line) var(--font-base);
  --text-body: var(--text-body-weight) var(--text-body-size) / var(--text-body-line) var(--font-base);
  --text-body-sm: var(--text-body-weight) var(--text-body-sm-size) / var(--text-body-sm-line) var(--font-base);
  --text-caption: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-line) var(--font-base);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --radius-sm: 0.6rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 12px rgb(43 42 37 / 6%);
  --shadow-md: 0 16px 40px rgb(43 42 37 / 10%);
  --shadow-lg: 0 28px 70px rgb(43 42 37 / 16%);
  --focus-ring: 0 0 0 0.25rem rgb(30 158 90 / 22%);
  --motion-fast: 150ms;
  --motion-base: 220ms;
  --motion-slow: 320ms;
  --motion-easing: cubic-bezier(0.4, 0, 0.2, 1);
  --layout-sidebar: 18.5rem;
  --layout-content: 96rem;
  --control-height: 3rem;
  --icon-sm: 1rem;
  --icon-md: 1.25rem;
  --icon-lg: 1.5rem;
  --illustration-sm: 8.5rem;
  --illustration-md: 16rem;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --color-bg: #1b1b16;
  --color-surface: #242420;
  --color-surface-muted: #2e2d26;
  --color-surface-raised: #302f29;
  --color-border: #3b3a32;
  --color-border-strong: #565346;
  --color-text: #f3f1e8;
  --color-text-muted: #b7b1a0;
  --color-primary: #3fcb82;
  --color-primary-strong: #6fe0a4;
  --color-primary-soft: #1e3b2a;
  --color-on-primary: #102219;
  --color-button-primary: #267a50;
  --color-button-primary-hover: #1c5e3d;
  --color-button-text: #ffffff;
  --color-accent: #ffc873;
  --color-accent-strong: #ffd98f;
  --color-accent-soft: #49391f;
  --color-coral: #ff9587;
  --color-coral-soft: #4a2c28;
  --color-success: #64d99a;
  --color-success-soft: #1e3b2a;
  --color-warning: #f0b85c;
  --color-warning-soft: #49391f;
  --color-danger: #f58a84;
  --color-danger-soft: #482829;
  --color-on-danger: #241515;
  --color-info: #74b9f2;
  --color-info-soft: #20394e;
  --color-sidebar: #172b21;
  --color-sidebar-strong: #0f2018;
  --color-sidebar-text: #f3f1e8;
  --color-sidebar-muted: #b7d5c2;
  --color-sidebar-hover: rgb(255 255 255 / 8%);
  --color-sidebar-panel: rgb(255 255 255 / 7%);
  --color-sidebar-border: rgb(255 255 255 / 13%);
  --color-sidebar-glow: rgb(255 255 255 / 8%);
  --color-overlay: rgb(0 0 0 / 68%);
  --shadow-sm: 0 4px 14px rgb(0 0 0 / 24%);
  --shadow-md: 0 18px 44px rgb(0 0 0 / 34%);
  --shadow-lg: 0 30px 76px rgb(0 0 0 / 46%);
  --focus-ring: 0 0 0 0.25rem rgb(63 203 130 / 27%);
}
