/* ── OUT LOUD — standalone stylesheet (Netlify PWA build) ── */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
button { cursor: pointer; }

/* ── Theme tokens ── */
:root,
body[data-theme="light"] {
  --ui-bg:           #f8f7f4;
  --ui-text:         #222222;
  --ui-border:       #bbbbbb;
  --ui-hover-border: #333333;
  --ui-hover-text:   #000000;
  --count-color:     #888888;
  --ui-font:         "Space Grotesk", system-ui, sans-serif;
}

body[data-theme="dark"] {
  --ui-bg:           #1a1a1a;
  --ui-text:         #e8e6e0;
  --ui-border:       #555555;
  --ui-hover-border: #cccccc;
  --ui-hover-text:   #ffffff;
  --count-color:     #777777;
}

body[data-theme="slate"] {
  --ui-bg:           #1e2430;
  --ui-text:         #dce3ee;
  --ui-border:       #4a5568;
  --ui-hover-border: #a0aec0;
  --ui-hover-text:   #ffffff;
  --count-color:     #6b7a91;
}

body {
  background: var(--ui-bg);
  color: var(--ui-text);
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s, color 0.25s;
}

/* ── Typewriter unroll chars ──
   inline (not inline-block) so the justify algorithm never
   spaces out individual letters; centering comes from #col-a */
.char { opacity: 0; display: inline; }
.char.on { opacity: 1; }

/* ── Controls bar ── */
#controls {
  position: fixed;
  top: 0.9rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 50;
}

.ctrl-btn {
  font-family: var(--ui-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ui-text);
  background: var(--ui-bg);
  border: 1.5px solid var(--ui-border);
  border-radius: 7px;
  padding: 5px 11px;
  line-height: 1.45;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
}
.ctrl-btn:hover {
  border-color: var(--ui-hover-border);
  color: var(--ui-hover-text);
  background: var(--ui-bg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.13);
}
.ctrl-btn:active {
  box-shadow: none;
  transform: translateY(1px);
}
