/* ============================================================
   발전기 검사 로봇 Design System
   Colors, Type, Spacing tokens
   ============================================================ */

/* --- Google Fonts (substituted; user should confirm) --- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+KR:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ---------- Palette: Primary (verdigris / Mitsubishi mint) ---------- */
  --brand-50:  #EEF5F2;
  --brand-100: #D6E7E0;
  --brand-200: #B4D2C6;
  --brand-300: #8FBBA9;
  --brand-400: #7BAE9F;   /* ← signature turbine casing */
  --brand-500: #5E9683;
  --brand-600: #467A69;
  --brand-700: #345D50;
  --brand-800: #23413A;
  --brand-900: #172B26;

  /* ---------- Accent: Safety yellow (rigging) ---------- */
  --accent-100: #FCEFC1;
  --accent-300: #F7D874;
  --accent-500: #F5C842;   /* ← signature yellow */
  --accent-700: #C79A22;

  /* ---------- Warning / oxide (stator winding red) ---------- */
  --oxide-100: #F1D9D3;
  --oxide-300: #D68878;
  --oxide-500: #B44A3A;    /* ← rust red */
  --oxide-700: #822E22;

  /* ---------- Data (steel navy) ---------- */
  --ink-900: #0D1620;
  --ink-800: #1B2A3A;      /* ← primary ink */
  --ink-700: #2C3E52;
  --ink-500: #55697F;
  --ink-400: #7B8B9E;
  --ink-300: #A8B4C2;

  /* ---------- Neutrals (bright / cream) ---------- */
  --bg:        #F5F1EA;    /* ← default page background */
  --bg-elev:   #FBF9F4;    /* elevated surface */
  --bg-inset:  #EDE7DC;    /* inset panel */
  --line:      #D9D1C1;
  --line-soft: #E7E0D2;
  --white:     #FFFFFF;

  /* ---------- Semantic status ---------- */
  --ok:      #3F8E5C;      /* running / healthy */
  --ok-bg:   #E4F1E8;
  --warn:    #E29327;      /* attention */
  --warn-bg: #FBEBCF;
  --err:     var(--oxide-500);
  --err-bg:  var(--oxide-100);
  --live:    #E13A2B;      /* live-signal red */

  /* ---------- Semantic foreground ---------- */
  --fg1:      var(--ink-800);   /* body text */
  --fg2:      var(--ink-500);   /* secondary */
  --fg3:      var(--ink-400);   /* tertiary / meta */
  --fg-inv:   #FBF9F4;

  /* ---------- Type families ---------- */
  --font-display: 'IBM Plex Sans KR', 'Space Grotesk', 'Pretendard', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans KR', 'Space Grotesk', 'Pretendard', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Menlo', monospace;

  /* ---------- Spacing scale (8px base) ---------- */
  --s-0:  0;
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* ---------- Radii ---------- */
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;
  --r-4: 12px;
  --r-5: 16px;
  --r-pill: 999px;

  /* ---------- Shadows (industrial, low-drama) ---------- */
  --sh-1: 0 1px 0 rgba(23,43,38,0.04), 0 1px 2px rgba(23,43,38,0.06);
  --sh-2: 0 2px 4px rgba(23,43,38,0.05), 0 4px 12px rgba(23,43,38,0.08);
  --sh-3: 0 8px 24px rgba(23,43,38,0.10), 0 2px 6px rgba(23,43,38,0.06);
  --sh-inset: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(23,43,38,0.05);

  /* ---------- Motion ---------- */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0.0, 0.2, 1);
  --dur-fast: 120ms;
  --dur:      180ms;
  --dur-slow: 280ms;
}

/* ============================================================
   Base type
   ============================================================ */
html, body {
  font-family: var(--font-body);
  color: var(--fg1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'tnum';
}

/* Type roles */
.t-display {   /* deck cover, hero */
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.t-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.t-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.t-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
}
.t-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg1);
}
.t-body-sm {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg2);
}
.t-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg2);
}
.t-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg1);
}
.t-num { /* tabular metric */
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
