:root {
  --background: #faf9f5;
  --foreground: #2d2d2d;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --orange-300: #fdba74;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --message-bubble: #e8e8e8;
  --input-background: #ffffff;
  --border-color: #e5e5e5;
  --avatar-bg: #ff8c42;
  --timestamp-color: #666666;
  --font-inter: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* Warm palette */
  --bg: #f8f5ee;
  --bg-alt: #f0ebdf;
  --text: #1a1a18;
  --text-muted: #6b6b63;
  --text-faint: #635d56;
  --border: #d4cfc2;
  --border-light: #e8e3d8;
  --accent: #9e3c12;
  --input-bg: #ffffff;

  /* Status colors */
  --status-designing: #8a6031;
  --status-executing: #a15d08;
  --status-completed: #4a7c59;

  /* GitHub icon toggle */
  --github-icon-opacity: 1;
  --github-icon-dark-opacity: 0;

  /* Sidebar colors */
  --sidebar-bg: #ffffff;
  --user-menu-bg: white;
  --user-menu-border: var(--gray-300);
  --user-name-color: #111827;
  --user-email-color: #6b7280;
  --menu-divider-bg: #e5e7eb;
  --menu-item-color: #374151;
  --menu-item-hover-bg: #f3f4f6;
}

html,
body {
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--foreground);
  font-family: var(--font-inter);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

[data-theme="dark"] {
  --background: rgb(38, 38, 36);
  --foreground: #e5e7eb;
  color-scheme: dark;

  /* Warm palette */
  --bg: #181816;
  --bg-alt: #1e1d1a;
  --text: #e0dcd4;
  --text-muted: #7d796f;
  --text-faint: #9a958e;
  --border: #33312c;
  --border-light: #2a2825;
  --accent: #b87848;
  --input-bg: #1e1d1a;

  /* Status colors */
  --status-designing: #c89060;
  --status-executing: #e9a030;
  --status-completed: #6aad79;

  /* GitHub icon toggle */
  --github-icon-opacity: 0;
  --github-icon-dark-opacity: 1;

  /* Sidebar colors */
  --sidebar-bg: #1e1d1a;
  --user-menu-bg: #242220;
  --user-menu-border: #33312c;
  --user-name-color: #e0dcd4;
  --user-email-color: #9a958e;
  --menu-divider-bg: #33312c;
  --menu-item-color: #e0dcd4;
  --menu-item-hover-bg: #2a2825;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --background: rgb(38, 38, 36);
    --foreground: #e5e7eb;
    color-scheme: dark;

    /* Warm palette */
    --bg: #181816;
    --bg-alt: #1e1d1a;
    --text: #e0dcd4;
    --text-muted: #7d796f;
    --text-faint: #9a958e;
    --border: #33312c;
    --border-light: #2a2825;
    --accent: #b87848;
    --input-bg: #1e1d1a;

    /* Status colors */
    --status-designing: #c89060;
    --status-executing: #e9a030;
    --status-completed: #6aad79;

    /* GitHub icon toggle */
    --github-icon-opacity: 0;
    --github-icon-dark-opacity: 1;

    /* Sidebar colors */
    --sidebar-bg: #1e1d1a;
    --user-menu-bg: #242220;
    --user-menu-border: #33312c;
    --user-name-color: #e0dcd4;
    --user-email-color: #9a958e;
    --menu-divider-bg: #33312c;
    --menu-item-color: #e0dcd4;
    --menu-item-hover-bg: #2a2825;
  }
}