/**
 * 工程猩 UI Token v0.1.0
 * Source:
 * - outputs/engineering-gorilla-token-export-v0.1.0/engineering-gorilla.tokens.json
 * - outputs/engineering-gorilla-token-export-v0.1.0/ENGINEERING_GORILLA_UI_TOKEN_SPEC.md
 *
 * Usage priority:
 * 1. Semantic variables
 * 2. Component variables
 * 3. Primitive variables
 */

:root {
  /* Primitive Colors / Brand Yellow */
  --color-brand-yellow-100: #FFFBD0;
  --color-brand-yellow-200: #FFEB00;
  --color-brand-yellow-300: #FFE100;
  --color-brand-yellow-400: #FFD000;

  /* Primitive Colors / Neutral */
  --color-neutral-0: #000000;
  --color-neutral-15: #262626;
  --color-neutral-40: #4D4D4D;
  --color-neutral-50: #808080;
  --color-neutral-60: #B2B2B2;
  --color-neutral-70: #CCCCCC;
  --color-neutral-80: #E5E5E5;
  --color-neutral-90: #F0F0F0;
  --color-neutral-95: #F7F7F7;
  --color-neutral-100: #FFFFFF;

  /* Primitive Colors / Semantic Source Colors */
  --color-orange-100: #FFF3E5;
  --color-orange-300: #FFD39E;
  --color-orange-500: #FF8C00;
  --color-blue-100: #DBEBFF;
  --color-blue-300: #A1CCFF;
  --color-blue-500: #0A7AFF;
  --color-red-100: #FFEDED;
  --color-red-300: #FFC1B8;
  --color-red-500: #FF3030;
  --color-green-100: #E7F8F0;
  --color-green-300: #92E8C5;
  --color-green-500: #00C777;

  /* Semantic Colors / Text */
  --color-text-primary: var(--color-neutral-15);
  --color-text-secondary: var(--color-neutral-40);
  --color-text-tertiary: var(--color-neutral-50);
  --color-text-disabled: var(--color-neutral-60);
  --color-text-inverse: var(--color-neutral-100);

  /* Semantic Colors / Background */
  --color-bg-page: var(--color-neutral-90);
  --color-bg-surface: var(--color-neutral-100);
  --color-bg-subtle: var(--color-neutral-90);
  --color-bg-disabled: var(--color-neutral-90);
  --color-bg-dark: var(--color-neutral-15);
  --color-bg-brand: var(--color-brand-yellow-300);

  /* Semantic Colors / Overlay */
  --color-overlay-hint: rgb(77 77 77 / 90%);

  /* Semantic Colors / Border */
  --color-border-default: var(--color-neutral-80);
  --color-border-medium: var(--color-neutral-70);
  --color-border-subtle: var(--color-neutral-80);
  --color-border-inside: var(--color-neutral-90);
  --color-border-strong: var(--color-neutral-60);

  /* Semantic Colors / Icon */
  --color-icon-primary: var(--color-neutral-15);
  --color-icon-secondary: var(--color-neutral-40);
  --color-icon-disabled: var(--color-neutral-60);
  --color-icon-inverse: var(--color-neutral-100);

  /* Semantic Colors / Action */
  --color-action-primary-bg-default: var(--color-brand-yellow-300);
  --color-action-primary-bg-pressed: var(--color-brand-yellow-400);
  --color-action-primary-text: var(--color-neutral-15);
  --color-action-dark-bg-default: var(--color-neutral-15);
  --color-action-dark-bg-pressed: var(--color-neutral-0);
  --color-action-dark-text: var(--color-neutral-100);
  --color-action-secondary-bg-default: var(--color-neutral-100);
  --color-action-secondary-border: var(--color-neutral-80);
  --color-action-secondary-text: var(--color-neutral-15);
  --color-action-disabled-bg: var(--color-neutral-90);
  --color-action-disabled-border: var(--color-neutral-80);
  --color-action-disabled-text: var(--color-neutral-60);

  /* Semantic Colors / Status */
  --color-status-success-foreground: var(--color-green-500);
  --color-status-success-background: var(--color-green-100);
  --color-status-success-border: var(--color-green-300);
  --color-status-warning-foreground: var(--color-orange-500);
  --color-status-warning-background: var(--color-orange-100);
  --color-status-warning-border: var(--color-orange-300);
  --color-status-error-foreground: var(--color-red-500);
  --color-status-error-background: var(--color-red-100);
  --color-status-error-border: var(--color-red-300);
  --color-status-info-foreground: var(--color-blue-500);
  --color-status-info-background: var(--color-blue-100);
  --color-status-info-border: var(--color-blue-300);

  /* Typography / Font Family */
  --font-family-ios: "PingFang SC", "SF UI Text", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-android: "Roboto", "Noto Sans SC", "Source Han Sans SC", "Barlow", sans-serif;
  --font-family-base: -apple-system, BlinkMacSystemFont, "PingFang SC", "Roboto", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-family-number: "Archivo", "Roboto", "SF UI Text", "PingFang SC", sans-serif;

  /* Typography / Primitive Font Size */
  --font-size-12: 12px;
  --font-size-13: 13px;
  --font-size-14: 14px;
  --font-size-16: 16px;
  --font-size-18: 18px;
  --font-size-20: 20px;
  --font-size-24: 24px;

  /* Typography / Primitive Line Height */
  --line-height-18: 18px;
  --line-height-20: 20px;
  --line-height-22: 22px;
  --line-height-24: 24px;
  --line-height-26: 26px;
  --line-height-28: 28px;
  --line-height-32: 32px;

  /* Typography / Weight */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Typography / Text Role */
  --text-caption-font-size: var(--font-size-12);
  --text-caption-line-height: var(--line-height-18);
  --text-caption-font-weight: var(--font-weight-regular);
  --text-caption-strong-font-size: var(--font-size-12);
  --text-caption-strong-line-height: var(--line-height-18);
  --text-caption-strong-font-weight: var(--font-weight-medium);
  --text-compact-font-size: var(--font-size-13);
  --text-compact-line-height: var(--line-height-20);
  --text-compact-font-weight: var(--font-weight-regular);
  --text-compact-strong-font-size: var(--font-size-13);
  --text-compact-strong-line-height: var(--line-height-20);
  --text-compact-strong-font-weight: var(--font-weight-medium);
  --text-body-font-size: var(--font-size-14);
  --text-body-line-height: var(--line-height-22);
  --text-body-font-weight: var(--font-weight-regular);
  --text-body-strong-font-size: var(--font-size-14);
  --text-body-strong-line-height: var(--line-height-22);
  --text-body-strong-font-weight: var(--font-weight-medium);
  --text-section-font-size: var(--font-size-16);
  --text-section-line-height: var(--line-height-24);
  --text-section-font-weight: var(--font-weight-medium);
  --text-card-title-font-size: var(--font-size-18);
  --text-card-title-line-height: var(--line-height-26);
  --text-card-title-font-weight: var(--font-weight-semibold);
  --text-page-title-font-size: var(--font-size-20);
  --text-page-title-line-height: var(--line-height-28);
  --text-page-title-font-weight: var(--font-weight-semibold);
  --text-display-font-size: var(--font-size-24);
  --text-display-line-height: var(--line-height-32);
  --text-display-font-weight: var(--font-weight-semibold);

  /* Spacing */
  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;

  /* Radius */
  --radius-none: 0;
  --radius-4: 4px;
  --radius-8: 8px;
  --radius-12: 12px;
  --radius-16: 16px;
  --radius-full: 999px;

  /* Border Width */
  --border-width-hairline: 0.5px;
  --border-width-default: 1px;
  --border-width-strong: 2px;

  /* Icon Size */
  --icon-size-12: 12px;
  --icon-size-16: 16px;
  --icon-size-20: 20px;
  --icon-size-24: 24px;
  --icon-stroke-width-default: 2px;

  /* Effects / Shadow */
  --shadow-soft: 0 4px 16px rgb(0 0 0 / 6%);
  --shadow-floating: 0 4px 24px rgb(0 0 0 / 8%);

  /* Component / Button Height */
  --button-height-20: 20px;
  --button-height-24: 24px;
  --button-height-28: 28px;
  --button-height-32: 32px;
  --button-height-36: 36px;
  --button-height-48: 48px;
}
