/* Pyrlandia — design tokens: railway signaling + industrial precision */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&family=JetBrains+Mono:wght@400;500&display=swap');
[x-cloak] { display: none !important; }

:root {
  --brand:        #1a56db;
  --brand-dark:   #1e429f;
  --brand-light:  #3b82f6;

  --signal-red:    #d32f2f;
  --signal-yellow: #f9a825;
  --signal-green:  #2e7d32;
  --signal-white:  #fafafa;
  --signal-blue:   #1a56db;

  --steel-50:  #f8fafc;
  --steel-100: #f1f5f9;
  --steel-200: #e2e8f0;
  --steel-400: #94a3b8;
  --steel-700: #334155;
  --steel-900: #0f172a;
}

html, body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }

h1, h2, h3, h4, h5, h6, .font-display { font-family: 'Inter', system-ui, sans-serif; letter-spacing: -0.01em; }

.font-mono-tech,
code, kbd, samp, pre,
.font-mono { font-family: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace; font-feature-settings: 'tnum' 1, 'zero' 1; }

/* Signal badges — railway semantics */
.badge-signal {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.125rem 0.625rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  line-height: 1.25rem; white-space: nowrap;
}
.badge-signal::before {
  content: ''; width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: currentColor;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}
.badge-signal-red    { background: rgba(211,47,47,0.12);  color: var(--signal-red); }
.badge-signal-yellow { background: rgba(249,168,37,0.15); color: #b27600; }
.badge-signal-green  { background: rgba(46,125,50,0.12);  color: var(--signal-green); }
.badge-signal-blue   { background: rgba(26,86,219,0.10);  color: var(--brand); }
.badge-signal-steel  { background: var(--steel-100);      color: var(--steel-700); }

/* Signal light — pulsating dot for live indicators */
.signal-light { display: inline-block; width: 0.625rem; height: 0.625rem; border-radius: 9999px; }
.signal-light-pulse { animation: signal-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.signal-light-red    { background: var(--signal-red); }
.signal-light-yellow { background: var(--signal-yellow); }
.signal-light-green  { background: var(--signal-green); }
.signal-light-blue   { background: var(--brand); }

@keyframes signal-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  50%      { opacity: 0.6; box-shadow: 0 0 0 6px transparent; }
}

/* Rail motif — decorative rule */
.rail-divider {
  height: 6px;
  background:
    linear-gradient(to bottom, transparent 0 1px, var(--steel-400) 1px 2px, transparent 2px 4px, var(--steel-400) 4px 5px, transparent 5px 6px);
}

/* Industrial card shell */
.card-industrial {
  background: white;
  border: 1px solid var(--steel-200);
  border-radius: 0.75rem;
}

/* Focus ring in brand blue */
:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
