/* ReadyGrid design tokens
   Identity: regulatory ledger meets radar system.
   Type: IBM Plex Serif (display) / IBM Plex Sans (UI) / IBM Plex Mono (data, labels)
   Ink: deep marine navy. Accent: verdigris teal. Status palette is fixed and
   always paired with an icon + text label — color never carries meaning alone. */

:root {
  /* Ink + surfaces */
  --ink-950: #071e2c;
  --ink-900: #0b2a3c;
  --ink-800: #123950;
  --ink-700: #1b4a66;
  --paper: #f2f5f5;
  --card: #ffffff;
  --card-dim: #f7fafa;
  --line: #dde5e7;
  --line-strong: #c5d2d6;

  /* Text */
  --text-1: #122b3a;
  --text-2: #4d6371;
  --text-3: #7d929c;
  --text-inv: #f4f8f9;
  --text-inv-2: #9fb8c4;

  /* Brand */
  --brand: #0f8a7a;
  --brand-deep: #0b6f63;
  --brand-bright: #2ad4b7;
  --brand-wash: #e3f2ef;
  --brand-wash-2: #d0eae4;

  /* Status (validated set; ship with icon + label, never color alone) */
  --status-good: #0ca30c;
  --status-good-deep: #067806;
  --status-good-wash: #e8f6e8;
  --status-warn: #fab219;
  --status-warn-deep: #8a5f00;
  --status-warn-wash: #fdf3dc;
  --status-serious: #ec835a;
  --status-serious-deep: #b34a22;
  --status-serious-wash: #fdeee7;
  --status-crit: #d03b3b;
  --status-crit-deep: #a72525;
  --status-crit-wash: #fbe9e9;
  --status-none: #8fa3ac;
  --status-none-wash: #eef2f3;

  /* Sequential ramp (brand teal, light -> dark) for meters and bars */
  --seq-100: #d7efea;
  --seq-200: #a9ddd3;
  --seq-300: #6fc4b5;
  --seq-400: #35a893;
  --seq-500: #0f8a7a;
  --seq-600: #0b6f63;
  --seq-700: #08544c;

  /* Type */
  --font-display: "IBM Plex Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Rhythm */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(7, 30, 44, 0.06);
  --shadow: 0 6px 24px -8px rgba(7, 30, 44, 0.14);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-1);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Shared atoms ---------------------------------------------------------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.mono { font-family: var(--font-mono); }
.tnum { font-variant-numeric: tabular-nums; }

/* Status chip: icon + label, always both */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.chip svg { flex: 0 0 auto; }
.chip--good { background: var(--status-good-wash); color: var(--status-good-deep); }
.chip--warn { background: var(--status-warn-wash); color: var(--status-warn-deep); }
.chip--serious { background: var(--status-serious-wash); color: var(--status-serious-deep); }
.chip--crit { background: var(--status-crit-wash); color: var(--status-crit-deep); }
.chip--none { background: var(--status-none-wash); color: var(--text-2); }
.chip--brand { background: var(--brand-wash); color: var(--brand-deep); }
.chip--ink { background: #e6edf0; color: var(--ink-800); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); }
.btn--ghost { background: transparent; color: var(--text-1); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text-3); }
.btn--inv { background: var(--brand-bright); color: var(--ink-950); }
.btn--inv:hover { background: #4de0c6; }
.btn--ghost-inv { background: transparent; color: var(--text-inv); border-color: rgba(244, 248, 249, 0.35); }
.btn--ghost-inv:hover { border-color: rgba(244, 248, 249, 0.7); }
.btn--sm { padding: 6px 12px; font-size: 13.5px; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-1);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wordmark em { font-style: normal; color: var(--brand-deep); }
.wordmark--inv { color: var(--text-inv); }
.wordmark--inv em { color: var(--brand-bright); }
