/* base.css — design tokens, resets, typography.
   Palette: light warm-grey hardware chassis (see reference sampler unit)
   framing a dark green-phosphor terminal screen, with orange as the only
   warm accent and red reserved strictly for alarms. */

:root {
  /* chassis (light warm grey plastic) */
  --chassis-100: #eae7e0;
  --chassis-200: #d9d6cd;
  --chassis-300: #c3bfb2;
  --chassis-400: #a7a396;
  --chassis-500: #8a8778;
  --chassis-600: #6b6960;
  --chassis-700: #504e47;
  --chassis-800: #38372f;
  --chassis-900: #211f19;

  /* screen (dark, green-tinted) */
  --screen-bg: #0b120e;
  --screen-bg-raised: #101a14;
  --screen-line: #1c2b21;

  /* phosphor green */
  --phosphor-100: #c9ffdb;
  --phosphor-300: #74f7a0;
  --phosphor-500: #3ed17e;
  --phosphor-700: #1f8f52;
  --phosphor-900: #123a22;

  /* orange accent */
  --orange-300: #f6ad6b;
  --orange-500: #e8802f;
  --orange-700: #b8601c;
  --orange-900: #6f3a10;

  /* sparse alarm red */
  --red-300: #ff9186;
  --red-500: #e04a3d;
  --red-700: #a32f26;

  /* amber warning (below-min, distinct from red alarm) */
  --amber-300: #f2d08e;
  --amber-500: #cf9a3d;
  --amber-700: #9c711f;

  --ink: #29271f;
  --ink-muted: #5a5648;
  --ink-on-dark: #dfe6de;

  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Cascadia Code", Consolas, "Liberation Mono", "Courier New", monospace;

  --radius-sm: 3px;
  --radius-md: 5px;
  --shadow-hard: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 2px 4px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--chassis-900);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; }

h1, h2, h3, p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

.screen {
  min-height: 100vh;
  min-height: 100dvh;
}

.screen--desktop {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--chassis-900);
}

/* faint CRT scanline texture over the whole app */
.scanline-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 0px,
    rgba(0, 0, 0, 0.05) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  opacity: 0.35;
}

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

.empty-hint {
  color: var(--ink-muted);
  font-size: 13px;
  padding: 12px 0;
}

.empty-hint--inline {
  padding: 0;
  font-size: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
