@layer reset, tokens, base, layout, components, pages;

@layer tokens {
  :root {
    /* Plan A: Architectural Drafting Minimalism Palette */
    --brand: #1d4ed8;
    --brand-hover: #1e40af;
    --brand-soft: #eff6ff;
    --brand-border: #bfdbfe;

    /* Blueprint Login Panel */
    --blueprint-deep: #0b172a;
    --blueprint-mid: #102340;
    --blueprint-grid: rgba(148, 163, 184, 0.08);
    --blueprint-grid-major: rgba(148, 163, 184, 0.14);

    /* Canvas & Surfaces */
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-subtle: #f9fafb;
    --surface-hover: #f3f4f6;

    /* Text Hierarchy */
    --ink: #111827;
    --ink-secondary: #475467;
    --muted: #667085;
    --muted-light: #98a2b3;

    /* Hairline Borders */
    --line: #e4e7ec;
    --line-strong: #d0d5dd;

    /* Semantic Status Colors (Restrained: badges, alerts, indicators only) */
    --green: #059669;
    --green-ink: #047857;
    --green-bg: #ecfdf5;
    --green-border: #a7f3d0;

    --amber: #d97706;
    --amber-ink: #b45309;
    --amber-bg: #fffbeb;
    --amber-border: #fde68a;

    --red: #dc2626;
    --red-hover: #b91c1c;
    --red-ink: #b91c1c;
    --red-bg: #fef2f2;
    --red-border: #fecaca;

    --info: #1d4ed8;
    --info-bg: #eff6ff;
    --info-border: #bfdbfe;

    /* Typography Scale (body 14-15px, floor 12px) */
    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    --text-xs: 12px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-md: 15px;
    --text-lg: 17px;
    --text-xl: 21px;
    --text-2xl: 26px;

    /* Spacing Scale (4px grid) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    /* Radii & Restrained Shadows */
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 8px 24px -4px rgba(16, 24, 40, 0.08), 0 2px 6px -2px rgba(16, 24, 40, 0.04);
    --shadow-lg: 0 20px 44px -8px rgba(15, 23, 42, 0.18), 0 8px 16px -6px rgba(15, 23, 42, 0.08);

    /* Layout Constants */
    --sidebar-w: 224px;
    --topbar-h: 56px;
    --mobile-nav-h: 64px;
    --focus-ring: 0 0 0 3px rgba(29, 78, 216, 0.16);
  }
}
