/* ═══════════════════════════════════════════════════════
   Reset, Typography & Base Styles
   ═══════════════════════════════════════════════════════ */

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

html {
  height: 100%;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background var(--duration-lg) var(--ease-out),
              color var(--duration-lg) var(--ease-out);
}

/* ─── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 4px;
  transition: background 0.2s;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* ─── Selection ─────────────────────────────────────── */
::selection {
  background: var(--accent);
  color: var(--bg);
}

/* ─── Focus visible ─────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

/* ─── Keyboard hint ─────────────────────────────────── */
kbd {
  background: var(--bg);
  border: 1px solid var(--border2);
  padding: 2px 7px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
