/* earpiece design tokens.
   A second screen glanced at under stress. Everything here serves one goal:
   a person mid sentence can take one look and get the next thing to say.
   That means big type, few colors, and no decoration that costs a glance. */

:root {
  --ink: #f4f1ea;
  --ink-soft: #a49f95;
  --ink-faint: #6b6760;
  --bg: #0d0d0f;
  --bg-panel: #16161a;
  --bg-raised: #1e1e24;
  --line: #2a2a32;
  /* Amber, not red. The studio on-air feel without the alarm. */
  --live: #ffb020;
  --live-dim: #5c4110;
  --them: #6fb3ff;
  --warn: #ff7a6b;
  --ok: #6bd6a0;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --r: 10px;
  --pad: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  /* A page never pans left to right. */
  overflow-x: hidden;
}

body { line-height: 1.45; }

a { color: var(--ink); text-decoration-color: var(--ink-faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--live); }

button, select, textarea, input {
  font: inherit;
  color: inherit;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 9px 14px;
}
button { cursor: pointer; transition: border-color .15s ease, background .15s ease; }
button:hover { border-color: var(--ink-faint); }
button:focus-visible, a:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 2px;
}
button[disabled] { opacity: .4; cursor: not-allowed; }

.btn-live { background: var(--live); color: #17130a; border-color: var(--live); font-weight: 600; }
.btn-live:hover { background: #ffc247; border-color: #ffc247; }

.mono { font-family: var(--mono); }
.dim { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }

.tag {
  display: inline-block;
  font: 600 10px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-faint); flex: none;
}
.dot.on { background: var(--live); box-shadow: 0 0 0 0 var(--live); animation: pulse 2s infinite; }
.dot.err { background: var(--warn); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,176,32,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(255,176,32,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,176,32,0); }
}

/* Anyone who asked their machine to calm down gets a calm machine. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Utility classes that exist because the Content Security Policy forbids the
   style attribute. Every one of these was an inline style until the policy was
   tested in a real browser and silently dropped all of them. */
.taglink { text-decoration: none; cursor: pointer; }
.secthint { font: 400 11px/1.3 var(--sans); color: var(--ink-faint); }
